After addition of the FEC bytes, all of the 1.544 Mbit/s (or 3.088 Mbit/s) data is passed through a six register Linear Feedback Shift Register (LFSR) randomizer to ensure a random distribution of ones and zeroes.
The generating polynomial is: .
Byte/serial conversion shall be MSB first.
A complementary self-synchronizing de-randomizer is used in the receiver to recover the data.
The outputs I, Q from the differential encoder map to the phase states as in Figure A.12.
Figure A.12/J.112
| | | | | | | | | | | | | | | |
+| Frequency Range | Recommended but not mandatory 70 to 130 MHz and/or 300 to 862 MHz | | | | | | | | | | | | | | | |
+| Frequency Stability | ± 50 ppm measured at the upper limit of the frequency range | | | | | | | | | | | | | | | |
+| Symbol Rate Accuracy | ± 50 ppm | | | | | | | | | | | | | | | |
+| Carrier Suppression | > 30 dB | | | | | | | | | | | | | | | |
+| I/Q Amplitude Imbalance | < 1.0 dB | | | | | | | | | | | | | | | |
+| I/Q Phase Imbalance | < 2.0° | | | | | | | | | | | | | | | |
+| Receive Power Level at input | 42-75 dBmicroV (RMS) (75 Ω) | | | | | | | | | | | | | | | |
+| Transmit Spectral Mask | A common mask for both bit rates: 1.544 Mbit/s (Grade A) and 3.088 Mbit/s (Grade B) is given in Table A.2 and in Figure A.9 | | | | | | | | | | | | | | | |
+
+##### A.5.2.1.8 Bit error rate downstream OOB (informative)
+
+Bit error rate at the NIU should be less than $10^{-10}$ (after error correction, i.e. 1 error in 2 hours at 1.5 Mbit/s) at $C/N > 20$ dB for downstream transmission. $C/N$ is the carrier-to-noise ratio relevant for the demodulation process (Nyquist bandwidth for white noise).
+
+#### A.5.2.2 Forward Interaction path (downstream IB)
+
+The IB Forward Interaction Path must use a MPEG-2 TS stream with a modulated QAM channel as defined by ETS 300 429. Frequency range, channel spacing, and other lower physical layer parameters should follow that specification.
+
+#### A.5.2.3 Return Interaction path (upstream)
+
+##### A.5.2.3.1 Frequency range (upstream)
+
+The frequency range is not specified as mandatory although a guideline is provided to use the 5-65 MHz. Frequency stability shall be in the range $\pm 50$ ppm measured at the upper limit of the frequency range.
+
+##### A.5.2.3.2 Modulation and mapping (upstream)
+
+The unique word (CC CC CC 0D, see A.5.3 for upstream framing) is not differentially encoded, the outputs I, Q map to the phase states as in Figure A.13.
+
+
+
+Figure A.13/J.112 – Mapping for the QPSK constellation (upstream). The diagram shows a QPSK constellation in the I-Q plane. The horizontal axis is labeled 'I' and the vertical axis is labeled 'Q'. Four points are plotted: '01' in the top-left quadrant, '11' in the top-right quadrant, '00' in the bottom-left quadrant, and '10' in the bottom-right quadrant. The text 'T0904460-97/d012' is at the bottom right.
+
+Figure A.13/J.112 – Mapping for the QPSK constellation (upstream)
+
+For the remainder of the packet, the differential encoder shall accept bits A, B in sequence, and generate phase changes as indicated in Table A.3. It starts with the first information dibit and is initialized with the last dibit of the unique word, i.e. (A, B = 0, 1) since conversion is made MSB first.
+
+Table A.3/J.112 – Phase changes corresponding to bits A, B
+
+| A | B | Phase change |
+|---|---|--------------|
+| 0 | 0 | None |
+| 0 | 1 | +90° |
+| 1 | 1 | 180° |
+| 1 | 0 | -90° |
+
+Phase changes correspond to the following formulas (assuming I and Q are mapped to the constellation as for the unique word):
+
+$$\begin{cases} A_k = \overline{(I_{k-1} \oplus Q_{k-1})} \times (Q_{k-1} \oplus Q_k) + \overline{(I_k \oplus Q_{k-1})} \times (I_k \oplus I_{k-1}) \\ B_k = (I_{k-1} \oplus Q_{k-1}) \times (I_{k-1} \oplus I_k) + \overline{(I_{k-1} \oplus Q_k)} \times (Q_k \oplus Q_{k-1}) \end{cases}$$
+
+where $k$ is the time index.
+
+I/Q amplitude imbalance shall be less than 1.0 dB, and phase imbalance less than 2.0°.
+
+##### A.5.2.3.3 Shaping filter (upstream)
+
+The time-domain response of a square-root raised-cosine pulse with excess bandwidth parameter $\alpha$ is given by:
+
+$$g(t) = \frac{\sin\left[\frac{\pi t}{T}(1-\alpha)\right] + \frac{4\alpha t}{T} \cos\left[\frac{\pi t}{T}(1+\alpha)\right]}{\frac{\pi t}{T} \left[1 - \left(\frac{4\alpha t}{T}\right)^2\right]}$$
+
+where $T$ is the symbol period.
+
+The output signal shall be defined as:
+
+$$S(t) = \sum_n [I_n \times g(t - nT) \times \cos(2\pi f_c t) - Q_n \times g(t - nT) \times \sin(2\pi f_c t)]$$
+
+with $I_n$ and $Q_n$ equal to $\pm 1$ , independently from each other, and $f_c$ the QPSK modulator's carrier frequency.
+
+The QPSK modulator divides the incoming bit stream so that bits are sent alternately to the in-phase modulator I and the out-of-phase modulator Q. These same bit streams appear at the output of the respective phase detectors in the demodulator where they are interleaved back into a serial bit stream.
+
+The QPSK signal parameters are:
+
+- RF bandwidth: $BW = (f_b/2) * (1 + \alpha)$ ;
+- Occupied RF Spectrum: $[f_c - BW/2, f_c + BW/2]$ ;
+- Symbol Rate: $f_s = f_b/2$ ;
+- Nyquist Frequency: $f_N = f_s/2$ ;
+
+with $f_b$ = bit rate, $f_c$ = carrier frequency and $\alpha$ = excess bandwidth.
+
+For all three bit rates: 256 kbit/s (Grade A), 1.544 Mbit/s (Grade B) and 3.088 Mbit/s (Grade C), the Power Spectrum at the QPSK transmitter shall comply to the Power Spectrum Mask given in Table A.4 and Figure A.14. The Power Spectrum Mask shall be applied symmetrically around the carrier frequency.
+
+The specifications which shall apply to QPSK modulation for the upstream channel are given in Table A.4.
+
+**Table A.4/J.112 – QPSK upstream transmitter Power Spectrum**
+
+| $ f - f_c /f_N$ | Power Spectrum |
+|-------------------|------------------|
+| $\leq 1 - \alpha$ | $0 \pm 0.25$ dB |
+| at 1 | $-3 \pm 0.25$ dB |
+| at $1 + \alpha$ | $\leq -21$ dB |
+| $\geq 2$ | $\leq -40$ dB |
+
+
+
+Figure A.14/J.112 – QPSK upstream transmitter Power Spectrum. The graph shows the power spectral density H(f) versus normalized frequency |f - fc| / fN. The y-axis is in dB, ranging from -40 dB to 0 dB. The x-axis has markers at 1 - alpha, 1, 1 + alpha, and 2. The spectrum is flat at 0 dB from 0 to 1 - alpha. Between 1 - alpha and 1, there is an in-band ripple rm. Between 1 and 1 + alpha, there is a Nyquist ripple rN. At f = 2, there is a sharp drop to -40 dB, labeled as out-of-band rejection > 40 dB. Text labels indicate In-band ripple rm < 0.5 dB and Nyquist ripple rN < 0.5 dB. The code T0904470-97/d013 is at the bottom right.
+
+Figure A.14/J.112 – QPSK upstream transmitter Power Spectrum
+
+##### A.5.2.3.4 Randomizer (upstream)
+
+The unique word shall be sent in clear (see A.5.3). After addition of the FEC bytes, randomization shall apply only to the payload area and FEC bytes, with the randomizer performing modulo -2 addition of the data with a pseudo-random sequence. The generating polynomial is $x^6 + x^5 + 1$ with seed all ones. We assume the first value coming out of the pseudo-random generator taken into account is 0. Byte/serial conversion shall be MSB first. The binary sequence generated by the shift register starts with 00000100... The first "0" is to be added in the first bit after the unique word.
+
+A complementary non self-synchronizing de-randomizer is used in the receiver to recover the data. The de-randomizer shall be enabled after detection of the unique word.
+
+
+
+Figure A.15/J.112 – Randomizer. This is a block diagram of a randomizer. Serial input enters a circular adder (+). The output of this adder goes into a series of six square blocks representing a shift register. The output of the shift register is fed into another circular adder (+). The output of this second adder is the Serial output. A feedback loop connects the output of the second adder back to its input. The code T0904480-97/d014 is at the bottom right.
+
+Figure A.15/J.112 – Randomizer
+
+##### A.5.2.3.5 Bit rate (upstream)
+
+Three grades of modulation transmission rate are specified:
+
+Table A.5/J.112 – Upstream bit-rates for modulation grades A, B and C
+
+| Grade | Rate |
+|-------|--------------|
+| A | 256 kbit/s |
+| B | 1.544 Mbit/s |
+| C | 3.088 Mbit/s |
+
+A QPSK modulator (NIU transmitter) may support A, B and C grades of transmission rate. (Only the implementation of one of these grades should be mandatory.) A QPSK demodulator (INA receiver) shall support at least one grade A, B or C, but may support all grades.
+
+Symbol rate accuracy should be within ± 50 ppm.
+
+For grade A, the rate is 500 slots/s. For grade B, the rate is 3000 slots/s. For grade C, the rate is 6000 slots/s.
+
+##### A.5.2.3.6 Transmit power level (upstream)
+
+At the output, the transmit power level shall be in the range 85-113 dBµV (RMS) (75 Ω). In some geographic areas, it may be necessary to cover the range 85-122 dBµV (RMS) (75 Ω). However, note that high power may lead to electromagnetic compatibility problems. This power shall be adjusted by steps of 0.5 dB by MAC messages coming from the INA.
+
+##### A.5.2.3.7 Carrier suppression when idle (upstream)
+
+The Carrier Suppression shall be more than 60 dB below nominal power output level, over the entire power output range. A terminal is considered to be idle if it is 3 slots before an imminent transmission or 3 slots after its most recent transmission.
+
+##### A.5.2.3.8 Summary (upstream)
+
+See Table A.6.
+
+**Table A.6/J.112 – Summary (upstream)**
+
+| Transmission Rate |
Three grades of modulation transmission rate are specified:
Grade
Rate
A
256 kbit/s
B
1.544 Mbit/s
C
3.088 Mbit/s
A QPSK modulator (transmitter) may support A, B and C grades of transmission rate. (Only the implementation of one of these grades should be mandatory.) A QPSK demodulator (receiver) shall support at least one grade A, B, or C, but may support all grades.
The unique word shall be sent in the clear. After addition of the FEC bytes, randomization shall apply only to the payload area and FEC bytes, with the randomizer performing modulo –2 addition of the data with a pseudo-random sequence. The generating polynomial is with seed all ones.
Byte/serial conversion shall be MSB first.
A complementary non self-synchronizing de-randomizer is used in the receiver to recover the data. The de-randomizer shall be enabled after detection of the unique word.
NOTE – The unique word (0x CC CC CC 0D) does not go through differential encoding.
|
The outputs I, Q from the differential encoder map to the phase states as in Figure A.16.
Figure A.16/J.112
|
+|
Frequency Range
|
5-65 MHz recommended but not mandatory
|
+|
Frequency Stability
|
± 50 ppm measured at the upper limit of the frequency range
|
+|
Symbol Rate Accuracy
|
± 50 ppm
|
+|
Transmit Spectral Mask
|
A common mask for all three bit rates: 256 kbit/s (Grade A), 1.544 Mbit/s (Grade B) and 3.088 Mbit/s (Grade C) is given in Table A.4 and Figure A.14.
|
+|
Carrier Suppression when Transmitter Active
|
> 30 dB
|
+|
Carrier Suppression when Transmitter Idle
|
The Carrier Suppression shall be more than 60 dB below nominal power output level over the entire power output range (see Recommendation I.361 for details) and 30 dB right after or before transmission.
Idle Transmitter Definition: a terminal is considered to be idle if it is 3 slots before an imminent transmission or 3 slots after its most recent transmission.
|
+|
I/Q Amplitude Imbalance
|
< 1.0 dB
|
+|
I/Q Phase Imbalance
|
< 2.0°
|
+|
Transmit Power Level at the modulator output (upstream)
|
85-113 dBμV (RMS) (75 Ω). In some geographic areas, it may be necessary to cover the range 85-122 dBμV (RMS) (75 Ω).
|
+
+##### A.5.2.3.9 Packet loss upstream (informative)
+
+Packet loss at the INA shall be less than $10^{-6}$ at C/N > 20 dB (after error correction) for upstream transmission.
+
+NOTE – A packet loss occurs when one or more bit per packet (after error correction) are uncorrectable. The C/N is referred at the demodulator input (Nyquist bandwidth, white noise).
+
+### A.5.3 Framing
+
+#### A.5.3.1 Forward interaction path (downstream OOB)
+
+##### A.5.3.1.1 Signalling Link Extended Superframe Framing format
+
+The Signalling Link Extended Superframe (SL-ESF) frame structure is shown in Figure A.17. The bitstream is partitioned into 4632-bit Extended Superframes. Each Extended Superframe consists of 24 × 193-bit frames. Each frame consists of 1 Overhead (OH) bit and 24 bytes (192 bits) of payload.
+
+
+
+The diagram illustrates the SL-ESF frame structure. At the top, a horizontal row of 24 boxes is labeled 1 through 24. Below this row, a double-headed arrow spans the entire width and is labeled "24 frames". A diagonal line descends from the left side of this row to a larger diagram below. Along this diagonal line, the text "24 frames × 193 bits = 4632 bits" is written. The bottom diagram shows a single frame structure. It consists of two rows. The top row has two cells: the first is labeled "OH" and the second is labeled "Payload". The bottom row has two cells: the first contains the number "1", and the second contains the text "192 bits". A double-headed arrow spans the width of the "Payload" and "192 bits" cells. In the bottom right corner of the diagram, the text "T0904510-97/d017" is present.
+
+Diagram of SL-ESF frame structure showing 24 frames, each with 193 bits (1 OH + 192 Payload).
+
+Figure A.17/J.112 – SL-ESF frame structure
+
+##### A.5.3.1.2 Frame overhead
+
+There are 24 frame overhead bits in the Extended Superframe which are divided into Extended Superframe Frame Alignment Signal (F1-F6), Cyclic Redundancy Check (C1-C6), and M-bit Data Link (M1-M12) as shown in Table A.7. Bit number 0 is received first.
+
+###### ESF Frame Alignment Signal
+
+The ESF Frame Alignment Signal (FAS) is used to locate all 24 frames and overhead bit positions. The bit values of the FAS are defined as follows:
+
+$$F1 = 0, F2 = 0, F3 = 1, F4 = 0, F5 = 1, F6 = 1$$
+
+###### ESF Cyclic Redundancy Check
+
+The Cyclic Redundancy Check field contains the CRC-6 check bits calculated over the previous Extended Superframe (CRC Message block [CMB] size = 4632 bits). Before calculation, all 24 frame overhead bits are equal to "1". All information in the other bit positions is unchanged. The check bit sequence C1-C6 is the remainder after multiplication by $x^6$ and then division by the generator polynomial $x^6 + x + 1$ of the CMB. C1 is the most significant bit of the remainder. The initial remainder value is preset to all zeros.
+
+###### ESF Mbit data link
+
+The M-bits in the SL-ESF serve for slot timing assignment (see A.5.4).
+
+**Table A.7/J.112 – Frame overhead**
+
+| Frame Number | Bit Number | Overhead bit | Data (192 bits) |
+|---------------------------------------------------------------------------------------------------------|------------|--------------|-----------------|
+| 1 | 0 | M1 | |
+| 2 | 193 | C1 | |
+| 3 | 386 | M2 | |
+| 4 | 579 | F1 = 0 | |
+| 5 | 772 | M3 | |
+| 6 | 965 | C2 | |
+| 7 | 1158 | M4 | |
+| 8 | 1351 | F2 = 0 | |
+| 9 | 1544 | M5 | |
+| 10 | 1737 | C3 | |
+| 11 | 1930 | M6 | |
+| 12 | 2123 | F3 = 1 | |
+| 13 | 2316 | M7 | |
+| 14 | 2509 | C4 | |
+| 15 | 2702 | M8 | |
+| 16 | 2895 | F4 = 0 | |
+| 17 | 3088 | M9 | |
+| 18 | 3281 | C5 | |
+| 19 | 3474 | M10 | |
+| 20 | 3667 | F5 = 1 | |
+| 21 | 3860 | M11 | |
+| 22 | 4053 | C6 | |
+| 23 | 4246 | M12 | |
+| 24 | 4439 | F6 = 1 | |
+| FAS Frame Alignment Signal (F1-F6) DL Mbit Data Link (M1-M12) CRC Cyclic Redundancy Check (C1-C6) | | | |
+
+##### A.5.3.1.3 Payload structure
+
+The SL-ESF frame payload structure provides a known container for defining the location of the ATM cells and the corresponding Reed-Solomon parity values. The SL-ESF payload structure is shown in Table A.8.
+
+The SL-ESF payload structure consists of 5 rows of 57 bytes each, 4 rows of 58 bytes each which includes 1 byte trailer, and 1 row of 59 bytes, which includes a 2-byte trailer. The first bit of the SL-ESF payload structure follows the M1 bit of the SL-ESF frame. The SL-ESF payload fields are defined as follows. Table A.8 is read from left to right and top to bottom and mapped as is into the ESF frame described by Table A.7.
+
+**Table A.8/J.112 – ESF payload structure**
+
+| | ← 2 → | | ← 53 → | | | | | | ← 2 → | |
+|----|-------|-----|----------|--|--|--|--|--|-----------|---------|
+| 1 | R1a | R1b | ATM cell | | | | | | RS parity | |
+| 2 | R1c | R2a | | | | | | | | R2 b |
+| 3 | R2c | R3a | | | | | | | | |
+| 4 | R3b | R3c | | | | | | | | R4 a |
+| 5 | R4b | R4c | | | | | | | | |
+| 6 | R5a | R5b | | | | | | | | R5 c |
+| 7 | R6a | R6b | | | | | | | | |
+| 8 | R6c | R7a | | | | | | | | R7 b |
+| 9 | R7c | R8a | | | | | | | | |
+| 10 | R8b | R8c | | | | | | | | T T |
+
+T0904520-97/d018
+
+###### **ATM cell structure**
+
+The format for each ATM cell structure is shown in Figure A.18. This structure and field coding shall be consistent with the structure and coding given in Recommendation I.361 for ATM UNI.
+
+
+
+The diagram illustrates the structure of an ATM cell. It is divided into two main parts: a 'Header' and an 'Information Payload'. The Header is 40 bits long, and the Information Payload is 384 bits long. The total length of the cell is 53 bytes. The diagram shows a horizontal line representing the cell, with a vertical line separating the Header and the Information Payload. The Header is on the left, and the Information Payload is on the right. The total length is indicated by a double-headed arrow at the bottom, labeled '53 bytes'.
+
+Diagram of ATM cell format showing Header (40 bits), Information Payload (384 bits), and total size (53 bytes).
+
+T0904530-97/d019
+
+**Figure A.18/J.112 – ATM cell format**
+
+###### **Channel coding and interleaving**
+
+Reed-Solomon encoding with $t = 1$ shall be performed on each ATM cell. This means that 1 erroneous byte per ATM cell can be corrected. This process adds 2 parity bytes to the ATM cell to give a codeword of (55,53).
+
+The Reed-Solomon code shall have the following generator polynomials:
+
+- Code Generator Polynomial: $g(x) = (x + \mu^0)(x + \mu^1)$ , where $\mu = 02$ hex;
+- Field Generator Polynomial: $p(x) = x^8 + x^4 + x^3 + x^2 + 1$ .
+
+The shortened Reed-Solomon code shall be implemented by appending 200 bytes, all set to zero, before the information bytes at the input of a (255,253) encoder; after the coding procedure these bytes are discarded.
+
+Convolutional interleaving shall be applied to the ATM cells contained in the SL-ESF. The Rxa-Rxc bytes and the two T bytes shall not be included in the interleaving process. Convolutional interleaving is applied by interleaving 5 lines of 55 bytes.
+
+Following the scheme of Figure A.19, convolutional interleaving shall be applied to the error protected packets. The convolutional interleaving process shall be based on the Forney approach, which is compatible with the Ramsey type III approach, with $I = 5$ . The Interleaved frame shall be composed of overlapping error protected packets and a group of 10 packets shall be delimited by the start of the SL-ESF.
+
+
+
+Diagram of Interleaver and de-interleaver structures. The diagram shows an input (IN) entering a central 'CHANNEL' block. Inside the block, there are five branches labeled 0 to 4. Branch 0 contains one cell with '0'. Branch 1 contains one cell with 'M'. Branch 2 contains two cells with 'M'. Branch 3 contains three cells with 'M'. Branch 4 contains four cells with 'M'. On the output side, the branches are reversed: Branch 0 contains four cells with 'M', Branch 1 contains three cells with 'M', Branch 2 contains two cells with 'M', Branch 3 contains one cell with 'M', and Branch 4 contains one cell with '0'. The output is labeled 'OUT'. A reference code 'T0904540-97/d020' is at the bottom right.
+
+Figure A.19/J.112 – Interleaver and de-interleaver structures
+
+The interleaver is composed of $I$ branches, cyclically connected to the input byte-stream by the input switch. Each branch shall be a First In First Out (FIFO) shift register, with depth ( $M_j$ ) cells (where $M = N/I$ , $N = 55$ = error protected frame length, $I$ = interleaving depth, $j$ = branch index). The input and output switches shall be synchronized. Each cell of the FIFO shall contain one byte.
+
+For synchronization purposes, the first byte of each error protected packet shall be always routed into the branch "0" of the interleaver (corresponding to a null delay). The third byte of the SL-ESF payload (the byte immediately following R1b) shall be aligned to the first byte of an error protected packet.
+
+The de-interleaver is similar, in principle, to the interleaver, but the branch indexes are reversed (i.e. branch 0 corresponds to the largest delay). The de-interleaver synchronization is achieved by routing the third data byte of the SL-ESF into the "0" branch.
+
+###### Reception indicator fields and slot boundary fields
+
+A downstream channel contains control information for each of its associated upstream channels. This information is contained within structures known as MAC Flags. A set of MAC Flags, represented by either 24 bits (denoted $b_0 \dots b_{23}$ ) or by 3 bytes (denoted $R_{xa}$ , $R_{xb}$ and $R_{xc}$ ), are uniquely assigned to a given upstream channel "x":
+
+- $R_{xa} = \text{EE}(b_0 \dots b_7) = (\text{msb} \dots \text{lsb});$
+- $R_{xb} = \text{EE}(b_8 \dots b_{15}) = (\text{msb} \dots \text{lsb});$
+- $R_{xc} = \text{EE}(b_{16} \dots b_{23}) = (\text{msb} \dots \text{lsb}).$
+
+These flags constitute the slot configuration information for the upstream channel "x" where "x" is indicated to the NIU in the «MAC Flag sets» given in MAC messages (Default Configuration message, Connect message, Reprovision message, Transmission Control message) and is described as follows:
+
+The $MAC\_Flag\_Set$ is a 5-bit field indicating the MAC Flag set number assigned to the channel (i.e. $R_{1a}$ , $R_{1b}$ and $R_{1c}$ represent MAC Flag set 1). It can take the values 1..16. Values 0 and 17..31 are invalid.
+
+In the OOB downstream case, each SL-ESF frame structure contains eight sets of MAC Flags represented by Rxa, Rxb and Rxc, where x is replaced by the numbers 1..8. In the case of a 1.544 Mbit/s downstream bit rate, only one SL-ESF frame occurs during a 3 ms interval providing 8 sets of MAC Flags. In the case of a 3.088 Mbit/s downstream bit rate, two SL-ESF frames A and B occur during a 3-ms interval, providing 16 sets of MAC Flags. The second set of MAC Flags (contained in the second SL-ESF) are denoted by Rxa, Rxb and Rxc, where x is replaced by the numbers 9 through 16.
+
+In the IB downstream case, the MAC Flags are contained in the MAC Control message structure which can contain as many as 16 MAC Flag sets. The MAC Flags 1-8 are contained in the "MAC Flags" field and the MAC Flags 9-16 are contained in the "Extension Flags" field.
+
+In case of a 3.088 Mbit/s upstream channel, two sets of MAC Flags are required. In this case, the MAC\_Flag\_Set parameter represents the first of two successively assigned MAC Flag sets (Rxa-Rxc, Rya-Ryc with $y = x + 1 \bmod 8$ (for 1.544 Mbit/s DS) or $y = x + 1 \bmod 16$ (for 3.088 Mbit/s DS)). In particular, if one downstream OOB 1.544 Mbit/s channel controls 3.088 Mbit/s upstream channels, at most 4 upstream channels can be controlled, due to the number of available MAC Flags.
+
+The bits b0 to b23 are defined as follows:
+
+- b0 = ranging slot indicator for next 3 ms period (msb)
+- b1-b6 = slot boundary definition field for next 3 ms period
+- b7 = slot 1 reception indicator (as shown in Table A.12)
+- b8 = slot 2 reception indicator (as shown in Table A.12)
+- b9 = slot 3 reception indicator (as shown in Table A.12)
+- b10 = slot 4 reception indicator (as shown in Table A.12)
+- b11 = slot 5 reception indicator (as shown in Table A.12)
+- b12 = slot 6 reception indicator (as shown in Table A.12)
+- b13 = slot 7 reception indicator (as shown in Table A.12)
+- b14 = slot 8 reception indicator (as shown in Table A.12)
+- b15 = slot 9 reception indicator (as shown in Table A.12)
+- b16-b17 = reservation control for next 3 ms period
+- b18-b23 = CRC-6 parity (see definition in SL-ESF section)
+
+When the upstream data rate is 256 kbit/s, then only the first three slot reception indicators are valid. When the upstream data rate is 1.544 Mbit/s, then the 9 slots are valid. When the upstream data rate is 3.088 Mbit/s, the 9 slots of this field and the 9 slots of the following field are valid: two consecutive Slot Configuration fields are then used. The definition of the first Slot Configuration field is unchanged. The definition of the second Slot Configuration field extends the boundary definition to cover upstream slots 10 through 18, and the reception indicators to cover upstream slots 10 through 18.
+
+In general, when the upstream rate is lower than the downstream rate, there are several OOB downstream superframes during groups of $k$ upstream slots (where $k = 3$ for 256 kbit/s upstream, $k = 9$ for 1.544 Mbit/s upstream). In that case, configuration slots remain equal over all superframes corresponding to one group of $k$ upstream slots.
+
+**Ranging slot indicator (b0):** When this bit is active ( $b0 = 1$ ), the first three slots of upstream channel "x" which correspond to the occurrence of the next superframe of the related downstream channel are designated as ranging slots. A ranging message may be transmitted in the second ranging slot "on contention", and the first and third ranging slots may not be used for transmission (guard band for ranging operations).
+
+**Slot Boundary Definition field (b1-b6):** Slot types are assigned to upstream slots using bits b0-b6. The slots are grouped into regions among "spans" of 3 slots (256 kbit/s), 9 slots (1.544 Mbit/s), or 18 slots (3.088 Mbit/s), such that slots of a similar type are contained within the same region. The order of the regions is Ranging slot, Contention based slots, Reserved slots and Fixed rate based slots. If a ranging slot is available within a "span", it will consist of the first three slot times in the "span", assuming b1-b6 are not in the range 55-63 (see Table A.9). A ranging slot is indicated by b0 = 1. The boundaries between the remaining regions of the "spans" are defined by b1-b6. The boundaries are defined as shown in Table A.9.
+
+**Table A.9/J.112 – Slot Boundary Definition field (b1-b6)**
+
+| | |
+|------------|--------|
+| Boundary 0 | |
+| Boundary 1 | Slot 1 |
+| Boundary 2 | Slot 2 |
+| Boundary 3 | Slot 3 |
+| Boundary 4 | Slot 4 |
+| Boundary 5 | Slot 5 |
+| Boundary 6 | Slot 6 |
+| Boundary 7 | Slot 7 |
+| Boundary 8 | Slot 8 |
+| Boundary 9 | Slot 9 |
+
+The boundary positions are defined by b1-b6 as shown in Table A.10.
+
+**Table A.10/J.112 – Boundary positions (b1-b6)**
+
+| (Note 1) (Note 2) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
+|----------------------|---|----|----|----|----|----|----|----|----|----|
+| 0 (Note 3) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
+| 1 (Note 3) | | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
+| 2 (Note 3) | | | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
+| 3 | | | | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
+| 4 | | | | | 34 | 35 | 36 | 37 | 38 | 39 |
+| 5 | | | | | | 40 | 41 | 42 | 43 | 44 |
+| 6 | | | | | | | 45 | 46 | 47 | 48 |
+| 7 | | | | | | | | 49 | 50 | 51 |
+| 8 | | | | | | | | | 52 | 53 |
+| 9 | | | | | | | | | | 54 |
+
+Example: b0 = 0, b1-b6 = 22: Contention (1-2), reserved (3-5), Fixed rate (6-9).
+NOTE 1 – Row = Contention based / Reserved region boundary.
+NOTE 2 – Column = Reserved packet / Fixed rate based region boundary.
+NOTE 3 – When the ranging control slot indicator (b0) is set to "1", the values in rows 0-2 are illegal values, and values in row 3 means that there are no contention slots, because slots 1-3 are defined as ranging control slots.
+
+The remaining values of the Slot Boundary Definition field are provided in Table A.11.
+
+**Table A.11/J.112 – Slot Boundary Definition field**
+
+| b1-b6 value | Ranging control slots | Contention slots | Reservation slots | Fixed rate slots |
+|-------------|-----------------------|------------------|-------------------|------------------|
+| 55 | 1-6 | 7-9 | – | – |
+| 56 | 1-6 | 7-8 | – | 9 |
+| 57 | 1-6 | 7 | 8-9 | – |
+| 58 | 1-6 | 7 | 8 | 9 |
+| 59 | 1-6 | 7 | – | 8-9 |
+| 60 | 1-6 | – | 7-8 | 9 |
+| 61 | 1-6 | – | 7 | 8-9 |
+| 62 | 1-6 | – | – | 7-9 |
+| 63 | 1-9 | – | – | – |
+
+NOTE 1 – For b1-b6 = 55-63, b0 must be set to 1. Note that for b1-b6 between 55 and 62, two ranging slots are provided (2 and 5). For b1-b6 = 63, three ranging slots are provided (2, 5, and 8).
+
+The values in the above tables are derived from b1-b6 in the following manner:
+
+$$b1 + (b2 \times 2) + (b3 \times 4) + (b4 \times 8) + (b5 \times 16) + (b6 \times 32)$$
+
+**Warning:** This formula indicates that b6 is considered as msb of b1-b6 word, whereas b0 is msb of the entire word b0-b23. Although this "looks" inconsistent, it has not been changed for the purpose of compatibility with the DAVIC standard.
+
+When the upstream data channel is a 256 kbit/s data channel, then only the first four rows and columns of Table A.10 are valid, and Table A.11 is not valid.
+
+NOTE 2 – If slot boundary fields change while some NIUs have already been affected slots in the reservation slots area, these NIUs are responsible of updating the list of physical slots. Specifically, slots are assigned by MAC Reservation Grant messages, which contain a Reference slot that does not depend on the slot boundary fields and a Grant\_slot\_count which corresponds to the number of slots assigned within the reservation slots boundary field. If the field changes, the list of physical slots on which the NIU can transmit automatically changes accordingly.
+
+**Slot reception indicators (b7-b15):** When a slot reception indicator is active ("1"), this indicates that a cell was received without collision. The relationship between a given US slot and its indicator is shown in Table A.11. When the indicator is inactive ("0"), this indicates that either a collision was detected or no cell was received in the corresponding upstream slot.
+
+Slot reception indicators lead to the retransmission procedure only when contention access is used as described in A.5.5.2.4.
+
+**Reservation Control (b16-b17):** When the reservation control field has the value of 0, no reservation attempts are allowed to be transmitted on the corresponding QPSK upstream channel during the slot positions associated with the next 3 ms period. When the Reservation Control field has the value of 1, reservation attempts can be made. The values 2 and 3 are reserved. A reservation attempt corresponds to sending a MAC Reservation Request message (see MAC section). b16 is msb.
+
+**Table A.12/J.112 – Relationship of US slot to DA indicator at the INA**
+
+| | 1.544 Mbit/s downstream | | 3.088 Mbit/s downstream | |
+|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--|
+| 256 kbit/s upstream | 1 frame | | 1 frame | |
+| 1.554 Mbit/s upstream | 1 frame | | 1 frame | |
+| 3.088 Mbit/s upstream | 1 frame | | 1 frame | |
+
+NOTE 1 – 'I' indicates the downstream frame(s) in which indicators (contained within the MAC Flag Sets) are sent. These indicators control the upstream slots in the shaded area.
+
+NOTE 2 – In the 3.088 downstream, two successive frames contain MAC Flag Sets 1..16. Two successive MAC Flag Sets are used to control the 18 slots of a 3.088 upstream channel.
+
+NOTE 3 – This table refers to the position of US slots with respect to the positions of DS superframes at the INA receiver. NIUs should have their Time\_Offset\_Value of transmission set such that this table applies.
+
+T0904550-97/d021
+
+**CRC-6 Parity (b18-b23):** This field contain a CRC-6 parity value calculated over the previous 18 bits. The CRC-6 parity value is described in the SL-ESF frame format section. b18 is msb.
+
+In the case where there is more than one OOB DS QPSK channel related to an upstream QPSK channel, the SL-ESF overhead bits and the payload R-bytes shall be identical in those OOB DS channels, with the exception of the overhead CRC (C1-C6) bits, which are specific to each of those OOB DS channels. Such related DS channels shall be synchronized (transmitted synchronously). This scenario applies for example when a lot more bandwidth is needed for DS information than for US information.
+
+The MAC messages that are required to perform the MAC functions for the upstream channel shall be transmitted on each of its related OOB DS channels.
+
+###### **Trailer bytes**
+
+These bytes are not used. They are equal to 0.
+
+#### A.5.3.2 Forward Interaction path (downstream IB)
+
+The structure that is utilized when the downstream QAM channel is carrying MPEG-2 TS packets is shown in Figure A.20. MSBs of each field are transmitted first.
+
+| 4 | 3 | 2 | 3 | 26 | 26 | 40 | 40 | 40 | 4 |
+|-------------|-----------------|-------------|------------------|-----------|------------|-------------|-------------|-------------|-----------------|
+| MPEG Header | Upstream Marker | Slot Number | MAC Flag Control | MAC Flags | Ext. Flags | MAC Message | MAC Message | MAC Message | Reserve field c |
+
+Figure A.20/J.112 – Frame structure (MPEG-2 TS format)
+
+where:
+
+**MPEG Header** is the 4-byte MPEG-2 Transport Stream Header as defined in ISO 13818-1 with a specific PID designated for MAC messages. This PID is to be specified by ETS 300 468, either within the PMT, PAT tables or as a default specific value (when MAC is considered as a SI section).
+
+**Upstream Marker** is a 24-bit field which provides upstream QPSK synchronization information. (As mentioned in A.5.1.4, at least one packet with synchronization information must be sent in every period of 3 ms.) The definition of the field is as follows:
+
+##### **bit 0: upstream marker enable** (msb)
+
+When this field has the value '1', the slot marker pointer is valid. When this field has the value '0', the slot marker pointer is not valid.
+
+##### **bit 1-7: reserved**
+
+##### **bit 8-23: upstream slot marker pointer (bit 23 MSB)**
+
+The slot marker pointer is a 16-bit unsigned integer which indicates the number of "symbol" clocks between the first symbol of the next Sync byte and the next 3 ms marker.
+
+**Slot Number** is a 16-bit field which is defined as follows: (As mentioned in A.5.1.4, at least one packet with synchronization information must be sent in every period of 3 ms).
+
+##### **bit 0: slot position register enable** (msb)
+
+When this field has the value '1', the slot position register is valid. When this field has the value '0', the slot position register is not valid.
+
+##### **bit 1-3: reserved**
+
+**bit 4** is set to the value '1'. This bit is equivalent to M12 in the case of OOB downstream.
+
+##### **bit 5: odd parity**
+
+This bit provides odd parity for upstream slot position register. This bit is equivalent to M11 in the case of OOB downstream.
+
+##### **bits 6-15: upstream slot position register**
+
+The upstream slot position register is a 10 bit counter which counts from 0 to n with bit 6 the msb. These bits are equivalent to M10-M1 in the case of OOB downstream.
+
+(See A.5.4 for more information on the functionality of the upstream slot position register.)
+
+**MAC Flag Control** is a 24-bit field (b0, b1, b2...b23) which provides control information which is used in conjunction with the MAC Flags and Extension Flags. The definition of the MAC Flag Control field is as follows:
+
+- b0-b2 = channel 1 flag field control
+- b3-b5 = channel 2 flag field control
+- b6-b8 = channel 3 flag field control
+- b9-b11 = channel 4 flag field control
+- b12-b14 = channel 5 flag field control
+- b15-b17 = channel 6 flag field control
+- b18-b20 = channel 7 flag field control
+- b21-b23 = channel 8 flag field control
+
+Each of the above channel "x" flag field control fields are defined as follows:
+
+channel x flag control (a,b,c) = (bx, bx + 1, bx + 2)
+
+bit a: 0 – channel x flag field disabled
+
+1 – channel x flag field enabled
+
+bit b,c: 00 – all flags valid for second previous 3-ms period (out-of-band signalling equivalent)
+
+01 – flags valid for 1st ms of previous 3-ms period
+
+10 – flags valid for 2nd ms of previous 3-ms period
+
+11 – flags valid for 3rd ms of previous 3-ms period
+
+##### MAC Flags
+
+MAC Flags is a 26 byte field containing 8 slot configuration fields (24 bits each) which contain slot configuration information for the related upstream channels followed by two reserved bytes (first 3 bytes correspond to channel 1, second 3 bytes to channel 2, etc.). The definition of each slot configuration field is defined as follows:
+
+b0 = ranging control slot indicator for next 3-ms period (msb)
+
+b1-b6 = slot boundary definition field for next 3-ms period
+
+b7 = slot 1 reception indicator for [second] previous 3-ms period
+
+b8 = slot 2 reception indicator for [second] previous 3-ms period
+
+b9 = slot 3 reception indicator for [second] previous 3-ms period
+
+b10 = slot 4 reception indicator for [second] previous 3-ms period
+
+b11 = slot 5 reception indicator for [second] previous 3-ms period
+
+b12 = slot 6 reception indicator for [second] previous 3-ms period
+
+b13 = slot 7 reception indicator for [second] previous 3-ms period
+
+b14 = slot 8 reception indicator for [second] previous 3-ms period
+
+b15 = slot 9 reception indicator for [second] previous 3-ms period
+
+b16-b17 = reservation control for next 3 ms period
+
+b18-b23 = CRC-6 parity
+
+The slot configuration fields are used in conjunction with the MAC Flag Control field defined above. Note that when the MAC Flag Control field designates that a 1 ms flag update is enabled:
+
+- 1) the reception indicators refer to the previous 3-ms period (the bracketed term [second] is omitted from the definition);
+- 2) only the reception indicators which relate to slots which occur during the designated 1-ms period are valid; and
+- 3) the ranging control slot indicator, slot boundary definition field, and reservation control field are valid and consistent during each 3-ms period.
+
+###### Extension Flags
+
+Extension Flags is a 26-byte field which is used when one or more 3.088 Mbit/s upstream QPSK links are used. The definition of the Extension Flags field is identical to the definition of the MAC Flags field above.
+
+When 3.088 Mbit/s QPSK upstream links are used, each 3.088 Mbit/s upstream channel utilizes two consecutive `qpsk_slot_configuration` fields. The definition of the first slot configuration field is unchanged. The definition of the second slot configuration field extends the boundary definition to slots 10 through 18, and the reception indicators cover slots 10 through 18.
+
+##### MAC Message
+
+The MAC Message field contains a 40-byte message, the general format defined in A.5.5.
+
+**reserve field c** is a 4-byte field reserved for future use.
+
+#### A.5.3.3 Return Interaction path (upstream)
+
+##### A.5.3.3.1 Slot format
+
+The format of the upstream slot is shown in Figure A.21 below. A Unique Word (UW) (4 bytes) provides a burst mode acquisition method. The payload area (53 bytes) contains a single message cell. The RS Parity field (6 bytes) provides $t = 3$ Reed-Solomon protection RS (59,53) over the payload area. The Guard band (1 byte) provides spacing between adjacent packets.
+
+
+
+The diagram illustrates the format of an upstream slot. It is a horizontal bar divided into four segments: 'UW' (4 bytes), 'Payload area' (53 bytes), 'RS Parity' (6 bytes), and 'Guard band' (1 byte). Above the bar, double-headed arrows indicate the length of each segment. Below the bar, the labels 'UW', 'Payload area', 'RS Parity', and 'Guard band' are placed. A thick grey horizontal line runs along the bottom of the bar. In the bottom right corner, the text 'T0904560-97/d022' is present.
+
+Figure A.21/J.112 – Slot format diagram
+
+Figure A.21/J.112 – Slot format
+
+The structure and field coding of the message cell shall be consistent with the structure and coding given in Recommendation I.361 for ATM UNI.
+
+###### Unique word
+
+The unique word is four bytes long: CC CC CC 0D hex.
+
+###### ATM cell structure
+
+The format for each ATM cell structure is illustrated in Figure A.22. This structure and field coding shall be consistent with the structure and coding given in Recommendation I.361 for ATM UNI.
+
+
+
+The diagram illustrates the format of an ATM cell. It is a horizontal bar divided into two main segments: 'Header' (40 bits) and 'Information payload' (384 bits). Above the bar, double-headed arrows indicate the length of each segment in bits. Below the bar, the labels 'Header' and 'Information payload' are placed. A thick grey horizontal line runs along the bottom of the bar. Below the bar, a double-headed arrow indicates the total length of the cell as 53 bytes. In the bottom right corner, the text 'T0904570-97/d023' is present.
+
+Figure A.22/J.112 – ATM cell format diagram
+
+Figure A.22/J.112 – ATM cell format
+
+###### Channel coding
+
+Reed-Solomon encoding shall be performed on each ATM cell with $T = 3$ . This means that 3 erroneous byte per ATM cell can be corrected. This process adds 6 parity bytes to the ATM cell to give a codeword of (59,53). The shortened Reed-Solomon Code shall be implemented by appending 196 bytes, all set to zero, before the information bytes at the input of a (255,249) encoder; after the coding procedure these bytes are discarded.
+
+The Reed-Solomon code shall have the following generator polynomials:
+
+- Code Generator Polynomial: $g(x) = (x + \mu^0)(x + \mu^1)(x + \mu^2) \dots (x + \mu^5)$
+where $\mu = 02$ hex
+- Field Generator Polynomial: $p(x) = x^8 + x^4 + x^3 + x^2 + 1$
+
+###### Guard band
+
+The guard band is 1 byte long (4 QPSK symbols). It provides some extra protection against synchronization errors.
+
+### A.5.4 Slot timing assignment
+
+#### A.5.4.1 Downstream slot position reference (downstream OOB)
+
+Upstream synchronization is derived from the downstream extended superframe (OOB) by noting the slot positions as shown in Table A.13.
+
+Table A.13/J.112 – Downstream slot position reference
+
+| Frame number | Bit number | Overhead bit | Slot position reference |
+|--------------|------------|--------------|-------------------------------|
+| 1 | 0 | M1 | ♦ Slot position a) |
+| 2 | 193 | C1 | |
+| 3 | 386 | M2 | |
+| 4 | 579 | F1 = 0 | |
+| 5 | 772 | M3 | |
+| 6 | 965 | C2 | |
+| 7 | 1158 | M4 | |
+| 8 | 1351 | F2 = 0 | |
+| 9 | 1544 | M5 | ♦ Slot position |
+| 10 | 1737 | C3 | |
+| 11 | 1930 | M6 | |
+| 12 | 2123 | F3 = 1 | |
+| 13 | 2316 | M7 | |
+| 14 | 2509 | C4 | |
+| 15 | 2702 | M8 | |
+| 16 | 2895 | F4 = 0 | |
+| 17 | 3088 | M9 | ♦ Slot Position |
+| 18 | 3281 | C5 | |
+| 19 | 3474 | M10 | |
+| 20 | 3667 | F5 = 1 | |
+| 21 | 3860 | M11 | |
+| 22 | 4053 | C6 | |
+| 23 | 4246 | M12 | |
+| 24 | 4439 | F6 = 1 | |
+
+a) The first slot position is also called the 3-ms time marker in the case of 1.544 Mbit/s rate downstream. For the 3.088 Mbit/s rate downstream, the 3-ms time marker only appears once every two superframes. The M12 bit (see A.5.4) is used to differentiate between the two superframes.
+
+#### A.5.4.2 Downstream slot position reference (downstream IB)
+
+Upstream synchronization is derived from the downstream extended superframe (IB) by noting the 3-ms time Marker Downstream as shown in Figure A.23. From the bits of the Upstream Marker field contained in the MPEG-2 TS packet, the 3-ms time marker is obtained by counting a number of symbol clocks equal to (b23-b8). This marker is equivalent to the first slot position of the superframe for the OOB case.
+
+
+
+Figure A.23/J.112 – Position of the 3-ms time marker for IB signalling. The diagram shows an MPEG-2 TS packet (188 bytes) followed by a 16-byte field and a Sync byte. A note below the packet states 'when Upstream Marker enable b0 = 1'. An arrow labeled '(b23-b8) in baud clocks' points from the Sync byte to a vertical dashed line labeled '3-ms time Marker Downstream'. The reference number T0904580-97/d024 is at the bottom right.
+
+Figure A.23/J.112 – Position of the 3-ms time marker for IB signalling
+
+In order to describe how the US slot position is derived from the location of the DS 3-ms time marker at the NIU, consider the system diagrams in Figure A.24.
+
+
+
+Figure A.24/J.112 – System model for timing analysis. This block diagram shows the flow of data through various delay stages. It starts with 'DATA' entering a delay block 'D\_S', followed by 'D\_1'. These are grouped under 'Headend delays'. Next is a large delay block 'D\_IA', followed by 'D\_2'. A vertical dashed line separates this from the 'Data link delays' section, which contains a delay block 'D\_L + d\_L'. Another vertical dashed line separates this from the 'Set-Top Box delays' section, which includes 'd\_3', a large delay block 'D\_IB', and 'd\_4'. The reference number T0906040-98/d025 is at the bottom right.
+
+Figure A.24/J.112 – System model for timing analysis
+
+The delay between the location of the end of the Upstream Marker and the beginning of the next Sync byte, designated as $D_S$ , is a constant value for each bit rate equal to the equivalent time of 197 bytes, or:
+
+$$(197 * 8 / x) \text{ symbol clocks}$$
+
+where:
+
+- $x = 4$ , for 16 QAM
+- 5, for 32-QAM
+- 6, for 64 QAM
+- 7, for 128-QAM
+- 8, for 256 QAM
+
+There will be some processing delay in the Headend hardware between the location where the Upstream Marker is inserted in the MAC packet and the arrival of the data into the interleaver. This should be a constant delay, $D_1$ , which is the same for every incoming byte, including the sync byte following the Upstream Marker.
+
+The delay due to the interleaving process in the Headend is $D_{IA}$ and will be zero for each sync byte.
+
+There will be some processing delay in the Headend hardware between the output of the interleaver and the output of the QAM modulator. This should be a constant delay, $D_2$ , for every byte in the outgoing stream.
+
+The data link is composed of two delay values, $D_L$ , the constant link delay that every STU experiences, and $d_L$ , the variable link delay for each STU which is due to the fact that each STU is located at a different distance from the Headend. This variable link delay is compensated for by the ranging operation.
+
+There will be some processing delay in the STU hardware between the input of the QAM demodulator and the input of the de-interleaver. This delay is design dependent, $d_3$ , and may be a constant delay or a variable delay for each byte in the data stream.
+
+The delay due to the de-interleaving process in the STU is $D_{IB}$ , and will be equal to the entire interleave delay for each sync byte.
+
+The total interleave delay:
+
+$$D_I = D_{IA} + D_{IB}$$
+
+will be constant for each byte. The value will be given by:
+
+$$D_I = 204 * 8 * (\text{interleave\_depth}-1) / \text{bit rate}$$
+
+For example, if the modulation is QAM 64 with a baud rate of 5.0 Mbit/s:
+
+$$D_I = 204 * 8 * 11/30M = 598.4 \text{ microseconds or } 2992 \text{ symbol clocks}$$
+
+There will be some processing delay in the STU hardware between the output of the de-interleaver and the circuitry that utilizes the Upstream Marker and following sync byte for generating the local 3-ms marker. This delay, which includes Reed-Solomon FEC, is design dependent, $d_4$ , and may be a constant delay or a variable delay for each byte in the data stream.
+
+The accumulated delay in the data link is composed of a number of constant terms and three variable terms. The constant terms will be identical for every STU that is utilizing a particular QAM channel for in-band timing and thus becomes a fixed offset between when the counter which is loading the Upstream Marker value and the actual location of the 3-ms marker at each STU. Each STU is responsible for compensating for the design dependent delays, $d_3$ and $d_4$ , before utilizing the Upstream Marker value for generating the 3-ms marker. The variable link delay, $d_L$ , will be compensated for via the ranging algorithm, in the same way as performed when out-of-band signalling is employed.
+
+#### A.5.4.3 Upstream slot positions
+
+Transmission on each QPSK upstream channel is based on dividing access by multiple NIU units by utilizing a negotiated bandwidth allocation slot access method. A slotting methodology allows the transmit slot locations to be synchronized to a common slot position reference, which is provided via the related downstream MAC control channel. Synchronizing the slot locations increases message throughput of the upstream channels since the ATM cells do not overlap during transmission.
+
+The slot position reference for upstream slot locations is received via the related downstream MAC control channel by each NIU. Since each NIU receives the downstream slot position reference at a slightly different time, due to propagation delay in the transmission network, slot position ranging is required to align the actual slot locations for each related upstream channel. The upstream slot rates are 6000 upstream slots/s when the upstream data rate is 3088 Mbit/s, 3000 upstream slots/s when the upstream data rate is 1.544 Mbit/s and 500 upstream slots/s when the upstream data rate is 256 kbit/s.
+
+The number of slots available in any one second is given by:
+
+$$\text{number of slots/s} = \text{upstream data rate} / 512 + (\text{extra guardband})$$
+
+where extra guardband may be designated between groups of slots for alignment purposes.
+
+The Mbits in the SL-ESF serve two purposes:
+
+- to mark the slot positions for the upstream Contention based and Contentionless based signalling links (see A.5.4);
+- to provide slot count information for upstream message bandwidth allocation management in the NIU.
+
+Mbits M1, M5, and M9 mark the start of an upstream slot position for upstream message transmission.
+
+##### A.5.4.3.1 Rate 256 kbit/s
+
+In the case where the upstream data rate is 256 kbit/s and the downstream OOB rate is 1.544 Mbit/s, the upstream slots are numbered as follows:
+
+
+
+The diagram illustrates a 6-ms time period (downstream) divided into five slots: $s(k-1)$ , $s(k)$ , $s(k+1)$ , $s(k+2)$ , and $s(k+3)$ . Slot position references (downstream) are indicated by diamonds below the slots. The diagram is labeled T0904590-97/d026.
+
+Diagram showing a 6-ms time period (downstream) containing five slots: s(k-1), s(k), s(k+1), s(k+2), and s(k+3). Slot position references (downstream) are indicated by diamonds below the slots. The diagram is labeled T0904590-97/d026.
+
+where $k$ is a multiple of 3. In the case where the downstream OOB rate is 3.088 Mbit/s, there are 12 slot position references downstream during the transmission of 3 upstream packets. In the case of IB downstream, packet "k" is sent when the 3-ms time marker is received.
+
+The relationship between the received slot position reference and the actual slot transmit position is given by:
+
+$$\text{slot\_transmit\_position} = \text{slot\_position\_reference (integer)} + \text{slot\_position\_offset}$$
+
+where only the $\text{slot\_position\_references}$ corresponding to integer values are valid and the $\text{slot\_position\_offset}$ is derived from the $\text{Time\_Offset\_Value}$ provided via the $\text{Range\_and\_Power\_Calibration\_Message}$ in the MAC protocol.
+
+
+
+The diagram illustrates the relationship between the received slot position reference and the actual slot transmit position. It shows two slots, $\text{slot } (j-1)$ and $\text{slot } (j)$ . The $\text{slot\_transmit\_position}$ is indicated by an arrow pointing to the start of $\text{slot } (j)$ . The $\text{slot\_position\_offset}$ is indicated by a double-headed arrow between the start of $\text{slot } (j-1)$ and the $\text{slot\_transmit\_position}$ . The diagram is labeled T0904600-97/d027.
+
+Diagram showing the relationship between slot transmit position, slot position reference, and slot position offset. It shows two slots, slot (j-1) and slot (j). The slot transmit position is indicated by an arrow pointing to the start of slot (j). The slot position offset is indicated by a double-headed arrow between the start of slot (j-1) and the slot transmit position. The diagram is labeled T0904600-97/d027.
+
+In the case where the upstream data rate is 256 kbit/s, the actual slot transmission locations correspond directly to the integer valued slot position references.
+
+##### A.5.4.3.2 Rate 1.544 Mbit/s
+
+In the case where the upstream data rate is 1.544 Mbit/s and the downstream OOB rate is 1.544 Mbit/s, the upstream slots are numbered as follows:
+
+
+
+The diagram illustrates a 3-ms time period divided into eleven slots: $s(k-1)$ , $s(k)$ , $s(k+1)$ , $s(k+2)$ , $s(k+3)$ , $s(k+4)$ , $s(k+5)$ , $s(k+6)$ , $s(k+7)$ , $s(k+8)$ , and $s(k+9)$ . Slot position references (downstream) are indicated by diamonds below the slots. The diagram is labeled T0904610-97/d028.
+
+Diagram showing a 3-ms time period containing eleven slots: s(k-1), s(k), s(k+1), s(k+2), s(k+3), s(k+4), s(k+5), s(k+6), s(k+7), s(k+8), and s(k+9). Slot position references (downstream) are indicated by diamonds below the slots. The diagram is labeled T0904610-97/d028.
+
+where $k$ is a multiple of 9. In the case where the downstream OOB rate is 3.088 Mbit/s, there are 6 slot position references downstream during the transmission of 9 upstream packets. In the case of IB downstream, packet "k" is sent when the 3-ms time marker is received.
+
+The relationship between the received slot position reference and the actual slot transmit position is given by:
+
+$$\text{slot\_transmit\_position} = \text{slot\_position\_reference} + \text{slot\_position\_offset}$$
+
+where $\text{slot\_position\_offset}$ is derived from the $\text{Time\_Offset\_Value}$ provided via the $\text{Range\_and\_Power\_Calibration\_Message}$ in the MAC protocol.
+
+
+
+Diagram showing the relationship between slot transmit position and slot position reference. It shows two slots, Slot (j-1) and Slot (j). An arrow labeled 'slot\_transmit\_position' points to the start of Slot (j). A double-headed arrow labeled 'slot\_position\_offset' spans the gap between the start of Slot (j-1) and the start of Slot (j). A diamond labeled 'slot position reference (downstream)' is located at the start of Slot (j-1).
+
+In the case where the upstream data rate is 1.544 Mbit/s, the actual slot transmission locations are given by:
+
+$$\text{slot\_transmission\_location}(m) = \text{slot\_transmit\_position} + (m \times 512)$$
+
+where $m = 0, 1, 2$ is the position of the slot with respect to the $\text{slot\_transmit\_position}$ . This leaves a free time interval ( $\text{FI} = 8$ bits) before the next $\text{slot\_transmit\_position}$ occurs, during which no NIU transmits anything.
+
+
+
+Diagram showing slot transmission locations. It shows a sequence of slots: Previous slot, Slot 0 (m=0), Slot 1 (m=1), Slot 2 (m=2), FI (8 bits), and Next slot. Arrows labeled 'slot\_transmit\_position' point to the start of Slot 0 and the start of the Next slot. Arrows labeled 'location 0', 'location 1', and 'location 2' point to the start of Slot 0, Slot 1, and Slot 2 respectively. Each slot (0, 1, 2) is 512 bits long.
+
+##### A.5.4.3.3 Rate 3.088 Mbit/s
+
+In the case where the upstream data rate is 3.088 Mbit/s and the downstream OOB rate is 1.544 Mbit/s, the upstream slots are numbered as shown below, where $k$ is a multiple of 18.
+
+
+
+Diagram showing a 3-ms time period containing 18 upstream slots. The slots are numbered s(k-1), k, k+1, k+2, k+3, k+4, k+5, k+6, k+7, k+8, k+9, k+10, k+11, k+12, k+13, k+14, k+15, k+16, k+17, and s(k+18). Arrows labeled 'slot\_transmit\_position' point to the start of slot k and the start of slot s(k+18). Diamonds labeled '3 slot position references (downstream) per 3-ms time period' are located at the start of slots k, k+9, and k+18.
+
+In the case where the downstream OOB rate is 3.088 Mbit/s, there are 6 slot position references downstream during the transmission of 18 upstream packets. In the case of IB downstream, packet "k" is sent when the 3-ms time marker is received.
+
+The relationship between the received slot position reference and the actual slot transmit position is given by:
+
+$$\text{slot\_transmit\_position} = \text{slot\_position\_reference} + \text{slot\_position\_offset}$$
+
+where $\text{slot\_position\_offset}$ is derived from the $\text{Time\_Offset\_Value}$ provided via the $\text{Range\_and\_Power\_Calibration\_Message}$ .
+
+
+
+The diagram shows two adjacent slots, Slot (j-1) and Slot (j). A vertical line separates them. A double-headed arrow labeled 'slot\_position\_offset' spans the gap between the end of Slot (j-1) and the start of Slot (j). A vertical line with a left-pointing arrow labeled 'slot\_transmit\_position' is located at the start of Slot (j). A diamond symbol labeled 'Slot position reference (downstream)' is located at the start of Slot (j-1). The text 'T0904650-97/d032' is in the bottom right of Slot (j).
+
+Diagram showing the relationship between slot position reference and slot transmit position. It illustrates Slot (j-1) and Slot (j) with a slot\_position\_offset between them. A slot transmit position is indicated at the start of Slot (j). A diamond symbol indicates the slot position reference (downstream).
+
+In the case where the upstream data rate is 3.088 Mbit/s, the actual slot transmission locations are given by:
+
+$$\text{slot\_transmission\_location (m)} = \text{slot\_transmit\_position} + (m * 512)$$
+
+where; $m = 0, 1, 2, 3, 4, 5$ is the position of the slot with respect to the $\text{slot\_transmit\_position}$ . This leaves a free time interval ( $\text{FI} = 16$ bits) before the next $\text{slot\_transmit\_position}$ occurs, during which no NIU transmits anything.
+
+
+
+The diagram shows a sequence of slots. It starts with 'Previous slot', followed by Slot 0 (m=0), Slot 1 (m=1), Slot 2 (m=2), Slot 3 (m=3), Slot 4 (m=4), Slot 5 (m=5), a 'FI' (Free Interval) of 16 bits, and then 'Next slot'. Above the slots, arrows indicate 'slot\_transmit\_position' at the start of Slot 0 and Slot 5. Other arrows indicate 'loc 0' through 'loc 5' at various points within the slots. Below each slot (0-5), it says '512 bits'. The text 'T0904660-97/d033' is in the bottom right.
+
+Diagram showing the sequence of slots (Slot 0 to Slot 5) and the free interval (FI) between them. It includes labels for slot transmit positions and slot transmission locations (loc 0 to loc 5).
+
+#### A.5.4.4 Slot position counter
+
+Think of Mbits M10-M1 as a register (ESF counter), which counts from 0 to N, incrementing by one every 3-ms, where N an integer which indicates slot position cycle size (The value of N is calculated from $\text{Service\_Channel\_Last\_Slot}$ sent in the MAC Default Configuration Message and the upstream bit rate of the service channel. For the case of a 256 kbit/s service channel, the maximum value of $\text{Service\_Channel\_Last\_Slot}$ is 1535.). The upstream slot position register indicates the upstream slot positions that will correspond to the next SL-ESF frame. Upstream slot positions are counted from 0 to N. There are 6 upstream slots per ms when the upstream data rate is 3.088 Mbit/s, 3 upstream slots per ms when the upstream data rate is 1.544 Mbit/s, and there is 0.5 upstream slot per ms when the upstream data rate is 256 kbit/s. The corresponding upstream slot rates are, therefore, 6000 upstream slots/s
+
+when the upstream data rate is 3.088 Mbit/s, 3000 upstream slots/s when the upstream data rate is 1.544 Mbit/s, and 500 upstream slots/s when the upstream data rate is 256 kbit/s. The algorithm to determine the upstream slot position counter value is given below:
+
+```
+
+if (downstream_rate == 3.088 Mbit/s) {n = 1;}
+else {n = 0;}
+upstream_slot_position_register = value of Mbits latched at bit_position M11 (M10-M1)
+if (upstream_rate == 1.544 Mbit/s) {m = 3;}
+else if (upstream_rate == 3.088 Mbit/s) {m = 6;}
+else {m = 0.5}
+if (bit_position == M1 and previous M12 == 1)
+ { upstream_slot_position_counter = upstream_slot_position_register * 3 * m; }
+if (bit_position == M5)
+ if ( (n = 0) or (n == 1 and previous M12 == 0) )
+ { upstream_slot_position_counter = upstream_slot_position_counter + m; }
+if (bit_position == M9)
+ if ( (n = 0) or (n = 1 and previous M12 == 1) )
+ { upstream_slot_position_counter = upstream_slot_position_counter + m; }
+if (bit_position == M11)
+ { temp_upstream_slot_position_register = (M10, M9, M8, ..., M1); }
+if (bit_position == M12 and M12 == 1)
+ {upstream_slot_position_register = temp_upstream_slot_position_register;}
+
+```
+
+where the Mbits will be defined as follows:
+
+- M1-M10 = 10-bit ESF counter which counts from 0 to n with M10 the Most Significant Bit (MSB);
+- M11 = odd parity for the ESF counter, i.e. M11 = 1 if the ESF\_value (M1-M10) has an even number of bits set to 1;
+- M12 = 1: ESF counter valid;
+0: ESF counter not valid.
+
+The values assigned to M12 are as follows:
+
+- 1) When the QPSK downstream channel bit rate is 1.544 Mbit/s, the M12 bit, is always set to the value '1'.
+- 2) When the QPSK downstream channel bit rate is 3.088 Mbit/s, the information is always transmitted in pairs of superframe, where superframe-A is the first superframe in the pair, and superframe-B is the second superframe in the pair. In this case, the M12 bit of superframe-A is set to the value '0' and the M12 bit of superframe-B is set to the value '1'.
+- 3) When the downstream channel is IB, M12 = 1.
+
+### A.5.5 MAC functionality
+
+#### A.5.5.1 MAC reference model
+
+The scope of this subclause is limited to the definition and specification of the MAC layer protocol. The detailed operations within the MAC layer are hidden from the above layers.
+
+This subclause focuses on the required message flows between the INA and the NIU for Media Access Control. These areas are divided into four categories: Initialization, Provisioning and Sign-on Management, Connection Management and Link Management (see Figure A.25).
+
+
+
+Figure A.25/J.112 – MAC reference model diagram. The diagram shows the MAC reference model on the left and the IEEE 802 reference model on the right. The MAC reference model consists of 'Higher layers' at the top, a 'MAC sublayer' in the middle, and a 'Physical' layer at the bottom. The 'MAC sublayer' is further divided into a 'MAC management entity' (containing 'Link management', 'Connection management', and 'Initialization, sign-on and provisioning management'), 'Data application', 'MAC signalling', 'Multicast Address Resolution', and 'Singlecast Address Resolution'. The 'IEEE 802 reference model' on the right shows 'LLC', 'MAC', and 'Physical' layers. Arrows indicate the mapping: 'Higher layers' map to 'LLC', the 'MAC sublayer' maps to 'MAC', and the 'Physical' layer maps to 'Physical'. A vertical label 'Lower layer protocols' is on the left side of the MAC sublayer. A small text 'T0904670-97/d034' is at the bottom right.
+
+Figure A.25/J.112 – MAC reference model
+
+#### A.5.5.2 MAC concept
+
+##### A.5.5.2.1 Relationship between higher layers and MAC protocol
+
+The goal of the MAC protocol is to provide tools for higher layer protocols in order to transmit and receive data transparently and independently of the physical layer. Higher layer services are provided by the INA to the STU. The INA is thus responsible of indicating the transmission mode and rate to the MAC layer for each type of service.
+
+Specifically, for each connection provided by higher layers on the INA side (VPI/VCI), a connection ID is associated at the MAC layer. The maximum number of simultaneous connections that a NIU should support is defined as follows:
+
+- Grade A: Only one connection at a time can be handled by a NIU.
+- Grade B: As many connections as needed, defined dynamically by the INA, following higher layers requests. Note that in this case, all connections should be assigned to the same frequency upstream and downstream for implementation reasons.
+
+Note however, that bandwidth (time slots) does not need to be assigned immediately by the INA for a given connection. This means that a connection ID may exist at the NIU side without associated slot numbers.
+
+The INA is responsible for providing transmission bandwidth to the NIUs when needed by higher layers. However, since the NIU must transmit all data from the STU, the NIU is also responsible for requesting for more bandwidth if not already provided by the INA.
+
+A default connection is initiated by the INA when STBs are first turned on. This connection can be used to send data from higher layers leading to further interactive connections. Note that this connection can be associated to a zero transmission rate (no initial bandwidth allocation).
+
+##### A.5.5.2.2 Relationship between physical layer and MAC protocol
+
+Up to 8 QPSK upstream channels can be related to each downstream channel which is designated as a MAC control channel. An example of frequency allocation is shown in Figure A.26. This relationship consists of the following items:
+
+- 1) Each of these related upstream channels share a common slot position. This reference is based on 1 ms time markers that are derived via information transmitted via the downstream MAC control channel.
+- 2) Each of these related upstream channels derive slot numbers from information provided in the downstream MAC control channel.
+- 3) The Messaging needed to perform MAC functions for each of these related upstream channels is transmitted via the downstream MAC control channel.
+
+The Media Access Control Protocol supports multiple downstream channels. In instances where multiple channels are used, the INA shall specify a single OOB frequency called the Provisioning Channel, where NIU's perform Initialization and Provisioning functions. If both 1.544 Mbit/s and 3.088 Mbit/s downstream OOB channels coexist on the network, there should be one Provisioning Channel with each rate. Also, in networks where IB NIUs exist, provisioning should be included in at least one IB channel. An aperiodic message is sent on each downstream control channel which points to the downstream Provisioning Channel. In instances where only a single frequency is in use, the INA shall utilize that frequency for Initialization and Provisioning functions.
+
+The Media Access Control protocol supports multiple upstream channels. One of the upstream channels shall be designated the Service Channel. The Service Channel shall be used by NIU's entering the network via the Initialization and Provisioning procedure. The remaining upstream channels shall be used for upstream data transmission. In cases where only one upstream channel is utilized, the functions of the Service Channel shall reside in conjunction with regular upstream data transmission (see Figure A.26).
+
+
+
+Diagram illustrating frequency allocation for upstream and downstream channels. The diagram shows a horizontal line representing the frequency spectrum. On the left, there are two groups of eight upward-pointing arrows labeled '8-channels upstream'. Below the first group, an arrow points to one of the arrows labeled '1-service channel'. In the center, there are two downward-pointing arrows labeled 'Downstream channels'. On the right, there is one upward-pointing arrow labeled '1 provisioning channel'. Curved arrows labeled 'Related to' connect the '1-service channel' and the '1 provisioning channel' to the 'Downstream channels'. On the far right, a vertical double-headed arrow is labeled 'Upstream' at the top and 'Downstream' at the bottom. The text 'T0904680-97/d035' is at the bottom right.
+
+Figure A.26/J.112 – Example of frequency allocation
+
+##### A.5.5.2.3 Relationship between physical layer slot position counter and MAC slot assignment
+
+M10-M1 is a 10-bit superframe counter at the INA side, whereas the upstream slot position counter is an upstream slot counter at the NIUs side. The NIU slot position counter ( $M10-M1 \times 3 \times m$ , where $m = 0.5$ for 256 kbit/s, $m = 3$ for 1.544 Mbit/s and $m = 6$ for 3.088 Mbit/s) may be implemented as a 16-bit counter which is compared to the 16-bit slot numbers assigned by the INA in MAC messages (list assignment). When the counter value equals any assigned value, the NIU is allowed to send a packet upstream.
+
+##### A.5.5.2.4 Access modes (Contention/Ranging/Fixed rate/Reservation)
+
+Different access modes are provided to the NIUs within access regions specified by information contained in the slot boundary fields of the downstream superframes. The limits between access regions allow users to know when to send data on contention without risks of collision with contentionless type data. Also, the separation between reservation and fixed rate regions provides two ways of assigning slots to NIUs. The following rules define how to select access modes:
+
+- *Data connections:*
+
+When the INA assigns a connection ID to the NIU, it either specifies a slot list to be used (Fixed rate access) or the NIU shall use contention or reserved access by following this algorithm:
+
+- When the NIU must send more cells than what was assigned by the INA, it can use contention access only if the number of cells to transmit is less than *Maximum\_contention\_access\_message\_length* (specified in the MAC Connect Message from the INA). In that case, it must wait for the slot reception indicator before it is allowed to send other cells with the same VPI/VCI value. The NIU can send one request for reservation access if the number of cells is less than *Maximum\_reservation\_access\_message\_length* (specified in the MAC Connect Message from the INA). If more cells must be transmitted, the NIU must send multiple requests for reservation access.
+
+- *MAC messages:*
+
+MAC messages can be sent on contention access or reservation access. MAC messages sent upstream must be less than 40 bytes long. If the MAC information exceeds 40 bytes, it must be segmented into multiple 40-bytes independent MAC messages. Ranging access can only be used for specific MAC messages.
+
+Note that the VPI/VCI=0/21 connection used for MAC messages is always set up, so the INA does not assign a particular connection ID which is normally used for reservation requests. Thus, in order to use reservation access, slots assigned for other connections may be used for MAC messages:
+
+- a) *Contention Access*
+
+Contention Access indicates that data (MAC or bursty data traffic) is sent in the slots assigned to the contention access region in the upstream channel. It can be used either to send MAC messages or data. The VPI, VCI of the ATM cells are then used to determine the type and direction of the data in higher layers. Contention based access provides instant channel allocation for the NIU.
+
+The Contention based technique is used for multiple subscribers that will have equal access to the signalling channel. It is probable that simultaneous transmissions will occur. For each ATM cell transmitted by the NIU, a positive acknowledgement is sent back by the INA, utilizing the reception indicator field, for each successfully received ATM cell. In contention based access mode, a positive acknowledgement indicates that a collision did not occur. A collision occurs if two or more NIUs attempt ATM cell transmission during the same slot. A collision will be assumed if a NIU does not receive a positive acknowledgement. If a collision occurs, then the NIU will retransmit using a procedure to be defined.
+
+For all the traffic sent contention access, a collision is assumed if the appropriate reception indicator of the slot used for transmission is not set. A counter at the NIU/STB records the number, denoted by `backoff_exponent`, of collisions encountered by a cell. The `backoff_exponent` counter starts from a value determined by the `Min_Backoff_Exponent` variable. The `backoff_exponent` is used to generate a uniform random number between 1 and $2^{\text{backoff\_exponent}}$ . This random number is used to schedule retransmission of the collided cell. In particular, the random number indicates the number of contention access slots the NIU/STB shall wait before it transmits. The first transmission is carried out in a random cell within the contention based access region. If the counter reaches the maximum number, determined by the `Max_Backoff_Exponent` variable, the value of the counter remains at this value regardless of the number of subsequent collisions. After a successful transmission, the `backoff_exponent` counter is reset to a value determined by the `Min_Backoff_Exponent` variable. Informational Statement: The random access algorithm is unstable; the NRC is expected to have intelligence to detect an unstable state of the random access algorithm and to solve it.
+
+###### b) *Ranging Access*
+
+`Ranging Access` indicates that the data is sent in a slot preceded and followed by slots not used by other users. These slots allow users to adjust their clock depending on their distance to the INA such that their slots fall within the correct allocated time. They are either contention based when the ranging control slot indicator **b0** received during the previous superframe was 1 (or when b1-b6 = 55 to 63), or reserved if the INA indicates to the NIU that a specific slot is reserved for ranging.
+
+###### c) *Fixed rate Access*
+
+NOTE – Fixed rate is called contentionless in DAVIC.
+
+`Fixedrate Access` indicates that data is sent in slots assigned to the Fixed rate based access region in the upstream channel. These slots are uniquely assigned to a connection by the INA. No fixed rate access can be initiated by the NIU.
+
+###### d) *Reservation Access*
+
+`Reservation Access` implies that data is sent in the slots assigned to the reservation region in the upstream channel. These slots are uniquely assigned on a frame-by-frame basis to a connection by the INA. This assignment is made at the request of the NIU for a given connection.
+
+##### A.5.5.2.5 MAC error handling procedures
+
+Error handling procedures are under definition (Time out windows, power outage, etc.).
+
+##### A.5.5.2.6 MAC messages
+
+The MAC message types are divided into the logical MAC states of Initialization, Sign-on, Connection Management and Link Management. Messages in italic represent upstream transmission from NIU to INA. MAC messages are sent using Broadcast or Singlecast Addressing. Singlecast address shall utilize the 48-bit MAC address (see Table A.14).
+
+**Table A.14/J.112 – MAC messages**
+
+| Message type value | | Addressing type |
+|--------------------|--------------------------------------------------------------|-----------------|
+| | MAC Initialization, Provisioning and Sign-On messages | |
+| 0x01 | Provisioning Channel message | Broadcast |
+| 0x02 | Default Configuration message | Broadcast |
+| 0x03 | Sign-on Request message | Broadcast |
+| 0x04 | Sign-on Response message | Singlecast |
+| 0x05 | Ranging and Power Calibration message | Singlecast |
+| 0x06 | Ranging and Power Calibration Response message | Singlecast |
+| 0x07 | Initialization Complete message | Singlecast |
+| 0x08-0x1F | [Reserved] | |
+| 0x20-0x3F | MAC Connection Establishment and Termination messages | |
+| 0x20 | Connect message | Singlecast |
+| 0x21 | Connect Response message | Singlecast |
+| 0x22 | Reservation Request message | Singlecast |
+| 0x23 | Reservation Response message | Broadcast |
+| 0x24 | Connect Confirm message | Singlecast |
+| 0x25 | Release message | Singlecast |
+| 0x26 | Release Response message | Singlecast |
+| 0x28 | Reservation Grant message | Broadcast |
+| 0x29 | Reservation ID Assignment | Singlecast |
+| 0x2A | Reservation Status Request | Singlecast |
+| 0x2B | Reservation ID Response message | Singlecast |
+| 0x2C-0x3F | [Reserved] | |
+| | MAC Link Management messages | |
+| 0x27 | Idle message | Singlecast |
+| 0x40 | Transmission Control message | Scast or Bcast |
+| 0x41 | Reprovision message | Singlecast |
+| 0x42 | Link Management Response message | Singlecast |
+| 0x43 | Status Request message | Singlecast |
+| 0x44 | Status Response message | Singlecast |
+| 0x45-0x5F | [Reserved] | |
+
+To support the delivery of MAC related information to and from the NIU, a dedicated Virtual Channel shall be utilized. The VPI,VCI for this channel shall be 0x000,0x0021:
+
+###### - *Upstream MAC messages*
+
+AAL5 (as specified in Recommendation I.363) adaptation shall be used to encapsulate each MAC PDU in an ATM cell. Upstream MAC information should be single 40-bytes cell messages.
+
+###### - *Downstream OOB MAC messages*
+
+AAL5 (as specified in Recommendation I.363) adaptation shall be used to encapsulate each MAC PDU in an ATM cell. Downstream OOB MAC information may be longer than 40-bytes.
+
+###### - Downstream IB MAC messages
+
+Downstream IB MAC information is limited to 120-bytes long messages. Longer messages must be split into separate messages. No AAL5 layer is defined for MPEG-2 TS cells. MAC messages must therefore be sent as explained in Figure A.27.
+
+
+
+```
+
+graph TD
+ A[Check first MAC message field] --> B[Are the first two bytes of MAC message equal to zero?]
+ B -- Yes --> C[No MAC messages detected]
+ B -- No --> D[Is the length of message in first field greater than 40 bytes?]
+ D -- Yes --> E[Is the length of the message greater than 80 bytes?]
+ D -- No --> F[Check second MAC message field]
+ E -- Yes --> G[Single MAC message detected]
+ E -- No --> H[Check third MAC message field]
+ F --> I[Are the first two bytes of MAC message equal to zero?]
+ I -- Yes --> J[Two MAC messages detected]
+ I -- No --> K[Is the length of message in second field greater than 40 bytes?]
+ K -- Yes --> J
+ K -- No --> L[Check third MAC message field]
+ L --> M[Are the first two bytes of the MAC message equal to zero?]
+ M -- No --> N[Three MAC messages detected]
+ M -- Yes --> O[Two MAC messages detected]
+ H --> P[Are the first two bytes of the MAC message equal to zero?]
+ P -- No --> O
+ P -- Yes --> Q[One MAC message detected]
+
+```
+
+T0904690-97/d036
+
+Flowchart illustrating the algorithm for detecting MAC messages when sent IB downstream. The process starts with checking the first MAC message field. If the first two bytes are zero, no messages are detected. If not zero, it checks if the length is greater than 40 bytes. If yes, it checks if the length is greater than 80 bytes. If yes, a single MAC message is detected. If no, it checks the second MAC message field. If the first two bytes of the second field are zero, two MAC messages are detected. If not zero, it checks if the length of the second field is greater than 40 bytes. If yes, two MAC messages are detected. If no, it checks the third MAC message field. If the first two bytes of the third field are zero, three MAC messages are detected. If not zero, it checks the third MAC message field again. If the first two bytes are zero, two MAC messages are detected. If not zero, one MAC message is detected.
+
+Figure A.27/J.112 – Algorithm when MAC messages are sent IB downstream
+
+Since MAC related information is terminated at the NIU and INA, a privately defined message structure will be utilized. The format of this message structure is illustrated in Table A.15.
+
+NOTE 1 – All messages are sent most significant bit first.
+
+NOTE 2 – For all MAC messages where the parameter length is smaller than the field, the parameter shall be right justified with leading bits set to 0. All reserved fields in the MAC messages shall be set to 0.
+
+NOTE 3 – Message 0x23 is not used in the present release of the MAC protocol. It refers to DAVIC 1.0 protocol which is not supported by this specification.
+
+NOTE 4 – When no MAC\_Address is specified in the message, it means that the message is sent broadcast. (Syntax\_indicator = 000)
+
+NOTE 5 – Negative integers are sent in 2's complement.
+
+**Table A.15/J.112 – MAC message structure**
+
+| | Bits | Bytes | Bit number/Description |
+|-----------------------------------|-------------|------------|------------------------|
+| MAC_message() { | | | |
+| Message_Configuration | 8 | 1 | |
+| Protocol_Version | 5 | | |
+| Syntax_Indicator | 3 | | |
+| Message_Type | 8 | 1 | |
+| If (syntax_indicator==001) { | | | |
+| MAC_Address | (48) | (6) | |
+| } | | | |
+| { | | | |
+| MAC_Information_Elements() | | N | |
+| } } | | | |
+
+###### Protocol Version
+
+Protocol\_Version is a 5-bit field used to identify the current MAC version. The value for this parameter is given in Table A.16.
+
+**Table A.16/J.112 – Protocol\_version coding**
+
+| Value | Definition |
+|-------|---------------------------------------------------------------------|
+| 0 | DAVIC 1.0 compliant device (not consistent with this specification) |
+| 1 | DAVIC 1.1 compliant device |
+| 2 | DAVIC 1.2 compliant device |
+| 3-31 | Reserved |
+
+###### Syntax Indicator
+
+Syntax\_Indicator is a 3-bit enumerated type that indicates the addressing type contained in the MAC message.
+
+| |
+|-----------------------------------------------------------------------------|
+| Enum Syntax_Indicator {No_MAC_Address, MAC_Address_Included, reserved2..7}; |
+|-----------------------------------------------------------------------------|
+
+###### MAC Address
+
+MAC\_Address is a 48-bit value representing the unique MAC address of the NIU. This MAC address may be hard coded in the NIU or be provided by external source.
+
+#### A.5.5.3 MAC Initialization and Provisioning
+
+This subclause defines the procedure for Initialization and Provisioning that the MAC shall perform during power on or Reset.
+
+- 1) Upon a NIU becoming active (i.e. powered up), it must first find the current provisioning frequency. The NIU shall receive the **Provisioning Channel Message**. This message shall be sent aperiodically on all downstream OOB channels when there are multiple channels. In the case of only a single channel, the message shall indicate the current channel to be utilized for Provisioning. Upon receiving this message, the NIU shall tune to the Provisioning Channel. In the case of IB downstream, the IB channel to be used during provisioning must be given by using ETS 300 468, no Provisioning Channel Message is needed.
+- 2) After a valid lock indication on a Provisioning Channel, the NIU shall await the **DEFAULT CONFIGURATION MESSAGE**. When received, the NIU shall configure its parameters as defined in the default configuration message. The Default Configuration Parameters shall include default timer values, default power levels, default retry counts as well as other information related to the operation of the MAC protocol.
+
+Figure A.28 shows the signalling sequence.
+
+
+
+```
+
+sequenceDiagram
+ participant INA
+ participant NIU/STB
+ Note right of NIU/STB: T0904700-97/d037
+ INA->>NIU/STB: Provisioning Channel message
+ INA->>NIU/STB: Default Configuration message
+
+```
+
+Sequence diagram showing signaling between INA and NIU/STB. INA sends a Provisioning Channel message to NIU/STB, followed by a Default Configuration message. Reference T0904700-97/d037 is shown at the bottom right.
+
+Figure A.28/J.112 – Initialization and Provisioning signalling
+
+##### A.5.5.3.1 Provisioning Channel Message (broadcast OOB downstream)
+
+The PROVISIONING CHANNEL MESSAGE is sent by the INA to direct the NIU to the proper Out-of-Band frequency where provisioning is performed. The format of the message is shown in Table A.17.
+
+Table A.17/J.112 – Provisioning Channel Message format
+
+| | Bits | Bytes | Bit number/Description |
+|-----------------------------------------------|------|-------|------------------------|
+| Provisioning_Channel_Message() { | | | |
+| Provisioning_Channel_Control_Field | 8 | 1 | |
+| reserved | 7 | | 7-1: |
+| provisioning_frequency_included | 1 | | 0: {no=0, yes=1} |
+| if (provisioning_frequency_included) { | | | |
+| Provisioning_Frequency | (32) | (4) | |
+| DownStream_Type | 8 | 1 | |
+| } | | | |
+| } | | | |
+
+###### Provisioning Channel Control Field
+
+Provisioning\_Channel\_Control\_Field is used to specify the downstream frequency where the NIU will be provisioned.
+
+###### Provisioning Frequency Included
+
+provisioning\_frequency\_included is a boolean when set, indicates that a downstream OOB frequency is specified that the NIU should tune to begin the provisioning process. When cleared, indicates that the current downstream frequency is the provisioning frequency.
+
+###### Provisioning Frequency
+
+Provisioning\_Frequency is a 32-bit unsigned integer representing the Out-of-band Frequency in which NIU provisioning occurs. The unit of measure is Hz.
+
+###### Downstream Type
+
+DownStream\_Type is an 8-bit enumerated type indicating the modulation format for the down stream connection. {reserved, QPSK\_1.544, QPSK\_3.088, 3..255 reserved}
+
+##### A.5.5.3.2 Default Configuration Message (broadcast downstream)
+
+The DEFAULT CONFIGURATION MESSAGE is sent by the INA to the NIU. The message provides default parameter and configuration information to the NIU. The format of the message is shown in Table A.18.
+
+Table A.18/J.112 – Default configuration message structure
+
+| | Bits | Bytes | Bit number/Description |
+|--------------------------------------|------|-------|------------------------|
+| Default_Configuration_Message() { | | | |
+| Sign_On_Incr_Pwr_Retry_Count | 8 | 1 | |
+| Service_Channel_Frequency | 32 | 4 | |
+| Service_Channel_Control_Field | | 1 | |
+| MAC_Flag_Set | 5 | | 7-3 |
+| Service_Channel | 3 | | 2-0 |
+| Backup_Service_Channel_Frequency | 32 | 4 | |
+| Backup_Service_Channel_Control_Field | | 1 | |
+| Backup_MAC_Flag_Set | 5 | | 7-3 |
+| Backup_Service_Channel | 3 | | 2-0 |
+| Service_Channel_Frame_Length | 16 | 2 | |
+| Service_Channel_Last_Slot | 16 | 2 | |
+| Max_Power_Level | 8 | 1 | |
+| Min_Power_Level | 8 | 1 | |
+| Upstream_Transmission_Rate | 3 | 1 | {enum} |
+| Max_Backoff_Exponent | 8 | 1 | |
+| Min_Backoff_Exponent | 8 | 1 | |
+| Idle_Interval | 16 | 2 | |
+| } | | | |
+
+###### Sign-On Increment Power Retry Count
+
+`Sign_On_Incr_Pwr_Retry_Count` is an 8-bit unsigned integer representing the number of attempts the NIU should try to enter the system at the same power level before incrementing its power level by steps of 0.5 dB.
+
+###### Service Channel Frequency
+
+`Service_Channel_Frequency` is a 32-bit unsigned integer representing the upstream frequency assigned to the service channel. The unit of measure is in Hz.
+
+###### MAC\_Flag\_Set
+
+`MAC_Flag_Set` is a 5-bit field representing the MAC Flag set assigned to the service channel (i.e. R1a, R1b and R1c represent MAC Flag set 1). In the OOB downstream SL-ESF frame payload structure, each set of three bytes, denoted by Rxa-Rxc, comprise a Flag set. These eight flag sets are assigned the numbers 1-8. In the IB downstream timing, the 16 flag sets are assigned the numbers 1-16. In the case of a 3.088 Mbit/s upstream channel, two successive flag sets are required to define a 3-ms period. In this case, this parameter represents the first of two successively assigned flag sets. In the case of a 3.088 Mbit/s OOB downstream, two successive SL-ESF frames define the 3-ms interval. The Rxa-Rxc bytes of the first frame represent flag sets 1-8 while the Rxa-Rxc bytes of the second frame represent flag sets 9-16.
+
+A downstream channel contains control information for each of its associated upstream channels. This information is contained within structures known as MAC Flags. A set of MAC Flags, represented by either 24 bits (denoted b0-b23) or by 3 bytes (denoted Rxa, Rxb and Rxc), are uniquely assigned to a given upstream channel.
+
+In the OOB downstream case, each SL-ESF frame structure contains eight sets of MAC Flags represented by Rxa, Rxb and Rxc, where x is replaced by the numbers 1-8. In the case of a 1.544 Mbit/s downstream bit rate, only one SL-ESF frame occurs during a 3-ms interval providing 8 sets of MAC Flags. In the case of a 3.088 Mbit/s downstream bit rate, two SL-ESF frames occur during a 3-ms interval, providing 16 sets of MAC Flags. The second set of MAC Flags (contained in the second SL-ESF) are denoted by Rxa, Rxb and Rxc, where x is replaced by the numbers 9 through 16.
+
+In the IB downstream case, the MAC Flags are contained in the MAC Control Message Structure which can contain as many as 16 MAC Flag sets. The MAC Flags 1-8 are contained in the "MAC Flags" field and the MAC Flags 9-16 are contained in the "Extension Flags" field.
+
+In case of a 3.088 Mbit/s upstream channel, two sets of MAC Flags are required. In this case, the `MAC_Flag_Set` parameter represents the first of two successively assigned MAC Flag sets.
+
+###### Service Channel
+
+`Service_Channel` is a 3-bit field which defines the channel assigned to the `Service_Channel_Frequency`. Although the function provided by this parameter is superseded in this specification by the `MAC_Flag_Set`, it is retained in order to identify the logical channel assigned to the NIU/STB.
+
+###### Backup Service Channel Frequency
+
+`Backup_Service_Channel_Frequency` is a 32-bit unsigned integer representing the upstream frequency assigned to the backup service channel. The backup service channel is used when entry on the primary service channel fails. The unit of measure is in Hz.
+
+###### **Backup\_MAC\_Flag\_Set**
+
+Backup\_MAC\_Flag\_Set is a 5-bit field representing the MAC Flag set assigned to the backup service channel. The function of this field is the same as the MAC\_Flag\_Set above but with respect to the backup service channel.
+
+###### **Backup\_Service Channel**
+
+Backup\_Service\_Channel is a 3-bit field which defines the channel assigned to the Backup\_Service\_Channel\_Frequency. The function of this field is the same as the Service\_Channel above but with respect to the backup channel.
+
+###### **Service\_Channel\_Frame\_Length [reserved]**
+
+Unused in this version.
+
+###### **Service Channel Last Slot**
+
+Service\_Channel\_Last\_Slot is a 16-bit unsigned integer representing the largest slot value of the NIU slots position counter ( $N \times 3 \times m$ , where $N$ is defined in A.5.4.3). In general, this value will be used for all other upstream channels. It will be a multiple of 3, 9 or 18 for 256 kbit/s, 1.544 Mbit/s, or 3.088 Mbit/s respectively.
+
+###### **Maximum Power Level**
+
+MAX\_Power\_Level is an 8-bit unsigned integer representing the maximum power the NIU shall be allowed to use to transmit upstream. The unit of measure is in dBmicroV (RMS) on 75 $\Omega$ .
+
+###### **Minimum Power Level**
+
+MIN\_Power\_Level is an 8-bit unsigned integer representing the minimum power the NIU shall be allowed to use to transmit upstream. The unit of measure is in dBmicroV (RMS) on 75 $\Omega$ .
+
+###### **Upstream Transmission Rate**
+
+Upstream\_Transmission\_Rate is a 3-bit enumerated type that indicates the upstream transmission rate.
+
+| |
+|--------------------------------------------------------------------------------------------------|
+| enum Upstream_Transmission_Rate {Upstream_256K, Upstream_1-544M, Upstream_3-088M, reserved3..7}; |
+|--------------------------------------------------------------------------------------------------|
+
+###### **MIN\_Backoff\_Exponent**
+
+MIN\_Backoff\_Exponent is an 8-bit unsigned integer representing the minimum value of the backoff exponent counter.
+
+###### **MAX\_Backoff\_Exponent**
+
+MAX\_Backoff\_Exponent is an 8-bit unsigned integer representing the minimum value of the backoff exponent counter.
+
+###### **Idle\_Interval**
+
+Idle\_Interval is a 16-bit unsigned integer representing the predefined interval for the MAC Idle messages. The unit of the measure is in milliseconds.
+
+#### A.5.5.4 Sign-On and Calibration
+
+The NIU shall Sign On via the Sign-On procedure. The signalling flow for Sign-On is described below:
+
+- The NIU shall tune to the downstream Provisioning Channel and the upstream Service Channel with the information provided in the Initialization and Provisioning sequence.
+- The NIU shall await the **Sign-On Request Message** from the INA Entity. The NIU shall utilize Contention based entry on the Service Channel to access the network.
+- Upon receiving the **Sign-On Request Message**, the NIU shall respond with the **Sign-On Response Message**. The Sign-On Response message shall be transmitted on a Ranging Control Slot.
+- The INA, upon receiving the Sign-On Response message shall validate the NIU and send the **Ranging and Power Calibration Message**.
+- The NIU shall respond to the **Ranging and Power Calibration Message** with the **Ranging and Power Calibration Response Message**. The **Ranging and Power Calibration Response Message** shall be transmitted on a Ranging Control Slot (which can either be in the ranging region ( $b0 = 1$ ) or reserved region (if a ranging slot number is given in the message)).
+- The INA shall send the **Initialization Complete Message** when the NIU is calibrated. The NIU is assumed to be calibrated if the message arrives within a window of 1.5 symbols (upstream rate) and a power within a window of 1.5 dB from their optimal value.
+
+
+
+```
+sequenceDiagram
+ participant INA
+ participant NIU/STB
+ INA->>NIU/STB: Sign-on message
+ NIU/STB-->>INA: Sign-on Response message
+ INA->>NIU/STB: Ranging and Power Calibration message
+ NIU/STB-->>INA: Ranging and Power Calibration Response message
+ INA->>NIU/STB: Initialization Complete
+```
+
+The diagram illustrates the interaction between the INA (Initiation Entity) and the NIU/STB (Network Interface Unit/Service Terminal Base). The sequence of messages is as follows: 1. INA sends a Sign-on message to NIU/STB. 2. NIU/STB responds with a Sign-on Response message. 3. INA sends a Ranging and Power Calibration message. 4. NIU/STB responds with a Ranging and Power Calibration Response message. 5. INA sends a Initialization Complete message. The diagram is labeled with 'INA' on the left and 'NIU/STB' on the right. A reference code 'T0904710-97/d038' is present at the bottom right of the diagram.
+
+Sequence diagram showing the ranging and calibration signalling between INA and NIU/STB.
+
+Figure A.29/J.112 – Ranging and calibration signalling
+
+Figure A.30 state diagram details the procedure described above.
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> WaitSignOn
+ state "Wait for Sign-On Request" as WaitSignOn
+ state "Wait Random Time < Time Window Retry or increase Powera) Send Sign-On Response message on a Ranging Slot" as WaitRandomTime
+ state "Wait for a new Time Window" as WaitNewTimeWindow
+ state "Modify Power and Ranging. Send a Ranging and Control Response on the Ranging Slot Number given by the INA and wait for Initialization Complete or Ranging and Control message." as ModifyPowerLeft
+ state "Modify Power and Ranging. Send a Ranging and Control Response in a contention based Ranging Slot. Wait for Initialization Complete or Ranging and Control message." as ModifyPowerRight
+ state END
+
+ WaitSignOn --> WaitRandomTime : Receive Sign-On Request
+ WaitRandomTime --> WaitNewTimeWindow
+ WaitNewTimeWindow --> ModifyPowerLeft : Ranging and Control message + Ranging Slot Number
+ WaitNewTimeWindow --> ModifyPowerRight : Ranging and Control message and no Ranging Slot Number
+ ModifyPowerLeft --> END : Initialization Complete
+ ModifyPowerRight --> END : Initialization Complete
+ ModifyPowerLeft --> WaitSignOn : Time elapsed
+ ModifyPowerRight --> WaitSignOn : If time > Time Window
+ ModifyPowerLeft --> ModifyPowerRight : R and C message and no Ranging Slot Number
+ ModifyPowerRight --> ModifyPowerLeft : R and C message + Ranging Slot Number
+
+```
+
+State diagram for Ranging and calibration. The diagram shows a sequence of states: 'Wait for Sign-On Request', 'Wait Random Time < Time Window', 'Wait for a new Time Window', 'Modify Power and Ranging' (left), 'Modify Power and Ranging' (right), and 'END'. Transitions include 'Receive Sign-On Request', 'Send Sign-On Response message on a Ranging Slot', 'Ranging and Control message + Ranging Slot Number', 'R and C message and no Ranging Slot Number', 'Initialization Complete', and 'Time elapsed'.
+
+T0904720-97/d039
+
+a) "Retry or Increase Power" means that the NIU should retry with the same power Sign\_On\_Incr\_Pwr\_Retry\_Count times (given by the default configuration message) and then increase the power by 0.5 dB.
+
+Figure A.30/J.112 – State diagram for Ranging and calibration
+
+NOTE – The Ranging and Control message shown in Figure A.30 corresponds to the Ranging and Power Calibration Message. The Ranging and Control Response corresponds to the Ranging and Power Calibration Response Message. "Sign-On Request" stands for Sign-On Request Message, and similarly, "Sign-On Response" stands for Sign-On Response Message.
+
+##### A.5.5.4.1 Sign-On Request Message (broadcast downstream)
+
+The SIGN-ON REQUEST message is issued periodically by the INA to allow a NIU to indicate its presence in the network. The format of this subcommand is shown in Table A.19.
+
+Table A.19/J.112 – Sign-on Request message structure
+
+| | Bits | Bytes | Bit number/Description |
+|----------------------------------|------|-------|------------------------|
+| Sign-On_Request_Message() { | | | |
+| Sign-On_Control_Field | 8 | 1 | |
+| Reserved | 7 | | 7-1 |
+| Address_Filter_Params_Included | 1 | | 0: {no,yes} |
+| Response_Collection_Time_Window | 16 | 2 | |
+| if (Sign-On_Control_Field= | | | |
+| Address_Filter_Params_Included { | | | |
+| Address_Position_Mask | (8) | (1) | |
+| Address_Comparison_Value | (8) | (1) | |
+| } | | | |
+| } | | | |
+
+###### Sign-On Control Field
+
+Sign-On\_Control\_Field specifies what parameters are included in the SIGN-ON REQUEST.
+
+###### Address Filter Parameters Included
+
+address\_filter\_params\_included is a boolean, when set, indicates that the NIU should respond to the SIGN-ON REQUEST only if its address matches the filter requirements specified in the message.
+
+###### Response Collection Time Window
+
+Response\_Collection\_Time\_Window is a 16-bit unsigned integer that specifies the duration of time the NIU has to respond to the SIGN-ON REQUEST. The unit of measure is the millisecond (ms).
+
+###### Address Position Mask
+
+Address\_Position\_Mask is an 8-bit unsigned integer that indicates the bit positions in the NIU MAC address that are used for address filtering comparison. The bit positions are comprised between bit number Mask and Mask+7. Mask = 0 corresponds to the 8 LSBs of the address, i.e. it represents the number of bits shifted to the left. The maximum value is 40.
+
+###### Address Comparison Value
+
+Address\_Comparison\_Value is an 8-bit unsigned integer that specifies the value that the NIU should use for MAC address comparison (see Figure A.31).
+
+
+
+Diagram showing the position of a Mask in a MAC address. The MAC address is 6 bytes (48 bits) long, with MSB on the left and LSB on the right. A Mask field is shown within the MAC address. An arrow points from the Mask field to an 'Address comparison value (8 bits)' box. Another arrow points from the 'Address\_Position\_Mask' label to the Mask field. A reference code T0904730-97/d040 is present.
+
+Figure A.31/J.112 – Position of Mask in MAC address
+
+##### A.5.5.4.2 Sign-On Response Message (upstream Contention or Ranging)
+
+The Sign-On Response Message is sent by the NIU in response to the Sign-On Request Message issued by the INA Entity. The NIU shall wait for a random time less than Response\_Collection\_Time\_Window to send this message (see Table A.20).
+
+Table A.20/J.112 – Sign-On Response message structure
+
+| | Bits | Bytes | Bit number/Description |
+|------------------------------|------|-------|------------------------|
+| Sign-On_Response_Message() { | | | |
+| [reserved] | 32 | 4 | |
+| [reserved] | 16 | 2 | |
+| Retry_Count | 8 | 1 | |
+| } | | | |
+
+###### Retry Count
+
+Retry\_Count is an 8-bit unsigned integer that indicates the number of transmissions of the Sign-On Response. This field is always included in the response to the Sign-On Request.
+
+##### A.5.5.4.3 Ranging and Power Calibration Message (singlecast downstream)
+
+The RANGING AND POWER CALIBRATION MESSAGE is sent by the INA to the NIU to adjust the power level or time offset the NIU is using for upstream transmission. The format of this message is shown in Table A.21.
+
+**Table A.21/J.112 – Ranging and Power Calibration message structure**
+
+| | Bits | Bytes | Bit number/description |
+|-------------------------------------------------------------------|------|-------|------------------------|
+| Ranging_and_Power_Calibration_Message() { | | | |
+| Range_Power_Control_Field | 8 | 1 | |
+| reserved | 5 | | 7-3: |
+| ranging_slot_included | 1 | | 2: {no, yes} |
+| time_adjustment_included | 1 | | 1: {no, yes} |
+| power_ajustment_included | 1 | | 0: {no, yes} |
+| if (range_power_control_field == time_adjustment_included ) { | | | |
+| Time_Offset_Value | (16) | (2) | |
+| } | | | |
+| if (range_power_control_field == power_adjustment_included ) { | | | |
+| Power_Control_Setting | (8) | (1) | |
+| } | | | |
+| if (range power control field == ranging_slot_included) { | | | |
+| Ranging_Slot_Number | (16) | (2) | |
+| } | | | |
+
+###### Range and Power Control Field
+
+`Range_Power_Control_Field` specifies which Range and Power Control parameters are included in the message.
+
+###### Time Adjustment Included
+
+`time_adjustment_included` is a boolean when set, indicates that a relative Time Offset Value is included that the NIU should use to adjust its upstream slot transmit position.
+
+###### Power Adjust Included
+
+`power_adjust_included` is a boolean when set, indicates that a relative Power Control Setting is included in the message.
+
+###### Ranging Slot Included
+
+`Ranging_Slot_Included` is a boolean when set, indicates the calibration slot available. When this bit equals 1, the NIU must send its response on the slot number given by **Ranging Slot Number**. When this bit equals 0, the NIU must respond on a ranging slot as mentioned in Figure A.30.
+
+###### Time Offset Value
+
+`Time_Offset_Value` is a 16-bit short integer representing a relative offset of the upstream transmission timing. A negative value indicates an adjustment forward in time (later). A positive value indicates an adjustment back in time (earlier). The unit of measure is 100 ns (The NIU will adjust approximately its time offset to the closest value indicated by the `Time_Offset_Value` parameter, which implies that no extra clock is needed to adjust to the correct offset).
+
+###### Power Control Setting
+
+`Power_Control_Setting` is an 8-bit signed integer to be used to set the new power level of the NIU. (A positive value represents an increase of the output power level.)
+
+$$\text{New output\_power\_level} = \text{current output\_power\_level} + \text{power\_control\_setting} \times 0.5 \text{ dB}$$
+
+###### Ranging Slot Number
+
+`Ranging_Slot_Number` is a 16-bit unsigned integer that represents the reserved access Slot Number assigned for Ranging the NIU. It shall be assigned by the INA in the reservation area. The INA shall assure that an unassigned slot precedes and follows the ranging slot.
+
+##### A.5.5.4.4 Ranging and Power Calibration Response Message (upstream reserved or contention ranging)
+
+The RANGING AND POWER CALIBRATION RESPONSE Message is sent by the NIU to the INA in response to the RANGING AND POWER CALIBRATION MESSAGE. The format of the message is shown in Table A.22.
+
+Table A.22/J.112 – Ranging and Power Calibration Response message structure
+
+| | Bits | Bytes | Bit number/Description |
+|-------------------------------------------------|------|-------|------------------------|
+| Ranging_Power_Response_Message() { | | | |
+| Power_Control_Setting | 8 | 1 | |
+| } | | | |
+
+###### Power Control Setting
+
+`Power_Control_Setting` is an 8-bit signed integer defined as a copy of the power control setting parameter received from INA.
+
+##### A.5.5.4.5 Initialization Complete Message (singlecast downstream)
+
+This message has no message body. It indicates the end of the MAC Sign-On and Provisioning procedure.
+
+#### A.5.5.5 Default Connection Establishment
+
+Once a NIU has completed the Calibration State, it shall enter the Connection State. A low bit rate permanent connection is assigned to a NIU by the INA. After the initial calibration procedure, the INA provides a Default Connection to the NIU that the NIU shall utilize to communicate to the network. The message flow for such Connection Establishment is shown below (see Figure A.32):
+
+- 1) After Initialization, Provisioning and Sign-On procedures are complete, the INA shall assign a default upstream and downstream connection to the NIU. This connection can be assigned on any of the upstream channels except the upstream service channel ranging area. The INA shall assign the default connection by sending the **Connect Message** to the NIU. This message shall contain the upstream connection parameters and downstream frequency on which the default connection is to reside.
+- 2) The NIU, upon receiving the **Connect Message** shall tune to the required upstream and downstream frequencies and send the **Connect Response Message** confirming receipt of the message.
+- 3) Upon receipt of the **Connect Response Message**, the INA shall confirm the new connection to proceed by sending the **Connect Confirm Message**.
+
+
+
+```
+
+ INA NIU/STB
+ | |
+ |----- Connect Message----->|
+ | |
+ |----- Connect Response----->|
+ | |
+ |----- Connect Confirm----->|
+
+```
+
+T0904740-97/d041
+
+Diagram showing connection signalling between INA and NIU/STB. Three messages are shown: Connect Message (INA to NIU/STB), Connect Response (NIU/STB to INA), and Connect Confirm (INA to NIU/STB).
+
+Figure A.32/J.112 – Connection signalling
+
+##### A.5.5.5.1 Connect Message (singlecast downstream)
+
+See Table A.23.
+
+Table A.23/J.112 – Connect message structure
+
+| | Bits | Bytes | Numéro number/ Description |
+|---------------------------------------------------------|------|-------|-------------------------------|
+| Connect_Message () { | | | |
+| Connection_ID | 32 | 4 | |
+| Session_Number | 32 | 4 | |
+| Resource_Number | 16 | 2 | |
+| Connection_Control_Field | 8 | 1 | |
+| DS_ATM_CBD_Included | 1 | | 7: {no, yes} |
+| DS_MPEG_CBD_Included | 1 | | 6: {no, yes} |
+| US_ATM_CBD_Included | 1 | | 5: {no, yes} |
+| Upstream_Channel_Number | 3 | | 4-2 |
+| Slot_List_Included | 1 | | 1: {no, yes} |
+| Cyclic_Assignment | 1 | | 0: {no, yes} |
+| Frame_Length | (16) | (2) | |
+| Maximum_Contention_Access_Message_Length | (8) | (1) | |
+| Maximum_Reservation_Access_Message_Length | (8) | (1) | |
+| if (Connection_Control_Field && DS_ATM_CBD_Included) { | | | |
+| Downstream_ATM_CBD() | 64 | 8 | |
+| } | | | |
+| if (Connection_Control_Field && DS_MPEG_CBD_Included) { | | | |
+| Downstream_MPEG_CBD() | 48 | 6 | |
+| } | | | |
+| if (Connection_Control_Field && US_ATM_CBD_Included) { | | | |
+| Upstream_ATM_CBD() | 64 | 8 | |
+| } | | | |
+| if (Connection_Control_Field && Slot_List_Included) { | | | |
+| Number_Slots_Defined | 8 | 1 | |
+| for (i=0; iSlot_Number | (16) | (2) | |
+| } | | | |
+| } | | | |
+| if (MAC_Control_Params == cyclic_Assignment){ | | | Fixed Rate Access |
+| Fixedrate_Start | (16) | (2) | |
+| Fixedrate_Dist | (16) | (2) | |
+| Fixedrate_End | (16) | (2) | |
+| } | | | |
+| }} | | | |
+
+###### Connection ID
+
+`Connection_ID` is a 32-bit unsigned integer representing a connection Identifier for the NIU Dynamic Connection.
+
+###### Session Number
+
+`Session_Number` is a 32-bit unsigned integer representing the Session that the connection parameters are associated. This parameter is not used by this specification.
+
+###### Resource Number
+
+`Resource_Number` is a 16-bit unsigned integer providing a unique number to the resource defined in the message. This parameter is not used by this specification.
+
+###### Connection Control Field
+
+`DS_ATM_CBD_Included` is a boolean that indicates that the Downstream ATM Descriptor is included in the message.
+
+`DS_MPEG_CBD_Included` is a boolean that indicates that the Downstream MPEG Descriptor is included in the message.
+
+`US_ATM_CBD_Included` is a boolean that indicates that the Upstream ATM Descriptor is included in the message.
+
+`Upstream_Channel_Number` is a 3-bit unsigned integer that provides an identifier for the upstream channel. This parameter is not used in this specification.
+
+`Slot_List_Included` is a boolean that indicates that the Slot List is included in the message.
+
+`Cyclic_Assignment` is a boolean that indicates Cyclic Assignment.
+
+###### Frame Length
+
+`Frame_length` – This 16-bit unsigned number represents the number of successive slots in the fixed rate access region associated with each fixed rate slot assignment. In the `slot_list` method of allocating slots it represents the number of successive slots associated with each element in the list. In the cyclic method of allocating slots it represents the number of successive slots associated with the `Fixedrate_Start_slot` and those which are multiples of `Fixedrate_Distance` from the `Fixedrate_Start_slot` within the Fixed rate access region.
+
+###### Maximum Contention Access Message Length
+
+`Maximum_contention_access_message_length` is an 8-bit number representing the maximum length of a message in ATM sized cells that may be transmitted using contention access. Any message greater than this should use reservation access.
+
+###### Maximum Reservation Access Message Length
+
+`Maximum_reservation_access_message_length` is an 8-bit number representing the maximum length of a message in ATM sized cells that may be transmitted using a single reservation access. Any message greater than this should be transmitted by making multiple reservation requests.
+
+###### Downstream ATM Connection Block Descriptor
+
+See Table A.24.
+
+Table A.24/J.112 – ATM Connection Block Descriptor substructure
+
+| | Bits | Bytes | Bit number/ Description |
+|-------------------------------------|------|-------|----------------------------|
+| Downstream_ATM_CBD() { | | | |
+| Downstream_Frequency | 32 | 4 | |
+| Downstream_VPI | 8 | 1 | |
+| Downstream_VCI | 16 | 2 | |
+| Downstream_Type | 8 | 1 | |
+| } | | | |
+
+###### *Downstream Frequency*
+
+`Downstream_Frequency` is a 32-bit unsigned integer representing the Frequency where the connection resides. The unit of measure is in Hz.
+
+###### *Downstream Virtual Path Identifier*
+
+`Downstream_VPI` is an 8-bit unsigned integer representing the ATM Virtual Path Identifier that is used for downstream transmission over the Dynamic Connection.
+
+###### *Downstream Virtual Channel Identifier*
+
+`Downstream_VCI` is a 16-bit unsigned integer representing the ATM Virtual Channel Identifier that is used for downstream transmission over the Dynamic Connection.
+
+###### *DownStream\_Type*
+
+`DownStream_Type` is an 8-bit enumerated type indicating the modulation format for the down stream connection. { reserved, QPSK\_1.544, QPSK\_3.088, 3..255 reserved }.
+
+###### **Downstream MPEG Connection Block Descriptor**
+
+See Table A.25.
+
+**Table A.25/J.112 – Downstream\_MPEG\_CBD substructure**
+
+| | Bits | Bytes | Bit number/ Description |
+|--------------------------------------|------|-------|----------------------------|
+| Downstream_MPEG_CBD() { | | | |
+| Downstream_Frequency | 32 | 4 | |
+| Program_Number | 16 | 2 | |
+| } | | | |
+
+###### *Downstream Frequency*
+
+`Downstream_Frequency` is a 32-bit unsigned integer representing the Frequency where the connection resides. The unit of measure is in Hz.
+
+###### *Program Number*
+
+`Program_Number` is a 16-bit unsigned integer uniquely referencing the downstream virtual connection assignment (PID of the MPEG-2 program).
+
+###### **Upstream ATM Connection Block Descriptor**
+
+See Table A.26.
+
+**Table A.26/J.112 – Upstream\_CBD substructure**
+
+| | Bits | Bytes | Bit number/ Description |
+|-----------------------------------|------|-------|----------------------------|
+| Upstream_ATM_CBD() { | | | |
+| Upstream_Frequency | 32 | 4 | |
+| Upstream_VPI | 8 | 1 | |
+| Upstream_VCI | 16 | 2 | |
+| MAC_Flag_Set | 5 | 1 | 7:3 |
+| Upstream_Rate | 3 | | 2:0 |
+| } | | | |
+
+###### *Upstream Frequency*
+
+*Upstream\_Frequency* is a 32-bit unsigned integer representing the channel on assigned to the connection. The unit of measure is in Hz.
+
+###### *Upstream Virtual Path Identifier*
+
+*Upstream\_VPI* is an 8-bit unsigned integer representing the ATM Virtual Path Identifier that is used for upstream transmission over the Dynamic Connection.
+
+###### *Upstream Virtual Channel Identifier*
+
+*Upstream\_VCI* is a 16-bit unsigned integer representing the ATM Virtual Channel Identifier that is used for upstream transmission over the Dynamic Connection.
+
+###### *MAC\_Flag\_Set*
+
+*MAC\_Flag\_Set* is a 5-bit field representing the MAC Flag set assigned to the connection. In the OOB downstream SL-ESF frame payload structure, each set of three bytes, denoted by Rxa-Rxc, comprise a flag set. These eight flag sets are assigned the numbers 1-8. In the IB downstream timing, the 16-flag sets are assigned the numbers 1-16. In the case of a 3.088 Mbit/s upstream channel, two successive flag sets are required to define a 3-ms period. In this case, this parameter represents the first of two successively assigned flag sets. In the case of a 3.088 Mbit/s OOB downstream, two successive SL-ESF frames define the 3-ms interval. The Rxa-Rxc bytes of the first frame represent flag sets 1-8 while the Rxa-Rxc bytes of the second frame represent flag sets 9-16.
+
+###### *Upstream\_Rate*
+
+*Upstream\_Rate* is a 3-bit enumerated type indicating the data rate for the upstream connection. { Upstream\_256K, Upstream\_1.544M, Upstream\_3.088M, 3..7 reserved }
+
+###### **Number of Slots Defined**
+
+*Number\_Slots\_Defined* is an 8-bit unsigned integer that represents the number of slot assignments contained in the message. The unit of measure is slots.
+
+###### **Slot Number**
+
+*Slot\_Number* is a 16-bit unsigned integer that represents the Fixed rate based Slot Number assigned to the NIU.
+
+###### **Fixed rate Start**
+
+*Fixedrate\_Start* – This 16-bit unsigned number represents the starting slot within the fixed rate access region that is assigned to the NIU. The NIU may use the next *Frame\_length* slots of the fixed rate access regions.
+
+###### **Fixed rate Distance**
+
+*Fixedrate\_Distance* – This 16-bit unsigned number represents the distance in slots between additional slots assigned to the NIU. The NIU is assigned all slots that are a multiple of *Fixedrate\_Distance* from the *Fixedrate\_Start\_slot* which do not exceed *Fixedrate\_End\_slot*. The NIU may use the next *Frame\_length* slots. of the fixed rate access regions from each of these additional slots.
+
+###### **Fixed rate End**
+
+*Fixedrate\_End* – This 16-bit unsigned number indicates the last slot that may be used for fixed rate access. The slots assigned to the NIU, as determined by using the *Fixedrate\_Start\_slot*, the *Fixedrate\_Distance* and the *Frame\_length*, cannot exceed this number.
+
+##### **A.5.5.5.2 Connect Response (upstream contention, reserved or contention access)**
+
+The CONNECT RESPONSE MESSAGE is sent to the INA from the NIU in response to the CONNECT MESSAGE. The message shall be transmitted on the upstream frequency specified in the CONNECT MESSAGE (see Table A.27).
+
+**Table A.27/J.112 – Connect response message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|----------------------|------|-------|----------------------------|
+| Connect_Response() { | | | |
+| Connection_ID | 32 | 4 | |
+| } | | | |
+
+###### **Connection ID**
+
+Connection\_ID is a 32-bit unsigned integer representing a global connection Identifier for the NIU Dynamic Connection.
+
+##### **A.5.5.5.3 Connect Confirm (singlecast downstream)**
+
+The Connect Confirm message is sent from the INA to the NIU (see Table A.28).
+
+**Table A.28/J.112 – Connect Confirm message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|----------------------|------|-------|----------------------------|
+| Connect_Confirm() { | | | |
+| Connection_ID | 32 | 4 | |
+| } | | | |
+
+###### **Connection ID**
+
+Connection\_ID is a 32-bit unsigned integer representing a global connection Identifier for the NIU Dynamic Connection.
+
+#### **A.5.5.6 Data connections**
+
+A connection is initiated by the INA using the Connect Message explained in A.5.5.5.1. This message is either used to immediately assign time slots for a fixed rate connection or just to assign a connection ID and related parameters without time slot assignment. In particular, for reservation or contention access, no time slots are assigned in the Connect Message, but the connection ID shall be used in requests for slots by the NIU.
+
+##### **Connection Assignment**
+
+The INA can assign other connections by using the **Connect message** described previously. The NIU cannot request a connection, it must be initiated by higher layers.
+
+##### **Connection Release**
+
+This subclause defines the MAC signalling requirements for connection release. Figure A.33 displays the signalling flow for releasing a connection. The NIU cannot release a connection, this must be initiated by higher layers. This message is thus initiated by the INA only:
+
+- 1) Upon receiving the **Release Message** from the INA, the NIU shall tear down the upstream connection established for the specified Connection\_ID.
+- 2) Upon teardown of the upstream connection, the NIU shall send the **Release Response Message** on the upstream channel previously assigned for that connection.
+
+
+
+```
+
+sequenceDiagram
+ participant NRC
+ participant NIU/STB
+ Note right of NIU/STB: T0904750-97/d042
+ NRC->>NIU/STB: Release Message
+ NIU/STB-->>NRC: Release Response
+
+```
+
+Sequence diagram showing connection release signalling between NRC and NIU/STB. The NRC sends a Release Message to the NIU/STB, and the NIU/STB responds with a Release Response. The diagram is labeled T0904750-97/d042.
+
+Figure A.33/J.112 – Connection release signalling
+
+##### ** Release Message (singlecast downstream)**
+
+The ** Release Message** is sent from the INA to the NIU to terminate a previously established connection (see Table A.29).
+
+Table A.29/J.112 – Release message structure
+
+| | Bits | Bytes | Bit number/ Description |
+|-------------------------------------------|------|-------|----------------------------|
+| Release_Message() { | | | |
+| Number_of_Connections | 8 | 1 | |
+| for (i=0; iConnection_ID | 32 | 4 | |
+| } } | | | |
+
+###### *Connection ID*
+
+*Connection\_ID* is a 32-bit unsigned integer representing a global connection Identifier for the NIU Dynamic Connection.
+
+##### ** Release Response (upstream contention, reserved or contention)**
+
+The ** RELEASE RESPONSE MESSAGE** is sent by the NIU to the INA to acknowledge the release of a connection. The format of the message is shown in Table A.30.
+
+Table A.30/J.112 – Release Response message structure
+
+| | Bits | Bytes | Bit number/ Description |
+|-------------------------------|------|-------|----------------------------|
+| Release_Response_Message () { | | | |
+| Connection_ID | 32 | 4 | |
+| } | | | |
+
+###### *Connection ID*
+
+*Connection\_ID* is a 32-bit unsigned integer representing the global connection Identifier used by the NIU for this connection.
+
+##### **A.5.5.6.1 Fixed rate access**
+
+Fixed rate access is provided by the INA using the ** Connect Message**.
+
+##### A.5.5.6.2 Contention based access
+
+The NIU shall use contention based slots specified by the slot boundary definition fields (Rx) to transmit contention based messages (see A.5.3). The format of contention based MAC messages is described by the MAC message format (see A.5.5.2.3).
+
+##### A.5.5.6.3 Reservation access
+
+This subclause defines the MAC signalling requirements for reservation access. Figure A.34 displays the signalling flow for reserving an access:
+
+- 1) The NIU shall wait for a Reservation ID Assignment Message from the INA before it can request reservation access.
+- 2) At any time when needed after receiving the reservation ID, the NIU can request a certain number of slots to the INA using the Reservation Request Message.
+- 3) The INA shall respond to that message using the Reservation Grant Message.
+- 4) If the NIU has not received the Reservation Grant Message before the Grant\_Protocol\_Timeout, it shall send a Reservation Status Request to the INA. This leads back to 3).
+
+
+
+```
+
+sequenceDiagram
+ participant INA
+ participant NIU
+ Note right of INA: INA
+ Note left of NIU: NIU
+ INA->>NIU: Reservation ID Assignment Message
+ NIU-->>INA: Reservation ID Response Message
+ NIU->>INA: Reservation Request Message
+ INA->>NIU: Reservation Grant Message
+ Note right of INA: T0904760-97/d043
+
+```
+
+Sequence diagram showing reservation access signalling between INA and NIU. The sequence is: INA sends Reservation ID Assignment Message to NIU; NIU sends Reservation ID Response Message to INA; NIU sends Reservation Request Message to INA; INA sends Reservation Grant Message to NIU. The diagram is labeled T0904760-97/d043.
+
+Figure A.34/J.112 – Reservation access signalling
+
+##### Reservation ID Assignment Message (singlecast downstream)
+
+The Reservation ID Assignment Message is used to assign the NIU a Reservation\_ID. The NIU identifies its entry in the Reservation\_grant\_message by comparing the Reservation\_ID assigned to it by the Reservation\_ID\_assignment\_message and the entries in the Reservation\_Grant\_message.
+
+The format of the message is given in Table A.31.
+
+Table A.31/J.112 – Reservation ID assignment message structure
+
+| | Bits | Bytes | Bit number/ Description |
+|----------------------------------------|------|-------|----------------------------|
+| Reservation_ID_assignment_Message () { | | | |
+| Connection_ID | 32 | 4 | |
+| Reservation_ID | 16 | 2 | |
+| Grant_protocol_timeout | 16 | 2 | |
+| } | | | |
+
+###### *Connection ID*
+
+`Connection_ID` is a 32-bit unsigned integer representing a global connection identifier for the NIU Dynamic Connection.
+
+###### *Reservation\_ID*
+
+`Reservation_ID` is a 16-bit unsigned number representing a locally assigned identifier for the connection. This is used as a short identifier by the NIU to identify the appropriate `Reservation_Grant_Messages`.
+
+###### *Grant\_protocol\_timeout*
+
+`Grant_protocol_timeout` is a 16-bit unsigned number representing the time in milliseconds that the NIU should wait before verifying the status of pending grants. This parameter specifies the time that the NIU should wait after receiving the last `Reservation_grant_message`, with an entry addressed to the NIU, before initiating a reservation status request. If the NIU has pending grants and the timeout occurs, it should send the `Reservation_status_request` message to the INA. The INA will respond with the `Reservation_grant_message` (probably without granting any slots) to inform the NIU of any remaining slots left to be granted. This allows the NIU to correct any problems, should they exist, such as issuing an additional request for slots or waiting patiently for additional grants.
+
+###### ** Reservation ID Response Message (upstream, contention or reserved access)**
+
+The Reservation ID Response Message is used to acknowledge the receipt of the `Reservation_ID_Assignment` message.
+
+The format of the message is given below.
+
+| | Bits | Bytes | Bit number/ Description |
+|---------------------------------------------------|------|-------|----------------------------|
+| Reservation_ID_Response_Message () { | | | |
+| Connection_ID | 32 | 4 | |
+| Reservation_ID | 16 | 2 | |
+| } | | | |
+
+###### **Connection ID**
+
+`Connection_ID` is a 32-bit unsigned integer representing a global connection identifier for the NIU/STB Dynamic Connection.
+
+###### **Reservation\_ID**
+
+`Reservation_ID` is a 16-bit unsigned number representing a locally assigned identifier for the connection. This is used as a short identifier by the NIU/STB to identify the appropriate `Reservation_Grant_Messages`.
+
+##### ** Reservation Request Message (upstream contention, contention or reserved)**
+
+See Table A.32.
+
+**Table A.32/J.112 – Reservation Request message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|----------------------------------------------------|------|-------|----------------------------|
+| Reservation_Request_message () { | | | |
+| Reservation_ID | 16 | 2 | |
+| Reservation_request_slot_count | 8 | 1 | |
+| } | | | |
+
+This message is sent from the NIU to the INA.
+
+###### *Reservation\_ID*
+
+*Reservation\_ID* is a 16-bit unsigned number representing a locally assigned identifier for the connection. This is used as a short identifier by the NIU to identify the appropriate *Reservation\_Grant\_Messages*.
+
+###### *Reservation Request Slot Count*
+
+*Reservation\_request\_slot\_count* is an 8-bit unsigned number representing the number of slots requested by the NIU. This is the number of sequential slots that will be allocated in the reservation region of the upstream channel. The INA will respond with the *Reservation\_Grant* message granting the request.
+
+##### ** Reservation Grant Message (broadcast downstream)**
+
+The RESERVATION GRANT MESSAGE is used to indicate to the NIU which slots have been allocated in response to the *Reservation Request* message. The NIU identifies its entry in the *Reservation\_grant\_message* by comparing the *Reservation\_ID* assigned to it by the *Reservation\_ID\_assignment\_message* and the entries in the *Reservation\_Grant\_message*.
+
+The format of the message is given in Table A.33.
+
+**Table A.33/J.112 – Reservation Grant message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|---------------------------------------|------|-------|----------------------------|
+| Reservation_grant_message () { | | | |
+| Reference_slot | 16 | 2 | |
+| Number_grants | 8 | 1 | |
+| for (I=1; I<=Number_grants; I++){ | | | |
+| Reservation_ID | 16 | 2 | |
+| | | 2 | |
+| Grant_Slot_count | 4 | | 15-12 |
+| Remaining_slot_count | 5 | | 11-7 |
+| Grant_control | 2 | | 6-5 |
+| Grant_slot_offset | 5 | | 4-0 |
+| } | | | |
+| } | | | |
+
+###### *Reference\_slot*
+
+*Reference\_slot* is a 16-bit unsigned number indicating the reference point for the remaining parameters of this message. This represents a physical slot of the upstream channel. Since the upstream and downstream slots are not aligned, the INA shall send this message in a downstream slot such that it is received by the NIU before the *Reference\_slot* exists on the upstream channel.
+
+###### *Number\_grants*
+
+*Number\_grants* is an 8-bit unsigned number representing the number of grants contained within this message. This can either correspond to grants for different NIUs, or to different connection\_IDs for the same NIU.
+
+###### *Reservation\_ID*
+
+*Reservation\_ID* is a 16-bit unsigned number representing a locally assigned identifier for the connection. This is used as a short identifier by the NIU to identify the appropriate *Reservation\_Grant\_Messages*.
+
+###### *Grant\_slot\_count*
+
+*Grant\_slot\_count* is a 4-bit unsigned number representing the number of sequential slots currently granted for the upstream burst. Upon receipt of this message, the NIU is assigned *Grant\_slot\_count* sequential slots in the reservation access region of the upstream channel starting at the position indicated by the *Reference\_slot* and *Grant\_slot\_offset* values (jumps are needed in the case where the number of slots granted exceeds the length of the reservation access region). A value of zero indicates that no slots are being granted. This would typically be the case in a response to a *Reservation\_status\_request* message.
+
+###### *Remaining\_slot\_count*
+
+*Remaining\_slot\_count* is a 5-bit unsigned number representing the remaining slots to be granted by the INA with subsequent grant messages. A value of 0x1f indicates that 31 or more slots will be made available in the future. A value of 0x0 indicates that no additional slots will be granted in the future and that the slots granted in this message represent the only remaining slots available for the connection. The NIU should monitor this count to determine if sufficient slots remain to satisfy current needs. Should additional slots be required because of lost grant messages or additional demand, additional slots should be requested using the *Reservation\_request\_message*. Additional *Reservation\_request\_messages* shall be sent only when the *Remaining\_slot\_count* is less than 15. To minimize contention on the upstream channel, the *Reservation\_request\_message* may be sent in one of the slots granted by the *Reservation\_grant\_message*.
+
+###### *Grant\_Control*
+
+*Grant\_Control* is a 2-bit unsigned number coded as 0 (reserved for future use).
+
+###### *Grant\_slot\_offset*
+
+*Grant\_slot\_offset* is a 5-bit unsigned number representing the starting slot to be used for the upstream burst. This number is added to the *Reference\_slot* to determine the actual physical slot. Upon receipt of this message, the NIU is assigned *Grant\_slot\_count* sequential slots in the reservation access region of the upstream channel.
+
+##### ** Reservation Status Request (upstream contention, contention or reserved)**
+
+The RESERVATION STATUS REQUEST Message is used to determine the status of the outstanding grants to be assigned by the INA. This message is only sent after the Grant protocol time-out is exceeded. The INA will respond with the *Reservation\_grant\_message* (possibly without granting any slots) to inform the NIU of any remaining slots left to be granted. This allows the NIU to correct any problems, should they exist, such as issuing an additional request for slots or waiting patiently for additional grants.
+
+The format of the message is given in Table A.34.
+
+**Table A.34/J.112 – Reservation status request message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|------------------------------------------------|------|-------|----------------------------|
+| Reservation_Status_Request_Message () { | | | |
+| Reservation_ID | 16 | 2 | |
+| Remaining_request_slot_count | 8 | 1 | |
+| } | | | |
+
+###### *Reservation\_ID*
+
+*Reservation\_ID* is a 16-bit unsigned number representing a locally assigned identifier for the connection. This is used as a short identifier by the NIU to identify the appropriate *Reservation\_Grant\_Messages*.
+
+###### *Remaining\_request\_slot\_count*
+
+*Remaining\_request\_slot\_count* is an 8-bit unsigned number representing the number of slots that the NIU is expecting to be granted.
+
+#### A.5.5.7 MAC Link Management
+
+The MAC Link Management tasks provide continuous monitoring and optimization of upstream resources. These functions include:
+
+- Power and Timing Management;
+- Fixed rate Allocation Management;
+- Channel Error Management.
+
+##### A.5.5.7.1 Power and Timing Management
+
+Power and Timing Management shall provide continuous monitoring of upstream transmission from the NIU. The **Ranging and Power Calibration Message** is used to maintain a NIU within predefined thresholds of power and time.
+
+The Upstream Burst Demodulator shall continuously monitor the upstream burst transmissions from an NIU. Upon detection of an NIU outside the predefined range, the INA shall send the **Ranging and Power Calibration Message** to the NIU.
+
+##### A.5.5.7.2 TDMA Allocation Management
+
+To ensure optimum assignment of TDMA resources, the INA shall ensure the upstream allocation of TDMA resources for various connections remain intact when allocating resources to a new connection. However, in the event that reconfiguration is required to minimize fragmentation of resources, then the INA shall dynamically reconfigure the upstream TDMA assignments to a NIU or group of NIUs. The **Reprovision Message** is utilized to change previously established connection parameters.
+
+##### Reprovision Message (singlecast downstream)
+
+The REPROVISION MESSAGE is sent by the INA to the NIU to reassign upstream resources (maintaining the originally requested QOS parameters at the establishment of the connection.) This message is intended for Fixed rate based channel maintenance by the INA to redistribute or reassign resources allocated to a NIU (see Table A.35).
+
+**Table A.35/J.112 – Reprovision message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|---------------------------------------------------------------------|------|-------|----------------------------|
+| Reprovision_Message () { | | | |
+| Reprovision_Control_Field | 8 | 1 | |
+| Reserved | 2 | | 7-6 |
+| New_Downstream_IB_Frequency | 1 | | 5: {no, yes} |
+| New_Downstream_OOB_Frequency | 1 | | 4: {no, yes} |
+| New_Upstream_Frequency_Included | 1 | | 3: {no, yes} |
+| New_Frame_Length_Included | 1 | | 2: {no, yes} |
+| New_Cyclical_Assignment_Included | 1 | | 1: {no, yes} |
+| New_Slot_List_Included | 1 | | 0: {no, yes} |
+| if (Reprovision_Control_Field & = New_Downstream_IB_Frequency) { | | | |
+
+Table A.35/J.112 – Reprovision message structure (end)
+
+| | Bits | Bytes | Bit number/ Description |
+|--------------------------------------------------------------------------------------------------------------------|------|-------|------------------------------|
+| New_Downstream_IB_Frequency } | (32) | (4) | |
+| if (Reprovision_Control_Field & = New_Downstream_OOB_Frequency) { | | | |
+| New_Downstream_OOB_Frequency | (32) | (4) | |
+| DownStream_Type } | 8 | 1 | |
+| if (Reprovision_Control_Field & = New_Frequency_Included) { | | | |
+| New_Upstream_Frequency | (32) | (4) | |
+| New Upstream Parameters | | (2) | |
+| New_Upstream_Channel_Number | 3 | | 7:5 |
+| reserved | 2 | | 4:3 |
+| Upstream_Rate | 3 | | 2:0:enum |
+| MAC_Flag_Set | 5 | | 7:3 |
+| Reserved} | 3 | | 2:0 |
+| if (Connection_Control_Field & = New_Frame_Length_Included) { | | | |
+| New_Frame_Length} | (16) | (2) | 9:0: Unsigned |
+| if (Reprovision_Control_Field & = New_Slot_List_Included New_Cyclical_Assignment_Included) { | | | |
+| Number_of_Connections | (8) | (1) | |
+| for(i=0;i<Number_of_Connections;i++) { | | | |
+| Connection_ID | (32) | (1) | |
+| if (Reprovision_Control_Field & = new_slot_list_included) { | | | Fixed Rate Access |
+| Number_Slots_Defined | (8) | (1) | |
+| for(i=0;i<Number_Slots_Assigned;i++) { | | | |
+| Slot_Number | (16) | (2) | |
+| }} | | | |
+| if (Reprovision_Control_Field == new_cyclic_Assignment_included) { | | | Fixed Rate Access |
+| Fixedrate_Start | (16) | (2) | |
+| Fixedrate_Dist | (16) | (2) | |
+| Fixedrate_End | (16) | (2) | |
+| }}} | | | |
+
+###### *Reprovision Control Field*
+
+`Reprovision_Control_Field` specifies what modifications to upstream resources are included.
+
+###### *New Downstream OOB Frequency*
+
+`New_Upstream_OOB_Frequency` is a boolean that indicates that a new downstream OOB frequency is specified in the message.
+
+###### *New Downstream IB Frequency*
+
+`New_Upstream_IB_Frequency` is a boolean that indicates that a new downstream IB frequency is specified in the message.
+
+###### *New Upstream Frequency Included*
+
+`New_Upstream_Frequency_Included` is a boolean that indicates that a new upstream frequency is specified in the message.
+
+###### *New Frame Length Included*
+
+`New_Frame_Length_Included` is a boolean that indicates that a new upstream frame is specified in the message.
+
+###### *New Slot List Included*
+
+`New_Slot_List_Included` is a boolean that indicates that a new slot list is specified in the message.
+
+###### *New Cyclical Assignment Included*
+
+`New_Cyclical_Assignment_Included` is a boolean that indicates that a new cyclical assignment is specified in the message.
+
+###### *New Downstream IB Frequency*
+
+`New_Downstream_IB_Frequency` is a 32-bit unsigned integer representing the reassigned downstream IB carrier center frequency. The unit of measure is Hz.
+
+###### *New Downstream OOB Frequency*
+
+`New_Downstream_OOB_Frequency` is a 32-bit unsigned integer representing the reassigned downstream OOB carrier center frequency. The unit of measure is Hz.
+
+`DownStream_Type` is an 8-bit enumerated type indicating the modulation format for the down stream connection.
+{ reserved, QPSK\_1.544, QPSK\_3.088, 3..255 reserved }
+
+###### *New Upstream Frequency*
+
+`New_Upstream_Frequency` is a 32-bit unsigned integer representing the reassigned upstream carrier center frequency. The unit of measure is Hz.
+
+`UpstreamStream_Rate` is a 3-bit enumerated type indicating the data rate for the upstream connection.
+{ Upstream\_256K, Upstream\_1.544M, Upstream\_3.088M, 3..7 reserved }
+
+`MAC_Flag_Set` is a 5-bit field representing the MAC Flag set assigned to the connection. In the OOB downstream timing, the eight sets of flags are assigned the numbers 1-8. In the IB downstream timing, the 16 sets of flags are assigned the numbers 1-16. In the case of a 3.088 Mbit upstream channel, this parameter represents the first of two successively assigned flag sets.
+
+###### *New Frame Length*
+
+`New_Frame_Length` is a 16-bit unsigned integer representing the size of the reassigned upstream Fixed rate based frame. The unit of measure is in slots.
+
+###### *Number of Slots Defined*
+
+`Number_Slots_Defined` is an 8-bit unsigned integer that represents the number of slot assignments contained in the message. The unit of measure is slots.
+
+###### *Slot Number*
+
+`Slot_Number` is a 16-bit unsigned integer that represents the Fixed rate based Slot Number assigned to the Network Interface Unit.
+
+##### **A.5.5.7.3 Channel Error Management**
+
+During periods of connection inactivity, the NIU shall enter an Idle Mode. Idle Mode is characterized by periodic transmission by the NIU of a **Idle Message**. The Idle Mode transmission shall occur at a periodic rate sufficient for the INA to establish Packet Error Rate statistics.
+
+##### ** Idle Message (upstream contention or reserved)**
+
+The **Idle Message** is sent by the NIU within the STB to the INA at predefined intervals (between 1 and 10 minutes) when upstream connection buffers are empty (see Table A.36).
+
+**Table A.36/J.112 – Idle message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|------------------------------------|------|-------|----------------------------|
+| Idle_Message() { | | | |
+| Idle_Sequence_Count | 8 | 1 | |
+| Power_Control_Setting | 8 | 1 | |
+| } | | | |
+
+###### *Idle Sequence Count*
+
+`Idle_Sequence_Count` is an 8-bit unsigned integer representing the count of IDLE MESSAGES transmitted while the NIU is Idle.
+
+###### *Power Control Setting*
+
+`Power_Control_Setting` is an 8-bit unsigned integer representing the absolute power attenuation that the NIU is using for upstream transmission.
+
+##### **A.5.5.7.4 Link management messages**
+
+##### ** Transmission Control Message (singlecast or broadcast downstream)**
+
+The TRANSMISSION CONTROL MESSAGE is sent to the NIU from the INA to control several aspects of the upstream transmission. This includes stopping upstream transmission, re-enabling transmission from a NIU or group of NIU's and rapidly changing the upstream frequency being used by a NIU or group of NIU's. To identify a group of NIU's for switching frequencies, the TRANSMISSION CONTROL MESSAGE is sent in broadcast mode with the `Old_Frequency` included in the message. When broadcast with the `Old_Frequency`, the NIU shall compare its current frequency value to `Old_Frequency`. When equal, the NIU shall switch to the new frequency specified in the message. When unequal, the NIU shall ignore the new frequency and remain on its current channel (see Table A.37).
+
+**Table A.37/J.112 – Transmission Control message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|-----------------------------------------------------------------------------------------------------|-------------|------------|----------------------------|
+| Transmission_Control_Message() { | | | |
+| Transmission_Control_Field | 8 | | |
+| reserved | 3 | | 7-5: |
+| Stop_Upstream_Transmission | 1 | | 4: {no, yes} |
+| Start_Upstream_Transmission | 1 | | 3: {no, yes} |
+| Old_Frequency_Included | 1 | | 2: {no, yes} |
+| Switch_Downstream_OOB_Frequency | 1 | | 1: {no, yes} |
+| Switch_Upstream_Frequency | 1 | | 0: {no, yes} |
+| if (Transmission_Control_Field== Switch_Upstream_Frequency && Old_Frequency_Included) { | | | |
+| Old_Upstream_Frequency | (32) | (4) | |
+| } | | | |
+| if (Transmission_Control_Field== Switch_Upstream_Frequency) { | | | |
+| New_Upstream_Frequency | (32) | (4) | |
+| New_Upstream_Channel_Number | 3 | 1 | 7:5 |
+| reserved | 2 | | 4:3 |
+| Upstream_Rate | 3 | | 2:0 |
+| MAC_Flag_Set | 5 | 1 | 7:3 |
+| Reserved | 3 | | 2:0 |
+| New_Upstream_Frequency | (32) | (4) | |
+| } | | | |
+| if (Transmission_Control_Field== Switch_Downstream_OOB_Frequency && Old_Frequency_Included) { | | | |
+| Old_Downstream_OOB_Frequency | (32) | (4) | |
+| } | | | |
+| if (Transmission_Control_Field== Switch_Downstream_OOB_Frequency) { | | | |
+| New_Downstream_OOB_Frequency | (32) | (4) | |
+| DownStream_Type | 8 | 1 | |
+| } | | | |
+| } | | | |
+
+###### *Transmission Control Field*
+
+`Transmission_Control_Field` specifies the control being asserted on the upstream channel.
+
+###### *Stop Upstream Transmission*
+
+`stop_upstream_transmission` is a boolean when set indicates that the NIU should halt its upstream transmission.
+
+###### *Start Upstream Transmission*
+
+`start_upstream_transmission` is a boolean when set indicates that the Network Interface Unit should resume transmission on its upstream channel. The NIU shall respond to the ranging and power calibration message regardless of the setting of the `start_upstream_transmission` bit.
+
+###### *Old Frequency Included*
+
+`Old_Frequency_Included` is a boolean when set indicates that the Old Frequency value is included in the message and should be used to determine if a switch in frequency is necessary.
+
+###### *Switch Downstream OOB Frequency*
+
+`switch_downstream_OOB_frequency` is a boolean when set indicates that a new downstream OOB frequency is included in the message.
+
+###### *Switch Upstream Frequency*
+
+`switch_upstream_frequency` is a boolean when set indicates that a new upstream frequency is included in the message. Typically, the `switch_upstream_frequency` and the `stop_upstream_transmission` are set simultaneously to allow the NIU to stop transmission and change channel. This would be followed by the TRANSMISSION CONTROL MESSAGE with the `start_upstream_transmission` bit set.
+
+###### *Old Upstream Frequency*
+
+`Old_Upstream_Frequency` is a 32-bit unsigned integer representing the frequency that should be used by the NIU to compare with its current frequency to determine if a change in channel is required.
+
+###### *New Upstream Frequency*
+
+`New_Upstream_Frequency` is a 32-bit unsigned integer representing the reassigned upstream carrier center frequency. The unit of measure is Hz.
+
+`MAC_Flag_Set` is a 5-bit field representing the MAC Flag set assigned to the connection. In the OOB downstream timing, the eight sets of flags are assigned the numbers 1-8. In the IB downstream timing, the 16 sets of flags are assigned the numbers 1-16. In the case of a 3.088 Mbit upstream channel, this parameter represents the first of two successively assigned flag sets.
+
+`UpstreamStream_Rate` is a 3-bit enumerated type indicating the data rate for the upstream connection. {Upstream\_256K, Upstream\_1.544M, Upstream\_3.088M, 3..7 reserved}
+
+###### *Old Downstream OOB Frequency*
+
+`Old_Downstream_OOB_Frequency` is a 32-bit unsigned integer representing the frequency that should be used by the NIU to compare with its current frequency to determine if a change in channel is required.
+
+###### *New Downstream OOB Frequency*
+
+`New_Downstream_OOB_Frequency` is a 32-bit unsigned integer representing the reassigned downstream OOB carrier centre frequency. The unit of measure is Hz.
+
+`DownStream_Type` is an 8-bit enumerated type indicating the modulation format for the down stream connection. {reserved, QPSK\_1.544, QPSK\_3.088, 3..255 reserved}
+
+##### **Link Management Response Message (upstream contention, contention or reserved)**
+
+The LINK MANAGEMENT RESPONSE MESSAGE is sent by the NIU to the INA to indicate reception and processing of the previously sent Link Management Message. The format of the message is shown in Table A.38.
+
+**Table A.38/J.112 – Link Management Acknowledge message format**
+
+| | Bits | Bytes | Bit number/ Description |
+|-----------------------------------|------|-------|----------------------------|
+| Link_Management_Acknowledge() { | | | |
+| Link_Management_Msg_Number | 16 | 2 | |
+| } | | | |
+
+###### *Link Management Message Number*
+
+`Link_Management_Msg_Number` is a 16-bit unsigned integer representing the previously received link management message. The valid values for `Link_Management_Msg_Number` are shown in Table A.39.
+
+**Table A.39/J.112 – Link Management message number**
+
+| Message Name | Link_Management_Msg_Number |
+|------------------------------|-----------------------------------------|
+| Transmission Control Message | Transmission Control Message Type Value |
+| Reprovision Message | Reprovision Message Type Value |
+
+##### ** Status Request Message (downstream singlecast)**
+
+The STATUS REQUEST message is sent by the INA to the NIU to retrieve information about the NIU's health, connection information and error states. The INA can request either the address parameters, error information, connection parameters or physical layer parameters from the NIU. The INA can only request one parameter type at a time to a particular NIU (see Table A.40).
+
+**Table A.40/J.112 – Status Request message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|-----------------------------|------|-------|----------------------------|
+| Status_Request() { | | | |
+| Status_Control_Field | 8 | 1 | |
+| reserved | 5 | | 3-7: |
+| Status_Type | 3 | | 0-2:{enum type} |
+| } | | | |
+
+###### *Status Control Field*
+
+`Status_Control_Field` is a 3-bit enumerated type that indicates the status information the NIU should return.
+
+```
+enum Status_Control_Field {Address_Params, Error_Params,
+Connection_Params,Physical_Layer_Params, reserved 4..7};
+```
+
+##### ** Status Response Message (Upstream Contention, contention or reserved)**
+
+The STATUS RESPONSE MESSAGE is sent by the NIU in response to the STATUS REQUEST MESSAGE issued by the INA. The contents of the information provided in this message will vary depending on the request made by the INA and the state of the NIU. The message must be dissociated into separate messages if the resulting length of the message exceeds 40 bytes (see Table A.41).
+
+**Table A.41/J.112 – Status Response message structure**
+
+| | Bits | Bytes | Bit number/ Description |
+|----------------------------------------------------------------------|-------|-------|----------------------------|
+| Status_Response() { | | | |
+| NIU_Status | 32 | 4 | |
+| Response_Fields_Included | 8 | 1 | |
+| reserved | 4 | | 4-7: |
+| Address_Params_Included | 1 | | 3:{no, yes} |
+| Error_Information_Included | 1 | | 2:{no, yes} |
+| Connection_Params_Included | 1 | | 1:{no, yes} |
+| Physical_Layer_Params_Included | 1 | | 0:{no, yes} |
+| if (Response_Fields_Included == Address_Params_Included) { | | | |
+| NSAP_Address | (160) | (20) | |
+| MAC_Address | (48) | (6) | |
+| } | | | |
+| if (Response_Fields_Included == Error_Information_Included) { | | | |
+| Number_Error_Codes_Included | (8) | (1) | |
+| for(i=0;ii++) { | | | |
+| Error_Param_code | (8) | (1) | |
+| Error_Param_Value | (16) | (2) | |
+| } | | | |
+| } | | | |
+| if (Response_Fields_Included == Connection_Params_Included) { | | | |
+| Number_of_Connections | (8) | (1) | |
+| for(i=0;iConnection_ID | (32) | (4) | |
+| }} | | | |
+| if (Response_Fields_Included == Physical_Layer_Params_Included) { | | | |
+| Power_Control_Setting | (8) | (1) | |
+| Time_Offset_Value | (32) | (4) | |
+| Upstream_Frequency | (32) | (4) | |
+| Downstream_Frequency | (32) | (4) | |
+| } | | | |
+| } | | | |
+
+###### *NIU Status*
+
+`NIU_Status` is a 32-bit unsigned integer that indicates the current state of the NIU.
+
+| |
+|-----------------------------------------------------------------------------------------------------------------------------------------------|
+| NIU_Status { Calibration_Operation_Complete, Default_Connection_Established, Network_Address Registered, ,reserved}; |
+|-----------------------------------------------------------------------------------------------------------------------------------------------|
+
+###### *Response Fields Included*
+
+`Response_Fields_Included` is an 8-bit unsigned integer that indicates what parameters are contained in the upstream status response.
+
+###### *NSAP Address*
+
+`NSAP_Address` is a 20-byte address assigned to the NIU.
+
+###### *MAC Address*
+
+`MAC_Address` is a 6-byte address assigned to the NIU.
+
+###### *Number of Error Codes Included*
+
+`Number_Error_Codes_Included` is an 8-bit unsigned integer that indicates the number of error codes are contained in the response.
+
+###### *Error Parameter Code*
+
+`Error_Parameter_Code` is an 8-bit unsigned integers representing the type of error reported by the NIU (see Table A.42).
+
+**Table A.42/J.112 – Error parameter code**
+
+| Error Parameter Code Name | Error Parameter Code |
+|-------------------------------------------------|-----------------------------|
+| Framing_Bit_Error_Count | 0x00 |
+| Slot_Configuration_CRC_Error_Count | 0x01 |
+| Reed_Solomon_Error_Count | 0x02 |
+| ATM_Packet_Loss_Count | 0x03 |
+
+###### *Error Parameter Value*
+
+`Error_Parameter_Value` is a 16-bit unsigned integers representing error counts detected by the NIU.
+
+###### *Number of Connections*
+
+`Number_of_Connections` is an 8-bit unsigned integer that indicates the number of connections that are specified in the response. Specifically, if the number of connections is too large to have a MAC message with less than 40 bytes, it is possible to send separate messages with only the number of connections indicated in each message.
+
+###### *ConnectionID*
+
+`Connection_ID` is a 32-bit unsigned integer representing the global connection Identifier used by the NIU for this connection.
+
+###### *Power Control Setting*
+
+`Power_Control_Setting` is an 8-bit unsigned integer representing the absolute power attenuation that the NIU is using for upstream transmission.
+
+###### *Time Offset Value*
+
+`Time_Offset_Value` is a 16-bit short integer representing a relative offset of the upstream transmission timing. A negative value indicates an adjustment forward in time. A positive value indicates an adjustment back in time. The unit of measure is 100 ns.
+
+###### *Upstream Frequency*
+
+`Upstream_Frequency` is a 32-bit unsigned integer representing the channel assigned to the connection. The unit of measure is in Hz.
+
+###### *Downstream Frequency*
+
+`Downstream_Frequency` is a 32-bit unsigned integer representing the Frequency where the connection resides. The unit of measure is in Hz.
+
+# **Annex B**
+
+# **Data-over-cable radio frequency interface**
+
+## **B.1 Scope and purpose**
+
+### **B.1.1 Scope**
+
+This annex is derived from radio-frequency interface specifications for high-speed data-over-cable systems that have been developed in North America.
+
+### **B.1.2 Requirements**
+
+Throughout this Recommendation, the words that are used to define the significance of particular requirements are capitalized. These words are:
+
+- **"MUST"** This word or the adjective **"REQUIRED"** means that the item is an absolute requirement of this specification.
+- **"MUST NOT"** This phrase means that the item is an absolute prohibition of this specification.
+- **"SHOULD"** This word or the adjective **"RECOMMENDED"** means that there may exist valid reasons in particular circumstances to ignore this item, but the full implications should be understood and the case carefully weighed before choosing a different course.
+- **"SHOULD NOT"** This phrase means that there may exist valid reasons in particular circumstances when the listed behaviour is acceptable or even useful, but the full implications should be understood and the case carefully weighed before implementing any behaviour described with this label.
+- **"MAY"** This word or the adjective **"OPTIONAL"** means that this item is truly optional. One vendor may choose to include the item because a particular marketplace requires it or because it enhances the product, for example, another vendor may omit the same item.
+
+Other text is descriptive or explanatory.
+
+### B.1.3 Background
+
+#### B.1.3.1 Service goals
+
+Cable operators are interested in deploying high-speed data communications systems on cable television systems. Thus, it has been decided to prepare a series of interface specifications that will permit the early definition, design, development and deployment of data-over-cable systems on an uniform, consistent, open, non-proprietary, multi-vendor interoperable basis.
+
+The intended service will allow transparent bi-directional transfer of Internet Protocol (IP) traffic, between the cable system headend and customer locations, over an all-coaxial or Hybrid-Fiber/Coax (HFC) cable network. This is shown in simplified form in Figure B.1-1.
+
+The transmission path over the cable system is realized at the headend by a Cable Modem Termination System (CMTS), and at each customer location by a Cable Modem (CM). At the headend (or hub), the interface to the data-over-cable system is called the Cable Modem Termination System – Network-Side Interface (CMTS-NSI) and is specified in [MCNS3]. At the customer locations, the interface is called the cable-modem-to-customer-premises-equipment interface (CMCI) and is specified in [MCNS4]. The intent is for the MCNS operators to transparently transfer IP traffic between these interfaces, including but not limited to datagrams, DHCP, ICMP, and IP Group addressing (broadcast and multicast).
+
+
+
+The diagram illustrates the flow of IP traffic through a data-over-cable system. On the left, a box labeled 'Wide-Area Network' is connected via a double-headed arrow to a box labeled 'Cable Modem Termination System CMTS'. This connection is labeled 'CMTS Network Side Interface'. From the CMTS, a single-headed arrow points right through a box labeled 'Cable Network' to a box labeled 'Cable Modem (CM)'. From the CM, a double-headed arrow points right to a box labeled 'Customer Premises Equipment' (represented by a computer monitor and tower). This connection is labeled 'CM Customer Premises Equipment Interface'. A bracket underneath the CMTS, Cable Network, and CM is labeled 'Transparent IP traffic through the system'.
+
+Diagram of transparent IP traffic through the data-over-cable system
+
+T0904770-97/d044
+
+**Figure B.1-1/J.112 – Transparent IP traffic through the data-over-cable system**
+
+#### B.1.3.2 Reference architecture
+
+The reference architecture for the data-over-cable services and interfaces is shown in Figure B.1-2.
+
+##### B.1.3.2.1 Categories of interface specification
+
+The basic reference architecture of Figure B.1-2 involves three categories of interface. These have been developed in phases:
+
+###### a) Phase 1
+
+**Data Interfaces** – These are the CMCI [MCNS4] and CMTS-NSI [MCNS3], corresponding respectively to the cable-modem-to-Customer-Premises-Equipment (CPE) interface (for example, between the customer's computer and the cable modem), and the cable modem termination system network-side interface between the cable modem termination system and the data network.
+
+###### b) Phase 2
+
+**Operations Support Systems Interfaces** – These are network element management layer interfaces between the network elements and the high-level Operations Support Systems (OSSs) which support the basic business processes, and are documented in [MCNS5].
+
+**Telephone Return Interface** – CMTRI – This is the interface between the cable modem and a telephone return path, for use in cases where the return path is not provided or not available via the cable network, and is documented in [MCNS6].
+
+Recommendation J.112 (03/98)
+
+86
+
+
+
+Distribution Hub or Headend
+
+Operations Support System
+
+Data Over Cable System
+OSS Interface, DOCS-OSSI
+
+Cable Modem Termination System
+Downstream RF Interface
+
+Cable Modem Termination System
+Network Side Interface,
+CMTS-NSI
+
+Cable Modem Termination System
+
+Upstream splitter and filter bank
+
+Cable Modem Termination System Upstream RF Interface
+
+Security and Access Controller
+
+Telco Return Access Concentrator (TRAC)
+
+Copper Pairs, DS1 or DS3
+
+PSTN
+
+Generic Headend Switch or Backbone Transport Adapter
+
+WAN (Backbone Network)
+
+Local Server Facility
+
+Data Over Cable Security System (DOCSS)
+
+WAN (Remote Server Facility)
+
+Mod
+
+Demod
+
+Data
+
+Data
+
+Network Termination
+
+Video 1
+
+Video 2
+
+Combiner
+
+Tx
+
+Rx
+
+Fiber
+
+50-860 MHz
+
+5-42 MHz
+
+O/E Node
+
+Distribution Network
+
+O/E Node
+
+O/E Node
+
+Coax
+
+Cable Modem
+
+Security Module
+
+Removable Customer Premise Equipment
+
+Cable Modem to RF Interface
+
+Cable Modem to CPE Interface, CMCI
+
+Telco return
+
+Cable Modem Telco Return Interface, CMTRI
+
+Figure B.1-2/J.112 – Data-over-cable reference architecture. A complex block diagram showing the components and data flow of a cable data system. It connects external networks like PSTN and WAN to a Distribution Hub/Headend, which then connects via fiber and coax to customer premise equipment including cable modems and PCs.
+
+**Figure B.1-2/J.112 – Data-over-cable reference architecture**
+
+T0904780-97/d045
+
+###### **c) Phase 3**
+
+**RF Interfaces** – The RF interfaces defined in this Recommendation are the following:
+
+- between the cable modem and the cable network;
+- between the CMTS and the cable network, in the downstream direction (traffic toward the customer);
+- between the CMTS and the cable network, in the upstream direction (traffic from the customer).
+
+###### **Security requirements**
+
+- the Data Over Cable Security System (DOCSS) is defined in [MCNS2];
+- the CM Removable Security Module (RSM) is defined in [MCNS7];
+- Baseline data-over-cable security is defined in [MCNS8].
+
+##### **B.1.3.2.2 Data-Over-Cable Interface Documents**
+
+A list of the documents in the Data-Over-Cable Interface Specifications family is provided below. For updates, please refer to URL .
+
+| Designation | Title |
+|-------------|----------------------------------------------------------------------------------------------------------------------------------------------|
+| SP-CMCI | Cable Modem to Customer Premises Equipment Interface Specification |
+| SP-CMTS-NSI | Cable Modem Termination System Network Side Interface Specification |
+| SP-CMTRI | Cable Modem Telco Return Interface Specification |
+| SP-OSSI | Operations Support System Interface Specification |
+| SP-RFI | Radio Frequency Interface Specification |
+| SP-DOCSS | Data Over Cable Security System (DOCSS) Specification |
+| SP-RSM | Removable Security Module Specification |
+| SP-BDS | Baseline Data-Over-Cable Security Specification |
+| SP | Specification |
+| TR | Technical Report (provides a context for understanding and applying the specification – documents of this type may be issued in the future.) |
+
+#### **B.1.3.3 Server location**
+
+This annex refers to several servers which are central to the system operation (e.g. provision and security servers).
+
+The message sequence charts used as examples within this annex show sample message exchanges in which access to the servers is via the CMTS. It is important to note that access to these servers need not necessarily be via the CMTS, but MAY be via any CM suitably configured. In this case, the scenarios become slightly more complex, as the message flows are as shown in Figure B.1-3. Allowing placement of these components to be at locations other than the CMTS allows the system operator the maximum flexibility in server placement and network configuration. Note that the CMTS MUST be able to initialize without access to the servers in Figure B.1-3.
+
+## **B.2 Functional assumptions**
+
+This subclause describes the characteristics of cable television plant to be assumed for the purposes of operation of the data-over-cable system. It is not a description of CMTS or CM parameters. The data-over-cable system MUST operate satisfactorily in the environment described in this subclause.
+
+
+
+Message flows:
+
+CM1 ↔ CMTS ↔ CM2 ↔ Server
+
+T0904790-97/d046
+
+Figure B.1-3/J.112 – Server location not at CMTS. The diagram shows a CMTS connected to a bus. CM1 is connected to the bus. CM2 is connected to the bus and to a Servers box. Below this, a section titled 'Message flows:' shows a sequence of boxes: CM1, CMTS, CM2, and Server. Arrows indicate bidirectional message flow between CM1 and CMTS, CMTS and CM2, and CM2 and Server.
+
+**Figure B.1-3/J.112 – Server location not at CMTS**
+
+### B.2.1 Broadband access network
+
+A coaxial-based broadband access network is assumed. This may take the form of either an all-coax or Hybrid-Fiber/Coax (HFC) network. The generic term "cable network" is used here to cover all cases.
+
+A cable network uses a shared-medium, tree-and-branch architecture with analogue transmission. The key functional characteristics assumed in this annex are the following:
+
+- Two-way transmission.
+- A maximum optical/electrical spacing between the CMTS and the most distant customer terminal of 100 miles, although typical maximum separation may be 10-15 miles.
+- A maximum differential optical/electrical spacing between the CMTS and the closest and most distant modems of 100 miles, although this would typically be limited to 15 miles.
+
+### B.2.2 Equipment assumptions
+
+#### B.2.2.1 Frequency plan
+
+In the downstream direction, the cable system is assumed to have a passband with a lower edge at 50 or 54 MHz and an upper edge which is implementation-dependent but is typically in the range of 300 to 860 MHz. Within that passband, NTSC analogue television signals in 6 MHz channels are assumed to be present on the standard, HRC or IRC frequency plans of EIA Interim Standard IS-6, as well as other narrowband and wideband digital signals.
+
+In the upstream direction, the cable system may have a subsplit (5-30 MHz) or extended subsplit (5-42 MHz) passband. NTSC analogue television signals in 6-MHz channels may be present, as well as other signals.
+
+#### B.2.2.2 Compatibility with other services
+
+The CM and CMTS MUST coexist with the other services on the cable network. In particular:
+
+- a) they MUST operate satisfactorily in cable spectrum assigned for CMTS-CM interoperation while the balance of the cable spectrum is occupied by any combination of television and other signals; and
+- b) they MUST NOT cause harmful interference to any other services that are assigned to the cable network in spectrum outside of that allocated to the CMTS.
+
+#### B.2.2.3 Fault isolation impact on other users
+
+As the data-over-cable system is a shared-media, point-to-multipoint system, fault-isolation procedures MUST take into account the potential harmful impact of faults and fault-isolation procedures on numerous users of the data-over-cable and other services.
+
+### B.2.3 RF channel assumptions
+
+The data-over-cable system, configured with at least one set of defined physical-layer parameters (e.g. modulation, forward error correction, symbol rate, etc.) from the range of configuration settings described in this specification, must be capable of operating with a 1500-byte packet loss rate of less than one percent while forwarding at least 100 packets per second on cable networks having characteristics defined in B.2.3.
+
+#### B.2.3.1 Transmission downstream
+
+The RF channel transmission characteristics of the cable network in the downstream direction assumed for the purposes of minimal operating capability are described in Table B.2-1. This assumes nominal analogue video carrier level (peak envelope power) in a 6 MHz channel bandwidth. All conditions are present concurrently.
+
+**Table B.2-1/J.112 – Assumed downstream RF channel transmission characteristics**
+
+| Parameter | Value |
+|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Frequency range | Cable system normal downstream operating range is from 50 MHz to as high as 860 MHz. However, the values in this table apply only at frequencies $\geq 88$ MHz. |
+| RF channel spacing (design bandwidth) | 6 MHz |
+| Transit delay from headend to most distant customer | $\leq 0.800$ ms (typically much less) |
+| Carrier-to-noise ratio in a 6 MHz band (analogue video level) | Not less than 35 dB (Note 4) |
+| Carrier-to-interference ratio for total power (discrete and broadband ingress signals) | Not less than 35 dB within the design bandwidth |
+| Composite triple beat distortion for analogue modulated carriers | Not greater than $-50$ dBc within the design bandwidth |
+| Composite second order distortion for analogue modulated carriers | Not greater than $-50$ dBc within the design bandwidth |
+| Cross-modulation level | Not greater than $-40$ dBc within the design bandwidth |
+| Amplitude ripple | 0.5 dB within the design bandwidth |
+| Group delay ripple in the spectrum occupied by the CMTS | 75 ns within the design bandwidth |
+| Micro-reflections bound for dominant echo | $-10$ dBc @ $\leq 0.5$ $\mu$ s, $-15$ dBc @ $\leq 1.0$ $\mu$ s $-20$ dBc @ $\leq 1.5$ $\mu$ s, $-30$ dBc @ $> 1.5$ $\mu$ s |
+| Carrier hum modulation | Not greater than $-26$ dBc (5%) |
+| Burst noise | Not longer than 25 $\mu$ s at a 10 Hz average rate |
+| Seasonal and diurnal signal level variation | 8 dB |
+| Signal level slope, 50-750 MHz | 16 dB |
+| Maximum analogue video carrier level at the CM input, inclusive of above signal level variation | 17 dBmV |
+| Lowest analogue video carrier level at the CM input, inclusive of above signal level variation | $-5$ dBmV |
+| NOTE 1 – Transmission is from the headend combiner to the CM input at the customer location. | |
+| NOTE 2 – For measurements above, the normal downstream operating frequency band (except hum), impairments are referenced to the highest-frequency NTSC carrier level. | |
+| NOTE 3 – For hum measurements above, the normal downstream operating frequency band, a continuous-wave carrier is sent at the test frequency at the same level as the highest-frequency NTSC carrier. | |
+| NOTE 4 – This presumes that the digital carrier is operated at analogue peak carrier level. When the digital carrier is operated below the analogue peak carrier level, this C/N may be less. | |
+| NOTE 5 – Measurement methods defined in [NCTA] or [CableLabs2]. | |
+
+#### B.2.3.2 Transmission upstream
+
+The RF channel transmission characteristics of the cable network in the upstream direction assumed for the purposes of minimal operating capability are described in Table B.2-2. All conditions are present concurrently.
+
+**Table B.2-2/J.112 – Assumed upstream RF channel transmission characteristics**
+
+| Parameter | Value |
+|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|
+| Frequency range | 5 to 42 MHz edge to edge |
+| Transit delay from the most distant CM to the nearest CM or CMTS | $\leq 0.800$ ms (typically much less) |
+| Carrier-to-noise ratio | Not less than 25 dB |
+| Carrier-to-ingress power (the sum of discrete and broadband ingress signals) ratio | Not less than 25 dB (Note 2) |
+| Carrier-to-interference (the sum of noise, distortion, common-path distortion and cross-modulation) ratio | Not less than 25 dB |
+| Carrier hum modulation | Not greater than $-23$ dBc (7.0 %) |
+| Burst noise | Not longer than $10\ \mu\text{s}$ at a 1 kHz average rate for most cases (Notes 3, 4 and 5) |
+| Amplitude ripple | 5-42 MHz: 0.5 dB/MHz |
+| Group delay ripple | 5-42 MHz: 200 ns/MHz |
+| Micro-reflections – Single echo | $-10$ dBc @ $\leq 0.5\ \mu\text{s}$ $-20$ dBc @ $\leq 1.0\ \mu\text{s}$ $-30$ dBc @ $> 1.0\ \mu\text{s}$ |
+| Seasonal and diurnal signal level variation | Not greater than 8 dB min to max |
+| NOTE 1 – Transmission is from the CM output at the customer location to the headend. | |
+| NOTE 2 – Ingress avoidance or tolerance techniques MAY be used to ensure operation in the presence of time-varying discrete ingress signals that could be as high as 0 dBc [CableLabs1]. | |
+| NOTE 3 – Amplitude and frequency characteristics sufficiently strong to partially or wholly mask the data carrier. | |
+| NOTE 4 – CableLabs report containing distribution of return-path burst noise measurements and measurement method is forthcoming. | |
+| NOTE 5 – Impulse noise levels more prevalent at lower frequencies ( $<15$ MHz). | |
+
+##### B.2.3.2.1 Availability
+
+Typical cable network availability is considerably greater than 99 %.
+
+### B.2.4 Transmission levels
+
+The nominal power level of the downstream CMTS 64 QAM signal(s) within a 6 MHz channel is targeted to be in the range $-10$ dBc to $-6$ dBc relative to analogue video carrier level and will normally not exceed analogue video carrier level. The nominal power level of the upstream CM signal(s) will be as low as possible to achieve the required margin above noise and interference. Uniform power loading per unit bandwidth is commonly followed in setting upstream signal levels, with specific levels established by the cable network operator to achieve the required carrier-to-noise and carrier-to-interference ratios.
+
+### B.2.5 Frequency inversion
+
+There will be no frequency inversion in the transmission path in either the downstream or upstream directions, i.e. a positive change in frequency at the input to the cable network will result in a positive change in frequency at the output.
+
+## B.3 Communication protocols
+
+This subclause provides a high-level overview of the communication protocols that MUST be used in the data-over-cable system. Detailed specifications for the physical media dependent, downstream transmission, and media access control sublayers are provided in B.4, B.5, and B.6, respectively.
+
+### B.3.1 Protocol stack
+
+The CM and CMTS operate as forwarding agents and also as end-systems (hosts). The protocol stacks used in these modes differ as shown below.
+
+The principal function of the cable modem system is to transmit Internet Protocol (IP) packets transparently between the headend and the subscriber location. Certain management functions also ride on IP, so that the protocol stack on the cable network is as shown in Figure B.3-1 (this does not restrict the generality of IP transparency between the headend and the customer). These management functions include, for example, supporting spectrum management functions and the downloading of software.
+
+#### B.3.1.1 CM and CMTS as hosts
+
+CMs and CMTSs will operate as IP and LLC hosts in terms of IEEE Standard 802 [IEEE 802] for communication over the cable network. The protocol stack at the CM and CMTS RF interfaces is shown in Figure B.3-1.
+
+The CM and CMTS MUST function as IP hosts. As such, the CM and CMTS MUST support IP and ARP over DIX link-layer framing (see [DIX]). The CM and CMTS MAY also support IP and ARP over SNAP framing [RFC-1042].
+
+The CM and CMTS also MUST function as LLC hosts. As such, the CM and CMTS MUST respond appropriately to TEST and XID requests per [ISO/IEC 8802-2].
+
+
+
+The diagram illustrates the protocol stack on the RF interface. At the top, four boxes representing management protocols (SNMP, TFTP, DHCP, and Security Management) are connected to a single UDP layer. Below UDP is the IP, ICMP layer. To the right of the IP, ICMP layer is an ARP layer, which is connected to the IP, ICMP layer and the LLC/DIX layer. Below the IP, ICMP layer is the LLC/DIX layer. Below the LLC/DIX layer is the Link Security layer. Below the Link Security layer is the MAC layer. Below the MAC layer is the Transmission Convergence (downstream only) layer. At the bottom is the PMD layer. The layers are stacked vertically, with lines connecting them to show the flow of data.
+
+T0905990-97/d047
+
+Protocol stack diagram on the RF interface showing layers from SNMP down to PMD.
+
+Figure B.3-1/J.112 – Protocol stack on the RF interface
+
+#### B.3.1.2 Data forwarding through the CM and CMTS
+
+##### B.3.1.2.1 General
+
+Data forwarding through the CMTS MAY be transparent bridging, or MAY employ network-layer forwarding (routing, IP switching) as shown in Figure B.3-2.
+
+
+
+Figure B.3-2/J.112 – Data forwarding through the CM and CMTS. This diagram shows two protocol stacks: CMTS stack and CM stack. The CMTS stack has an IP layer at the top, followed by a Data Link Layer containing Forwarding, 802.2/DIX LLC, Link security, Cable MAC, Downstream Trans Conv, and Cable PMD. The CM stack has an IP layer at the top, followed by 802.2/DIX LLC, Transparent bridging, 802.2/DIX LLC, Link security, Cable MAC, Downstream Trans Conv, Cable PMD, 802.3/DIX MAC, and 802.3 10Base-T. Arrows indicate interfaces: CMTS-NSI Interface to/from Network Equipment on the left, Cable Network Transmission in the center, and CMCI Interface to/from Customer Premises Equipment on the right. Reference T0906000-97/d048 is shown.
+
+Figure B.3-2/J.112 – Data forwarding through the CM and CMTS
+
+Data forwarding through the CM is link-layer transparent bridging, as shown in Figure B.3-2. Forwarding rules are similar to [ISO/IEC 10038] with the modifications described in B.3.1.2.2 and B.3.1.2.3. This allows the support of multiple network layers.
+
+Forwarding of IP traffic MUST be supported. Support of other network layer protocols is OPTIONAL. The ability to restrict the network layer to a single protocol such as IP is REQUIRED.
+
+Support for the 802.1d spanning tree protocol of [ISO/IEC 10038] with the modifications described in B.3.1.2.3 is OPTIONAL for CMs intended for residential use. CMs intended for commercial use and bridging CMTSs MUST support this version of spanning tree (see Appendix B.VIII). CMs and CMTSs MUST include the ability to filter (and disregard) 802.1d BPDUs.
+
+This specification assumes that CMs intended for residential use will not be connected in a configuration which would create network loops such as that shown in Figure B.3-3.
+
+
+
+Figure B.3-3/J.112 – Example condition for network loops. This diagram shows a network topology. A CMTS is connected to a Cable network. The Cable network branches to two CMs, CM #1 and CM #2. Both CM #1 and CM #2 are connected to a Local ISO 8802 network. The Local ISO 8802 network is connected to a CPE. Reference T0906010-97/d049 is shown.
+
+Figure B.3-3/J.112 – Example condition for network loops
+
+##### **B.3.1.2.2 CMTS forwarding rules**
+
+At the CMTS, if link-layer forwarding is used, then it **MUST** conform to the following general 802.1d guidelines:
+
+- Link-layer frames between a given pair of end-stations **MUST** be delivered in order.
+- Link-layer frames **MUST NOT** be duplicated.
+- Stale frames (those that cannot be delivered in a timely fashion) **MUST** be discarded.
+
+The address-learning and -aging mechanisms used are vendor-dependent.
+
+If network-layer forwarding is used, then the CMTS should conform to IETF Router Requirements [RFC-1812] with respect to its CMTS-RFI and CMTS-NSI interfaces.
+
+Conceptually, the CMTS forwards data packets at two abstract interfaces: between the CMTS-RFI and the CMTS-NSI, and between the upstream and downstream channels. The CMTS **MAY** use any combination of link-layer (bridging) and network-layer (routing) semantics at each of these interfaces. The methods used at the two interfaces need not be the same.
+
+Forwarding between the upstream and downstream channels within a MAC layer differs from traditional LAN forwarding in that:
+
+- A single channel is simplex, and cannot be considered a complete interface for most protocol (e.g. 802.1d spanning tree, Routing Information Protocol per [RFC-1058]) purposes.
+- Upstream channels are essentially point-to-point, whereas downstream channels are shared-media.
+- As a public network, policy decisions may override full connectivity.
+
+For these reasons, an abstract entity called the MAC Forwarder exists within the CMTS to provide connectivity between stations within a MAC domain (see B.3.2).
+
+### **B.3.1.2.3 CM forwarding rules**
+
+Data forwarding through the CM is link-layer bridging with the following specific rules.
+
+#### **B.3.1.2.3.1 Address learning**
+
+- The CM **MUST** acquire Ethernet MAC addresses of connected CPE devices, either from the provisioning process or from learning, until the CM acquires its maximum number of CPE addresses (a device-dependent value). Once the CM acquires its maximum number of CPE addresses, then newly discovered CPE addresses **MUST NOT** replace previously acquired addresses. The CM must support acquisition of at least one CPE address.
+- The CM **MUST** allow configuration of CPE addresses during the provisioning process (up to its maximum number of CPE addresses) to support configurations in which learning is not practical nor desired.
+- Addresses provided during the CM provisioning **MUST** take preference over learned addresses.
+- CPE addresses **MUST NOT** be aged out.
+- On a CM reset (e.g. a power cycle), all learned addresses **MUST** be discarded (they are not retained in non-volatile storage, to allow modification of user MAC addresses or movement of the CM).
+
+#### **B.3.1.2.3.2 Forwarding**
+
+CM forwarding in both directions **MUST** conform to the following general 802.1d guidelines:
+
+- Link-layer frames between a given pair of end-stations **MUST** be delivered in order.
+- Link-layer frames **MUST NOT** be duplicated.
+- Stale frames (those that cannot be delivered in a timely fashion) **MUST** be discarded.
+
+Cable-Network-to-Ethernet forwarding MUST follow the following specific rules:
+
+- Frames addressed to unknown destinations MUST NOT be forwarded from the cable port to the Ethernet port.
+- Broadcast frames MUST be forwarded to the Ethernet port, unless they are from source addresses which are provisioned or learned as supported CPE devices, in which case they MUST NOT be forwarded.
+- Multicast frames MUST be forwarded to the Ethernet ports in accordance with filtering configuration settings specified by the cable operator's operations and business support systems, unless they are from source addresses which are provisioned or learned as supported CPE devices, in which case they MUST NOT be forwarded.
+
+Ethernet-to-Cable-Network forwarding MUST follow the following specific rules:
+
+- Frames addressed to unknown destinations MUST be forwarded from the Ethernet port to the cable port.
+- Broadcast frames MUST be forwarded to the cable port.
+- Multicast frames MUST be forwarded to the cable port in accordance with filtering configuration settings specified by the cable operator's operations and business support systems.
+- Frames from source addresses other than those provisioned or learned as supported CPE devices MUST NOT be forwarded.
+- If a single-user CM has learned a supported address, it MUST NOT forward data from a second source. Other (non-supported) CPE source addresses MUST be learned from the Ethernet port and this information used to filter local traffic as in a traditional learning bridge.
+- If a single-user CM has learned A as its supported CPE device and learned B as a second device connected to the Ethernet port, it MUST filter any traffic from A to B.
+
+### B.3.2 The MAC Forwarder
+
+The MAC Forwarder is a MAC sublayer that resides on the CM/MTS just below the MAC Service Access Point (MSAP) interface, as shown in Figure B.3-4. It is responsible for delivering upstream frames to:
+
+- one or more downstream channels;
+- the MSAP interface.
+
+
+
+The diagram illustrates the internal architecture of a CM/MTS. At the top, two boxes represent the 'RFI-NSI forwarding process' and the 'Host IP stack, Incl. LLC and 802.2/DIX'. Both are connected to a thick horizontal line representing the 'MAC Service Access Point (MSAP) interface'. Below this interface is a dashed box labeled 'MAC'. Inside this box, the 'MAC Forwarder' and 'Link security' sublayers are shown. The 'MAC Forwarder' is connected to the MSAP interface and has bidirectional arrows pointing to the 'Link security' sublayer. The 'Link security' sublayer is connected to the 'Upstream and downstream channels' at the bottom. To the left of the MAC box, a 'CM/MTS-NSI' block is shown, which is also connected to the MSAP interface and has bidirectional arrows pointing to the 'Upstream and downstream channels'. The entire structure is enclosed in a dashed box labeled 'CM/MTS'. A small text 'T0906020-97/d050' is visible in the bottom right corner of the diagram area.
+
+Diagram of the MAC Forwarder architecture within a CM/MTS. The diagram shows the flow of data between the Host IP stack, RFI-NSI forwarding process, MAC Service Access Point (MSAP) interface, MAC Forwarder, Link security, and CM/MTS-NSI, all connected to Upstream and downstream channels.
+
+Figure B.3-4/J.112 – MAC Forwarder
+
+In Figure B.3-4, the LLC sublayer and link security sublayers of the upstream and downstream channels on the cable network terminate at the MAC Forwarder.
+
+The MSAP interface user MAY be the NSI-RFI Forwarding process or the CMTS's host protocol stack.
+
+Delivery of frames may be based on data-link-layer (bridging) semantics, network-layer (routing) semantics, or some combination. Higher-layer semantics may also be employed (e.g. filters on UDP port numbers). The CMTS MUST provide IP connectivity between hosts attached to cable modems, and must do so in a way that meets the expectations of Ethernet-attached customer equipment. For example, the CMTS must either forward ARP packets or it must facilitate a proxy ARP service. The CMTS MAC Forwarder MAY provide service for non-IP protocols.
+
+Note that there is no requirement that all upstream and downstream channels be aggregated under one MSAP as shown above. The vendor could just as well choose to implement multiple MSAPs, each with a single upstream and downstream channel.
+
+#### **B.3.2.1 Example rules for Data-Link-Layer forwarding**
+
+If the MAC Forwarder is implemented using only data-link-layer semantics, then the requirements in this subclause apply.
+
+Delivery of frames is dependent on the Destination Address within the frame. The means of learning the location of each address is vendor-dependent, and MAY include:
+
+- transparent-bridging-like source-address learning and aging;
+- gleaning from MAC Registration Request messages;
+- administrative means.
+
+If the destination address of a frame is unicast, and that address is associated with a particular downstream channel, then the frame MUST be forwarded to that channel1.
+
+If the destination address of a frame is unicast, and that address is known to reside on the other (upper) side of the MSAP interface, then the frame MUST be delivered to the MSAP interface.
+
+If the destination address is broadcast, multicast2, or unknown, the frame MUST BE delivered to both the MSAP and to all downstream channels.
+
+Delivery rules are similar to those for transparent bridging:
+
+- Frames from a specific source to a particular destination MUST be delivered in order.
+- Frames MUST NOT be duplicated.
+- Frames that cannot be delivered in a timely fashion MUST be discarded.
+- The Frame Check Sequence SHOULD be preserved rather than regenerated.
+
+#### **B.3.3 Network Layer**
+
+As stated above, the purpose of the data-over-cable system is to transport IP traffic transparently through the system.
+
+The Network Layer protocol is the Internet Protocol (IP) version 4, as defined in RFC-791, and migrating to IP version 6.
+
+This annex imposes no requirements for reassembly of IP packets.
+
+#### **B.3.4 Above the Network Layer**
+
+The subscribers will be able to use the transparent IP capability as a bearer for higher-layer services. Use of these services will be transparent to the CM.
+
+---
+
+1 Vendors may implement extensions, similar to static addresses in 802.1d/ISO 10038 bridging, that cause such frames to be filtered or handled in some other manner.
+
+2 The all-CMTSs multicast address (see Appendix B.I) is an exception. 802.1d/ISO 10038 Spanning Tree Bridge PDUs must be forwarded.
+
+In addition to the transport of user data, there are several network management and operation capabilities which depend upon the Network Layer. These include:
+
+- SNMP (Simple Network Management Protocol, [RFC-1157]), for network management.
+- TFTP (Trivial File Transfer Protocol, [RFC-1350]), a file transfer protocol, for downloading software and configuration information.
+- DHCP (Dynamic Host Configuration Protocol, DHCP [RFC-1541]), a framework for passing configuration information to hosts on a TCP/IP network.
+- A security management protocol as defined in [MCNS2].
+
+### **B.3.5 Data Link Layer**
+
+The Data Link Layer is divided into sublayers in accordance with [IEEE 802], with the addition of Link-Layer security in accordance with [MCNS2] and [MCNS8]. The sublayers, from the top, are:
+
+- Logical Link Control (LLC) sublayer (Class 1 only);
+- Link-Layer security sublayer;
+- Media Access Control (MAC) sublayer.
+
+#### **B.3.5.1 LLC sublayer**
+
+The LLC sublayer MUST be provided in accordance with [ISO/IEC 10039]. Address resolution MUST be used as defined in [RFC-826]. The MAC-to-LLC service definition is specified in [ISO/IEC 10039].
+
+#### **B.3.5.2 Link-layer security sublayer**
+
+Link-layer security MUST be provided in accordance with [MCNS2] and [MCNS8].
+
+#### **B.3.5.3 MAC sublayer**
+
+The definition, in detail, of the MAC sublayer and associated interfaces is provided in B.6.
+
+The MAC sublayer defines a single transmitter for each downstream channel – the CMTS. All CMs listen to all frames transmitted on the downstream channel upon which they are registered and accept those where the destinations match the CM itself or CPEs reached via the CMCI port. CMs can communicate with other CMs only through the CMTS.
+
+The upstream channel is characterized by many transmitters (CMs) and one receiver (the CMTS). Time in the upstream channel is slotted, providing for Time Division Multiple Access at regulated time ticks. The CMTS provides the time reference and controls the allowed usage for each interval. Intervals may be granted for transmissions by particular CMs, or for contention by all CMs. CMs may contend to request transmission time. To a limited extent, CMs may also contend to transmit actual data. In both cases, collisions can occur and retries are used.
+
+Subclause B.6 describes the MAC-sublayer messages from the CMTS which direct the behaviour of the CMs on the upstream channel, as well as messaging from the CMs to the CMTS.
+
+##### **B.3.5.3.1 Overview**
+
+Some of the MAC protocol highlights include:
+
+- bandwidth allocation controlled by CMTS;
+- a stream of mini-slots in the upstream;
+- dynamic mix of contention- and reservation-based upstream transmit opportunities;
+- bandwidth efficiency through support of variable-length packets;
+- extensions provided for future support of ATM or other Data PDU;
+- class-of-service support;
+- Extensions provided for security at the Data Link layer;
+- Support for a wide range of data rates.
+
+### **B.3.5.3.2 MAC service definition**
+
+The MAC sublayer service definition is in Appendix B.IV.
+
+## **B.3.6 Physical layer**
+
+The Physical (PHY) layer is comprised of two sublayers:
+
+- Transmission Convergence sublayer (present in the downstream direction only).
+- Physical Media Dependent (PMD) sublayer.
+
+### **B.3.6.1 Downstream Transmission Convergence sublayer**
+
+The Downstream Transmission Convergence sublayer exists in the downstream direction only. It provides an opportunity for additional services over the physical-layer bitstream. These additional services might include, for example, digital video. Definition of any such additional services is beyond the scope of this annex.
+
+This sublayer is defined as a continuous series of 188-byte MPEG [ITU-T H.222.0] packets, each consisting of a 4-byte header followed by 184 bytes of payload. The header identifies the payload as belonging to the data-over-cable MAC. Other values of the header may indicate other payloads. The mixture of payloads is arbitrary and controlled by the CMTS.
+
+The Downstream Transmission Convergence sublayer is defined in B.5.
+
+### **B.3.6.2 PMD sublayer**
+
+#### **B.3.6.2.1 Overview**
+
+The PMD sublayer involves digitally modulated RF carriers on the analogue cable network.
+
+In the downstream direction, the PMD sublayer is based on [ITU-T J.83 B], with the exceptions called out in B.4.3.2, and includes these features:
+
+- 64 and 256 QAM modulation formats;
+- 6-MHz occupied spectrum coexists with all other signals on the cable plant;
+- concatenation of Reed-Solomon block code and Trellis code supports operation in a higher percentage of North American cable networks;
+- variable-depth interleaver supports both latency-sensitive and -insensitive data.
+
+The features in the upstream direction are as follows:
+
+- flexible and programmable CM under control of the CMTS;
+- frequency agility;
+- time division multiple access;
+- QPSK and 16 QAM modulation formats;
+- support of both fixed-frame and variable-length PDU formats;
+- multiple symbol rates;
+- programmable Reed-Solomon block coding;
+- programmable preambles.
+
+#### **B.3.6.2.2 Interface points**
+
+Three RF interface points are defined at the PMD sublayer:
+
+- a) downstream output on the CMTS;
+- b) upstream input on the CMTS;
+- c) cable in/out at the cable modem.
+
+Separate downstream output and upstream input interfaces on the CMTS are required for compatibility with typical downstream and upstream signal combining and splitting arrangements in headends.
+
+## **B.4 Physical media dependent sublayer specification**
+
+### **B.4.1 Scope**
+
+This specification defines the electrical characteristics and protocol for a Cable Modem (CM) and Cable Modem Termination System (CMTS). It is the intent of this specification to define an interoperable CM and CMTS such that any implementation of a CM can work with any CMTS. It is not the intent of this specification to imply any specific implementation.
+
+### **B.4.2 Upstream**
+
+#### **B.4.2.1 Overview**
+
+The upstream Physical Media Dependent (PMD) sublayer uses a FDMA/TDMA burst modulation format, which provides five symbol rates and two modulation formats (QPSK and 16QAM). The modulation format includes pulse shaping for spectral efficiency, is carrier-frequency agile, and has selectable output power level. The PMD sublayer format includes a variable-length modulated burst with precise timing beginning at boundaries spaced at integer multiples of 6.25 µs apart (which is 16 symbols at the highest data rate).
+
+Each burst supports a flexible modulation, symbol rate, preamble, randomization of the payload, and programmable FEC encoding.
+
+All of the upstream transmission parameters associated with burst transmission outputs from the CM are configurable by the CMTS via MAC messaging. Many of the parameters are programmable on a burst-by-burst basis.
+
+The PMD sublayer can support a near-continuous mode of transmission, wherein ramp-down of one burst MAY overlap the ramp-up of the following burst, so that the transmitted envelope is never zero. The system timing of the TDMA transmissions from the various CMs MUST provide that the centre of the last symbol of one burst and the centre of the first symbol of the preamble of an immediately following burst are separated by at least the duration of five symbols. The guard time MUST be greater than or equal to the duration of five symbols plus the maximum timing error. Timing error is contributed by both the CM and CMTS. CM timing performance is specified in B.4. Maximum timing error and guard time may vary with CMTSs from different vendors.
+
+The upstream modulator is part of the cable modem which interfaces with the cable network. The modulator contains the actual electrical-level modulation function and the digital signal-processing function; the latter provides the FEC, preamble prepend, symbol mapping, and other processing steps. This specification is written with the idea of buffering the bursts in the signal processing portion, and with the signal processing portion:
+
+- 1) accepting the information stream a burst at a time;
+- 2) processing this stream into a complete burst of symbols for the modulator; and
+- 3) feeding the properly-timed bursted symbol stream to a memoryless modulator at the exact burst transmit time.
+
+The memoryless portion of the modulator only performs pulse shaping and quadrature upconversion.
+
+At the Demodulator, similar to the Modulator, there are two basic functional components: the demodulation function and the signal processing function. Unlike the Modulator, the Demodulator resides in the CMTS and the specification is written with the concept that there will be one demodulation function (not necessarily an actual physical demodulator) for each carrier frequency in use. The demodulation function would receive all bursts on a given frequency.
+
+NOTE – The unit design approach should be cognizant of the multiple-channel nature of the demodulation and signal processing to be carried out at the headend, and partition/share functionality appropriately to optimally leverage the multi-channel application. A Demodulator design supporting multiple channels in a Demodulator unit may be appropriate.
+
+The demodulation function of the Demodulator accepts a varying-level signal centred around a commanded power level and performs symbol timing and carrier recovery and tracking, burst acquisition, and demodulation. Additionally, the demodulation function provides an estimate of burst timing relative to a reference edge, an estimate of received signal power, an estimate of signal-to-noise ratio, and may engage adaptive equalization to mitigate the effects of:
+
+- a) echoes in the cable plant;
+- b) narrowband ingress; and
+- c) group delay.
+
+The signal-processing function of the Demodulator performs the inverse processing of the signal-processing function of the Modulator. This includes accepting the demodulated burst data stream and decoding, etc., and possibly multiplexing the data from multiple channels into a single output stream. The signal-processing function also provides the edge-timing reference and gating-enable signal to the demodulators to activate the burst acquisition for each assigned burst slot. The signal-processing function may also provide an indication of successful decoding, decoding error, or fail-to-decode for each code word and the number of corrected Reed-Solomon symbols in each code word. For every upstream burst, the CMTS has a prior knowledge of the exact burst length in symbols (see B.4.2.6, B.4.2.10.1 and B.I.2).
+
+#### **B.4.2.2 Modulation formats**
+
+The upstream modulator MUST provide both QPSK and 16 QAM modulation formats.
+
+The upstream demodulator MUST support QPSK, 16 QAM, or both modulation formats.
+
+##### **B.4.2.2.1 Modulation rates**
+
+The upstream modulator MUST provide QPSK at 160, 320, 640, 1280, and 2560 ksym/s, and 16 QAM at 160, 320, 640, 1280, and 2560 ksym/s.
+
+This variety of modulation rates, and flexibility in setting upstream carrier frequencies, permits operators to position carriers in gaps in the pattern of narrowband ingress, as discussed in Appendix B.VI.
+
+The upstream symbol rate MUST be fixed for each upstream frequency.
+
+##### **B.4.2.2.2 Symbol mapping**
+
+The modulation mode (QPSK or 16 QAM) is programmable. The symbols transmitted in each mode and the mapping of the input bits to the I and Q constellation MUST be as defined in Table B.4-1. In the table, $I_1$ is the MSB of the symbol map, $Q_1$ is the LSB for QPSK, and $Q_0$ is the LSB for 16 QAM. $Q_1$ and $I_0$ have intermediate bit positions in 16 QAM. The MSB MUST be the first bit in the serial data into the symbol mapper.
+
+**Table B.4-1/J.112 – I/Q mapping**
+
+| QAM mode | Input bit definitions |
+|-----------------|------------------------------|
+| QPSK | $I_1 Q_1$ |
+| 16 QAM | $I_1 Q_1 I_0 Q_0$ |
+
+The upstream QPSK symbol mapping MUST be as shown in Figure B.4-1.
+
+
+
+A diagram of the QPSK symbol mapping. It features a vertical axis labeled $Q_1$ and a horizontal axis labeled $I_1$ . The four quadrants contain the following bit pairs:
+
+| | |
+|----|----|
+| 01 | 11 |
+| 00 | 10 |
+
+T0904800-97/d051
+
+QPSK symbol mapping diagram showing four quadrants with bit pairs 01, 11, 00, and 10.
+
+**Figure B.4-1/J.112 – QPSK symbol mapping**
+
+The 16 QAM non-inverted (Gray-coded) symbol mapping MUST be as shown in Figure B.4-2.
+
+
+
+A diagram of the 16 QAM Gray-coded symbol mapping. It features a vertical axis labeled $Q$ and a horizontal axis labeled $I$ . The symbols are arranged in a 4x4 grid as follows:
+
+| | | | |
+|------|------|------|------|
+| 0111 | 0101 | 1101 | 1111 |
+| 0110 | 0100 | 1100 | 1110 |
+| 0010 | 0000 | 1000 | 1010 |
+| 0011 | 0001 | 1001 | 1011 |
+
+T0904810-97/d052
+
+16 QAM Gray-coded symbol mapping diagram showing a 4x4 grid of 16 symbols.
+
+**Figure B.4-2/J.112 – 16 QAM Gray-coded symbol mapping**
+
+The 16 QAM differential symbol mapping MUST be as shown in Figure B.4-3.
+
+
+
+Figure B.4-3/J.112 – 16 QAM differential-coded symbol mapping. A constellation diagram showing 16 points in a 4x4 grid on an I-Q plane. The points are labeled with 5-bit binary sequences. The quadrants are: Top-Left (0111, 0110, 0101, 0100), Top-Right (1101, 1111, 1100, 1110), Bottom-Left (0010, 0000, 0011, 0001), and Bottom-Right (1000, 1001, 1010, 1011). The axes are labeled I (horizontal) and Q (vertical). A small text 'T0904820-97/d053' is at the bottom right.
+
+Figure B.4-3/J.112 – 16 QAM differential-coded symbol mapping
+
+If differential quadrant encoding is enabled, then the currently-transmitted symbol quadrant is derived from the previously-transmitted symbol quadrant and the current input bits via Table B.4-2.
+
+Table B.4-2/J.412 – Derivation of currently-transmitted symbol quadrant
+
+| Current input bits I(1) Q(1) | Quadrant phase change | MSBs of previously transmitted symbol | MSBs for currently transmitted symbol |
+|---------------------------------|--------------------------|------------------------------------------|------------------------------------------|
+| 00 | 0° | 11 | 11 |
+| 00 | 0° | 01 | 01 |
+| 00 | 0° | 00 | 00 |
+| 00 | 0° | 10 | 10 |
+| 01 | 90° | 11 | 01 |
+| 01 | 90° | 01 | 00 |
+| 01 | 90° | 00 | 10 |
+| 01 | 90° | 10 | 11 |
+| 11 | 180° | 11 | 00 |
+| 11 | 180° | 01 | 10 |
+| 11 | 180° | 00 | 11 |
+| 11 | 180° | 10 | 01 |
+| 10 | 270° | 11 | 10 |
+| 10 | 270° | 01 | 11 |
+| 10 | 270° | 00 | 01 |
+| 10 | 270° | 10 | 00 |
+
+#### B.4.2.2.3 Spectral shaping
+
+The upstream PMD sublayer MUST support a 25% Nyquist square root raised cosine shaping.
+
+The occupied spectrum MUST NOT exceed the channel widths shown in Table B.4-3.
+
+**Table B.4-3/J.112 – Maximum channel width**
+
+| Symbol rate (ksym/s) | Channel width (kHz) a) |
+|------------------------------------------------------|-----------------------------------|
+| 160 | 200 |
+| 320 | 400 |
+| 640 | 800 |
+| 1280 | 1600 |
+| 2560 | 3200 |
+| a) Channel width is the –30 dB bandwidth. | |
+
+#### B.4.2.2.4 Upstream frequency agility and range
+
+The upstream PMD sublayer MUST support operation over the frequency range of 5-42 MHz edge-to-edge.
+
+Offset frequency resolution MUST be supported having a range of $\pm 32$ kHz (increment = 1 Hz; implement within $\pm 10$ Hz).
+
+#### B.4.2.2.5 Spectrum format
+
+The upstream modulator MUST provide operation with the format $s(t) = I(t) * \cos(\omega t) - Q(t) * \sin(\omega t)$ , where $t$ denotes time and $\omega$ denotes angular frequency.
+
+### B.4.2.3 FEC Encode
+
+#### B.4.2.3.1 FEC Encode modes
+
+The upstream modulator MUST be able to provide the following selections: Reed-Solomon codes over GF(256) with $T = 1$ to 10 or no FEC coding.
+
+The following Reed-Solomon generator polynomial MUST be supported:
+
+$$g(x) = (x + \alpha^0)(x + \alpha^1)\dots(x + \alpha^{2T-1})$$
+
+where the primitive element alpha is 0x02 hex
+
+The following Reed-Solomon primitive polynomial MUST be supported:
+
+$$p(x) = x^8 + x^4 + x^3 + x^2 + 1$$
+
+The upstream modulator MUST provide code words from a minimum size of 18 bytes (16 information bytes [ $k$ ] plus two parity bytes for $T = 1$ error correction) to a maximum size of 255 bytes ( $k$ -bytes plus parity-bytes). The uncoded word size can have a minimum of one byte.
+
+In Shortened Last Code Word mode, the CM MUST provide the last code word of a burst shortened from the assigned length of $k$ data bytes per code word as described in B.4.2.10.1.2.
+
+The value of $T$ MUST be configured in response to the Upstream Channel Descriptor from the CMTS.
+
+### B.4.2.3.2 FEC Bit-to-symbol ordering
+
+The input to the Reed-Solomon Encoder is logically a serial bit stream from the MAC layer of the CM, and the first bit of the stream MUST be mapped into the MSB of the first Reed-Solomon symbol into the encoder. The MSB of the first symbol out of the encoder MUST be mapped into the first bit of the serial bit stream fed to the Scrambler.
+
+Note that the MAC byte-to-serial upstream convention calls for the byte LSB to be mapped into the first bit of the serial bit stream per B.6.2.1.3.
+
+### B.4.2.4 Scrambler (Randomizer)
+
+The upstream modulator MUST implement a scrambler (shown in Figure B.4-4) where the 15-bit seed value MUST be arbitrarily programmable.
+
+At the beginning of each burst, the register is cleared and the seed value is loaded. The seed value MUST be used to calculate the scrambler bit which is combined in an XOR with the first bit of data of each burst (which is the MSB of the first symbol following the last symbol of the preamble).
+
+The scrambler seed value MUST be configured in response to the Upstream Channel Descriptor from the CMTS.
+
+The polynomial MUST be $x^{15} + x^{14} + 1$ .
+
+
+
+The diagram illustrates the internal structure of a scrambler. At the top, a 'Seedload/Frame reset' input is connected to the initialization of a 15-bit shift register. The register is composed of 'Delay element 1', 'Delay element 2', 'Delay element 3', followed by a gap (indicated by dashed lines), then 'Delay element N-2', 'Delay element N-1', and finally 'Delay element N'. The 'Seed LSB' is input to the first delay element, and the 'Seed MSB' is input to the last delay element. The output of 'Delay element N' is labeled 'N = 15'. This output is connected to an 'XOR' gate (represented by a circle with an 'X'). The other input to this 'XOR' gate is the 'Randomizer data input'. The output of this 'XOR' gate is the 'Randomizer data output'. This output is also fed back into the 'Delay element 1' to complete the shift register loop. A second 'XOR' gate is shown at the bottom, which performs the XOR operation between the 'Randomizer data input' and the feedback signal from the shift register to produce the final 'Randomizer data output'.
+
+Figure B.4-4/J.112 – Scrambler structure diagram. The diagram shows a 15-bit shift register (Delay elements 1 to N) initialized by Seed LSB and Seed MSB inputs via a Seedload/Frame reset line. The output of Delay element N (N=15) is XORed with the Randomizer data input to produce the Randomizer data output. The output is also fed back through a series of delay elements (1, 2, 3, ..., N-2, N-1) to generate the scrambling sequence.
+
+Figure B.4-4/J.112 – Scrambler structure
+
+### B.4.2.5 Preamble prepend
+
+The upstream PMD sublayer MUST support a variable-length preamble field that is prepended to the data after they have been randomized and Reed-Solomon encoded.
+
+The first bit of the Preamble Pattern is the first bit into the symbol mapper (see Figure B.4-8), and is $I_1$ in the first symbol of the burst (see B.4.2.2.2). The first bit of the Preamble Pattern is designated by the Preamble Value Offset as described in Table B.6-15, B.6.3.2.2.
+
+The value of the preamble that is prepended MUST be programmable and the length MUST be 0, 2, 4, ..., or 1024 bits for QPSK and 0, 4, 8, ..., or 1024 bits for 16 QAM. Thus, the maximum length of the preamble is 512 QPSK symbols or 256 QAM symbols.
+
+The preamble length and value MUST be configured in response to the Upstream Channel Descriptor message transmitted by the CMTS.
+
+#### B.4.2.6 Burst profiles
+
+The transmission characteristics are separated into three portions:
+
+- a) Channel parameters;
+- b) Burst Profile attributes; and
+- c) User Unique parameters.
+
+The Channel parameters include:
+
+- i) the symbol rate (five rates from 160 ksym/s to 2.56 Msym/s in octave steps);
+- ii) the center frequency (Hz); and
+- iii) the 1024-bit Preamble Superstring.
+
+The Channel parameters are further described in B.6.3.2.2, Table B.6-14; these characteristics are shared by all users on a given channel. The Burst Profile Attributes are listed in Table B.4-4, and are further described in B.6.3.2.2, Table B.6-15; these parameters are the shared attributes corresponding to a burst type. The User Unique Parameters may vary for each user even when using the same burst type on the same channel as another user (for example, Power Level) and are listed in Table B.4-5.
+
+**Table B.4-4/J.112 – Burst Profile attributes**
+
+| Burst Parameter attributes | Configuration settings |
+|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|
+| Modulation | QPSK, 16 QAM |
+| Diff Enc | On/Off |
+| Preamble Length | 0-1024 bits (B.4.2.5) |
+| Preamble Value offset | 0 to 1022 |
+| FEC Error Correction (T bytes) | 0 to 10 (0 implies FEC = off) |
+| FEC Code word Information Bytes (k) | Fixed: 16 to 253 (assuming FEC on) Shortened: 16 to 253 (assuming FEC on) |
+| Scrambler Seed | 15 bits |
+| Maximum Burst Length (minislots) (Note) | 0 to 255 |
+| Guard Time | 5 to 255 Symbols |
+| Last Code word Length | Fixed, shortened |
+| Scrambler On/Off | On/Off |
+| NOTE – A burst length of 0 mini-slots in the Channel Profile means that the burst length is variable on that channel for that burst type. The burst length, while not fixed, is granted explicitly by the CMTS to the CM in the MAP. | |
+
+**Table B.4-5/J.112 – User Unique Burst parameters**
+
+| User Unique parameter | Configuration settings |
+|--------------------------------------------------------------------------------|----------------------------------------------------------------------|
+| Power Level (Note) | +8 to +55 dBmV (16 QAM) +8 to +58 dBmV (QPSK) 1 –dB steps |
+| Offset Frequency (Note) | Range = $\pm 32$ kHz; increment = 1 Hz; implement within $\pm 10$ Hz |
+| Ranging Offset | 0 to $(2^{16} - 1)$ , increments of 6.25 $\mu$ sec/64 |
+| Burst Length (mini-slots) if variable on this channel (changes burst-to-burst) | 1 to 255 mini-slots |
+| Transmit Equalizer Coefficients (Note) (advanced modems only) | Up to 64 coefficients; 4 bytes per coefficient: 2 real and 2 complex |
+| NOTE – Values in table apply for this given channel and symbol rate. | |
+
+The CM MUST generate each burst at the appropriate time as conveyed in the mini-slot grants provided by the CMTS MAPs (see B.6.3.2.3).
+
+The CM MUST support all burst profiles commanded by the CMTS via the Burst Descriptors in the UCD (see B.6.3.2.2), and subsequently assigned for transmission in a MAP (see B.6.3.2.3).
+
+The CM MUST implement the Offset Frequency to within $\pm 10$ Hz.
+
+Ranging Offset is the delay correction applied by the CM to the CMTS Upstream Frame Time derived at the CM, in order to synchronize the upstream transmissions in the TDMA scheme. The Ranging Offset is an advancement equal to roughly the round-trip delay of the CM from the CMTS. The CMTS MUST provide feedback correction for this offset to the CM, based on reception of one or more successfully received bursts (i.e. satisfactory result from each technique employed: error correction and/or CRC), with accuracy within 1/2 symbol and resolution of 1/64 of the frame tick increment ( $6.25 \mu\text{s}/64 = 0.09765625 \mu\text{s} = 1/4$ the symbol duration of the highest symbol rate = $10.24 \text{ MHz}^{-1}$ ). The CMTS sends adjustments to the CM, where a negative value implies the Ranging Offset is to be decreased, resulting in later times of transmission at the CM. CM MUST implement the correction with resolution of at most 1 symbol duration (of the symbol rate in use for a given burst), and (other than a fixed bias) with accuracy within $\pm 0.25 \mu\text{s}$ plus $\pm 1/2$ symbol owing to resolution. The accuracy of CM burst timing of $\pm 0.25 \mu\text{s}$ plus $\pm 1/2$ symbol is relative to the mini-slot boundaries derivable at the CM based on an ideal processing of the timestamp signals received from the CMTS.
+
+The CM MUST be capable of switching burst profiles with no reconfiguration time required between bursts except for changes in the following parameters:
+
+- 1) Output Power;
+- 2) Modulation;
+- 3) Symbol Rate;
+- 4) Offset frequency;
+- 5) Channel Frequency; and
+- 6) Ranging Offset.
+
+For Symbol Rate, Offset frequency and Ranging Offset, the CM MUST be able to transmit consecutive bursts as long as the CMTS allocates at least 96 symbols in between the last symbol centre of one burst and the first symbol centre of the following burst. The maximum reconfiguration time of 96 symbols should compensate for the ramp down time of one burst and the ramp up time of the next burst as well as the overall transmitter delay time including the pipeline delay and optional pre-equalizer delay. For modulation type changes, the CM MUST be able to transmit consecutive bursts as long as the CMTS allocates at least 96 symbols in between the last symbol centre of one burst and the first symbol centre of the following burst. Output Power, Symbol Rate, Offset frequency, Channel Frequency and Ranging Offset MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS. Transmitted Output Power, Symbol Rate, Offset frequency, Channel Frequency and Ranging Offset MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted. The modulation MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted, EXCLUDING the effect of the transmit equalizer (if present in the CM). (This is to be verified with the transmit equalizer providing no filtering; delay only, if that. Note that if the CMTS has decision feedback in its equalizer, it may need to provide more than the 96 symbol gap between bursts of different modulation type which the same CM may use; this is a CMTS decision.) Negative ranging offset adjustments will cause the 96 symbol guard to be violated. The CMTS must assure that this does not happen by allowing extra guard time between bursts that is at least equal to the amount of negative ranging offset.
+
+If Channel Frequency is to be changed, then the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 100 ms between the last symbol centre of one burst and the first symbol of the following burst.
+
+The Channel Frequency of the CM MUST be settled within the phase noise and accuracy requirements of B.4.2.9.5 and B.4.2.9.6 within 100 ms from the beginning of the change.
+
+If Output Power is to be changed by 1 dB or less, then the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 5 $\mu$ s between the last symbol centre of one burst and the first symbol centre of the following burst.
+
+If Output Power is to be changed by more than 1 dB, then the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 10 $\mu$ s between the last symbol centre of one burst and the first symbol centre of the following burst.
+
+The Output Power of the CM MUST be settled to within $\pm 0.1$ dB of its final output power level:
+
+- a) within 5 $\mu$ s from the beginning of a change of 1 dB or less; and
+- b) within 10 $\mu$ s from the beginning of a change of greater than 1 dB.
+
+The output transmit power MUST be maintained constant within a TDMA burst to within less than 0.1 dB (excluding the amount theoretically present due to pulse shaping, and amplitude modulation in the case of 16 QAM).
+
+#### **B.4.2.7 Burst timing convention**
+
+Figure B.4-5 illustrates the nominal burst timing.
+
+Figure B.4-6 indicates worst-case burst timing. In this example, burst N arrives 1.5 symbols late, and burst N + 1 arrives 1.5 symbols early, but separation of 5 symbols is maintained; 8-symbol guard band shown.
+
+At a symbol rate of $R_s$ , symbols occur at a rate of one each $T_s = 1/R_s$ seconds. Ramp up and Ramp down are the spread of a symbol in the time domain beyond $T_s$ duration owing to the symbol-shaping filter. If only one symbol were transmitted, its duration would be longer than $T_s$ due to the shaping filter impulse response being longer than $T_s$ . The spread of the first and last symbols of a burst transmission effectively extends the duration of the burst to longer than $N * T_s$ , where N is the number of symbols in the burst.
+
+#### **B.4.2.8 Transmit power requirements**
+
+The upstream PMD sublayer MUST support varying the amount of transmit power. Requirements are presented for:
+
+- 1) the range of commanded transmit power;
+- 2) the step size of the power commands; and
+- 3) the accuracy (actual output power compared to the commanded amount) of the response to the command.
+
+The mechanism by which power adjustments are performed is defined in B.7.2.5. Such adjustments MUST be within the ranges of tolerances described below.
+
+##### **B.4.2.8.1 Output power agility and range**
+
+The output transmit power in the design bandwidth MUST be variable over the range of +8 dBmV to 55 dBmV (16 QAM), or 58 dBmV (QPSK), in 1-dB steps.
+
+The absolute accuracy of the transmitted power MUST be $\pm 2$ dB, and the step size accuracy $\pm 0.4$ dB, with an allowance for hysteresis while switching in/out a step attenuator (e.g. 20 dB) in which case the accuracy requirement is relaxed to $\pm 1.4$ dB. For example, the actual power increase resulting from a command to increase the power level by 1 dB in a CM's next transmitted burst MUST be between 0.6 and 1.4 dB.
+
+The step resolution MUST be 1 dB or less. When a CM is commanded with finer resolution than it can implement, it MUST round to the nearest supported step size. If the commanded step is half way between two supported step sizes, the CM MUST choose the smaller step. For example, with a supported step resolution of 1 dB, a command to step $\pm 0.5$ dB would result in no step, while a command to step $\pm 0.75$ dB would result in a $\pm 1$ dB step.
+
+
+
+a) Nominal burst profile (no timing errors); 8-symbol guard band is illustrated; 10-symbol ramp up and ramp down is illustrated.
+
+Diagram a) shows a single burst profile with the following components and labels:
+
+- Ramp up**: The initial rising edge of the burst.
+- Preamble first symbol**: The start of the preamble sequence.
+- Preamble last symbol**: The end of the preamble sequence.
+- Data first symbol**: The start of the data payload.
+- Last FEC parity symbol**: The end of the data payload.
+- Ramp down**: The final falling edge of the burst.
+
+Diagram b) illustrates the timing reference and the relationship between consecutive bursts:
+
+- Timing is referenced to the symbol centre of the first symbol of each burst**: This is indicated by a vertical dashed line from the 'Centre of preamble First symbol'.
+- Centre of preamble First symbol = Mini-slot boundary**: This point defines the start of a mini-slot.
+- 10 symbols**: The duration of the ramp up and ramp down phases.
+- 8 symbols**: The guard band duration between the end of one burst's data and the start of the next burst's preamble.
+- Mini-slot boundary**: The start of the next burst's preamble.
+- Burst N** and **Burst N + 1**: Two consecutive bursts.
+- Preamble first symbol**: The start of the preamble for Burst N + 1.
+
+T0904840-97/d055
+
+Diagram of nominal burst timing showing two bursts, N and N+1. Burst N includes a ramp up, preamble, data, and ramp down. Burst N+1 starts with a preamble. Timing is referenced to the center of the first preamble symbol. A 10-symbol ramp duration and an 8-symbol guard band are indicated.
+
+NOTE – Ramp down of one burst can overlap ramp up of following burst even with one transmitter assigned both bursts.
+
+Figure B.4-5/J.112 – Nominal burst timing
+
+
+
+Worst-case burst timing input to CMTS
+
+Burst N + 1
+
+Burst N
+
+Symbol centre of Burst N, last symbol; 1.5 symbols late
+
+Symbol centre of Burst N + 1, last symbol; 1.5 symbols early
+
+Time equal to 5 symbols separates the first symbol centre of burst N + 1 and the last symbol centre of burst N
+
+8-symbol guard band
+
+1.5
+
+5 symbols
+
+Mini-slot boundary
+
+T0904850-97/d056
+
+Figure B.4-6/J.112 – Worst-case burst timing diagram. The diagram shows two bursts, Burst N and Burst N+1, with their symbol centers and timing parameters. Burst N is shown with a decreasing envelope, and Burst N+1 is shown with an increasing envelope. The diagram includes labels for 'Worst-case burst timing input to CMTS', 'Burst N', 'Burst N + 1', 'Symbol centre of Burst N, last symbol; 1.5 symbols late', 'Symbol centre of Burst N + 1, last symbol; 1.5 symbols early', 'Time equal to 5 symbols separates the first symbol centre of burst N + 1 and the last symbol centre of burst N', '8-symbol guard band', '1.5', '5 symbols', and 'Mini-slot boundary'. A reference code 'T0904850-97/d056' is also present.
+
+Figure B.4-6/J.112 – Worst-case burst timing
+
+#### B.4.2.9 Fidelity requirements
+
+##### B.4.2.9.1 Spurious emissions
+
+The noise and spurious power MUST NOT exceed the levels given in Tables B.4-6, B.4-7 and B.4-8.
+
+In Table B.4-6, In-band spurious includes noise, carrier leakage, clock lines, synthesizer spurious products, and other undesired transmitter products. It does not include ISI. The measurement bandwidth for In-band spurious is equal to the symbol rate (e.g. 160 kHz for 160 ksymb/s).
+
+The measurement bandwidth for the 3 (or fewer) Carrier-Related Frequency Bands (below 42 MHz) is 160 kHz, with up to 3 is 160 kHz bands, each with no more than –47 dBc, allowed to be excluded from the "Bands within 5 to 42 MHz Transmitting Burst" specs of Table B.4-8.
+
+The measurement bandwidth is also 160 kHz for the Between bursts specs of Table B.4-6 below 42 MHz; the Transmitting burst specs apply during the mini-slots granted to the CM (when the CM uses all or a portion of the grant), and for a mini-slot before and after the granted mini-slots. (Note that a mini-slot may be as short as 32 symbols, or 12.5 µs at the 2.56 Msym/s rate, or as short as 200 µs at the 160 ksym/s rate.) The Between bursts specs apply except during a used grant of mini-slots, and the mini-slot before and after the used grant.
+
+**Table B.4-6/J.112 – Spurious emissions**
+
+| Parameter | Transmitting burst | Between bursts |
+|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|------------------------------------------------------------------------|
+| In-band [In-band spurious includes noise, carrier leakage, clock lines, synthesizer spurious products, and other undesired transmitter products. It does not include Inter Symbol Interference (ISI)]. | –40 dBc | The greater of –72 dBc or –59 dBmV |
+| Adjacent Band | See Table B.4-7 | The greater of –72 dBc or –59 dBmV |
+| 3 or Fewer Carrier-Related Frequency Bands (such as second harmonic, if < 42 MHz) | –47 dBc | The greater of –72 dBc or –59 dBmV |
+| Bands within 5 to 42 MHz (excluding assigned channel, adjacent channels, and carrier-related channels) | See Table B.4-8 | The greater of –72 dBc or –59 dBmV |
+| CM Integrated Spurious Emissions Limits (all in 4 MHz, includes discrete a) ) 42 to 54 MHz 54 to 60 MHz 60 to 88 MHz 88 to 860 MHz | max –40 dBc, –26 dBmV –35 dBmV –40 dBmV –45 dBmV | –26 dBmV –40 dBmV –40 dBc max –45 dBmV, –40 dBc b) |
+| CM Discrete Spurious Emissions Limits a) 42 to 54 MHz 54 to 88 MHz 88 to 860 MHz | max –50 dBc, –36 dBmV –50 dBmV –50 dBmV | –36 dBmV –50 dBmV –50 dBmV |
+
+a) These spec limits exclude a single discrete spur related to the tuned received channel; this single discrete spur MUST be no greater than –40 dBmV.
+
+b) 'dBc' is relative to the received downstream signal level. Some spurious outputs are proportional to the receive signal level.
+
+#### B.4.2.9.1.1 Adjacent channel spurious emissions
+
+Spurious emissions from a transmitted carrier may occur in an adjacent channel which could be occupied by a carrier of the same or different symbol rates. Table B.4-7 lists the required adjacent channel spurious emission levels for all combinations of transmitted carrier symbol rates and adjacent channel symbol rates. The measurement is performed in an adjacent channel interval that is of appropriate bandwidth and distance from the transmitted carrier based on the symbol rates of the transmitted carrier and the carrier in the adjacent channel.
+
+**Table B.4-7/J.112 – Adjacent channel spurious emissions**
+
+| Transmitted carrier symbol rate | Specification in the interval | Measurement interval and distance from carrier edge | Adjacent channel carrier symbol rate |
+|---------------------------------|-------------------------------|-----------------------------------------------------|--------------------------------------|
+| 160 Ksym/s | –45 dBc | 20 to 180 kHz | 160 ksym/s |
+| | –45 dBc | 40 to 360 kHz | 320 ksym/s |
+| | –45 dBc | 80 to 720 kHz | 640 ksym/s |
+| | –42 dBc | 160 to 1440 kHz | 1280 ksym/s |
+| | –39 dBc | 320 to 2880 kHz | 2560 ksym/s |
+| All other symbol rates | –45 dBc | 20 to 180 kHz | 160 ksym/s |
+| | –45 dBc | 40 to 360 kHz | 320 ksym/s |
+| | –45 dBc | 80 to 720 kHz | 640 ksym/s |
+| | –44 dBc | 160 to 1440 kHz | 1280 ksym/s |
+| | –41 dBc | 320 to 2880 kHz | 2560 ksym/s |
+
+#### B.4.2.9.1.2 Spurious emissions in 5 to 42 MHz
+
+Spurious emissions, other than those in an adjacent channel or carrier related emissions listed above, may occur in intervals that could be occupied by other carriers of the same or different symbol rates. To accommodate these different symbol rates and associated bandwidths, the spurious emissions are measured in an interval equal to the bandwidth corresponding to the symbol rate of the carrier that could be transmitted in that interval. This interval is independent of the current transmitted symbol rate.
+
+Table B.4-8 lists the possible symbol rates that could be transmitted in an interval, the required spurious level in that interval, and the initial measurement interval at which to start measuring the spurious emissions. Measurements should start at the initial distance and be repeated at increasing distance from the carrier until the upstream band edge, 5 MHz or 42 MHz, is reached. Measurement intervals should not include carrier related emissions.
+
+**Table B.4-8/J.112 – Spurious emissions in 5 to 42 MHz**
+
+| Possible symbol rate in this interval | Specification in the interval | Initial measurement interval and distance from carrier edge |
+|---------------------------------------|-------------------------------|-------------------------------------------------------------|
+| 160 ksym/s | -53 dBc | 220 to 380 kHz |
+| 320 ksym/s | -50 dBc | 240 to 560 kHz |
+| 640 ksym/s | -47 dBc | 280 to 920 kHz |
+| 1280 ksym/s | -44 dBc | 360 to 1640 kHz |
+| 2560 ksym/s | -41 dBc | 520 to 3080 kHz |
+
+#### B.4.2.9.2 Spurious emissions during burst on/off transients
+
+Each transmitter MUST control spurious emissions, prior to and during ramp up and during and following ramp down, before and after a burst in the TDMA scheme.
+
+On/off spurious emissions, such as the change in voltage at the upstream transmitter output due to enabling or disabling transmission, MUST be no more than 100 mV, and such a step MUST be dissipated no faster than 2 $\mu\text{s}$ of constant slewing. This requirement applies when the CM is transmitting at +55 dBmV or more; at backed-off transmit levels, the maximum change in voltage MUST decrease by a factor of 2 for each 6-dB decrease of power level from +55 dBmV, down to a maximum change of 7 mV at 31 dBmV and below. This requirement does not apply to CM power-on and power-off transients.
+
+#### B.4.2.9.3 Symbol Error Rate (SER)
+
+Modulator performance MUST be within 0.5 dB of theoretical SER vs C/N (i.e. $E_s/N_0$ ), for SER as low as $10^{-6}$ uncoded, for QPSK and 16 QAM.
+
+The SER degradation is determined by the cluster variance caused by the transmit wave form at the output of an ideal square-root raised-cosine receive filter. It includes the effects of ISI, spurious, phase noise, and all other transmitter degradations.
+
+Cluster SNR should be measured on a modulation analyzer using a square-root raised cosine receive filter with $\alpha=0.25$ . The measured SNR MUST be better than 30 dB.
+
+#### B.4.2.9.4 Filter distortion
+
+The following requirements assume that any pre-equalization is disabled.
+
+#### **B.4.2.9.4.1 Amplitude**
+
+The spectral mask MUST be the ideal square root raised cosine spectrum with $\alpha = 0.25$ , within the ranges given below:
+
+$f_c - R_s/4$ Hz to $f_c + R_s/4$ Hz: $-0.3$ dB to $+0.3$ dB
+
+$f_c - 3R_s/8$ Hz to $f_c - R_s/4$ Hz, and $f_c + R_s/4$ Hz to $f_c + 3R_s/8$ Hz: $-0.5$ dB to $0.3$ dB
+
+$f_c - R_s/2$ Hz and $f_c + R_s/2$ Hz: $-3.5$ dB to $-2.5$ dB
+
+$f_c - 5R_s/8$ Hz and $f_c + 5R_s/8$ Hz: no greater than $-30$ dB
+
+where $f_c$ is the centre frequency, $R_s$ is the symbol rate, and the spectral density is measured with a resolution bandwidth of 10 KHz or less.
+
+#### **B.4.2.9.4.2 Phase**
+
+$f_c - 5R_s/8$ Hz to $f_c + 5R_s/8$ Hz: Group Delay Variation MUST NOT be greater than 100 ns.
+
+#### **B.4.2.9.5 Carrier phase noise**
+
+The upstream transmitter total integrated phase noise (including discrete spurious noise) MUST be less than or equal to $-43$ dBc summed over the spectral regions spanning 1 kHz to 1.6 MHz above and below the carrier.
+
+#### **B.4.2.9.6 Channel frequency accuracy**
+
+The CM MUST implement the assigned channel frequency within $\pm 50$ parts per million over a temperature range of 0 to 40 degrees C up to five years from date of manufacture.
+
+#### **B.4.2.9.7 Symbol rate accuracy**
+
+The upstream modulator MUST provide an absolute accuracy of symbol rates $\pm 50$ parts per million over a temperature range of 0 to 40 degrees C up to five years from date of manufacture.
+
+#### **B.4.2.9.8 Symbol timing jitter**
+
+Peak-to-peak symbol jitter, referenced to the previous symbol zero-crossing, of the transmitted waveform, MUST be less than 0.02 of the nominal symbol duration over a 2-s period. In other words, the difference between the maximum and the minimum symbol duration during the 2-s period shall be less than 0.02 of the nominal symbol duration for each of the five upstream symbol rates.
+
+The peak-to-peak cumulative phase error, referenced to the first symbol time and with any fixed symbol frequency offset factored out, MUST be less than 0.04 of the nominal symbol duration over a 0.1-s period. In other words, the difference between the maximum and the minimum cumulative phase error during the 0.1-s period shall be less than 0.04 of the nominal symbol duration for each of the five upstream symbol rates. Factoring out a fixed symbol frequency offset is to be done by using the computed mean symbol duration during the 0.1 s.
+
+#### **B.4.2.10 Frame structure**
+
+Figure B.4-7 shows two examples of the frame structure: one where the packet length equals the number of information bytes in a code word, and another where the packet length is longer than the number of information bytes in one code word, but less than in two code words. Example 1 illustrates the fixed code-word length mode, and Example 2 illustrates the shortened last code-word mode. These modes are defined in B.4.2.10.1.
+
+**Example 1** – Packet length = number of information bytes in code word = $k$
+
+
+
+| | | | | |
+|----------|-------------------|------------|------------|-------------------------------------|
+| Preamble | ← One code word → | | Guard time | Empty up to next mini-Slot boundary |
+| | Packet data | FEC parity | | |
+
+Diagram for Example 1 showing a single code word structure. It consists of five blocks: Preamble, Packet data, FEC parity, Guard time, and Empty up to next mini-Slot boundary. A double-headed arrow labeled 'One code word' spans over the Packet data and FEC parity blocks.
+
+**Example 2** – Packet length = $k$ + remaining information bytes in 2nd code word = $k + k' \leq k + k'' \leq 2k$ bytes
+
+
+
+| | | | | |
+|----------|----------------|--|------------|----------------------|
+| Preamble | Two code words | | Guard time | ← Mini-slot boundary |
+|----------|----------------|--|------------|----------------------|
+
+
+
+| | | | | |
+|---------------------------|------------|---------------------------|-------------------------------|------------|
+| First $k$ bytes of packet | FEC parity | Last $k'$ bytes of packet | $k'' - k'$ bytes of zero-fill | FEC parity |
+|---------------------------|------------|---------------------------|-------------------------------|------------|
+
+T0904860-97/d057
+
+Diagram for Example 2 showing a two code word structure. The top part shows Preamble, Two code words, and Guard time, with an arrow pointing to the 'Mini-slot boundary'. Below this, a dashed line leads to a detailed view of the two code words. The first code word contains 'First k bytes of packet' and 'FEC parity'. The second code word contains 'Last k' bytes of packet', 'k'' - k' bytes of zero-fill', and 'FEC parity'. A label 'T0904860-97/d057' is present at the bottom right.
+
+**Figure B.4-7/J.112** – Example frame structures with flexible burst length mode
+
+#### B.4.2.10.1 Code-word length
+
+The CM operates in fixed-length code-word mode or with shortened code-word capability enabled. The minimum number of information bytes in a code word, for fixed or shortened mode, is 16 bytes. Shortened code-word capability is available with $k \geq 16$ bytes, where $k$ is the number of information bytes in a code word. With $k < 16$ , shortened code word capability is not available.
+
+The following descriptions apply to an allocated grant of mini-slots in both contention and non-contention regions. (Allocation of mini-slots is discussed in B.6.) The intent of the description is to define rules and conventions such that CMs request the proper number of mini-slots and the CMTS PHY knows what to expect regarding the FEC framing in both fixed code-word length and shortened last code-word modes.
+
+##### B.4.2.10.1.1 Fixed code-word length
+
+With the fixed-length code words, after all the data are encoded, zero-fill will occur in this code word if necessary to reach the assigned $k$ data bytes per code word, and zero-fill MUST continue up to the point when no additional fixed-length code words can be inserted before the end of the last allocated min-slot in the grant, accounting for FEC parity and guard-time symbols.
+
+##### B.4.2.10.1.2 Shortened last code word
+
+As shown in Figure B.4-7, let $k'$ = the number of information bytes that remain after partitioning the information bytes of the burst into full-length ( $k$ burst data bytes) code words. The value of $k'$ is less than $k$ . Given operation in a shortened last code-word mode, let $k''$ = the number of burst data bytes plus zero-fill bytes in the shortened last code word. In shortened code-word mode, the CM will encode the data bytes of the burst (including MAC header) using the assigned code-word size ( $k$ information bytes per code word) until:
+
+- 1) all the data are encoded; or
+- 2) a remainder of data bytes is left over which is less than $k$ .
+
+Shortened last code words shall not have less than 16 information bytes, and this is to be considered when CMs make requests of mini-slots. In shortened last code-word mode, the CM will zero-fill data if necessary until the end of the mini-slot allocation, which in most cases will be the next mini-slot boundary, accounting for FEC parity and guard-time symbols. In many cases, only $k'' - k'$ zero-fill bytes are necessary to fill out a mini-slot allocation with $16 \leq k'' \leq k$ and $k' \leq k''$ . However, note the following.
+
+More generally, the CM is required to zero-fill data until the point when no additional fixed-length code words can be inserted before the end of the last allocated mini-slot in the grant (accounting for FEC parity and guard-time symbols), and then, if possible, a shortened last code word of zero-fill shall be inserted to fit into the mini-slot allocation.
+
+If, after zero-fill of additional code words with k information bytes, there are less than 16 bytes remaining in the allocated grant of mini-slots, accounting for parity and guard-time symbols, then the CM shall not create this last shortened code word.
+
+#### B.4.2.11 Signal processing requirements
+
+The signal processing order for each burst packet type MUST be compatible with the sequence shown in Figure B.4-8 and MUST follow the order of steps in Figure B.4-9.
+
+#### B.4.2.12 Upstream demodulator input power characteristics
+
+The maximum total input power to the upstream demodulator MUST NOT exceed 35 dBmV in the 5-42 MHz frequency range of operation.
+
+The intended received power in each carrier MUST be within the values shown in Table B.4-9.
+
+The demodulator MUST operate within its defined performance specifications with received bursts within $\pm 6$ dB of the nominal commanded received power.
+
+**Table B.4-9/J.112 – Maximum range of commanded nominal receive power in each carrier**
+
+| Symbol rate (ksym/s) | Maximum range (dBmV) |
+|----------------------|----------------------|
+| 160 | -16 to +14 |
+| 320 | -13 to +17 |
+| 640 | -10 to +20 |
+| 1280 | -7 to +23 |
+| 2560 | -4 to +26 |
+
+#### B.4.2.13 Upstream electrical output from the CM
+
+The CM MUST output an RF modulated signal with the characteristics delineated in Table B.4-10.
+
+**Table B.4-10/J.112 – Electrical output from CM**
+
+| Parameter | Value |
+|---------------------------|------------------------------------------------------|
+| Frequency | 5 to 42 MHz edge-to-edge |
+| Level range (one channel) | +8 to +55 dBmV (16 QAM) +8 to +58 dBmV (QPSK) |
+| Modulation type | QPSK and 16 QAM |
+| Symbol rate (nominal) | 160, 320, 640, 1280 and 2560 ksym/s |
+| Bandwidth | 200, 400, 800, 1600 and 3200 kHz |
+| Output impedance | 75 ohms |
+| Output return loss | > 6 dB (5-42 MHz) |
+| Connector | F connector per [IPS-SP-401] (common with the input) |
+
+### B.4.3 Downstream
+
+#### B.4.3.1 Downstream protocol
+
+The downstream PMD sublayer MUST conform to Annex B/J.83 for Low-Delay Video Applications [ITU-T J.83 B], with the exceptions called out in B.4.3.2.
+
+
+
+Figure B.4-8/J.112 – Signal-processing sequence. This block diagram shows the signal processing flow for TDMA upstream transmission. The main sequence consists of seven blocks: 'Block the Data', 'FEC Encode', 'Scramble', a summation node (+), 'Symbol Map', 'Filter', and 'Modulate'. 'Burst Data In' enters the first block. A 'Preamble Prepend' block feeds into the summation node. A 'Modulator Control' block, receiving 'Parameter set from CMDS' and 'Transmit now edge', controls the 'Block the Data', 'FEC Encode', 'Scramble', 'Symbol Map', 'Filter', and 'Modulate' blocks. The 'Modulate' block outputs to 'Power Control' and 'Transmit on/off'. A small code 'T0906420-98/d058' is present near the bottom right of the diagram.
+
+Figure B.4-8/J.112 – Signal-processing sequence
+
+
+
+| | |
+|-------------------------|------------------------------------------------------------------------------------------------------------------------------|
+| | Packet Stream Input |
+| | ↓ |
+| Block the Data | Separate Packet into Information Blocks (= data bytes in one code word) |
+| | ↓ |
+| FEC Encode | FEC Encode (Reed-Solomon) each Information Block, using shortened code word for last block if needed. FEC can be turned off. |
+| | ↓ |
+| Scramble | Scramble (see B.4.2.4) |
+| | ↓ |
+| Preamble Prepend | Preamble prepend Symbols |
+| | ↓ |
+| Symbol Map | Symbol Map the Data Stream into Modulator Symbols |
+| | ↓ |
+| Filter | Filter Symbol Stream for Spectral Shaping |
+| | ↓ |
+| Modulate | Modulate at Precise Times (QPSK; 16 QAM) |
+| | ↓ |
+| | Output RF Wave-form Bursts |
+
+Figure B.4-9/J.112 – TDMA upstream transmission processing
+
+### B.4.3.2 Scalable interleaving to support low latency
+
+The downstream PMD sublayer MUST support a variable-depth interleaver with the characteristics defined in Table B.4-11. This table contains a subset of interleaver modes found in [ITU-T J.83 B].
+
+**Table B.4-11/J.112 – Interleaver characteristics**
+
+| I (Number of taps) | J (Increment) | Burst protection 64 QAM/256 QAM | Latency 64 QAM/256 QAM |
+|-------------------------------|--------------------------|--------------------------------------------|-----------------------------------|
+| 8 | 16 | 5.9 µs/4.1 µs | 0.22 ms/0.15 ms |
+| 16 | 8 | 12 µs/8.2 µs | 0.48 ms/0.33 ms |
+| 32 | 4 | 24 µs/16 µs | 0.98 ms/0.68 ms |
+| 64 | 2 | 47 µs/33 µs | 2.0 ms/1.4 ms |
+| 128 | 1 | 95 µs/66 µs | 4.0 ms/2.8 ms |
+
+The interleaver depth, which is coded in a 4-bit control word contained in the FEC frame synchronization trailer, always reflects the interleaving in the immediately-following frame. In addition, errors are allowed while the interleaver memory is flushed after a change in interleaving is indicated.
+
+Refer to [ITU-T J.83 B] for the control bit specifications required to specify which interleaving mode is used.
+
+#### **B.4.3.3 Downstream frequency plan**
+
+The downstream frequency plan should comply with Harmonic Related Carrier (HRC), Incremental Related Carrier (IRC) or Standard (STD) North American frequency plans per [IS-6]. However, operation below a centre frequency of 91 MHz is not required.
+
+#### **B.4.3.4 CMTS output electrical**
+
+The CMTS MUST output an RF modulated signal with the following characteristics defined in Table B.4-12.
+
+#### **B.4.3.5 Downstream electrical input to CM**
+
+The CM MUST accept an RF modulated signal with the following characteristics (see Table B.4-13.)
+
+#### **B.4.3.6 CM BER performance**
+
+The bit-error-rate performance of a CM MUST be as described in this subclause. The requirements apply to the I = 128, J = 1 mode of interleaving.
+
+##### **B.4.3.6.1 64 QAM**
+
+###### **B.4.3.6.1.1 64 QAM CM BER Performance**
+
+Implementation loss of the CM MUST be such that the CM achieves a post-FEC BER less than or equal to $10^{-8}$ when operating at a carrier to noise ratio ( $E_s/N_0$ ) of 23.5 dB or greater.
+
+###### **B.4.3.6.1.2 64 QAM image rejection performance**
+
+Performance as described in B.4.3.6.1.1 MUST be met with analogue or digital signal at +10 dBc in any portion of the RF band other than the adjacent channels.
+
+###### **B.4.3.6.1.3 64 QAM Adjacent channel performance**
+
+Performance as described in B.4.3.6.1.1 MUST be met with digital signal at 0 dBc in the adjacent channels.
+
+Performance as described in B.4.3.6.1.1 MUST be met with analogue signal at +10 dBc in the adjacent channels.
+
+Performance as described in B.4.3.6.1.1, with an additional 0.2-dB allowance, MUST be met with digital signal at +10 dBc in the adjacent channels.
+
+##### **B.4.3.6.2 256 QAM**
+
+###### **B.4.3.6.2.1 256 QAM CM BER performance**
+
+Implementation loss of the CM MUST be such that the CM achieves a post-FEC BER less than or equal to $10^{-8}$ when operating at a carrier to noise ratio ( $E_s/N_0$ ) of 30 dB or greater.
+
+**Table B.4-12/J.112 –CMTS output**
+
+| Parameter | Value |
+|-----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Centre Frequency ( $f_c$ ) | 91 to 857 MHz $\pm$ 30 kHz a) |
+| Level | Adjustable over the range 50 to 61 dBmV |
+| Modulation type | 64 QAM and 256 QAM |
+| Symbol rate (nominal) 64 QAM 256 QAM | 5.056941 Msym/s 5.360537 Msym/s |
+| Nominal channel spacing | 6 MHz |
+| Frequency response 64 QAM 256 QAM | ~18% square root raised cosine shaping ~12% square root raised cosine shaping |
+| Total discrete spurious In-band ( $f_c \pm 3$ MHz) | < -57 dBc |
+| In-band spurious and noise ( $f_c \pm 3$ MHz) | < -48 dBc; where channel spurious and noise includes all discrete spurious, noise, carrier leakage, clock lines, synthesizer products, and other undesired transmitter products. Noise within $\pm 50$ kHz of the carrier is excluded. |
+| Adjacent channel ( $f_c \pm 3.0$ MHz) to ( $f_c \pm 3.75$ MHz) | < -58 dBc in 750 kHz. |
+| Adjacent channel ( $f_c \pm 3.75$ MHz) to ( $f_c \pm 9$ MHz) | < -62 dBc in 5.25 MHz, excluding up to 3 spurs, each of which must be < -60 dBc when each is measured with 10 kHz bandwidth. |
+| Next adjacent channel ( $f_c \pm 9$ MHz) to ( $f_c \pm 15$ MHz) | < -65 dBc in 6 MHz, excluding up to three discrete spurs. The total power in the spurs must be < -60 dBc when each is measured with 10 kHz bandwidth. |
+| Other channels (47 MHz to 1000 MHz) | < -12 dBmV in each 6 MHz channel, excluding up to three discrete spurs. The total power in the spurs must be < -60 dBc when each is measured with 10 kHz bandwidth. |
+| Phase noise | 1 kHz-10 kHz: -33 dBc double sided noise power 10 kHz-50 kHz: -51 dBc double sided noise power 50 kHz-3 MHz: -51 dBc double sided noise power |
+| Output impedance | 75 ohms |
+| Output return loss | > 14 dB within an output channel up to 750 MHz; > 13 dB in an output channel above 750 MHz |
+| Connector | F connector per [IPS-SP-401] |
+
+a) $\pm 30$ kHz includes an allowance of 25 kHz for the largest FCC frequency offset normally built into upconverters.
+
+**Table B.4-13/J.112 – Electrical input to CM**
+
+| Parameter | Value |
+|--------------------------------|----------------------------------------------------------------------------------------------------------------|
+| Centre Frequency | 91 to 857 MHz $\pm$ 30 kHz |
+| Level Range (one channel) | –15 dBmV to +15 dBmV |
+| Modulation Type | 64 QAM and 256 QAM |
+| Symbol Rate (nominal) | 5.056941 Msym/s (64 QAM) and 5.360537 Msym/s (256 QAM) |
+| Bandwidth | 6 MHz (18% square root raised cosine shaping for 64 QAM and 12% square root raised cosine shaping for 256 QAM) |
+| Total Input Power (40-900 MHz) | < 30 dBmV |
+| Input (load) Impedance | 75 ohms |
+| Input Return Loss | > 6 dB (88 to 860 MHz) |
+| Connector | F connector per [IPS-SP-401] (common with the output) |
+
+**B.4.3.6.2.2 256 QAM image rejection performance**
+
+Performance as described in B.4.3.6.2.1 MUST be met with analogue or digital signal at +10 dBc in any portion of the RF band other than the adjacent channels.
+
+**B.4.3.6.2.3 256 QAM adjacent channel performance**
+
+Performance as described in B.4.3.6.2.1 MUST be met with analogue or digital signal at 0 dBc in the adjacent channels.
+
+Performance as described in B.4.3.6.2.1, with an additional 0.5-dB allowance, MUST be met with analogue signal at +10 dBc in the adjacent channels.
+
+Performance as described in B.4.3.6.2.1, with an additional 1.0-dB allowance, MUST be met with digital signal at +10 dBc in the adjacent channels.
+
+**B.4.3.7 CMTS timestamp jitter**
+
+The peak-to-peak jitter, measured at the output of the CMTS, MUST be less than 500 ns. This includes jitter from both the value in the timestamp message, and time of transmission of that message.
+
+The CM is expected to meet the burst timing accuracy requirements in B.4.2.6 when the time stamps contain this worst-case jitter.
+
+NOTE – Jitter is the error (i.e. measured) relative to the CMTS Master Clock. (The CMTS Master Clock is the 10.24 MHz clock used for generating the timestamps.)
+
+The CMTS 10.24 MHz Master Clock MUST have frequency stability of $\leq \pm 5$ ppm, drift rate $\leq 10^{-8}$ per second, and edge jitter of $\leq 10$ ns peak-to-peak ( $\pm 5$ ns). (The drift rate and jitter requirements on the CMTS Master Clock implies that the duration of two adjacent segments of 10 240 000 cycles will be within 30 ns, due to 10 ns jitter on each segments' duration, and 10 ns due to frequency drift. Durations of other counter lengths also may be deduced: adjacent 1 024 000 segments, $\leq 21$ ns; 1 024 000 length segments separated by one 10 240 000 cycles, $\leq 30$ ns; adjacent 102 400 000 segments, $\leq 120$ ns. The CMTS Master Clock MUST meet such test limits in 99% or more measurements.)
+
+**B.5 Downstream transmission convergence sublayer****B.5.1 Introduction**
+
+In order to improve demodulation robustness, facilitate common receiving hardware for both video and data, and provide an opportunity for the possible future multiplexing of video and data over the PMD sublayer bitstream defined in B.4, a sublayer is interposed between the downstream PMD sublayer and the Data-Over-Cable MAC sublayer.
+
+The downstream bitstream is defined as a continuous series of 188-byte MPEG [ITU-T H.222.0] packets. These packets consist of a 4-byte header followed by 184 bytes of payload. The header identifies the payload as belonging to the Data-Over-Cable MAC. Other values of the header may indicate other payloads. The mixture of MAC payloads and those of other services is optional and is controlled by the CM/MTS.
+
+Figure B.5-1 illustrates the interleaving of Data-Over-Cable (DOC) MAC bytes with other digital information (digital video in the example shown).
+
+| | |
+|----------------|-----------------------|
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+
+**Figure B.5-1/J.112 – Example of interleaving MPEG packets in downstream**
+
+### B.5.2 MPEG Packet format
+
+The format of an MPEG Packet carrying MCNS data is shown in Figure B.5-2. The packet consists of a 4-byte MPEG Header, a pointer\_field (not present in all packets) and the MCNS Payload.
+
+| | | |
+|--------------------------|---------------------------|------------------------------------|
+| MPEG Header (4 bytes) | pointer_field (1 byte) | MCNS Payload (183 or 184 bytes) |
+|--------------------------|---------------------------|------------------------------------|
+
+**Figure B.5-2/J.112 – Format of an MPEG Packet**
+
+### B.5.3 MPEG Header for MCNS Data-Over-Cable
+
+The format of the MPEG Transport Stream Header is defined in 2.4/H.222.0 [ITU-T H.222.0]. The particular field values that distinguish Data-Over-Cable MAC streams are defined in Table B.5-1. Field names are from the ITU specification.
+
+The MPEG Header consists of 4 bytes that begin the 188-byte MPEG Packet. The format of the header for use on an MCNS Data-Over-Cable PID is restricted to that shown in Table B.5-1. The Header format conforms to the MPEG standard, but its use is restricted in this specification to NOT ALLOW inclusion of an adaptation\_field in the MPEG packets.
+
+### B.5.4 MPEG Payload for MCNS Data-Over-Cable
+
+The MPEG Payload portion of the MPEG Packet will carry the MCNS MAC frames. The first byte of the MPEG payload will be a 'pointer\_field' if the payload\_unit\_start\_indicator (PUSI) of the MPEG Header is set.
+
+**Table B.5-1/J.112 – MPEG Header format for MCNS Data-Over-Cable packets**
+
+| Field | Length (bits) | Description |
+|---------------------------------------------------------------------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| sync_byte | 8 | 0x47; MPEG Packet Sync byte. |
+| transport_error_indicator | 1 | Indicates an error has occurred in the reception of the packet. This bit is reset to zero by the sender, and set to one whenever an error occurs in transmission of the packet. |
+| payload_unit_start_indicator | 1 | A value of one indicates the presence of a pointer_field as the first byte of the payload (fifth byte of the packet) |
+| transport_priority | 1 | Reserved; set to zero. |
+| PID (see Note) | 13 | MCNS Data-Over-Cable well-known PID (0x1FFE) |
+| transport_scrambling_control | 2 | Reserved; set to '00'. |
+| adaptation_field_control | 2 | '01'; use of the adaptation_field is NOT ALLOWED on the MCNS PID. |
+| continuity_counter | 4 | Cyclic counter within this PID |
+| NOTE – In the future, additional PIDs MAY be assigned to a CM. See B.9.3. | | |
+
+### stuff\_byte
+
+This standard defines a stuff\_byte pattern having a value (0xFF) that is used within the MCNS Payload to fill any gaps between the MCNS MAC frames. This value is chosen as an unused value for the first byte of the MCNS MAC frame. The 'FC' byte of the MAC Header will be defined to never contain this value. (FC\_TYPE = '11' indicates a MAC-specific frame, and FC\_PARM = '11111' is not currently used and, according to this specification, is defined as an illegal value for FC\_PARM.)
+
+### pointer\_field
+
+The pointer\_field is present as the fifth byte of the MPEG packet (first byte following the MPEG Header) whenever the PUSI is set to one in the MPEG Header. The interpretation of the pointer\_field is as follows.
+
+The pointer\_field contains the number of bytes in this packet that immediately follow the pointer\_field that the CM decoder must skip past before looking for the beginning of an MCNS MAC Frame. A pointer field MUST be present if it is possible to begin a Data-Over-Cable MAC Frame in the packet, and MUST point to either:
+
+- 1) the beginning of the first MAC frame to start in the packet; or
+- 2) any stuff\_byte preceding the MAC frame.
+
+### B.5.5 Interaction with the MAC sublayer
+
+MAC frames may begin anywhere within an MPEG Packet, MAC frames may span MPEG packets, and several MAC frames may exist within an MPEG Packet.
+
+The following figures show the format of the MPEG packets that carry MCNS MAC frames. In all cases, the PUSI flag indicates the presence of the pointer\_field as the first byte of the MPEG Payload.
+
+Figure B.5-3 shows a MAC Frame that is positioned immediately after the pointer\_field byte. In this case, pointer\_field is zero, and the MCNS decoder will begin searching for a valid FC byte at the byte immediately following the pointer\_field.
+
+Figure B.5-4 shows the more general case where a MAC Frame is preceded by the tail of a previous MAC Frame and a sequence of stuffing bytes. In this case, the pointer\_field still identifies the first byte after the tail of Frame #1 (a stuff\_byte) as the position where the decoder should begin searching for a legal MAC sublayer FC value. This format allows the multiplexing operation in the CMTS to immediately insert a MAC Frame that is available for transmission if that frame arrives after the MPEG header and pointer\_field have been transmitted.
+
+| | | | |
+|---------------------------|------------------------|--------------------------------|------------------------------|
+| MPEG Header (PUSI = 1) | pointer_field (= 0) | MAC Frame (up to 183 bytes) | stuff_byte(s) (0 or more) |
+|---------------------------|------------------------|--------------------------------|------------------------------|
+
+**Figure B.5-3/J.112 – Packet format where a MAC Frame immediately follows the pointer\_field**
+
+In order to facilitate multiplexing of the MPEG packet stream carrying MCNS data with other MPEG-encoded data, the CMTS SHOULD NOT transmit MPEG packets with the MCNS PID which contain only stuff\_bytes in the payload area. MPEG null packets SHOULD be transmitted instead. Note that there are timing relationships implicit in the MCNS MAC sublayer which must also be preserved by any MPEG multiplexing operation.
+
+| | | | | |
+|---------------------------|------------------------|-----------------------------------|------------------------------|--------------------------|
+| MPEG Header (PUSI = 1) | pointer_field (= M) | Tail of MAC Frame #1 (M bytes) | stuff_byte(s) (0 or more) | Start of MAC Frame #2 |
+|---------------------------|------------------------|-----------------------------------|------------------------------|--------------------------|
+
+**Figure B.5-4/J.112 – Packet format with MAC Frame preceded by stuffing bytes**
+
+Figure B.5-5 shows that multiple MAC frames may be contained within the MPEG Packet. The MAC frames may be concatenated one after the other or be separated by an optional sequence of stuffing bytes.
+
+| | | | | | |
+|---------------------------|------------------------|-----------------|-----------------|------------------------------|-----------------|
+| MPEG Header (PUSI = 1) | pointer_field (= 0) | MAC Frame #1 | MAC Frame #2 | stuff_byte(s) (0 or more) | MAC Frame #3 |
+|---------------------------|------------------------|-----------------|-----------------|------------------------------|-----------------|
+
+**Figure B.5-5/J.112 – Packet format showing multiple MAC frames in a single packet**
+
+Figure B.5-6 shows the case where a MAC Frame spans multiple MPEG packets. In this case, the pointer\_field of the succeeding frame points to the byte following the last byte of the tail of the first frame.
+
+The Transmission Convergence sublayer must operate closely with the MAC sublayer in providing an accurate timestamp to be inserted into the Time Synchronization message (refer to B.6.3.2.1 and B.6.5).
+
+| | | | | |
+|---------------------------|----------------------------------------------|-----------------------------------|--------------------------------------------|------------------------------------|
+| MPEG Header (PUSI = 1) | pointer_field (= 0) | stuff_byte(s) (0 or more) | Start of MAC Frame #1 (up to 183 bytes) | |
+| MPEG Header (PUSI = 0) | Continuation of MAC Frame # 1 (184 bytes) | | | |
+| MPEG Header (PUSI = 1) | pointer_field (= M) | Tail of MAC Frame #1 (M bytes) | stuff_byte(s) (0 or more) | Start of MAC Frame #2 (M bytes) |
+
+**Figure B.5-6/J.112 – Packet format where a MAC Frame spans multiple packets**
+
+#### **B.5.6 Interaction with the Physical layer**
+
+The MPEG-2 packet stream MUST be encoded according to [ITU-T J.83 B], including MPEG-2 transport framing using a parity checksum as described in [ITU-T J.83 B].
+
+### **B.5.7 MPEG Header synchronization and recovery**
+
+The MPEG-2 packet stream SHOULD be declared "in frame" (i.e. correct packet alignment has been achieved) when five consecutive correct parity checksums, each 188 bytes from the previous one, have been received.
+
+The MPEG-2 packet stream SHOULD be declared "out of frame", and a search for correct packet alignment started, when nine consecutive incorrect parity checksums are received.
+
+The format of MAC frames is described in detail in B.6.
+
+## **B.6 Media access control specification**
+
+### **B.6.1 Introduction**
+
+#### **B.6.1.1 Overview**
+
+This subclause describes version 1.0 of the MCNS MAC protocol. Some of the MAC protocol highlights include:
+
+- Bandwidth allocation controlled by CMTS.
+- A stream of mini-slots in the upstream.
+- Dynamic mix of contention- and reservation-based upstream transmit opportunities.
+- Bandwidth efficiency through support of variable-length packets.
+- Extensions provided for future support of ATM or other Data PDU.
+- Class of service support.
+- Extensions provided for security at the Data Link layer.
+- Support for a wide range of data rates.
+
+#### **B.6.1.2 Definitions**
+
+##### **B.6.1.2.1 MAC-sublayer domain**
+
+A MAC-sublayer domain is a collection of upstream and downstream channels for which a single MAC Allocation and Management protocol operates. Its attachments include one CMTS and some number of CMs. The CMTS MUST service all of the upstream and downstream channels; each CM MAY access one or more upstream and downstream channels.
+
+##### **B.6.1.2.2 MAC service access point**
+
+A MAC Service Access Point (MSAP) is an attachment to a MAC-sublayer domain.
+
+##### **B.6.1.2.3 Service ID**
+
+The concept of Service IDs is central to the operation of the MAC protocol. Service IDs provide both device identification and class-of-service management. In particular, they are integral to upstream bandwidth allocation.
+
+A Service ID defines a particular mapping between a CM and the CMTS. This mapping is the basis on which bandwidth is allocated to the CM by the CMTS and by which class of service is implemented. Within a MAC-sublayer domain, all Service IDs MUST be unique.
+
+The CMTS MAY assign one or more Service IDs (SIDs) to each CM, corresponding to the classes of service required by the CM. This mapping MUST be negotiated between the CMTS and the CM during CM registration.
+
+In a basic CM implementation, a single Service ID can be used, for example to offer best-effort IP service. However, the Service ID concept allows for more complex CMs to be developed with support for multiple service classes while supporting interoperability with more basic modems. In particular, the Service ID concept is expected to support the concept of "data flows" on which protocols such as RSVP and RTP are based.
+
+The Service ID is unique within a single MAC-sublayer domain. The length of the Service ID is 14 bits (although the Service ID is sometimes carried in the low-order bits of a 16-bit field).
+
+#### B.6.1.2.4 Upstream intervals, Mini-slots and 6.25-μs increments
+
+The upstream transmission time-line is divided into intervals by the upstream bandwidth allocation mechanism. Each interval is an integral number of mini-slots. A "mini-slot" is the unit of granularity for upstream transmission opportunities. There is no implication that any PDU can actually be transmitted in a single mini-slot. Each interval is labeled with a usage code which defines both the type of traffic that can be transmitted during that interval and the physical-layer modulation encoding. A mini-slot is a power-of-two multiple of 6.25-μs increments, i.e. 1, 2, 4, 8, 16, 32, 64, or 128 times 6.25 μs. The relationship between mini-slots, bytes, and time ticks is described further in B.6.5.4. The usage code values are defined in Table B.6-16 and allowed use is defined in B.6.3. The binding of these values to physical-layer parameters is defined in Table B.6-14.
+
+#### B.6.1.2.5 Frame
+
+A frame is a unit of data exchanged between two (or more) entities at the Data Link Layer. A MAC Frame consists of a MAC Header (beginning with a Frame Control byte; see Figure B.6-3), and may incorporate ATM cells or a variable-length data PDU. The variable-length PDU includes a pair of 48-bit addresses, data, and a CRC sum. In special cases, the MAC Header may encapsulate multiple MAC frames (see B.6.2.5.4).
+
+#### B.6.1.3 Future use
+
+A number of fields are defined as being "for future use" in the various MAC frames described in this annex. These fields MUST NOT be interpreted or used in any manner by this version (1.0) of the MAC protocol.
+
+### B.6.2 MAC Frame formats
+
+#### B.6.2.1 Generic MAC Frame format
+
+A MAC Frame is the basic unit of transfer between MAC sublayers at the CMTS and the cable modem. The same basic structure is used in both the upstream and downstream directions. MAC frames are variable in length. The term "Frame" is used in this context to indicate a unit of information that is passed between MAC sublayer peers. This is not to be confused with the term "framing" that indicates some fixed timing relationship.
+
+There are three distinct regions to consider, as shown in Figure B.6-1. Preceding the MAC Frame is either PMD sublayer overhead (upstream) or an MPEG transmission convergence header (downstream). The first part of the MAC Frame is the MAC Header. The MAC Header uniquely identifies the contents of the MAC Frame. Following the header is the optional Data PDU region. The format of the Data PDU and whether it is even present is described in the MAC Header.
+
+
+
+The diagram illustrates the structure of a MAC Frame. It shows three main components: PMD overhead (upstream), MPEG PSI Header (downstream), and the MAC Frame itself. The MAC Frame is composed of a MAC Header and an optional Data PDU. The MAC Header is shown as a box labeled "MAC Header (see Figure B.6-3)". The Data PDU is shown as a box labeled "Data PDU (optional) (see Figure B.6-4)". A bracket below these two boxes labels them as the "MAC Frame". The PMD overhead (upstream) is shown as a box above the MAC Frame. The MPEG PSI Header (downstream) is shown as a box below the MAC Frame. The text "T0906430-98/d059" is located in the bottom right corner of the diagram area.
+
+Diagram of Generic MAC Frame format showing PMD overhead (upstream), MPEG PSI Header (downstream), MAC Header, and Data PDU (optional) within a MAC Frame.
+
+Figure B.6-1/J.112 – Generic MAC Frame format
+
+### B.6.2.1.1 PMD overhead
+
+In the upstream direction, the PHY layer indicates the start of the MAC Frame to the MAC sublayer. From the MAC sublayer's perspective, it only needs to know the total amount of overhead so it can account for it in the Bandwidth Allocation process. More information on this may be found in the PMD sublayer clause (see B.6.4).
+
+The FEC overhead is spread throughout the MAC frame and is assumed to be transparent to the MAC data stream. The MAC sublayer does need to be able to account for the overhead when doing Bandwidth Allocation. More information on this may be found in the Upstream Bandwidth Allocation clause (see B.6.4).
+
+### B.6.2.1.2 MAC Frame transport
+
+The transport of MAC frames by the PMD sublayer for upstream channels is shown in Figure B.6-2.
+
+
+
+The diagram illustrates the upstream MAC/PMD convergence process. It is divided into three horizontal layers by dashed lines: 'Upper layer' at the top, 'MAC sublayer' in the middle, and 'PMD sublayer' at the bottom. In the MAC sublayer, three 'MAC Frame' blocks are shown, with ellipses indicating more frames. Vertical dashed lines extend from the start of each MAC frame down to the PMD sublayer. In the PMD sublayer, each MAC frame is shown as a sequence of segments: 'PMD overhead', 'Data', and 'FEC'. Arrows labeled 'Start of burst at mini-slot boundary' point to the beginning of each sequence. Additional ellipses and labels like 'PMD overhead' are present at the ends of the sequences. A small text label 'T0904890-97/d060' is in the bottom right corner.
+
+Diagram of upstream MAC/PMD convergence showing MAC frames being segmented into bursts with PMD overhead and FEC.
+
+Figure B.6-2/J.112 – Upstream MAC/PMD convergence
+
+The layering of MAC frames over MPEG in the downstream channel is described in B.5.
+
+### B.6.2.1.3 Ordering of bits and octets
+
+Within an octet, the least-significant bit is the first transmitted on the wire. This follows the convention used by Ethernet and [ISO/IEC 8802-3]. This is often called bit-little-indian order3.
+
+3 This applies to the upstream channel only. For the downstream channel, the MPEG transmission convergence sublayer presents an octet-wide interface to the MAC, so the MAC sublayer does not define the bit order.
+
+Within the MAC layer, when numeric quantities are represented by more than one octet (i.e. 16-bit and 32-bit values), the octet containing the most-significant bits is the first transmitted on the wire. This subclause follows the textual convention that when bit-fields are presented in tables, the most-significant bits are topmost in the table. For example, in Table B.6-2, FC\_TYPE occupies the two most-significant bits and EHDR\_ON occupies the least-significant bit. This is sometimes called byte-big-indian order.
+
+#### B.6.2.1.3.1 Representing negative numbers
+
+Signed integer values will be transmitted and received in two's complement format.
+
+#### B.6.2.1.4 MAC Header format
+
+The MAC Header format MUST be as shown in Figure B.6-3.
+
+
+
+The diagram illustrates the MAC Header structure. The main header consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (SID) (2 bytes), EHDR (0-240 bytes), and HCS (2 bytes). The FC field is expanded to show its internal bit fields: FC\_TYPE (2 bits), FC\_PARM (5 bits), and EHDR\_ON (1 bit). The text 'T0906440-98/d061' is located to the right of the diagram.
+
+Diagram of MAC Header format showing fields FC (1 byte), MAC\_PARM (1 byte), LEN (SID) (2 bytes), EHDR (0-240 bytes), and HCS (2 bytes). The FC field is expanded to show its internal bit fields: FC\_TYPE (2 bits), FC\_PARM (5 bits), and EHDR\_ON (1 bit).
+
+Figure B.6-3/J.112 – MAC Header format
+
+All MAC headers MUST have the general format as shown in Table B.6-1. The Frame Control (FC) field is the first byte and uniquely identifies the rest of the contents within the MAC Header. The FC field is followed by 3 bytes of MAC control; an OPTIONAL Extended Header (EHDR) field; plus a Header Check Sequence (HCS) to ensure the integrity of the MAC Header.
+
+Table B.6-1/J.112 – Generic MAC Header format
+
+| MAC Header field | Usage | Size |
+|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|
+| FC | Frame Control: identifies type of MAC Header | 8 bits |
+| MAC_PARM | Parameter field whose use is dependent on FC: if EHDR_ON = 1; used for EHDR field length (ELEN) else if for concatenated frames (see Table B.6-14) used for MAC frame count else (for Requests only) indicates the number of mini-slots and/or ATM cells requested | 8 bits |
+| LEN (SID) | The length of the MAC frame: the length is defined to be the sum of the number of bytes in the extended header (if present) and the number of bytes following the HCS field. (For a REQ Header, this field is the Service ID instead) | 16 bits |
+| EHDR | Extended MAC Header (where present; variable size). | 0-240 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| | Length of a MAC Header | 6 bytes + EHDR |
+
+The HCS field is a 16-bit CRC that ensures the integrity of the MAC Header, even in a collision environment. The HCS field coverage MUST include the entire MAC Header, starting with the FC field and including any EHDR field that may be present. The HCS is calculated using CRC-CCITT ( $x^{16} + x^{12} + x^5 + 1$ ) as defined in [ITU-T X.25].
+
+The FC field is broken down into the FC\_TYPE sub-field, FC\_PARM sub-field and an EHDR\_ON indication flag. The format of the FC field MUST be as shown in Table B.6-2.
+
+**Table B.6-2/J.112 – FC field format**
+
+| FC field | Usage | Size |
+|----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------|
+| FC_TYPE | MAC Frame Control type field: 00: Packet PDU MAC Header 01: ATM PDU MAC Header 10: Reserved PDU MAC Header 11: MAC-specific Header | 2 bits |
+| FC_PARM | Parameter bits, use dependent on FC_TYPE. | 5 bits |
+| EHDR_ON | When = 1, indicates that EHDR field is present. [Length of EHDR (ELEN) determined by MAC_PARM field] | 1 bit |
+
+The FC\_TYPE sub-field is the two MSBs of the FC field. These bits MUST always be interpreted in the same manner to indicate one of four possible MAC frame formats. These types include: MAC Header with Packet PDU; MAC Header with ATM cells; MAC Header reserved for future PDU types; or a MAC Header used for specific MAC control purposes. These types are spelled out in more detail in the remainder of this subclause.
+
+The five bits following the FC\_TYPE sub-field form the FC\_PARM sub-field. The use of these bits is dependent on the type of MAC Header. The LSB of the FC field is the EHDR\_ON indicator. If this bit is set, then an Extended Header (EHDR) is present. The EHDR provides a mechanism to allow the MAC Header to be extensible in an interoperable manner.
+
+The Transmission Convergence Sublayer stuff-byte pattern is defined to be a value of 0xFF. This precludes the use of FC byte values which have FC\_TYPE = '11' and FC\_PARM = '11111'.
+
+The MAC\_PARM field of the MAC Header serves several purposes depending on the FC field. If the EHDR\_ON indicator is set, then the MAC\_PARM field MUST be used as the Extended Header length (ELEN). The EHDR field MAY vary from 0 to 240 bytes. If this is a concatenation MAC Header, then the MAC\_PARM field represents the number of MAC frames (CNT) in the concatenation (see B.6.2.5.4). If this is a Request MAC Header (REQ) (see B.6.2.5.3), then the MAC\_PARM field represents the amount of bandwidth being requested. In all other cases, the MAC\_PARM field is reserved for future use.
+
+The third field has two possible uses. In most cases, it indicates the length (LEN) of this MAC frame. In one special case, the Request MAC Header, it is used to indicate the cable modem's Service ID since no PDU follows the MAC Header.
+
+The Extended Header (EHDR) field provides extensions to the MAC frame format. It is used to implement data link security and can be extended to add support for additional functions in future releases. Initial implementations SHOULD pass this field to the processor. This will allow future software upgrades to take advantage of this capability. (Refer to B.6.2.6, "Extended MAC Headers", for details.)
+
+#### **B.6.2.1.5 Data PDU**
+
+The MAC Header MAY be followed by a Data PDU. The type and format of the Data PDU is defined in the Frame Control field of the MAC Header. The FC field explicitly defines a Packet Data PDU, an ATM Data PDU, a MAC Header only frame (no PDU) and a reserved code point (used as an escape mechanism for future extensions). All CMs MUST use the length in the MAC Header to skip over any reserved data.
+
+### B.6.2.2 Packet-Based MAC frames
+
+#### B.6.2.2.1 Variable-length packets
+
+The MAC sublayer MUST support a variable-length Ethernet and [ISO/IEC 8802-3] type Packet Data PDU. The Packet PDU MUST be passed across the network in its entirety, including its original CRC. A unique Packet MAC Header is appended to the beginning. The frame format without an Extended header MUST be as shown in Figure B.6-4 and Table B.6-3.
+
+
+
+The diagram illustrates the structure of a Packet MAC frame. The top row shows the main fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Packet PDU (18-1518 bytes). The FC field is expanded into three sub-fields: FC\_TYPE (00), FC\_PARM (00000), and EHDR\_ON (0). The Packet PDU is expanded into five sub-fields: DA (6 bytes), SA (6 bytes), Type/Len (2 bytes), User Data (0-1500), and CRC (4 bytes). The diagram is labeled T0904910-97/d062.
+
+Diagram of Ethernet and ISO/IEC 8802-3 Packet PDU format. The top row shows the main fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Packet PDU (18-1518 bytes). The FC field is expanded into FC\_TYPE (00), FC\_PARM (00000), and EHDR\_ON (0). The Packet PDU is expanded into DA (6 bytes), SA (6 bytes), Type/Len (2 bytes), User Data (0-1500), and CRC (4 bytes).
+
+NOTE – Frame size is limited to 1518 bytes in the absence of VLAN tagging. Cooperating devices which implement IEEE 802.1Q VLAN tagging MAY use a frame size up to 1522 bytes.
+
+**Figure B.6-4/J.112 – Ethernet and ISO/IEC 8802-3 Packet PDU format**
+
+**Table B.6-3/J.112 – Packet PDU format**
+
+| Field | Usage | Size |
+|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|
+| FC | FC_TYPE = 00; Packet MAC Header. FC_PARM[4:0] = 00000; other values reserved for future use and ignored. EHDR_ON = 0; no EHDR present this example. | 8 bits |
+| MAC_PARM | Reserved, MUST be set to zero if there is no EHDR; otherwise set to length of EHDR. | 8 bits |
+| LEN | LEN = n; length of Packet PDU in bytes. | 16 bits |
+| EHDR | Extended MAC Header not present in this example | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| Packet data | Packet PDU: DA – 48 bit Destination address SA – 48 bit Source address Type/Len – 16-bit Ethernet type or [ISO/IEC 8802-3] length field User Data (variable length, 0-1500 bytes) CRC – 32-bit CRC over packet PDU (as defined in Ethernet and [ISO/IEC 8802-3]) | n bytes |
+| | Length of Packet MAC frame | 6 + n bytes |
+
+### B.6.2.3 ATM cell MAC frames
+
+ATM transport is not defined in this specification.
+
+In order to allow current frame-based CMs to operate in a possible future downstream channel in which ATM cells and frames are mixed, a code point for ATM has been defined. This will allow current modems to ignore ATM cells while receiving frames. The frame format MUST be as shown in Figure B.6-5 and Table B.6-4.
+
+
+
+Diagram of ATM cell MAC Frame format. The main frame consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and ATM cells (n x 53 bytes). A dashed line from the FC field points to a detailed view showing its internal structure: FC\_TYPE = 01, FC\_PARM = 00000, and EHDR\_ON = 0. The diagram is labeled T0904920-97/d063.
+
+**Figure B.6-5/J.112 – ATM cell MAC Frame format**
+
+**Table B.6-4/J.112 – ATM cell MAC Frame format**
+
+| Field | Usage | Size |
+|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|
+| FC | FC_TYPE = 01; ATM cell format MAC Header. FC_PARM[4:0] = 00000; other values reserved for future use and ignored. EHDR_ON = 0; no EHDR present in this example. | 8 bits |
+| MAC_PARM | Reserved, MUST be set to zero if there is no EHDR; otherwise set to length of EHDR. | 8 bits |
+| LEN | LEN = n × 53; length of ATM cell PDU, in bytes | 16 bits |
+| EHDR | Extended MAC Header not present in this example | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| ATM data | ATM cell PDU | n × 53 bytes |
+| | Length of ATM cells based MAC Frame | 6 + n × 53 bytes |
+
+#### B.6.2.4 Reserved PDU MAC frames
+
+The MAC sublayer provides a reserved FC code point to allow for support of future (to be defined) PDU formats. The FC field of the MAC Header indicates that a Reserved PDU is present. This PDU MUST be silently discarded by MAC implementations of this version (1.0) of the specification. Compliant version 1.0 implementations MUST use the length field to skip over the Reserved PDU.
+
+The format of the Reserved PDU without an extended header MUST be as shown in Figure B.6-6 and Table B.6-5.
+
+
+
+Diagram of Reserved PDU format. The main frame consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Reserved PDU (n bytes). A dashed line from the FC field points to a detailed view showing its internal structure: FC\_TYPE = 10, FC\_PARM = RRRRR, and EHDR\_ON = 0. The diagram is labeled T0904930-97/d064.
+
+**Figure B.6-6/J.112 – Reserved PDU format**
+
+**Table B.6-5/J.112 – Reserved PDU format**
+
+| Field | Usage | Size |
+|-----------|-----------------------------------------------------------------------------------------------------------------------------------|-------------|
+| FC | FC_TYPE = 10; Reserved PDU MAC Header. FC_PARM[4:0]; reserved for future use. EHDR_ON = 0; no EHDR present in this example. | 8 bits |
+| MAC_PARM | Reserved for future use | 8 bits |
+| LEN | LEN = n; length of Reserved PDU in bytes. | 16 bits |
+| EHDR | EHDR = 0; extended MAC Header not present in this example. | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| User data | Reserved Data PDU | n bytes |
+| | Length of a Reserved PDU MAC Frame | 6 + n bytes |
+
+**B.6.2.5 MAC-specific headers**
+
+There are several MAC headers which are used for very specific functions. These functions include support for downstream timing and upstream ranging/power adjust, requesting bandwidth and concatenating multiple MAC frames.
+
+**B.6.2.5.1 Timing Header**
+
+A specific MAC Header is identified to help support the timing and adjustments required. In the downstream, this MAC Header MUST be used to transport the Global Timing Reference to which all cable modems synchronize. In the upstream, this MAC Header MUST be used as part of the Ranging message needed for a cable modem’s timing and power adjustments. The Timing MAC Header is followed by a Packet Data PDU. The format MUST be as shown in Figure B.6-7 and Table B.6-6.
+
+
+
+Diagram of the Timing MAC Header structure. It shows a sequence of fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Packet PDU (various lengths). A dashed line with arrows points from the FC field to a detailed view of its 8-bit structure: FC\_TYPE = 11, FC\_PARM = 00000, and EHDR\_ON = 0. The diagram is labeled T0904940-97/d065.
+
+**Figure B.6-7/J.112 – Timing MAC Header**
+
+**B.6.2.5.2 MAC management Header**
+
+A specific MAC Header is identified to help support the MAC management messages required. This MAC Header MUST be used to transport all MAC management messages (refer to B.6.3). The format MUST be as shown Figure B.6-8 and Table B.6-7.
+
+**Table B.6-6/J.112 – Timing MAC Header format**
+
+| Field | Usage | Size |
+|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------|
+| FC | FC_TYPE = 11; MAC-specific Header. FC_PARM[4:0] = 00000; timing MAC Header. EHDR_ON = 0; extended header prohibited for SYNC and RNG-REQ. | 8 bits |
+| MAC_PARM | Reserved for future use | 8 bits |
+| LEN | LEN = n; length of Packet PDU in bytes. | 16 bits |
+| EHDR | Extended MAC Header not present | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| Packet data | MAC Management message: SYNC message (downstream only) RNG-REQ (upstream only) | n bytes |
+| | Length of Timing Message MAC Frame | 6 + n bytes |
+
+
+
+Diagram of Management MAC Header structure. The top row shows fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and MAC Management message. A dashed line from the FC field points to a detailed view below, which shows FC\_TYPE = 11, FC\_PARM = 00001, and EHDR\_ON. A label T0904950-97/d066 is present to the right.
+
+**Figure B.6-8/J.112 – Management MAC Header**
+
+**Table B.6-7/J.112 – Management MAC Header format**
+
+| Field | Usage | Size |
+|-------------|-----------------------------------------------------------------------|--------------------|
+| FC | FC_TYPE = 11; MAC-specific Header. FC_PARM[4:0] = 00001 EHDR_ON | 8 bits |
+| MAC_PARM | Reserved for future use | 8 bits |
+| LEN | LEN = n; length of Packet PDU in bytes. | 16 bits |
+| EHDR | Extended MAC Header not present in this example | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| Packet data | MAC Management message | n bytes |
+| | Length of Management MAC Frame | 6 + n bytes + EHDR |
+
+**B.6.2.5.3 Request MAC Header**
+
+The Request MAC Header is the basic mechanism that a cable modem uses to request bandwidth. As such, it is only applicable in the upstream. There MUST be no Data PDUs following the Request MAC Header. The general format of the Request MUST be as shown in Figure B.6-9 and Table B.6-8.
+
+Because the Request MAC Header does not have a Data PDU following it, the LEN field is not needed. The LEN field MUST be replaced with an SID. The SID MUST uniquely identify a particular service queue within a given station.
+
+The bandwidth request, REQ, MUST be specified in either mini-slots or in ATM cells. The REQ field MUST indicate the current total amount of bandwidth requested for this service queue including appropriate allowance for the PHY overhead.
+
+
+
+Diagram of Request MAC Header format showing fields FC (1 byte), MAC\_PARM (1 byte), SID (2 bytes), and HCS (2 bytes). The FC field is expanded to show FC\_TYPE = 11, FC\_PARM = R0010, and EHDR\_ON = 0. Reference T0904960-97/d067.
+
+Figure B.6-9/J.112 – Request MAC Header format
+
+Table B.6-8/J.112 – Request MAC Header (REQ) format
+
+| Field | Usage | Size |
+|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
+| FC | FC_TYPE = 11; MAC-specific Header. FC_PARM[3:0] = 0010; MAC Header only; no data PDU following. FC_PARM[4] indicates if REQ is in mini-slots or ATM cells. [4] = 0; mini-slot REQ. [4] = 1; ATM cell REQ. EHDR_ON = 0; no EHDR allowed. | 8 bits |
+| MAC_PARM | REQ, total amount of bandwidth requested (upstream only): if FC_PARM[4] = 0; REQ is number of mini-slots. if FC_PARM[4] = 1; REQ is number of ATM cells. | 8 bits |
+| SID | Service ID (0 ...0x3FFF) | 16 bits |
+| EHDR | Extended MAC Header not allowed | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| | Length of a REQ MAC Header | 6 bytes |
+
+**B.6.2.5.4 Concatenation**
+
+A Specific MAC Header is defined to allow multiple MAC frames to be concatenated. This allows a single MAC "burst" to be transferred across the network. The PHY overhead and the Concatenation MAC Header only occur once. Concatenation of multiple MAC frames MUST be as shown in Figure B.6-10.
+
+A compliant CMTS & CM MAY support concatenation.
+
+NOTE – Concatenation only applies to upstream traffic. Concatenation MUST NOT be used on downstream traffic.
+
+
+
+Diagram of Concatenation of multiple MAC frames showing PHY Overhead, MAC Hdr (Concat), MAC Frame 1 (MAC HDR + optional PDU), and MAC Frame n (MAC HDR + optional PDU). Reference T0906030-97/d068.
+
+Figure B.6-10/J.112 – Concatenation of multiple MAC frames
+
+Only one Concatenation MAC Header MUST be present per MAC "burst". Nested concatenation MUST NOT be allowed. Immediately following the Concatenation MAC Header MUST be the MAC Header of the first MAC Frame. Information within the MAC Header indicates the length of the first MAC Frame and provides a means to find the start of the next MAC Frame. Each MAC Frame within a concatenation MUST be unique and MAY be of any type. This means that Packet, ATM, Reserved PDU and MAC-specific frames MAY be mixed together. The embedded MAC frames MAY be addressed to different destinations and MUST be delivered as if they were transmitted individually.
+
+The format of the Concatenation MAC Header MUST be as shown in Figure B.6-11 and Table B.6-9.
+
+The MAC\_PARM field MUST be used to indicate the total count of MAC frames (CNT) in this concatenation burst. If the count equals zero, then there is an unspecified number of MAC frames. The LEN field indicates the length of the entire concatenation. This is slightly different than the LEN field within an individual MAC Header which only indicates the length of that MAC frame.
+
+
+
+Diagram of Concatenation MAC Header format. The header consists of four fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), and HCS (2 bytes). The FC field is expanded to show its internal structure: FC\_TYPE = 11, FC\_PARM = 11100, and EHDR\_ON = 0. A dashed line connects the FC field to its expanded view. A label T0904970-97/d069 is present below the HCS field.
+
+**Figure B.6-11/J.112 – Concatenation MAC Header format**
+
+**Table B.6-9/J.112 – Concatenated MAC Frame format**
+
+| Field | Usage | Size |
+|-------------|---------------------------------------------------------------------------------------------------------------------------------------|---------------|
+| FC | FC_TYPE = 11; MAC-specific Header FC_PARM[4:0] = 11100; Concatenation MAC Header EHDR_ON = 0; no EHDR with Concatenation Header | 8 bits |
+| MAC_PARM | CNT, number of MAC frames in this concatenation CNT = 0 indicates unspecified number of MAC frames | 8 bits |
+| LEN | LEN = x + ... + y; length of all following MAC frames in bytes | 16 bits |
+| EHDR | Extended MAC Header MUST NOT be used | 0 bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| MAC Frame 1 | first MAC frame: MAC Header plus OPTIONAL data PDU | x bytes |
+| MAC Frame n | last MAC frame: MAC Header plus OPTIONAL data PDU | y bytes |
+| | Length of Concatenated MAC Frame | 6 + LEN bytes |
+
+### B.6.2.6 Extended MAC headers
+
+Every MAC Header, except the Timing, Concatenation MAC Header and Request Frame, has the capability of defining an Extended Header field (EHDR). The presence of an EHDR field MUST be indicated by the EHDR\_ON flag in the FC field being set. Whenever this bit is set, then the MAC\_PARM field MUST be used as the EHDR length (ELEN). The minimum defined EHDR is 1 byte. The maximum EHDR length is 240 bytes.
+
+A compliant CMTS & CM MUST support extended headers.
+
+The format of a generic MAC Header with an Extended Header included MUST be as shown in Figure B.6-12 and Table B.6-10.
+
+NOTE – Extended Headers MUST NOT be used in a Concatenation MAC Header, but MAY be included as part of the MAC headers within the concatenation.
+
+Extended headers MUST NOT be used in Request and Timing MAC headers.
+
+
+
+Figure B.6-12/J.112 – Extended MAC format diagram. The top part shows a MAC frame structure: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), EHDR (1-240 bytes), HCS (2 bytes), and data PDU (optional). Below this, two callouts show detailed field structures. The first callout for the FC field shows FC\_TYPE = XX, FC\_PARM (reserved), and EHDR\_ON = 1. The second callout for the EHDR field shows a repeating structure of EH\_TYPE (4 bits), EH\_LEN (4 bits), EH\_VALUE (0-15 bytes), and a 'repeat' indicator. A small code T0906450-98/d070 is visible at the bottom right.
+
+Figure B.6-12/J.112 – Extended MAC format
+
+Table B.6-10/J.112 – Extended Header format
+
+| Field | Usage | Size |
+|----------|----------------------------------------------------------------------------------------------------------------------------------------|-----------------|
+| FC | FC_TYPE = XX; applies to all MAC Headers. FC_PARM[4:0] = XXXXX; dependent on FC_TYPE. EHDR_ON = 1; EHDR present in this example. | 8 bits |
+| MAC_PARM | ELEN = x; length of EHDR in bytes. | 8 bits |
+| LEN | LEN = x + y; length of EHDR plus OPTIONAL data PDU in bytes. | 16 bits |
+| EHDR | Extended MAC Header present in this example | x bytes |
+| HCS | MAC Header check sequence | 2 bytes |
+| PDU | OPTIONAL data PDU | y bytes |
+| | Length of MAC Frame with EHDR | 6 + x + y bytes |
+
+Since the EHDR increases the length of the MAC frame, the LEN field MUST be increased to include both the length of the Data PDU and the length of the EHDR.
+
+The EHDR field consists of one or more EH elements. Each EH element is variable sized. The first byte of the EH element MUST contain a type and a length field. Every CM MUST use this length to skip over any unknown EH elements. The format of an EH element MUST be as shown in Table B.6-11.
+
+Table B.6-11/J.112 – EH element format
+
+| EH element fields | Usage | Size |
+|-------------------|-----------------------|------------|
+| EH_TYPE | EH element type field | 4 bits |
+| EH_LEN | Length of EH_VALUE | 4 bits |
+| EH_VALUE | EH element data | 0-15 bytes |
+
+The types of EH element defined in Table B.6-12 MUST be supported. Reserved and extended types are undefined at this point and SHOULD be ignored.
+
+The first eight EH element types are intended for one-way transfer between the cable modem and the CMTS. The next seven EH element types are for end-to-end usage within a MAC-sublayer domain. Thus, the information attached to the EHDR on the upstream MUST also be attached when the information is forwarded. The final EH element type is an escape mechanism that allows for more types and longer values, and MUST be as shown in Table B.6-12.
+
+**Table B.6-12/J.112 – EH element format**
+
+| EH_TYPE | EH_LEN | EH_VALUE |
+|----------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| 0 | 0 | Null configuration setting: may be used to pad the extended header. The EH_LEN MUST be zero, but the configuration setting may be repeated. |
+| 1 | 3 | Request: mini-slots requested (1 byte); SID (2 bytes) [CM → CMTS]. |
+| 2 | 2 | Acknowledgment requested; SID (2 bytes) [CM → CMTS]. |
+| 3 (= BP_UP) | 4 | Upstream Privacy EH element [MCNS8] |
+| 4 (= BP_DOWN) | 4 | Downstream Privacy EH element [MCNS8] |
+| 5 (= SS_UP) | 8 or 9 | Upstream Security Header [MCNS2] |
+| 6 (= SS_DOWN) | 8 or 9 | Downstream Security Header [MCNS2] |
+| 7 | | Reserved |
+| 8 | 4 | Reserved |
+| 10-14 | | Reserved [CM ↔ CM] |
+| 15 | XX | Extended EH element: EHX_TYPE (1 byte), EHX_LEN (1 byte), EH_VALUE (length determined by EHX_LEN). |
+
+### B.6.2.7 Error-Handling
+
+The cable network is a potentially harsh environment that may cause several different error conditions to occur. This subclause, together with B.7.2.17, describes the procedures that are required when an exception occurs at the MAC framing level.
+
+The most obvious type of error occurs when the HCS on the MAC Header fails. This may be a result of noise on the network or possibly by collisions in the upstream channel. Framing recovery on the downstream channel is performed by the MPEG transmission convergence sublayer. In the upstream channel, framing is recovered on each transmitted burst, such that framing on one burst is independent of framing on prior bursts. Hence, framing errors within a burst are handled by simply ignoring that burst, i.e. errors are unrecoverable until the next burst.
+
+A second exception, which applies only to the upstream, occurs when the Length field is corrupted and the MAC thinks the frame is longer than it actually is. Synchronization will recover at the next valid upstream data interval.
+
+For every MAC transmission, the HCS MUST be verified. When a bad HCS is detected, the MAC Header and any payload MUST be dropped.
+
+For Packet PDU transmissions, a bad CRC MAY be detected. Since the CRC only covers the Data PDU and the HCS covers the MAC Header; the MAC Header is still considered valid. Thus, the Packet PDU MUST be dropped, but any pertinent information in the MAC Header (e.g. bandwidth request information) MAY be used.
+
+## B.6.3 MAC Management messages
+
+### B.6.3.1 MAC Management message Header
+
+MAC management messages MUST be encapsulated in an LLC unnumbered information frame per [ISO/IEC 8802-2], which in turn is encapsulated within the cable network MAC framing, as shown in Figure B.6-13. Figure B.6-13 shows the MAC Header and the MAC Management Message Header fields which are common across all MAC Management messages.
+
+
+
+T0906460-98/d071
+
+Diagram of MAC Header and MAC Management Message Header fields. The diagram shows the bit layout from 0 to 31. The MAC Header (bits 0-15) contains FC (0-7), MAC\_PARM (8-15), LEN (16-23), and HCS (24-31). The MAC Management Message Header (bits 16-31) contains DA (16-23), DA (24-31), SA (32-39), msg LEN (40-47), DSAP (48-55), SSAP (56-63), control (64-71), version (72-79), type (80-87), RSVD (88-95), Management message payload (variable length), and CRC (end). Labels on the right indicate the MAC Header, MAC Management Message Header, and Management message payload.
+
+**Figure B.6-13/J.112 – MAC Header and MAC Management Message Header fields**
+
+The fields MUST be as defined below:
+
+| | |
+|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| FC, MAC_PARM, LEN, HCS | Common MAC frame header – Refer to B.6.2.1.4 for details. All messages use a MAC-specific header. |
+| Destination Address (DA) | MAC management frames will be addressed to a specific CM unicast address or to the MCNS management multicast address. These MCNS MAC management addresses are described in Appendix B.I. |
+| Source Address (SA) | The MAC address of the source CM or CMTS system. |
+| Msg Length | Length of the MAC message from DSAP to the end of the payload. |
+| DSAP | The LLC null SAP (00) as defined by [ISO/IEC 8802-2]. |
+| SSAP | The LLC null SAP (00) as defined by [ISO/IEC 8802-2]. |
+| Control | Unnumbered information frame (03) as defined by [ISO/IEC 8802-2]. |
+| Version | 1 octet This field defines the version of the MAC management protocol in use. Set to 1 for this version. |
+| Type | 1 octet This field defines the type of this particular MAC management message. |
+| RSVD | 1 octet This field is used to align the message payload on a 32-bit boundary. Set to 0 for this version. |
+| Management Message Payload | Variable length As defined for each specific management message. |
+| CRC | Covers message including header fields (DA, SA, ...). Polynomial defined by [ISO/IEC 8802-3]. |
+
+**Table B.6-13/J.112 – MAC Management message types**
+
+| Type value | Message name | Message description |
+|------------|--------------|-----------------------------------------|
+| 1 | SYNC | Timing Synchronization |
+| 2 | UCD | Upstream Channel Descriptor |
+| 3 | MAP | Upstream Bandwidth Allocation |
+| 4 | RNG-REQ | Ranging Request |
+| 5 | RNG-RSP | Ranging Response |
+| 6 | REG-REQ | Registration Request |
+| 7 | REG-RSP | Registration Response |
+| 8 | UCC-REQ | Upstream Channel Change Request |
+| 9 | UCC-RSP | Upstream Channel Change Response |
+| 10 | TRI-TCD | Telephony Channel Descriptor [MCNS6] |
+| 11 | TRI-TSI | Termination System Information [MCNS6] |
+| 12 | BPKM-REQ | Privacy Key Management Request [MCNS8] |
+| 13 | BPKM-RSP | Privacy Key Management Response [MCNS8] |
+| 14-255 | | Reserved for future use |
+
+**B.6.3.2 MAC management messages**
+
+A compliant CMTS or CM MUST support the following management message types.
+
+**B.6.3.2.1 Time Synchronization (SYNC)**
+
+Time Synchronization (SYNC) MUST be transmitted by CMTS at a periodic interval to establish MAC sublayer timing. This message MUST use an FC field of type: Timing. This MUST be followed by a Packet PDU in the format shown in Figure B.6-14.
+
+
+
+Diagram showing the format of a Packet PDU following the timing Header. It consists of two stacked rectangular boxes. The top box is labeled 'MAC Management Message Header' and the bottom box is labeled 'CMTS Timestamp'. Above the boxes, bit positions 0, 8, 16, 24, and 31 are marked. A small code 'T0906470-98/d072' is at the bottom right.
+
+**Figure B.6-14/J.112 – Format of Packet PDU following the timing Header**
+
+The parameters shall be as defined below:
+
+**CMTS Timestamp** An incrementing 32-bit timestamp based on a timebase reference clock at the CMTS. Units are in 1/64th of a Timebase Tick (i.e. 6.25/64 μs4).
+
+4 Since the SYNC message applies to all upstream channels within this MAC domain, units were chosen to be independent of the symbol rate of any particular upstream channel. A Timebase Tick represents the smallest possible mini-slot at the highest possible symbol rate. See B.6.5.4 for time-unit relationships.
+
+### B.6.3.2.2 Upstream Channel Descriptor (UCD)
+
+An Upstream Channel Descriptor MUST be transmitted by the CMTS at a periodic interval to define the characteristics of an upstream channel (see Figure B.6-15). A separate message MUST be transmitted for each active upstream.
+
+
+
+| | | | | |
+|--------------------------------------------------------------|-------------------------------|-------------------|--------------------------|----|
+| Bit 0 | 8 | 16 | 24 | 31 |
+| MAC Management Message Header | | | | |
+| Upstream channel ID | Configuration Change Count | Mini-Slot Size | Downstream channel ID | |
+| TLV-encoded information for the overall channel | | | | |
+| TLV-encoded burst description | | | | |
+| TLV-encoded information for the subsequent burst descriptors | | | | |
+
+T0906480-98/d073
+
+Diagram of the Upstream Channel Descriptor (UCD) message structure showing bit offsets and field layout.
+
+**Figure B.6-15/J.112 – Upstream channel descriptor**
+
+To provide for flexibility, the message parameters following the channel ID MUST be encoded in a Type/Length/Value (TLV) form in which the type and length fields are each 1 octet long. Using this encoding, new parameters MAY be added which not all CMs can interpret. A CM which does not recognize a parameter type MUST skip over this parameter and MUST NOT treat the event as an error condition.
+
+A CMTS MUST generate UCDs in the format shown in Figure B.6-15, including all of the following parameters:
+
+- Configuration Change Count** Incremented by one (modulo the field size) by the CMTS whenever any of the values of this channel descriptor change. If the value of this count in a subsequent UCD remains the same, the CM can quickly decide that the remaining fields have not changed, and may be able to disregard the remainder of the message. This value is also referenced from the MAP.
+- Mini-Slot Size** The size $T$ of the Mini-Slot for this upstream channel in units of the Timebase Tick of 6.25 $\mu\text{s}$ . Allowable values are $T = 2^M$ , $M = 0, 1, \dots, 7$ . That is, $T = 1, 2, 4, 8, 16, 32, 64, \text{ or } 128$ .
+- upstream channel ID** The identifier of the upstream channel to which this message refers. This identifier is arbitrarily chosen by the CMTS and is only unique within the MAC-sublayer domain.
+- downstream channel ID** The identifier of the downstream channel on which this message has been transmitted. This identifier is arbitrarily chosen by the CMTS and is only unique within the MAC-sublayer domain.
+
+All other parameters are coded as TLV tuples. Channel-wide parameters (types 1-3 in Table B.6-14) must precede burst descriptors (type 4 below).
+
+**Table B.6-14/J.112 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (Variable length) |
+|------------------|------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Symbol Rate | 1 | 1 | Multiples of base rate of 160 ksym/s. (Value is 1, 2, 4, 8, or 16.) |
+| Frequency | 2 | 4 | Upstream center frequency (Hz) |
+| Preamble Pattern | 3 | 1-128 | Preamble superstring. All burst-specific preamble values are chosen as bit-substrings of this string. The first byte of the Value field contains the first 8 bits of the superstring, with the first bit of the preamble superstring in the MSB position of the first Value field byte, the eighth bit of the preamble superstring in the LSB position of the first Value field byte; the second byte in the Value field contains the second eight bits of the superstring, with the ninth bit of the superstring in the MSB of the second byte and sixteenth bit of the preamble superstring in the LSB of the second byte, and so forth. |
+| Burst Descriptor | 4 | | May appear more than once; described below. The length is the number of bytes in the overall object, including embedded TLV items. |
+
+Burst Descriptors are compound TLV encodings that define, for each type of upstream usage interval, the physical-layer characteristics that are to be used during that interval. The upstream interval usage codes are defined in the MAP message (see B.6.3.2.3 and Figure B.6-16).
+
+
+
+| | | |
+|------------------------------|---------------|------------------------|
+| Type = 4 Burst Descriptor | Length 1-n | Interval Usage Code |
+| TLV codes for PHY parameters | | |
+
+T0906490-98/d074
+
+Diagram showing the top-level encoding for a Burst Descriptor. It consists of three fields: 'Type = 4 Burst Descriptor', 'Length 1-n', and 'Interval Usage Code'. Below these fields is a dashed box labeled 'TLV codes for PHY parameters'. The diagram is labeled T0906490-98/d074.
+
+**Figure B.6-16/J.112 – Top-level encoding for a Burst Descriptor**
+
+A Burst Descriptor MUST be included for each interval usage code that is to be used in the allocation MAP. The interval usage code above must be one of the values from Table B.6-16.
+
+Within each Burst Descriptor is an unordered list of Physical-layer attributes, encoded as TLV values. These attributes are shown in Table B.6-15.
+
+#### B.6.3.2.2.1 Example of UCD encoded TLV data
+
+An example of UCD encoded TLV data is given in Figure B.6-17.
+
+**Table B.6-15/J.112 – Upstream Physical-Layer Burst Attributes**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (Variable Length) |
+|--------------------------------|--------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Modulation Type | 1 | 1 | 1 = QPSK, 2 = 16 QAM |
+| Differential Encoding | 2 | 1 | 1 = on, 2 = off |
+| Preamble Length | 3 | 2 | Up to 1024 bits. The value must be an integral number of symbols (a multiple of 2 for QPSK and 4 for 16 QAM) |
+| Preamble Value Offset | 4 | 2 | Identifies the bits to be used for the preamble value. This is specified as a starting offset into the Preamble Pattern (see Table B.6-14). That is, a value of zero means that the first bit of the preamble for this burst type is the value of the first bit of the Preamble Pattern. A value of 100 means that the preamble is to use the 101st and succeeding bits from the Preamble Pattern. This value must be a multiple of the symbol size. The first bit of the Preamble Pattern is the first bit into the symbol mapper (Figure B.4-8), and is I 1 in the first symbol of the burst (see B.4.2.2.2). |
+| FEC Error Correction (T bytes) | 5 | 1 | 0-10 bytes: zero implies no Forward Error Correction. |
+| FEC Codeword Length (k) | 6 | 1 | Fixed: 16 to 253 (assuming FEC on) Shortened: 16 to 253 (assuming FEC on) |
+| Scrambler Seed | 7 | 2 | The 15-bit seed value. |
+| Maximum Burst Size | 8 | 1 | The maximum number of mini-slots that can be transmitted during this burst type. Absence of this configuration setting implies that the burst size is limited elsewhere. This value MUST be used when the interval type is Short Data Grant. |
+| Guard Time Size | 9 | 1 | Number of symbol times which must follow the end of this burst. (Although this value may be derivable from other network and architectural parameters, it is included here to ensure that the CMs and CMTS all use the same value.) |
+| Last Codeword Length | 10 | 1 | 1 = fixed; 2 = shortened. |
+| Scrambler on/off | 11 | 1 | 1 = on; 2 = off. |
+
+| | | | | |
+|--------|--------------|-------------------------|--|--|
+| Type 1 | Length 1 | Symbol Rate | | |
+| Type 2 | Length 4 | Frequency | | |
+| Type 3 | Length 1-128 | Preamble Superstring | | |
+| Type 4 | Length N | First Burst Descriptor | | |
+| Type 4 | Length N | Second Burst Descriptor | | |
+| Type 4 | Length N | Third Burst Descriptor | | |
+| Type 4 | Length N | Fourth Burst Descriptor | | |
+
+T0905860-97/d075
+
+Figure B.6-17/J.112 – Example of UCD encoded TLV data
+
+**B.6.3.2.3 Upstream Bandwidth Allocation Map (MAP)**
+
+A CMTS MUST generate MAPs in the format shown in Figure B.6-18.
+
+
+
+| | | | |
+|-------------------------------|----------------------|---------------------|-------------------|
+| MAC Management Message Header | | | |
+| Upstream channel ID | UCD count | Number of elements | Reserved |
+| Alloc start time | | | |
+| Ack time | | | |
+| Ranging back-off start | Ranging back-off end | Data back-off start | Data back-off end |
+| MAP information elements | | | |
+
+Diagram of MAP format showing MAC Management Message Header, Upstream channel ID, UCD count, Number of elements, Reserved, Alloc start time, Ack time, Ranging back-off start/end, Data back-off start/end, and MAP information elements.
+
+T0906500-98/d076
+
+Figure B.6-18/J.112 – MAP format
+
+The parameters MUST be as follows:
+
+| | |
+|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
+| Upstream Channel ID | The identifier of the upstream channel to which this message refers. |
+| UCD Count | Matches the value of the Configuration Change Count of the UCD which describes the burst parameters which apply to this map. See B.7.2.15. |
+| Number Elements | Number of information elements in the map. |
+| Reserved | Reserved field for alignment. |
+
+| | |
+|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Alloc Start Time | Effective start time from CMTS initialization (in mini-slots) for assignments within this map. |
+| Ack Time | Latest time, from CMTS initialization, (mini-slots) processed in upstream. This time is used by the CMs for collision detection purposes. See B.6.4.4. |
+| Ranging Backoff Start | Initial back-off window for initial ranging contention, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0). |
+| Ranging Backoff End | Final back-off window for initial ranging contention, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0). |
+| Data Backoff Start | Initial back-off window for contention data and requests, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0). |
+| Data Backoff End | Final back-off window for contention data and requests, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0). |
+| MAP information elements | MUST be in the format defined in Figure B.6-19 and Table B.6-16. Values for IUCs are defined in Table B.6-16 and are described in detail in B.6.4.1. |
+
+
+
+| | | | |
+|--------------------------------|---------|---------|---------------------|
+| First interval | SID | IUC | Offset = 0 |
+| Second interval | SID | IUC | Offset |
+| ⋮ | | | |
+| Last interval | SID | IUC | Offset |
+| End-of-list (Null IE) | SID = 0 | IUC = 7 | Offset = map length |
+| | SID | IUC | Offset = map length |
+| ⋮ | | | |
+| Acknowledgements and Deferrals | SID | IUC | Offset = map length |
+
+Diagram showing the MAP information element structure with columns for SID, IUC, and Offset. Rows include First interval, Second interval, Last interval, End-of-list (Null IE), and Acknowledgements and Deferrals.
+
+T0905030-97/d077
+
+**Figure B.6-19/J.112 – MAP information element structure**
+
+**Table B.6-16/J.112 – Allocation MAP Information Elements (IE)**
+
+| IE name | Interval Usage Code (IUC) (4 bits) | SID (14 bits) | Mini-slot offset (14 bits) |
+|-----------------------------------------------------------|------------------------------------|---------------------|-------------------------------------------------------------------------------------------------------|
+| Request | 1 | Any | Starting offset of REQ region |
+| REQ/Data (refer to Appendix B.1 for multicast definition) | 2 | Multicast | Starting offset of IMMEDIATE Data region Well-known multicasts define start intervals |
+| Initial Maintenance | 3 | Broadcast/multicast | Starting offset of MAINT region (used in Initial Ranging) |
+| Station Maintenance (Note 1) | 4 | Unicast | Starting offset of MAINT region (used in Periodic Ranging) |
+| Short Data Grant (Note 2) | 5 | Unicast | Starting offset of Data Grant assignment; If inferred length = 0, then it is a Data Grant pending. |
+| Long Data Grant | 6 | Unicast | Starting offset of Data Grant assignment; If inferred length = 0, then it is a Data Grant pending. |
+| Null IE | 7 | Zero | Ending offset of the previous grant. Used to bound the length of the last actual interval allocation. |
+| Data Ack | 8 | Unicast | CMTS sets to 0. |
+| Reserved | 9-14 | Any | Reserved |
+| Expansion | 15 | Expanded IUC | # of additional 32-bit words in this IE |
+
+NOTE 1 – Although the distinction between Initial Maintenance and Station Maintenance is unambiguous from the Service ID type, separate codes are used to ease physical-layer configuration (see burst descriptor encodings, Table B.6-15).
+NOTE 2 – The distinction between long and short data grants is related to the amount of data that can be transmitted in the grant. A short data grant interval may use FEC parameters that are appropriate to short packets while a long data grant may be able to take advantage of greater FEC coding efficiency.
+NOTE 3 – Each IE is a 32-bit quantity, of which the most significant 14 bits represent the SID, the middle 4 bits the IUC, and the low-order 14 bits the mini-slot offset.
+NOTE 4 – The SID used in the Station Maintenance IE MUST be a Temporary SID, or the first Registration SID (and maybe the only one) that was assigned in the REG-RSP message to a CM.
+
+**B.6.3.2.4 Ranging Request (RNG-REQ)**
+
+A Ranging Request MUST be transmitted by a CM at initialization and periodically on request from CMTS to determine network delay. This message MUST use an FC field of type: Timing. This MUST be followed by a Packet PDU in the format shown in Figure B.6-20.
+
+
+
+Bit 0 8 16 24 31
+
+| | | | |
+|-------------------------------|--|-----------------------|-----------------------|
+| MAC Management Message Header | | | |
+| SID | | Downstream channel ID | Pending till complete |
+
+T0906510-98/d078
+
+Diagram of Packet PDU following the Timing Header. It shows a 32-bit word structure with bit positions 0, 8, 16, 24, and 31. The first 16 bits (0-15) are the MAC Management Message Header. The next 8 bits (16-23) are the SID. The following 8 bits (24-31) are split into Downstream channel ID (bits 24-27) and Pending till complete (bits 28-31).
+
+**Figure B.6-20/J.112 – Packet PDU following the Timing Header**
+
+Parameters MUST be as follows:
+
+**SID**
+
+For RNG-REQ messages transmitted in Initial Maintenance intervals:
+
+- initialization SID if modem is attempting to join the network;
+- initialization SID if modem has not yet registered and is changing downstream (or both downstream and upstream) channels as directed by a downloaded parameter file;
+- temporary SID if modem has not yet registered and is changing upstream (not downstream) channels as directed by a downloaded parameter file;
+- registration SID (previously assigned in REG-RSP) if modem is registered and is changing upstream channels.
+
+For RNG-REQ messages transmitted in Station Maintenance intervals:
+
+- assigned SID.
+
+This is a 16-bit field of which the lower 14 bits define the SID with bits 14, 15 defined to be 0.
+
+**Downstream channel ID**
+
+The identifier of the downstream channel on which the CM received the UCD which described this upstream. This is an 8-bit field.
+
+**Pending Till Complete**
+
+If zero, then all previous Ranging Response attributes have been applied prior to transmitting this request. If non-zero, then this is time estimated to be needed to complete assimilation of ranging parameters. Note that only equalization can be deferred. Units are in unsigned centiseconds (10 ms).
+
+**B.6.3.2.5 Ranging Response (RNG-RSP)**
+
+A Ranging Response MUST be transmitted by a CMTS in response to received RNG-REQ in the format shown in Figure B.6-21. The state machines describing the ranging procedure appear in B.7.2.5. In that procedure it may be noted that, from the point of view of the CM, reception of a Ranging Response is stateless. In particular, the CM MUST be prepared to receive a Ranging Response at any time, not just following a Ranging Request.
+
+
+
+The diagram illustrates the structure of a Ranging Response message. It is a 32-bit (4-byte) packet. The first byte (bits 0-7) is the MAC Management Message Header. The next byte (bits 8-15) is the SID from request. The third byte (bits 16-23) is the Upstream channel ID. The final byte (bits 24-31) is TLV encoded information. Bit positions 0, 8, 16, 24, and 31 are marked at the top.
+
+| | | | | | |
+|-------------------------------|---|---------------------|----|-------------------------|----|
+| Bit | 0 | 8 | 16 | 24 | 31 |
+| MAC Management Message Header | | | | | |
+| SID from request | | Upstream channel ID | | TLV encoded information | |
+| | | | | | |
+
+T0906520-98/d079
+
+Diagram of Ranging Response message structure showing MAC Management Message Header, SID from request, Upstream channel ID, and TLV encoded information.
+
+**Figure B.6-21/J.112 – Ranging Response**
+
+To provide for flexibility, the message parameters following the Upstream Channel ID MUST be encoded in a type/length/value (TLV) form. Using this encoding, new parameters can be added which not all CMs can interpret. A CM which does not recognize a parameter type MUST simply skip over this parameter and MUST NOT treat the event as an error condition.
+
+Parameters MUST be as follows:
+
+| | |
+|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| SID | If the modem is being instructed by this response to move to a different channel, this is initialization SID. Otherwise, this is the SID from the corresponding RNG-REQ to which this response refers, except that if the corresponding RNG-REQ was an initial ranging request specifying a initialization SID, then this is the assigned temporary SID. |
+| Upstream channel ID | The identifier of the upstream channel on which the CMTS received the RNG-REQ to which this response refers. |
+| Timing adjust information | The time by which to offset frame transmission so that frames arrive at the expected mini-slot time at the CMTS. |
+| Power adjust information | Specifies the relative change in transmission power level that the CM is to make in order that transmissions arrive at the CMTS at the desired power. |
+| Frequency adjust information | Specifies the relative change in transmission frequency that the CM is to make in order to better match the CMTS. (This is fine-frequency adjustment within a channel, not re-assignment to a different channel.) |
+| CM transmitter equalization information | If the CM implements transmission equalization, this provides the equalization coefficients (optional). |
+| Ranging status | Used to indicate whether upstream messages are received within acceptable limits by CMTS. |
+| Downstream Frequency Override | An optional parameter. The downstream frequency with which the modem should redo initial ranging. |
+| Upstream Channel ID Override | An optional parameter. The identifier of the upstream channel with which the modem should redo initial ranging. |
+
+#### B.6.3.2.5.1 Encodings
+
+The type values used MUST be those defined in Table B.6-17 and Figure B.6-22. These are unique within the ranging response message but not across the entire MAC message set. The type and length fields MUST each be 1 octet in length.
+
+**Table B.6-17/J.112 – Ranging Response message encodings**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (Variable Length) |
+|-------------------------------|---------------|-----------------|--------------------------------------------------------------------|
+| Timing Adjust | 1 | 4 | TX timing offset adjustment [signed 32 bit, units of (6.25 µs/64)] |
+| Power Level Adjust | 2 | 1 | TX Power offset adjustment (signed 8 bit, 1/4-dB units) |
+| Offset Frequency Adjust | 3 | 2 | TX frequency offset adjustment (signed 16 bit, Hz units) |
+| Transmit Equalization Adjust | 4 | n | TX equalization data – See details below |
+| Ranging Status | 5 | 1 | 1 = continue, 2 = abort, 3 = success |
+| Downstream frequency override | 6 | 4 | Centre frequency of new downstream channel in Hz |
+| Upstream channel ID override | 7 | 1 | Identifier of the new upstream channel |
+| Reserved | 8-255 | n | Reserved for future use |
+
+| | | |
+|----------------------------------------|----------------------------|---------------------------------------------|
+| Type 4 | Length | Number of taps per symbol |
+| Number of forward taps (N) | Number of reverse taps (M) | |
+| First coefficient $F_0$ (real) | | First coefficient $F_0$ (imaginary) |
+| ~ ~ | | |
+| Last coefficient $F_N$ (real) | | Last coefficient $F_N$ (imaginary) |
+| First reverse coefficient $D_0$ (real) | | First reverse coefficient $D_0$ (imaginary) |
+| ~ ~ | | |
+| Last reverse coefficient $D_M$ (real) | | Last reverse coefficient $D_M$ (imaginary) |
+
+T0905060-97/d080
+
+**Figure B.6-22/J.112 – Generalized decision feedback equalization coefficients**
+
+The total number of taps per symbol MUST be in the range 1 to 4.
+
+The total number of taps MAY range up to 64. Each tap consists of a real and imaginary coefficient entry in the table.
+
+If more than 255 bytes are needed to represent equalization information, then several type-4 elements MAY be used. Data MUST be treated as if byte-concatenated, that is, the first byte after the length field of the second type-4 element is treated as if it immediately followed the last byte of the first type-4 element.
+
+The coefficients that are sent to the CM may be coefficients of a CMTS demodulator equalizer such as shown in Figure B.6-23, which, after acquisition, will have tap values that represent the channel distortion. Other equalization methods may be devised in the future. If so, they will use a different type-value so that the element is not overloaded. This is a vendor-specific issue which is not described here.
+
+
+
+T0905070-97/d081
+
+Block diagram of a CMTS demodulator equalizer showing tap locations for forward (F) and reverse (D) coefficients. The input signal is processed through a series of delay elements (z^-1) and summer nodes (+). Forward taps (F0, F1, F2, F3, F4, F5, ..., FN) are applied to the main signal path. Reverse taps (DM, ..., D5, D4, D3, D2, D1, D0) are applied to a feedback path that is delayed relative to the main path. The final output is the sum of the forward and reverse tap contributions.
+
+**Figure B.6-23/J.112 – CMTS demodulator equalizer tap location definition**
+
+### B.6.3.2.5.2 Example of TLV data
+
+An example of TLV data is given in Figure B.6-24.
+
+| | | | |
+|--------|----------|----------------------------------------------------|--|
+| Type 1 | Length 4 | Timing adjust | |
+| Type 2 | Length 1 | Power adjust | |
+| Type 3 | Length 2 | Frequency adjust information | |
+| Type 4 | Length x | x bytes of CM transmitter equalization information | |
+| Type 5 | Length 1 | Ranging status | |
+
+T0905080-97/d082
+
+Figure B.6-24/J.112 – Example of TLV data
+
+### B.6.3.2.5.3 Overriding channels
+
+The RNG-RSP message allows the CMTS to instruct the modem to move to a new downstream and/or upstream channel and to repeat initial ranging. However, the CMTS may do this only in response to an initial ranging request from a modem that is attempting to join the network, or in response to any of the unicast ranging requests that take place immediately after this initial ranging and up to the point where the modem successfully completes periodic ranging. From this point on, only Appendix B.III.8.4 and UCC-REQ mechanisms are available for moving the modem to a new upstream channel, and only Appendix B.III.8.3 mechanism is available for moving the modem to a new downstream channel.
+
+If a downstream frequency override is specified in the RNG-RSP, the modem MUST reinitialize its MAC and perform initial ranging using the specified downstream center frequency as the first scanned channel. For the upstream channel, the modem may select any valid channel based on received UCD messages.
+
+If an upstream channel ID override is specified in the RNG-RSP, the modem MUST reinitialize its MAC and perform initial ranging using for its first attempt the upstream channel specified in the RNG-RSP and the same downstream frequency on which the RNG-RSP was received.
+
+If both downstream frequency and upstream channel ID overrides are present in the RNG-RSP, the modem MUST reinitialize its MAC and perform initial ranging using for its first attempt the specified downstream frequency and upstream channel ID.
+
+Note that when a modem with an assigned temporary SID is instructed to move to a new downstream and/or upstream channel and to redo initial ranging, the modem MUST consider the temporary SID to be deassigned. The modem MUST redo initial ranging using the zero SID.
+
+Configuration file settings (see Appendix B.III.3) for upstream channel ID and downstream frequency are optional but, if specified in the configuration file, they take precedence over the ranging response parameters.
+
+### B.6.3.2.6 Registration Request (REG-REQ)
+
+A Registration Request, in the format shown in Figure B.6-25, MUST be transmitted by a CM at initialization after receipt of a CM parameter file.
+
+
+
+The diagram shows a 32-bit message structure. The top section is the 'MAC Management Message Header' spanning bits 0 to 31. Below it, the 'SID' field occupies bits 0 to 15. The bottom section, labeled 'TLV encoded information', occupies bits 16 to 31. A dashed line separates the header from the rest of the message. A small label 'T0906530-98/d083' is at the bottom right.
+
+Diagram of Registration Request message structure. The message is 32 bits (0-31) long. The first 32 bits are the MAC Management Message Header. The next 16 bits (0-15) are the SID. The remaining 16 bits (16-31) are TLV encoded information.
+
+**Figure B.6-25/J.112 – Registration Request**
+
+To provide for flexibility, the message parameters following the SID MUST be encoded in a type/length/value form. Using this encoding, new parameters MAY be added which not all CMTSs can interpret. A CMTS which does not recognize a parameter type MUST simply skip over this parameter and MUST not treat the event as an error condition.
+
+Parameters MUST be as follows:
+
+| | |
+|----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| SID | Initialization SID for this CM. |
+| Configuration settings for this modem | As defined in Appendix B.III:
• downstream frequency configuration setting;
• upstream channel ID configuration setting;
• network access configuration setting;
• class of service configuration setting;
• modem capabilities configuration setting;
• modem IP address;
• baseline privacy configuration setting.
|
+| Vendor-specific data | As defined in Appendix B.III:
• vendor ID configuration setting (vendor ID of CM);
• vendor-specific extensions.
|
+| Message Integrity Checks | As defined in Appendix B.III:
• CM MIC configuration setting;
• CMTS MIC configuration setting.
|
+
+NOTE – The CM MUST be capable of supporting these standard configuration settings.
+
+#### **B.6.3.2.6.1 Encodings**
+
+The type values used are unique within the registration request message but not across the entire MAC message set. They MUST be those defined in Appendix B.III.
+
+NOTE – The CM MUST forward the vendor-specific configuration settings to the CMTS in the same order in which they were received in the configuration file to allow the message integrity check to be performed.
+
+**B.6.3.2.6.2 Example**
+
+An example of type value encodings is given in Figure B.6-26.
+
+| | | | |
+|---------|-----------|----------------------------------|--|
+| Type 1 | Length 4 | Downstream frequency | |
+| Type 2 | Length 1 | Upstream channel | |
+| Type 3 | Length 1 | Network access | |
+| Type 4 | Length 28 | Service class definition class 1 | |
+| Type 4 | Length 28 | Service class definition class 2 | |
+| | | | |
+| Type 4 | Length 28 | Service class definition class n | |
+| Type 5 | Length 3 | Modem capabilities | |
+| Type 12 | Length 4 | Modem IP address | |
+| Type 8 | Length 3 | Vendor ID | |
+| Type 43 | Length n | n bytes of vendor-specific data | |
+| Type 6 | Length 16 | CM message integrity check | |
+| Type 7 | Length 16 | CMTS message integrity check | |
+
+T0906540-98/d084
+
+**Figure B.6-26/J.112 – Example of Registration Request type value encodings**
+
+**B.6.3.2.7 Registration Response (REG-RSP)**
+
+A Registration Response, in the format shown in Figure B.6-27, MUST be transmitted by CMTS in response to received REG-REQ.
+
+
+
+The diagram illustrates the structure of a Registration Response (REG-RSP) message. It is a 32-bit (4-byte) message. The first 16 bits (bits 0-15) are the MAC Management Message Header. The next 8 bits (bits 16-23) are the SID from the corresponding RNG-REQ. The following 8 bits (bits 24-31) are the Response. The final part of the message is TLV encoded information, which can vary in length and is shown as a dashed box extending downwards from bit 16.
+
+| | | | | | |
+|--------------------------------|---|---|----------|----|----|
+| Bit | 0 | 8 | 16 | 24 | 31 |
+| MAC Management Message Header | | | | | |
+| SID from corresponding RNG-REQ | | | Response | | |
+| TLV encoded information | | | | | |
+
+Diagram of Registration Response format showing MAC Management Message Header, SID from corresponding RNG-REQ, Response, and TLV encoded information with bit positions 0, 8, 16, 24, 31.
+
+T0906550-98/d085
+
+**Figure B.6-27/J.112 – Registration Response format**
+
+To provide for flexibility, the message parameters following the SID MUST be encoded in a type/length/value form. Using this encoding, new parameters MAY be added which not all CMs can interpret. A CM which does not recognize a parameter type MUST skip over this parameter and MUST NOT treat the event as an error condition.
+
+Parameters MUST be as follows:
+
+| | |
+|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| SID from Corresponding REG-REQ | SID from corresponding REG-REQ to which this response refers |
+| Response | 0 = ok 1 = authentication failure 2 = class of service failure |
+| Modem Capabilities | The CMTS response to the capabilities of the modem |
+| Service Class Data | Returned when Response = ok Service ID / service class tuple for each class of service granted |
+| Service Not Available | Returned when Response = class of service failure.
If a service class cannot be supported, this configuration setting is returned in place of the service class data. If this is received, the entire registration request is considered to have failed and must be repeated. |
+| Vendor-Specific Data | As defined in Appendix B.III:
• Vendor ID Configuration Setting (vendor ID of CMTS)
• Vendor-specific extensions
|
+
+NOTE 1 – Service class IDs MUST be those requested in the corresponding REG-REQ.
+
+NOTE 2 – The initialization SID MUST no longer be used once the REG-RSP is received.
+
+#### **B.6.3.2.7.1 Encodings**
+
+The type values used MUST be those shown below. These are unique within the registration response message but not across the entire MAC message set. The type and length fields MUST each be 1 octet.
+
+##### **B.6.3.2.7.1.1 Modem capabilities**
+
+This field defines the CMTS response to the modem capability field in the Registration Request. The CMTS responds to the modem capabilities to indicate whether they may be used. If the CMTS does not recognize a modem capability, it must return this as "off" in the Registration Response.
+
+Only capabilities set to "on" in the REG-REQ may be set "on" in the REG-RSP as this is the handshake indicating that they have been successfully negotiated.
+
+Encodings are as defined for the Registration Request.
+
+##### **B.6.3.2.7.1.2 Service class data**
+
+This encoding defines the parameters associated with a requested class of service. It is somewhat complex in that it is composed from a number of encapsulated type/length/value fields. The encapsulated fields define the particular class of service parameters for the class of service in question. Note that the type fields defined are only valid within the encapsulated service class data configuration setting string. A single service class data configuration setting MUST be used to define the parameters for a single service class. Multiple class definitions MUST use multiple service class data configuration setting sets.
+
+| Type | Length | Value |
+|------|--------|----------------------------|
+| 1 | n | Encoded service class data |
+
+**Internal service class data encodings**
+
+**Class ID**
+
+The value of the field MUST specify the identifier for the class of service to which the encapsulated string applies. This MUST be a class which was requested in the associated REG-REQ.
+
+| Type | Length | Value |
+|------|--------|--------------|
+| 1 | 1 | from REG-REQ |
+
+**Valid Range**
+
+The class ID MUST be in the range 1 to 16.
+
+**Service ID**
+
+The value of the field MUST specify the SID associated with this service class.
+
+| Type | Length | Value |
+|------|--------|-------|
+| 2 | 2 | SID |
+
+**B.6.3.2.7.2 Registration Response encoding example**
+
+An example of Registration Response encoding is given in Figure B.6-28.
+
+| | | |
+|--------------------------------------------------------------------------|-------------|----------------------------------|
+| Type 1 | Length 7 | Service class definition class 1 |
+| Type 1 | Length 7 | Service class definition class 2 |
+|
Image: Dashed box indicating additional service class definitions
Fractional part: Unsigned 8-bit fractional extension, units of $6.25 \mu\text{s}/(64 \times 256) = 0.38146973 \text{ ns}$ |
+| Burst length (mini-slots) if variable on this channel (changes burst-to-burst) | N/A | 1 to 255 mini-slots |
+| Transmit equalizer coefficients | DOCSIS 2.0 mode: 24 complex coefficients, 4 bytes per coefficient (2 real and 2 imaginary), load and convolve modes
DOCSIS 1.1 mode: up to 64 complex coefficients, 4 bytes per coefficient (2 real and 2 imaginary), convolve mode only | Up to 64 coefficients; 4 bytes per coefficient: 2 real and 2 imaginary |
+
+The CM MUST implement the offset frequency adjustment to effect a change in upstream carrier frequency within 10 Hz of the commanded change.
+
+#### 6.2.19.1 Ranging offset
+
+Ranging offset is the time difference between the CM upstream frame time base and the CMTS upstream frame time base. It is an advancement equal to roughly the round-trip delay of the CM from the CMTS, and is needed to synchronize upstream transmissions in the TDMA and S-CDMA schemes. The CMTS MUST provide the CM with feedback adjustments of this offset, based on reception of one or more successfully received bursts (i.e., satisfactory result from each technique employed: Error correction and/or CRC). The CMTS sends these timing adjust commands to the CM in the ranging response MAC message (see clause 8.3.6), where a negative value implies the ranging offset is to be decreased, resulting in later times of transmission at the CM.
+
+For TDMA channels, the CM MUST implement the timing adjust command with resolution of at most one symbol duration (of the symbol rate in use for a given burst) and (other than a fixed bias) with accuracy within $\pm 0.25 \mu\text{s}$ plus $\pm 1/2$ symbol owing to resolution. As an example, for the maximum symbol rate of 5120 ksymb/s, the corresponding symbol period would be 195 ns, the
+
+corresponding maximum resolution for the timing adjustment MUST be 195 ns, and the corresponding minimum accuracy MUST be $\pm 348$ ns. The accuracy of CM burst timing of $\pm 0.25$ $\mu\text{s}$ plus $\pm 1/2$ symbol is relative to the mini-slot boundaries derivable at the CM based on an ideal processing of the timestamp signals received from the CMTS.
+
+The resolution of the integer part of the timing adjust parameter, which is used for TDMA channels, is $(1/10.24 \text{ MHz}) = 6.25 \mu\text{s}/64 \approx 97.66 \text{ ns}$ . For S-CDMA channels the CM MUST implement the timing adjust to within $\pm 0.01$ of the nominal chip period. As an example, for the maximum chip rate of 5120 ksymb/s, the corresponding maximum resolution for the timing correction would be $195 \text{ ns} \times (\pm 0.01)$ , or roughly $\pm 2 \text{ ns}$ .
+
+#### 6.2.19.2 TDMA reconfiguration times
+
+The CM MUST be capable of switching burst profiles with no reconfiguration time required between bursts except for changes in the following parameters:
+
+- 1) output power;
+- 2) symbol rate;
+- 3) offset frequency;
+- 4) channel frequency; and
+- 5) ranging offset.
+
+For **output power** changes: If output power is to be changed by 1 dB or less, the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 5 $\mu\text{s}$ between the last symbol centre of one burst and the first symbol centre of the following burst. If output power is to be changed by more than 1 dB, the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 10 $\mu\text{s}$ between the last symbol centre of one burst and the first symbol centre of the following burst. The maximum reconfiguration time of 96 symbols should compensate for the ramp-down time of one burst and the ramp-up time of the next burst as well as the overall transmitter delay time including the pipeline delay and optional pre-equalizer delay. The output power of the CM MUST be settled to within $\pm 0.1$ dB of its final output power level:
+
+- a) within 5 $\mu\text{s}$ from the beginning of a change of 1 dB or less; and
+- b) within 10 $\mu\text{s}$ from the beginning of a change of greater than 1 dB. Output power MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS, and MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted.
+
+For **symbol rate** changes, the CM MUST be able to transmit consecutive bursts as long as the CMTS allows the required time between bursts for UCD parameter changes (see clause 11.3.2, "Changing upstream channel descriptor message parameters"). Symbol rate MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS, and MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted.
+
+For **offset frequency** changes, the CM MUST be able to transmit consecutive bursts as long as the CMTS allocates at least 96 symbols in between the last symbol centre of one burst and the first symbol centre of the following burst. The maximum reconfiguration time of 96 symbols should compensate for the ramp-down time of one burst and the ramp-up time of the next burst as well as the overall transmitter delay time including the pipeline delay and optional pre-equalizer delay. Offset frequency MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS, and MUST NOT change while more than $-30$ dB of any symbol's energy of the
+
+previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted.
+
+For **channel frequency** changes, the CM MUST be able to implement the change between bursts as long as the CMTS allocates at least 96 symbols plus 100 ms between the last symbol centre of one burst and the first symbol of the following burst. The channel frequency of the CM MUST be settled within the phase noise and accuracy requirements of clauses 6.2.21.5 and 6.2.21.6 within 100 ms from the beginning of the change. Channel frequency MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS, and MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted.
+
+For **ranging offset** changes, the CM MUST be able to transmit consecutive bursts as long as the CMTS allocates at least 96 symbols in between the last symbol centre of one burst and the first symbol centre of the following burst. The maximum reconfiguration time of 96 symbols should compensate for the ramp-down time of one burst and the ramp-up time of the next burst as well as the overall transmitter delay time including the pipeline delay and optional pre-equalizer delay. Ranging offset MUST NOT be changed until the CM is provided sufficient time between bursts by the CMTS, and MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted.
+
+For modulation type changes, the CM MUST be able to transmit consecutive bursts with no reconfiguration time between them (except for the minimum guard time). The modulation MUST NOT change while more than $-30$ dB of any symbol's energy of the previous burst remains to be transmitted, or more than $-30$ dB of any symbol's energy of the next burst has been transmitted, EXCLUDING the effect of the transmit equalizer (if present in the CM) (this is to be verified with the transmit equalizer providing no filtering; delay only, if that. Note that if the CMTS has decision feedback in its equalizer, it may need to provide more than the 96-symbol gap between bursts of different modulation type, which the same CM may use; this is a CMTS decision).
+
+#### 6.2.19.3 S-CDMA reconfiguration times
+
+In S-CDMA mode, for changes in output power per mini-slot, offset frequency, pre-equalizer coefficients, and/or ranging offset, the CM MUST be able to transmit consecutive bursts as long as the CMTS allocates the time duration of at least one frame in between the bursts. For all other burst profile parameter changes, no reconfiguration is required beyond what is provided by the MAC for such changes.
+
+#### 6.2.19.4 CM timing offsets when changing modulation rate
+
+When making a modulation rate change, the CM MUST employ the following timing offsets when changing modulation rates. The offsets in the table correspond to the contribution of DOCSIS 1.0 and 1.1 legacy upstream receivers to changes in latency when making modulation rate changes. These offsets are maintained into DOCSIS 2.0 but with the addition of including in the table the highest modulation rate. The timing offset to apply is the difference between the entry in the table corresponding to the new modulation rate and the entry corresponding to the original modulation rate. The offsets are referenced to the centre of the first symbol in the burst, which is the reference point for burst timing as stated in clause 6.2.20. Specification of these offsets is needed so that CMs apply uniform adjustments to their ranging offsets and so that CMTSs can appropriately handle CMs that apply these offsets when making modulation rate changes.
+
+| Modulation rate | Timing offset (in units of 1/64 time ticks referenced to 5.12 MHz) |
+|-----------------|--------------------------------------------------------------------|
+| 5.12 MHz | 0 (reference) |
+| 2.56 MHz | 0 |
+| 1.28 MHz | 24 |
+| 0.64 MHz | 72 |
+| 0.32 MHz | 168 |
+| 0.16 MHz | 360 |
+
+As an example, suppose a CM is on an upstream channel operating at a modulation rate of 1.28 MHz. Now, suppose the UCD message from the CMTS changes the modulation rate of the channel to 0.32 MHz. The CM applies an additional timing offset of $168 - 24 = 144$ to its ranging offset to compensate for this modulation rate change. The value of 144 is positive, and thus, the CM will add to its ranging offset so that it effectively transmits earlier by 144 units of 1/64 time ticks.
+
+Furthermore, in changing modulation rates, if a CM has its own contribution to a change in latency, the CM MUST also compensate for this CM-specific latency difference. This is in addition to the offset applied from the values in the table above, which result from legacy CMTS upstream receiver contributions to changes in latency. The requirements for CM burst timing accuracy found earlier in this clause for TDMA mode, referenced to the modulation rate that is the lower of the original and the new modulation rate, apply after the modulation rate change, with the required timing offsets above considered. Specifically, the CM MUST implement the timing adjustments with accuracy within 0.25 s plus 1/2 symbol, in both TDMA and S-CDMA modes. A CMTS that does not apply the same internal physical delay offsets as the legacy DOCSIS upstream CMTS receiver implementation is capable of receiving a CM burst after a modulation rate change in any of the following ways but is not limited necessarily to only these ways:
+
+- a) The CMTS may implement the internal physical delay offset, as specified in the above table.
+- b) The CMTS may implement an internal timing compensation based on the expected offset in the above table.
+- c) The CMTS may increase the guard time.
+- d) The CMTS may send an unsolicited RNG-RSP to each CM to adjust the delay offset. As discussed in clause 6.3.6, the CM is expected to be capable of adjusting its timing offset at any time with the accuracy specified within this clause.
+
+### 6.2.20 Burst timing convention
+
+Figure 6-29 illustrates the nominal burst timing for TDMA channels.
+
+a) Nominal burst profile (no timing errors); 8-symbol guard band is illustrated; 10-symbol ramp-up and ramp-down is illustrated.
+
+
+
+The diagram illustrates the nominal TDMA burst timing for two consecutive bursts, Burst N and Burst N+1. Each burst consists of a 10-symbol ramp-up, a preamble, data symbols, and a last FEC parity symbol, followed by a 10-symbol ramp-down. The timing is referenced to the symbol centre of the first symbol of each burst, which also serves as the mini-slot boundary.
+
+Key features of the diagram include:
+
+- Burst N:** Shows the first burst. Labels include "Ramp-up", "Preamble first symbol", "Preamble last symbol", "Data first symbol", and "Last FEC parity symbol".
+- Burst N+1:** Shows the second burst. Labels include "Ramp-down" (from Burst N), "10 symbols" (ramp-down duration), "8 symbols" (guard band duration), "Mini-slot boundary" (at the start of Burst N+1), and "Preamble first symbol" (at the start of Burst N+1).
+- Timing Reference:** A note indicates that timing is referenced to the symbol centre of the first symbol of each burst. A label "Centre of preamble First symbol = Mini-slot boundary" points to the start of Burst N+1.
+- Guard Band:** An 8-symbol guard band is shown between the end of Burst N and the start of Burst N+1.
+- Diagram Code:** J.122\_F6-29 is shown in the bottom right corner.
+
+Diagram of nominal TDMA burst timing showing two bursts, N and N+1, with their respective preamble, data, and parity symbols, and the timing reference points.
+
+NOTE - Ramp-down of one burst can overlap ramp-up of following burst even with one transmitter assigned both bursts.
+
+**Figure 6-29 – Nominal TDMA burst timing**
+
+Figure 6-30 indicates worst-case burst timing for a TDMA channel. In this example, burst N arrives 1.5 symbols late, and burst N + 1 arrives 1.5 symbols early, but separation of 5 symbols is maintained; 8-symbol guard band shown.
+
+
+
+Figure 6-30 – Worst-case TDMA burst timing diagram. The diagram shows two bursts, Burst N and Burst N+1, on a timeline. Burst N is shown with a ramp-down tail, and Burst N+1 is shown with a ramp-up head. The diagram indicates the timing relationship between the last symbol of Burst N and the first symbol of Burst N+1. Key timing parameters shown include: 'Worst-case burst timing input to CMTS' at the top; 'Burst N' and 'Burst N + 1' labels; 'Time equal to 5 symbols separates the first symbol centre of burst N + 1 and the last symbol centre of burst N'; 'Symbol centre of Burst N, last symbol; 1.5 symbols late'; 'Symbol centre of Burst N + 1, last symbol; 1.5 symbols early'; '8-symbol guardband' between the end of Burst N and the start of Burst N+1; '1.5' symbol durations at the ends of the guardband; '5 symbols' duration for the main part of the guardband; and 'Mini-slot boundary' indicated by a vertical line.
+
+**Figure 6-30 – Worst-case TDMA burst timing**
+
+At a symbol rate of $R_s$ , symbols occur at a rate of one each $T_s = 1/R_s$ seconds. Ramp-up and Ramp-down are the spread of a symbol in the time domain beyond $T_s$ duration owing to the symbol-shaping filter and any residual effect from the transmit equalizer. If only one symbol were transmitted, its duration would be longer than $T_s$ due to the shaping filter impulse response being longer than $T_s$ . The spread of the first and last symbols of a burst transmission effectively extends the duration of the burst to longer than $N \times T_s$ , where $N$ is the number of symbols in the burst.
+
+For S-CDMA channels, the bursts from all CMs are synchronized. This means that the ramp-down of one burst may occur at the same time as the ramp-up of the subsequent burst. The CM MUST meet the ranging and synchronization requirements of S-CDMA to assure that the ramp-down and ramp-up of bursts are aligned.
+
+### 6.2.21 Fidelity requirements
+
+The following requirements assume that any pre-equalization is disabled unless otherwise noted.
+
+#### 6.2.21.1 Spurious emissions
+
+The spurious emissions specifications are separated into two regions based on the transmit power. Region 1 is defined to have a power range of +14 dBmV to $(P_{max} - 3)$ , i.e., the central region. Region 2 is defined from +8 dBmV to +14 dBmV and $(P_{max} - 3)$ to $P_{max}$ , i.e., the low and high ends of the transmit power. $P_{max}$ is defined in Table 6-8.
+
+For S-CDMA mode, when a modem is transmitting fewer than 4 spreading codes, the region 2 specifications are used for all transmit power levels. Otherwise, for all other numbers of spreading codes (e.g., 4 to 128) or for TDMA mode, the spurious emissions specifications are used according to the power ranges defined for regions 1 and 2 above.
+
+In addition, for S-CDMA, the spurious emission specifications for S-CDMA MUST be met for any *number\_allocated\_codes*, as defined in clause 6.2.19.
+
+The noise and spurious power MUST NOT exceed the levels given in Tables 6-9, 6-10 and 6-11.
+
+In Table 6-9, inband spurious includes noise, carrier leakage, clock lines, synthesizer spurious products, and other undesired transmitter products. It does not include ISI. The measurement bandwidth for inband spurious is equal to the modulation rate (e.g., 160 to 5120 kHz). All requirements expressed in dBc are relative to the actual transmit power that the CM emits.
+
+**Table 6-9 – Spurious emissions**
+
+| Parameter | Transmitting burst | Between bursts |
+|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
+| Inband | –40 dBc | The greater of –72 dBc or –59 dBmV |
+| Adjacent band | See Table 6-10. | The greater of –72 dBc or –59 dBmV |
+| 3 or fewer carrier-related frequency bands (such as second harmonic, if <42 MHz) | Region 1: –50 dBc for transmitted modulation rate = 320 ksymb/s and above; –47 dBc for transmitted modulation rate = 160 ksymb/s Region 2: –47 dBc | The greater of –72 dBc or –59 dBmV |
+| Bands within 5 to 42 MHz (excluding assigned channel, adjacent channels, and carrier-related channels) | See Table 6-11. | The greater of –72 dBc or –59 dBmV |
+| CM integrated spurious emissions limits (all in 4 MHz, includes discretes) a) | | |
+| 42 to 54 MHz | Max(–40 dBc, –26 dBmV) | –26 dBmV |
+| 54 to 60 MHz | –35 dBmV | –40 dBmV |
+| 60 to 88 MHz | –40 dBmV | –40 dBmV |
+| 88 to 860 MHz | –45 dBmV | Max(–45 dBmV, –40 dB ref d/s b) ) |
+| CM discrete spurious emissions limits | | |
+| 42 to 54 MHz | Max(–50 dBc, –36 dBmV) | –36 dBmV |
+| 54 to 88 MHz | –50 dBmV | –50 dBmV |
+| 88 to 860 MHz | –50 dBmV | –50 dBmV |
+
+a) These spec limits exclude a single discrete spur related to the tuned received channel; this single discrete spur MUST be no greater than –40 dBmV.
+
+b) "dB ref d/s" is relative to the received downstream signal level. Some spurious outputs are proportional to the receive signal level.
+
+The measurement bandwidth for the three (or fewer) carrier-related frequency bands (below 42 MHz) is 160 kHz, with up to three 160 kHz bands, each with no more than the value given in Table 6-9, allowed to be excluded from the "bands within 5 to 42 MHz transmitting burst" specifications of Table 6-11. Carrier-related spurious emissions include all products whose
+
+frequency is a function of the carrier frequency of the upstream transmission such as, but not limited to, carrier harmonics.
+
+The measurement bandwidth is also 160 kHz for the between bursts specifications of Table 6-9 below 42 MHz.
+
+The transmitting burst specifications apply during the mini-slots granted to the CM (when the CM uses all or a portion of the grant), and for 32 modulation intervals before and after the granted mini-slots. The between bursts specifications apply except during a used grant of mini-slots, and the 32 modulation intervals before and after the used grant.
+
+In TDMA mode, a mini-slot may be as short as 32 modulation intervals, or 6.25 microseconds at the 5120 ksymb/s rate, or as short as 200 microseconds at the 160 ksymb/s rate.
+
+##### 6.2.21.1.1 Adjacent channel spurious emissions
+
+Spurious emissions from a transmitted carrier may occur in an adjacent channel which could be occupied by a carrier of the same or different modulation rate. Table 6-10 lists the required adjacent channel spurious emission levels for all combinations of transmitted carrier modulation rates and adjacent channel modulation rates. The measurement is performed in an adjacent channel interval that is of appropriate bandwidth and distance from the transmitted carrier based on the modulation rates of the transmitted carrier and the carrier in the adjacent channel.
+
+**Table 6-10 – Adjacent channel spurious emissions relative to the transmitted burst power level**
+
+| Transmitted carrier modulation rate | Specification in the interval, region 1 | Specification in the interval, region 2 | Measurement interval and distance from carrier edge | Adjacent channel carrier modulation rate |
+|-------------------------------------|-----------------------------------------|-----------------------------------------|-----------------------------------------------------|------------------------------------------|
+| All modulation rates | –47 dBc | –45 dBc | 20 kHz to 180 kHz | 160 kHz |
+| | –47 dBc | –45 dBc | 40 kHz to 360 kHz | 320 kHz |
+| | –46 dBc | –45 dBc | 80 kHz to 720 kHz | 640 kHz |
+| | –45 dBc | –44 dBc | 160 kHz to 1440 kHz | 1280 kHz |
+| | –44 dBc | –41 dBc | 320 kHz to 2880 kHz | 2560 kHz |
+| | –42 dBc | –38 dBc | 640 kHz to 5760 kHz | 5120 kHz |
+
+##### 6.2.21.1.2 Spurious emissions in 5 to 42 MHz
+
+Spurious emissions, other than those in an adjacent channel or carrier-related emissions listed above, may occur in intervals (frequency bands) that could be occupied by other carriers of the same or different modulation rates. To accommodate these different modulation rates and associated bandwidths, the spurious emissions are measured in an interval equal to the bandwidth corresponding to the modulation rate of the carrier that could be transmitted in that interval. This interval is independent of the current transmitted modulation rate.
+
+Table 6-11 lists the possible modulation rates that could be transmitted in an interval, the required spurious level in that interval, and the initial measurement interval at which to start measuring the spurious emissions. Measurements should start at the initial distance and be repeated at increasing distance from the carrier until the upstream band edge, 5 MHz or 42 MHz, is reached. Measurement intervals should not include the three or fewer carrier-related emission bands excluded above.
+
+**Table 6-11 – Spurious emissions in 5 to 42 MHz relative to the transmitted burst power level**
+
+| Possible modulation rate in this interval | Specification in the interval, region 1 | Specification in the interval, region 2 | Initial measurement interval and distance from carrier edge |
+|-------------------------------------------|-----------------------------------------|-----------------------------------------|-------------------------------------------------------------|
+| 160 kHz | –54 dBc | –53 dBc | 220 kHz to 380 kHz |
+| 320 kHz | –52 dBc | –50 dBc | 240 kHz to 560 kHz |
+| 640 kHz | –50 dBc | –47 dBc | 280 kHz to 920 kHz |
+| 1280 kHz | –48 dBc | –44 dBc | 360 kHz to 1640 kHz |
+| 2560 kHz | –46 dBc | –41 dBc | 520 kHz to 3080 kHz |
+| 5120 kHz | –44 dBc | –38 dBc | 840 kHz to 5960 kHz |
+
+#### 6.2.21.2 Spurious emissions during burst on/off transients
+
+Each transmitter MUST control spurious emissions, prior to and during ramp-up and during and following ramp-down, before and after a burst.
+
+On/off spurious emissions, such as the change in voltage at the upstream transmitter output due to enabling or disabling transmission, MUST be no more than 100 mV, and such a step MUST be dissipated no faster than 2 $\mu\text{s}$ of constant slewing. This requirement applies when the CM is transmitting at +55 dBmV or more; at backed-off transmit levels, the maximum change in voltage MUST decrease by a factor of 2 for each 6-dB decrease of power level from +55 dBmV, down to a maximum change of 7 mV at 31 dBmV and below. This requirement does not apply to CM power-on and power-off transients.
+
+#### 6.2.21.3 Modulation error ratio (MER)
+
+MER measures the cluster variance caused by the transmit waveform. It includes the effects of ISI, spurious, phase noise and all other transmitter degradations.
+
+##### 6.2.21.3.1 Definitions
+
+**Symbol MER ( $\text{MER}_{\text{symb}}$ ):** $\text{MER}_{\text{symb}}$ is defined as follows for TDMA or S-CDMA symbols. The transmitted RF waveform (after appropriate downconversion) is applied to the ideal receive symbol matched filter and is sampled once per symbol. For TDMA, the matched filter is a square-root raised cosine filter with $\alpha = 0.25$ . For S-CDMA, the matched filter is a square-root raised cosine filter with $\alpha = 0.25$ , convolved with the time-reversed spreading code sequence (in this convolution, the spreading code sequence is expressed as a weighted impulse train spaced at the chip period). No external noise (AWGN) is added to the signal. The carrier frequency offset, carrier phase offset, symbol timing and gain may be adjusted during each burst to maximize $\text{MER}_{\text{symb}}$ . Equalization of the received waveform is not permitted. For cases where the CM transmit equalizer is ON, the transmit equalizer coefficients may be adjusted to maximize $\text{MER}_{\text{symb}}$ . $\text{MER}_{\text{symb}}$ is defined at the F connector of the CM, except that when an echo channel is inserted, $\text{MER}_{\text{symb}}$ is defined at the output of the echo channel. $\text{MER}_{\text{symb}}$ is computed by the formula:
+
+$$\text{MER}_{\text{symb}}(\text{dB}) = 10 \times \log_{10} \left( \frac{E_{av}}{\frac{1}{N} \sum_{j=1}^N |e_j|^2} \right)$$
+
+where:
+
+$E_{av}$ is the average constellation energy for equally likely symbols (see clause 6.2.13 and Figure 6-18)
+
+$N$ is the number of symbols averaged
+
+$e_j$ is the error vector from the $j$ th received symbol to the ideal transmitted QAM symbol on the grid of Figure 6-18
+
+For S-CDMA, $MER_{symb}$ is averaged over all active codes.
+
+***MER of composite chips (MERchip)***: $MER_{chip}$ is specified for composite S-CDMA chips to ensure that high SNR is maintained, especially for a small number of allocated codes, to prevent noise funnelling effects when many modems transmit simultaneously. A composite S-CDMA chip is defined as the output of the spreader during one chip interval, that is, an element of the transmission vector $\overline{P}_k$ defined in clause 6.2.14.
+
+$MER_{chip}$ is defined as follows. The transmitted RF waveform (after appropriate downconversion) is applied to the ideal receive chip matched filter and is sampled once per chip. The matched filter is a square-root raised cosine filter with $\alpha = 0.25$ . No external noise (AWGN) is added to the signal. The carrier frequency offset, carrier phase offset, timing and gain may be adjusted during each burst to maximize $MER_{chip}$ . Equalization of the received waveform is not permitted. For cases where the CM transmit equalizer is ON, the transmit equalizer coefficients may be adjusted to maximize $MER_{chip}$ . $MER_{chip}$ is defined at the F connector of the CM. $MER_{chip}$ is computed by the formula:
+
+$$MER_{chip} \text{ (dB)} = 10 \times \log_{10} \left( \frac{\sum_{j=1}^N |p_j|^2}{\sum_{j=1}^N |p_j - r_j|^2} \right)$$
+
+where:
+
+$p_j$ is the $j$ th ideal transmitted composite chip
+
+$r_j$ is the $j$ th received composite chip
+
+$N$ is the number of composite chips observed
+
+##### 6.2.21.3.2 Requirements
+
+Unless otherwise stated, the MER MUST meet or exceed the following limits over the full transmit power range of Table 6-8 for each modulation, each modulation rate, and over the full carrier frequency range, and for S-CDMA, over any valid number of active and allocated codes. The 5-42 MHz carrier frequency range refers more precisely to $[5 \text{ MHz} + \text{modulation rate} \times 1.25/2]$ to $[42 \text{ MHz} - \text{modulation rate} \times 1.25/2]$ . At the break points between regions, the higher MER specification applies.
+
+###### Case 1: Flat channel, transmit equalization OFF
+
+Case 1a: for modulation rates 2.56 MHz and below:
+
+$MER_{symb} \geq 30 \text{ dB}$ over 15 to 30 MHz carrier frequency.
+
+$MER_{symb} \geq 27 \text{ dB}$ over 10 to 15 MHz and 30 to 35 MHz carrier frequency.
+
+$MER_{symb} \geq 23 \text{ dB}$ over 5 to 10 MHz and 35 to 42 MHz carrier frequency.
+
+Case 1b: for modulation rate 5.12 MHz:
+
+$MER_{symb} \geq 27 \text{ dB}$ over 15 to 30 MHz carrier frequency.
+
+$\text{MER}_{\text{symb}} \geq 24 \text{ dB}$ over 10 to 15 MHz and 30 to 35 MHz carrier frequency.
+
+$\text{MER}_{\text{symb}} \geq 20 \text{ dB}$ over 5 to 10 MHz and 35 to 42 MHz carrier frequency.
+
+###### Case 2: Flat channel, transmit equalization ON
+
+Case 2a: For TDMA/QPSK, $\text{MER}_{\text{symb}} \geq 30 \text{ dB}$ .
+
+Case 2b: For S-CDMA and all TDMA modulations except QPSK, $\text{MER}_{\text{symb}} \geq 35 \text{ dB}$ .
+
+Case 2c: For S-CDMA, $\text{MER}_{\text{chip}} \geq 33 \text{ dB}$ .
+
+###### Case 3: Echo channel, transmit equalization ON
+
+Case 3a: In the presence of a single echo selected from the channel micro-reflections defined in Table 4-2, the measured $\text{MER}_{\text{symb}}$ MUST be $\geq 30 \text{ dB}$ for TDMA/QPSK, and $\geq 33 \text{ dB}$ for S-CDMA and all TDMA modulations except QPSK.
+
+Case 3b: In the presence of two or three of the echoes defined in Table 4-2 (at most one of each specified magnitude and delay), the measured $\text{MER}_{\text{symb}}$ MUST be $\geq 29 \text{ dB}$ .
+
+Since the table does not bound echo delay for the $-30 \text{ dBc}$ case, for testing purposes it is assumed that the time span of the echo at this magnitude is less than or equal to $1.5 \mu\text{s}$ .
+
+The CMTS MUST provide a test mode in which it:
+
+- accepts equalizer coefficients via an external interface, e.g., Ethernet;
+- sends the coefficients to the CM's pre-equalizer via ranging response message (both set and convolve modes);
+- does not adjust the CM's frequency, timing or power.
+
+#### 6.2.21.4 Filter distortion
+
+The following requirements assume that any pre-equalization is disabled.
+
+##### 6.2.21.4.1 Amplitude
+
+The spectral mask MUST be the ideal square-root raised-cosine spectrum with $\alpha = 0.25$ , within the ranges given in Table 6-12.
+
+**Table 6-12 – Filter amplitude distortion**
+
+| Frequency | Amplitude range | |
+|---------------------------------|-------------------|-------------------|
+| | Low | High |
+| $f_c - 5R_s/8$ | – | $-30 \text{ dB}$ |
+| $f_c - R_s/2$ | $-3.5 \text{ dB}$ | $-2.5 \text{ dB}$ |
+| $f_c - 3R_s/8$ to $f_c - R_s/4$ | $-0.5 \text{ dB}$ | $+0.3 \text{ dB}$ |
+| $f_c - R_s/4$ to $f_c + R_s/4$ | $-0.3 \text{ dB}$ | $+0.3 \text{ dB}$ |
+| $f_c + R_s/4$ to $f_c + 3R_s/8$ | $-0.5 \text{ dB}$ | $+0.3 \text{ dB}$ |
+| $f_c + R_s/2$ | $-3.5 \text{ dB}$ | $-2.5 \text{ dB}$ |
+| $f_c + 5R_s/8$ | – | $-30 \text{ dB}$ |
+
+Where $f_c$ is the centre frequency, $R_s$ is the modulation rate, and the spectral density is measured with a resolution bandwidth of 10 kHz or less.
+
+##### 6.2.21.4.2 Phase
+
+$f_c - 5R_s/8$ Hz to $f_c + 5R_s/8$ Hz: Group delay variation MUST NOT be greater than 100 ns.
+
+#### 6.2.21.5 Carrier phase noise
+
+The upstream transmitter total integrated phase noise (including discrete spurious noise) MUST be less than or equal to $-46$ dBc summed over the spectral regions spanning 200 Hz to 400 kHz above and below the carrier.
+
+The upstream transmitter total integrated phase noise (including discrete spurious noise) MUST be less than or equal to $-44$ dBc summed over the spectral regions spanning 8 kHz to 3.2 MHz above and below the carrier.
+
+The CM MUST provide a test mode in which:
+
+- a continuous (non-bursted), unmodulated (CW) upstream signal is transmitted at the commanded carrier frequency, modulation rate and level. This is equivalent to replacing the chip sequence at the spreader output with the constant sequence (1, 1, 1, 1, 1, 1, ...) at nominal amplitude, equal on both I and Q;
+- the CM tracks the downstream symbol clock and uses it to generate the upstream symbol clock as in normal synchronous operation.
+
+#### 6.2.21.6 Channel frequency accuracy
+
+The CM MUST implement the assigned channel frequency within $\pm 50$ parts per million over a temperature range of 0 to 40 degrees C up to five years from date of manufacture.
+
+#### 6.2.21.7 Modulation rate accuracy
+
+For TDMA mode, the upstream modulator MUST provide an absolute accuracy of symbol rates $\pm 50$ parts per million over a temperature range of 0 to 40 degrees C up to five years from date of manufacture.
+
+For S-CDMA mode, the upstream modulator MUST lock the upstream chip rate to the downstream symbol rate, subject to the symbol timing jitter requirements of clause 6.2.21.8.
+
+#### 6.2.21.8 Modulation timing jitter
+
+##### 6.2.21.8.1 Symbol timing jitter for asynchronous operation
+
+For TDMA mode, peak-to-peak symbol jitter, referenced to the previous symbol zero-crossing, of the transmitted waveform, MUST be less than 0.02 of the nominal symbol duration over a 2-second period. In other words, the difference between the maximum and the minimum symbol duration during the 2-second period shall be less than 0.02 of the nominal symbol duration for each of the five upstream symbol rates.
+
+For TDMA mode, the peak-to-peak cumulative phase error, referenced to the first symbol time and with any fixed symbol frequency offset factored out, MUST be less than 0.04 of the nominal symbol duration over a 0.1-second period. In other words, the difference between the maximum and the minimum cumulative phase error during the 0.1-second period shall be less than 0.04 of the nominal symbol duration for each of the five upstream symbol rates. Factoring out a fixed symbol frequency offset is to be done by using the computed mean symbol duration during the 0.1 s.
+
+##### 6.2.21.8.2 Chip timing jitter for synchronous operation
+
+All jitter specifications assume a downstream input to the CM per clauses 6.3.5, 6.3.6, 6.3.7.2, 6.3.7.3, 6.3.9 and 6.3.10.
+
+For S-CDMA mode, upstream chip clock timing error (with the mean error subtracted out) relative to the CMTS master clock MUST be less than 0.005 RMS of the chip period over a 35-second measurement interval. This applies:
+
+- 1) to the worst-case jitter and frequency drift specified for the CMTS master clock and the CMTS downstream symbol clock in the requirements above; and
+- 2) for any round-trip propagation delay up to the maximum allowed.
+
+The CM upstream chip clock SHOULD track the jitter components below 10 Hz in the input downstream symbol clock with an error transfer function below -25 dB. The CM upstream chip clock SHOULD attenuate the jitter components in the input downstream symbol clock above 200 Hz.
+
+The CM MUST provide a test mode in which:
+
+- a continuous (non-bursted) upstream signal is transmitted at the commanded carrier frequency, modulation rate and level;
+- the chip sequence at the spreader output is replaced with an alternating binary sequence (1, -1, 1, -1, 1, -1, ...) at nominal amplitude, equal on both I and Q;
+- the CM tracks the downstream symbol clock and uses it to generate the upstream symbol clock as in normal synchronous operation.
+
+### 6.2.22 Upstream demodulator input power characteristics
+
+The maximum total input power to the upstream demodulator MUST NOT exceed 35 dBmV in the 5-42 MHz frequency range of operation.
+
+The intended received power in each carrier MUST be within the values shown in Table 6-13.
+
+**Table 6-13 – Maximum range of commanded nominal receive power in each carrier**
+
+| Modulation rate [kHz] | Maximum range [dBmV] |
+|-----------------------|----------------------|
+| 160 | -16 to + 14 |
+| 320 | -13 to + 17 |
+| 640 | -10 to + 20 |
+| 1280 | -7 to + 23 |
+| 2560 | -4 to + 26 |
+| 5120 | -1 to + 29 |
+
+The demodulator MUST operate within its defined performance specifications with received bursts within $\pm 6$ dB of the nominal commanded received power.
+
+### 6.2.23 Upstream electrical output from the CM
+
+The CM MUST output an RF modulated signal with the characteristics delineated in Table 6-14.
+
+**Table 6-14 – Electrical output from the CM**
+
+| Parameter | Value |
+|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
+| Frequency | 5 to 42 MHz edge to edge |
+| Level range (one channel) | TDMA: +8 to +54 dBmV (32QAM, 64QAM) +8 to +55 dBmV (8QAM, 16QAM) +8 to +58 dBmV (QPSK) S-CDMA: +8 to +53 dBmV (all modulations) |
+| Modulation type | QPSK, 8QAM, 16QAM, 32QAM, 64QAM and 128QAM |
+| Modulation rate (nominal) | TDMA: 160, 320, 640, 1280, 2560 and 5120 kHz S-CDMA: 1280, 2560 and 5120 kHz |
+| Bandwidth | TDMA: 200, 400, 800, 1600, 3200 and 6400 kHz S-CDMA: 1600, 3200 and 6400 kHz |
+| Output impedance | 75 ohms |
+| Output return loss | >6 dB (5-42 MHz) |
+| Connector | F connector per [IEC 60169-24] (common with the input) |
+
+## 6.3 Downstream
+
+This Recommendation applies only to a CMTS supporting exactly one QAM channel per RF output port. A CMTS supporting more than one QAM channel per RF output port would instead conform to the DOCSIS downstream radio frequency interface [DOCS9] specification in lieu of this downstream clause.
+
+### 6.3.1 Downstream protocol
+
+The downstream PMD sublayer MUST conform to Annex B of [ITU-T J.83], for low-delay video applications, with the exceptions called out in clause 6.3.2.
+
+### 6.3.2 Scalable interleaving to support low latency
+
+The downstream PMD sublayer MUST support a variable-depth interleaver with the characteristics defined in Table 6-15. The table contains a subset of interleaver modes found in Annex B of [ITU-T J.83].
+
+**Table 6-15 – Interleaver characteristics**
+
+| I (number of taps) | J (increment) | Burst protection 64QAM/256QAM | Latency 64QAM/256QAM |
+|-------------------------------|--------------------------|------------------------------------------|---------------------------------|
+| 8 | 16 | 5.9 µs/4.1 µs | 0.22 ms/0.15 ms |
+| 16 | 8 | 12 µs/8.2 µs | 0.48 ms/0.33 ms |
+| 32 | 4 | 24 µs/16 µs | 0.98 ms/0.68 ms |
+| 64 | 2 | 47 µs/33 µs | 2.0 ms/1.4 ms |
+| 128 | 1 | 95 µs/66 µs | 4.0 ms/2.8 ms |
+
+The interleaver depth, which is coded in a 4-bit control word contained in the FEC frame synchronization trailer, always reflects the interleaving in the immediately-following frame. In addition, errors are allowed while the interleaver memory is flushed after a change in interleaving is indicated.
+
+Refer to Annex B of [ITU-T J.83] for the control bit specifications required to specify which interleaving mode is used.
+
+### 6.3.3 Downstream frequency plan
+
+The downstream frequency plan should comply with harmonic related carrier (HRC), incremental related carrier (IRC) or standard (STD) North American frequency plans per [b-EIA 542]. However, operation below a centre frequency of 91 MHz is not required.
+
+### 6.3.4 CMTS electrical output
+
+The CMTS MUST output an RF modulated signal with the following characteristics defined in Table 6-16.
+
+**Table 6-16 – CMTS output**
+
+| Parameter | Value |
+|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Centre frequency ( $f_c$ ) | 91 to 857 MHz $\pm 30$ kHz a) |
+| Level | Adjustable over the range 50 to 61 dBmV |
+| Modulation type | 64QAM and 256QAM |
+| Symbol rate (nominal) 64QAM 256QAM | 5.056941 Msymb/s 5.360537 Msymb/s |
+| Nominal channel spacing | 6 MHz |
+| Frequency response 64QAM 256QAM | -0.18 square root raised cosine shaping -0.12 square root raised cosine shaping |
+| Total discrete spurious inband ( $f_c \pm 3$ MHz) Inband spurious and noise ( $f_c \pm 3$ MHz) | $\leq 57$ dBc $\leq 48$ dBc; where channel spurious and noise includes all discrete spurious, noise, carrier leakage, clock lines, synthesizer products and other undesired transmitter products. Noise within $\pm 50$ kHz of the carrier is excluded. |
+| Adjacent channel ( $f_c \pm 3.0$ MHz) to ( $f_c \pm 3.75$ MHz) | $\leq 58$ dBc in 750 kHz |
+
+**Table 6-16 – CMTS output**
+
+| Parameter | Value |
+|-------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Adjacent channel ( $f_c \pm 3.75$ MHz) to ( $f_c \pm 9$ MHz) | $\leq 62$ dBc, in 5.25 MHz, excluding up to 3 spurs, each of which must be $\leq 60$ dBc when measured in a 10-kHz band. |
+| Next adjacent channel ( $f_c \pm 9$ MHz), to ( $f_c \pm 15$ MHz) | Less than the greater of $-65$ dBc or $-12$ dBmV in 6 MHz, excluding up to three discrete spurs. The total power in the spurs must be $\leq 60$ dBc when each is measured with 10-kHz bandwidth. |
+| Other channels (47 MHz to 1000 MHz) | $< -12$ dBmV in each 6-MHz channel, excluding up to three discrete spurs. The total power in the spurs must be $\leq 60$ dBc when each is measured with 10-kHz bandwidth. |
+| Phase noise | 1 to 10 kHz: $-33$ dBc double-sided noise power 10 to 50 kHz: $-51$ dBc double-sided noise power 50 kHz to 3 MHz: $-51$ dBc double-sided noise power |
+| Output impedance | 75 ohms |
+| Output return loss | $> 14$ dB within an output channel up to 750 MHz; $> 13$ dB in an output channel above 750 MHz |
+| Connector | F connector per [IEC 60169-24] |
+| a) $\pm 30$ kHz includes an allowance of 25 kHz for the largest-frequency offset normally built into upconverters. | |
+
+### 6.3.5 Downstream electrical input to CM
+
+The CM MUST be able to locate and accept RF modulated signals located within channels defined in [b-EIA 542] for harmonic related carrier (HRC), incremental related carrier (IRC) and standard (STD) North American frequency plans. Operation below a centre frequency of 91 MHz is not required. The signals will have the characteristics defined in Table 6-17.
+
+**Table 6-17 – Electrical input to CM**
+
+| Parameter | Value |
+|---------------------------|--------------------------------------------------------------------------------------------------------------------------------|
+| Centre frequency | 91 to 857 MHz $\pm 30$ kHz |
+| Level range (one channel) | $-15$ dBmV to $+15$ dBmV |
+| Modulation type | 64QAM and 256QAM |
+| Symbol rate (nominal) | 5.056941 Msymb/s (64QAM) and 5.360537 Msymb/s (256QAM) |
+| Bandwidth | 6 MHz (alpha = 0.18 square root raised cosine shaping for 64QAM and alpha = 0.12 square root raised cosine shaping for 256QAM) |
+
+**Table 6-17 – Electrical input to CM**
+
+| Parameter | Value |
+|--------------------------------|---------------------------------------------------------|
+| Total input power (40-900 MHz) | <30 dBmV |
+| Input (load) impedance | 75 ohms |
+| Input return loss | >6 dB (88-860 MHz) |
+| Connector | F connector per [IEC 60169-24] (common with the output) |
+
+### 6.3.6 CM BER performance
+
+The bit-error-rate performance of a CM MUST be as described in this clause. The requirements apply to the $I = 128$ , $J = 1$ mode of interleaving.
+
+#### 6.3.6.1 64QAM
+
+##### 6.3.6.1.1 64QAM CM BER performance
+
+Implementation loss of the CM MUST be such that the CM achieves a post-FEC BER less than or equal to $10^{-8}$ when operating at a carrier to noise ratio ( $E_s/N_0$ ) of 23.5 dB or greater.
+
+##### 6.3.6.1.2 64QAM image rejection performance
+
+Performance as described in clause 6.3.6.1.1 MUST be met with an analogue or digital signal at +10 dBc in any portion of the RF band other than the adjacent channels.
+
+##### 6.3.6.1.3 64QAM adjacent channel performance
+
+Performance as described in clause 6.3.6.1.1 MUST be met with a digital signal at 0 dBc in the adjacent channels.
+
+Performance as described in clause 6.3.6.1.1 MUST be met with an analogue signal at +10 dBc in the adjacent channels.
+
+Performance as described in clause 6.3.6.1.1, with an additional 0.2-dB allowance, MUST be met with a digital signal at +10 dBc in the adjacent channels.
+
+#### 6.3.6.2 256QAM
+
+##### 6.3.6.2.1 256QAM CM BER performance
+
+Implementation loss of the CM MUST be such that the CM achieves a post-FEC BER less than or equal to $10^{-8}$ when operating at a carrier to noise ratio ( $E_s/N_0$ ) as shown below.
+
+Input receive signal level $E_s/N_0$
+
+–6 dBmV to +15 dBmV 30 dB or greater
+
+Less than –6 dBmV down to –15 dBmV 33 dB or greater
+
+##### 6.3.6.2.2 256QAM image rejection performance
+
+Performance as described in clause 6.3.6.2.1 MUST be met with an analogue or a digital signal at +10 dBc in any portion of the RF band other than the adjacent channels.
+
+##### 6.3.6.2.3 256QAM adjacent channel performance
+
+Performance as described in clause 6.3.6.2.1 MUST be met with an analogue or a digital signal at 0 dBc in the adjacent channels.
+
+Performance as described in clause 6.3.6.2.1, with an additional 0.5-dB allowance, MUST be met with an analogue signal at +10 dBc in the adjacent channels.
+
+Performance as described in clause 6.3.6.2.1, with an additional 1.0-dB allowance, MUST be met with a digital signal at +10 dBc in the adjacent channels.
+
+### 6.3.7 CMTS timestamp jitter
+
+The CMTS timestamp jitter MUST be less than 500 ns peak-to-peak at the output of the downstream transmission convergence sublayer. This jitter is relative to an ideal downstream transmission convergence sublayer that transfers the MPEG packet data to the downstream physical media dependent sublayer with a perfectly continuous and smooth clock at the MPEG packet data rate. Downstream physical media dependent sublayer processing MUST NOT be considered in timestamp generation and transfer to the downstream physical media dependent sublayer.
+
+Thus, any two timestamps N1 and N2 (N2 > N1) which were transferred to the downstream physical media dependent sublayer, at times T1 and T2 respectively, must satisfy the following relationship:
+
+$$\left| \frac{N2 - N1}{f_{CMTS}} - (T2 - T1) \right| < 500 \times 10^{-9}$$
+
+In the equation, the value of (N2 – N1) is assumed to account for the effect of rollover of the timebase counter, and T1 and T2 represent time in seconds. $f_{CMTS}$ is the actual frequency of the CMTS master timebase and may include a fixed frequency offset from the nominal frequency of 10.24 MHz. This frequency offset is bounded by a requirement further below in this clause.
+
+The jitter includes inaccuracy in timestamp value and the jitter in all clocks. The 500 ns allocated for jitter at the downstream transmission convergence sublayer output MUST be reduced by any jitter that is introduced by the downstream physical media dependent sublayer.
+
+The CM is expected to meet the burst timing accuracy requirements in clause 6.2.19 when the timestamps contain this worst-case jitter.
+
+NOTE – Jitter is the error (i.e., measured) relative to the CMTS master clock (the CMTS master clock is the 10.24-MHz clock used for generating the timestamps).
+
+#### 6.3.7.1 CMTS master clock jitter for asynchronous operation
+
+The CMTS 10.24-MHz master clock MUST have frequency accuracy of $\leq \pm 5$ ppm, drift rate $\leq 10^{-8}$ per second, and edge jitter of $\leq 10$ ns peak-to-peak ( $\pm 5$ ns) over a temperature range of 0 to 40 degrees C up to ten years from date of manufacture5 (the drift rate and jitter requirements on the CMTS master clock implies that the duration of two adjacent segments of 10'240'000 cycles will be within 30 ns, due to 10 ns jitter on each segments' duration, and 10 ns due to frequency drift. Durations of other counter lengths also may be deduced: adjacent 1'024'000 segments, $\leq 21$ ns; 1'024'000 length segments separated by one 10'240'000 cycle segment, $\leq 30$ ns; adjacent 102'400'000 segments, $\leq 120$ ns. The CMTS master clock MUST meet such test limits in 99% or more measurements).
+
+---
+
+5 This Recommendation MAY also be met by synchronizing the CMTS master clock oscillator to an external frequency reference source. If this approach is used, the internal CMTS master clock MUST have frequency accuracy of $\pm 20$ ppm over a temperature range of 0 to 40 degrees C up to ten years from date of manufacture when no frequency reference source is connected. The drift rate and edge jitter MUST be as specified above.
+
+#### 6.3.7.2 CMTS master clock jitter for synchronous operation
+
+In addition to the requirements in clause 6.3.7.1, the 10.24 MHz CMTS master clock MUST meet the following double sideband phase noise requirements over the specified frequency ranges:
+
+| | |
+|---------------------------------------------------------------------|----------------------|
+| $< [-50 + 20 \cdot \log(f_{MC}/10.24)]$ dBc (i.e., $< 0.05$ ns RMS) | 10 to 100 Hz |
+| $< [-58 + 20 \cdot \log(f_{MC}/10.24)]$ dBc (i.e., $< 0.02$ ns RMS) | 100 to 1 kHz |
+| $< [-50 + 20 \cdot \log(f_{MC}/10.24)]$ dBc (i.e., $< 0.05$ ns RMS) | 1 to 10 kHz |
+| $< [-50 + 20 \cdot \log(f_{MC}/10.24)]$ dBc (i.e., $< 0.05$ ns RMS) | 10 kHz to $f_{MC}/2$ |
+
+where $f_{MC}$ is the frequency of the measured master clock in MHz. The value of $f_{MC}$ MUST be either an integral multiple or divisor of 10.24 MHz. For example, if a 20.48-MHz oscillator is used as the master clock frequency source, and there is no explicit 10.24-MHz clock to test, the 20.48 MHz clock may be used with $f_{MC}$ equal to 20.48 in the above expressions.
+
+#### 6.3.7.3 CMTS master clock frequency drift for synchronous operation
+
+The frequency of the master clock MUST NOT drift more than $1e-8$ per second.
+
+### 6.3.8 CMTS clock generation
+
+The CMTS has the following three options related to the synchronization of the CMTS master clock and the downstream symbol clock:
+
+- 1) not locked;
+- 2) downstream symbol clock locked to CMTS master clock;
+- 3) CMTS master clock locked to downstream symbol clock.
+
+For S-CDMA operation, the master clock and the downstream symbol clock MUST be locked using either option 2 or 3.
+
+Let $f_b'$ represent the rate of the downstream symbol clock which is locked to the CMTS master clock, and let $f_m$ represent the rate of the CMTS master clock locked to the downstream symbol clock. Let $f_b$ represent the nominal specified downstream symbol rate, and let $f_m$ represent the nominal CMTS master clock rate (10.24 MHz).
+
+With the downstream symbol clock locked to the CMTS master clock, the following equation MUST hold:
+
+$$f_b' = f_m \times M/N$$
+
+With the CMTS master clock locked to the downstream symbol clock, the following equation MUST hold:
+
+$$f_m' = f_b \times N/M$$
+
+M and N MUST be unsigned integer values each representable in 16 bits (these are specified in the channel TLV parameters of the UCD). When the downstream symbol clock and the CMTS master clock are not locked together, the values of M and N are not valid and are ignored by the CM.
+
+The values of M and N MUST result in a value of $f_b'$ or $f_m'$ , which is not more than $\pm 1$ ppm from its specified nominal value. Table 6-18 lists the downstream modes of operation, their associated nominal symbol rates, $f_b$ , example values for M and N, the resulting synchronized clock rates, and their offsets from their nominal values.
+
+**Table 6-18 – Downstream symbol rates and example parameters for synchronization with the CMTS master clock**
+
+| Downstream mode | Nominal specified symbol rate, $f_b$ [MHz] | M/N | CMTS master clock rate, $f_m'$ [MHz] | Downstream symbol rate, $f_b'$ [MHz] | Offset from nominal |
+|-----------------|--------------------------------------------|---------|--------------------------------------|--------------------------------------|---------------------|
+| Annex B, 64QAM | 5.056941 | 401/812 | 10.239990... | 5.056945... | 0.95 ppm |
+| Annex B, 256QAM | 5.360537 | 78/149 | 10.240000... | 5.360536... | 0.02 ppm |
+
+### 6.3.9 CMTS downstream symbol clock jitter for synchronous operation
+
+The downstream symbol clock MUST meet the following double sideband phase noise requirements over the specified frequency ranges:
+
+| | |
+|---------------------------------------------------------------------|-------------------------|
+| $< [-53 + 20 \cdot \log(f_{DS}/5.057)]$ dBc (i.e., $< 0.07$ ns RMS) | 10 to 100 Hz |
+| $< [-53 + 20 \cdot \log(f_{DS}/5.057)]$ dBc (i.e., $< 0.07$ ns RMS) | 100 to 1 kHz |
+| $< [-53 + 20 \cdot \log(f_{DS}/5.057)]$ dBc (i.e., $< 0.07$ ns RMS) | 1 to 10 kHz |
+| $< [-36 + 20 \cdot \log(f_{DS}/5.057)]$ dBc (i.e., $< 0.5$ ns RMS) | 10 to 100 kHz |
+| $< [-30 + 20 \cdot \log(f_{DS}/5.057)]$ dBc (i.e., $< 1$ ns RMS) | 100 kHz to $(f_{DS}/2)$ |
+
+where $f_{DS}$ is the frequency of the measured clock in MHz. The value of $f_{DS}$ MUST be an integral multiple or divisor of the downstream symbol clock. For example, an $f_{DS} = 20.227764$ -MHz clock may be measured if there is no explicit 5.056941 MHz-clock available.
+
+The CMTS MUST provide a test mode in which:
+
+- the downstream QAM symbol sequence is replaced with an alternating binary sequence (1, -1, 1, -1, 1, -1, ...) at nominal amplitude, on both I and Q;
+- the CMTS generates the downstream symbol clock from the 10.24-MHz reference clock as in normal synchronous operation.
+
+If an explicit downstream symbol clock that is capable of meeting the above phase noise requirements is available (e.g., a smooth clock without clock domain jitter), this test mode is not required.
+
+### 6.3.10 CMTS downstream symbol clock drift for synchronous operation
+
+The frequency of the downstream symbol clock MUST NOT drift more than $1e-8$ per second.
+
+# 7 Downstream transmission convergence sublayer
+
+## 7.1 Introduction
+
+This clause applies to the first technology option referred to in clause 1.1. For the second and third options, refer to Annexes F and J, respectively.
+
+In order to improve demodulation robustness, facilitate common receiving hardware for both video and data, and provide an opportunity for the possible future multiplexing of video and data over the PMD sublayer bitstream defined in clause 6, a sublayer is interposed between the downstream PMD sublayer and the data-over-cable MAC sublayer.
+
+The downstream bitstream is defined as a continuous series of 188-byte MPEG [ITU-T H.222.0] packets. These packets consist of a 4-byte header followed by 184 bytes of payload. The header identifies the payload as belonging to the data-over-cable MAC. Other values of the header may
+
+indicate other payloads. The mixture of MAC payloads and those of other services is optional and is controlled by the CMTS.
+
+Figure 7-1 illustrates the interleaving of data-over-cable (DOC) MAC bytes with other digital information (digital video in the example shown).
+
+| | |
+|----------------|-----------------------|
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = DOC | DOC MAC payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+| Header = video | Digital video payload |
+
+**Figure 7-1 – Example of interleaving MPEG packets in downstream**
+
+## 7.2 MPEG packet format
+
+The format of an MPEG packet carrying DOCS data is shown in Figure 7-2. The packet consists of a 4-byte MPEG header, a pointer\_field (not present in all packets) and the DOCS payload.
+
+| | | |
+|--------------------------|---------------------------|------------------------------------|
+| MPEG header (4 bytes) | pointer_field (1 byte) | DOCS payload (183 or 184 bytes) |
+|--------------------------|---------------------------|------------------------------------|
+
+**Figure 7-2 – Format of an MPEG packet**
+
+## 7.3 MPEG header for DOCS data-over-cable
+
+The format of the MPEG transport stream header is defined in clause 2.4 of [ITU-T H.222.0]. The particular field values that distinguish data-over-cable MAC streams are defined in Table 7-1. Field names are from [ITU-T H.222.0].
+
+**Table 7-1 – MPEG header format for DOCS data-over-cable packets**
+
+| Field | Length (bits) | Description |
+|------------------------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| sync_byte | 8 | 0 × 47; MPEG packet sync byte |
+| transport_error_indicator | 1 | Indicates an error has occurred in the reception of the packet. This bit is reset to zero by the sender, and is set to one whenever an error occurs in transmission of the packet. |
+| payload_unit_start_indicator | 1 | A value of one indicates the presence of a pointer_field as the first byte of the payload (fifth byte of the packet) |
+| transport_priority | 1 | Reserved; set to zero |
+| PID (see Note) | 13 | DOCS data-over-cable well-known PID (0x1FFE) |
+| transport_scrambling_control | 2 | Reserved; set to '00' |
+
+**Table 7-1 – MPEG header format for DOCS data-over-cable packets**
+
+| Field | Length (bits) | Description |
+|--------------------------|---------------|------------------------------------------------------------------|
+| adaptation_field_control | 2 | '01'; use of the adaptation_field is NOT ALLOWED on the DOCS PID |
+| continuity_counter | 4 | Cyclic counter within this PID |
+
+NOTE – The MPEG header consists of 4 bytes that begin the 188-byte MPEG packet. The format of the header for use on a DOCS data-over-cable PID is restricted to that shown in this table. The header format conforms to the MPEG standard, but its use is restricted in this Recommendation to NOT ALLOW inclusion of an adaptation\_field in the MPEG packets.
+
+## 7.4 MPEG payload for DOCS data-over-cable
+
+The MPEG payload portion of the MPEG packet will carry the DOCS MAC frames. The first byte of the MPEG payload will be a 'pointer\_field' if the payload\_unit\_start\_indicator (PUSI) of the MPEG header is set.
+
+### 7.4.1 stuff\_byte
+
+This Recommendation defines a stuff\_byte pattern having a value (0xFF) that is used within the DOCS payload to fill any gaps between the DOCS MAC frames. This value is chosen as an unused value for the first byte of the DOCS MAC frame. The 'FC' byte of the MAC header will be defined to never contain this value (FC\_TYPE = '11' indicates a MAC-specific frame, and FC\_PARM = '11111' is not currently used and, according to this Recommendation, is defined as an illegal value for FC\_PARM).
+
+### 7.4.2 pointer\_field
+
+The pointer\_field is present as the fifth byte of the MPEG packet (first byte following the MPEG header) whenever the PUSI is set to one in the MPEG header. The interpretation of the pointer\_field is as follows.
+
+The pointer\_field contains the number of bytes in this packet that immediately follow the pointer\_field that the CM decoder must skip past before looking for the beginning of a DOCS MAC frame. A pointer field MUST be present if it is possible to begin a data-over-cable MAC frame in the packet, and MUST point to either:
+
+- 1) the beginning of the first MAC frame to start in the packet; or
+- 2) to any stuff\_byte preceding the MAC frame.
+
+## 7.5 Interaction with the MAC sublayer
+
+MAC frames may begin anywhere within an MPEG packet, MAC frames may span MPEG packets, and several MAC frames may exist within an MPEG packet.
+
+The following figures show the format of the MPEG packets that carry DOCS MAC frames. In all cases, the PUSI flag indicates the presence of the pointer\_field as the first byte of the MPEG payload.
+
+Figure 7-3 shows a MAC frame that is positioned immediately after the pointer\_field byte. In this case, pointer\_field is zero, and the DOCS decoder will begin searching for a valid FC byte at the byte immediately following the pointer\_field.
+
+| | | | |
+|---------------------------|------------------------|--------------------------------|------------------------------|
+| MPEG header (PUSI = 1) | pointer_field (= 0) | MAC frame (up to 183 bytes) | stuff_byte(s) (0 or more) |
+|---------------------------|------------------------|--------------------------------|------------------------------|
+
+**Figure 7-3 – Packet format where a MAC frame immediately follows the pointer\_field**
+
+Figure 7-4 shows the more general case where a MAC frame is preceded by the tail of a previous MAC frame and a sequence of stuffing bytes. In this case, the pointer\_field still identifies the first byte after the tail of frame #1 (a stuff\_byte) as the position where the decoder should begin searching for a legal MAC sublayer FC value. This format allows the multiplexing operation in the CMTS to immediately insert a MAC frame that is available for transmission if that frame arrives after the MPEG header and pointer\_field have been transmitted.
+
+| | | | | |
+|---------------------------|------------------------|-----------------------------------|------------------------------|-----------------------|
+| MPEG header (PUSI = 1) | pointer_field (= M) | Tail of MAC frame #1 (M bytes) | stuff_byte(s) (0 or more) | Start of MAC frame #2 |
+|---------------------------|------------------------|-----------------------------------|------------------------------|-----------------------|
+
+**Figure 7-4 – Packet format with MAC frame preceded by stuffing bytes**
+
+In order to facilitate multiplexing of the MPEG packet stream carrying DOCS data with other MPEG-encoded data, the CMTS SHOULD NOT transmit MPEG packets with the DOCS PID which contain only stuff\_bytes in the payload area. MPEG null packets SHOULD be transmitted instead. Note that there are timing relationships implicit in the DOCS MAC sublayer which must also be preserved by any MPEG multiplexing operation.
+
+Figure 7-5 shows that multiple MAC frames may be contained within the MPEG packet. The MAC frames may be concatenated one after the other or be separated by an optional sequence of stuffing bytes.
+
+| | | | | | |
+|---------------------------|------------------------|--------------|--------------|------------------------------|--------------|
+| MPEG header (PUSI = 1) | pointer_field (= 0) | MAC frame #1 | MAC frame #2 | stuff_byte(s) (0 or more) | MAC frame #3 |
+|---------------------------|------------------------|--------------|--------------|------------------------------|--------------|
+
+**Figure 7-5 – Packet format showing multiple MAC frames in a single packet**
+
+Figure 7-6 shows the case where a MAC frame spans multiple MPEG packets. In this case, the pointer\_field of the succeeding frame points to the byte following the last byte of the tail of the first frame.
+
+| | | | | |
+|---------------------------|---------------------------------------------|-----------------------------------|--------------------------------------------|------------------------------------|
+| MPEG header (PUSI = 1) | pointer_field (= 0) | stuff_byte(s) (0 or more) | Start of MAC frame #1 (up to 183 bytes) | |
+| MPEG header (PUSI = 0) | Continuation of MAC frame #1 (184 bytes) | | | |
+| MPEG header (PUSI = 1) | pointer_field (= M) | Tail of MAC frame #1 (M bytes) | stuff_byte(s) (0 or more) | Start of MAC frame #2 (M bytes) |
+
+**Figure 7-6 – Packet format where a MAC frame spans multiple packets**
+
+The transmission convergence sublayer must operate closely with the MAC sublayer in providing an accurate timestamp to be inserted into the time synchronization message (refer to clauses 8.3.2 and 9.3).
+
+## **7.6 Interaction with the Physical Layer**
+
+The MPEG-2 packet stream **MUST** be encoded according to Annex B of [ITU-T J.83], including MPEG-2 transport framing using a parity checksum as described in Annex B of [ITU-T J.83].
+
+## **7.7 MPEG header synchronization and recovery**
+
+The MPEG-2 packet stream **SHOULD** be declared "in frame" (i.e., correct packet alignment has been achieved) when five consecutive correct parity checksums, each 188 bytes from the previous one, have been received.
+
+The MPEG-2 packet stream **SHOULD** be declared "out of frame," and a search for correct packet alignment started, when nine consecutive incorrect parity checksums are received.
+
+The format of MAC frames is described in detail in clause 8.
+
+# **8 Media access control specification**
+
+## **8.1 Introduction**
+
+### **8.1.1 Overview**
+
+This clause describes version 2.0 of the DOCS MAC protocol. Some of the MAC protocol highlights include:
+
+- bandwidth allocation controlled by CMTS;
+- a stream of mini-slots in the upstream;
+- dynamic mix of contention- and reservation-based upstream transmit opportunities;
+- bandwidth efficiency through support of variable-length packets;
+- extensions provided for future support of ATM or other data PDU;
+- Quality of service including:
+ - support for bandwidth and latency guarantees;
+ - packet classification;
+ - dynamic service establishment.
+- extensions provided for security at the data link layer;
+- support for a wide range of data rates.
+
+### **8.1.2 Definitions**
+
+#### **8.1.2.1 MAC-sublayer domain**
+
+A MAC-sublayer domain is a collection of upstream and downstream channels for which a single MAC allocation and management protocol operates. Its attachments include one CMTS and some number of CMs. The CMTS **MUST** service all of the upstream and downstream channels; each CM accesses one logical upstream and one downstream channel at a time. The CMTS **MUST** police and discard any packets received that have a source MAC address that is not a unicast MAC address. The upstream channels may be any combination of DOCS 1.x or 2.0 formats. A single upstream channel **MAY** transport DOCS 1.x and 2.0 bursts.
+
+#### **8.1.2.2 MAC service access point**
+
+A MAC service access point (MSAP) is an attachment to a MAC-sublayer domain (refer to clause 5.2).
+
+#### 8.1.2.3 Service flows
+
+The concept of service flows is central to the operation of the MAC protocol. Service flows provide a mechanism for upstream and downstream quality of service management. In particular, they are integral to bandwidth allocation.
+
+A service flow ID defines a particular unidirectional mapping between a CM and the CMTS. Active upstream service flow IDs also have associated service IDs or SIDs. Upstream bandwidth is allocated to SIDs, and hence to CMs, by the CMTS. Service IDs provide the mechanism by which upstream quality of service is implemented.
+
+The CMTS MAY assign one or more service flow IDs (SFIDs) to each CM, corresponding to the service flows required by the CM. This mapping can be negotiated between the CMTS and the CM during CM registration or via dynamic service establishment (refer to clause 11.4).
+
+In a basic CM implementation, two service flows (one upstream, one downstream) could be used, for example, to offer best-effort IP service. However, the service flow concept allows for more complex CMs to be developed with support for multiple service classes while supporting interoperability with more basic modems. With these more complex modems, it is possible that certain service flows will be configured in such a way that they cannot carry all types of traffic. That is, they may have a maximum packet size limitation or be restricted to small fixed size unsolicited grants. Furthermore it might not be appropriate to send other kinds of data on service flows that are being used for constant bit rate (CBR)-type applications.
+
+Even in these complex modems, it is necessary to be able to send certain upstream packets needed for MAC management, SNMP management, key management, etc. For the network to function properly, all CMs MUST support at least one upstream and one downstream service flow. These service flows MUST always be provisioned to allow the CM to request and to send the largest possible unconcatenated MAC frame (refer to clause 8.2.2). These service flows are referred to as the upstream and downstream primary service flows. The SID assigned to the upstream primary service flow is referred to as the primary SID.
+
+The primary SID MUST always be assigned to the first provisioned upstream service flow during the registration process (which may or may not be the same temporary SID used for the registration process). The primary service flows MUST be immediately activated at registration time. The primary SID MUST always be used for periodic ranging after registration. The primary service flows MAY be used for traffic. All unicast service flows MUST use the security association defined for the primary service flow (refer to [DOCS8]).
+
+All service flow IDs are unique within a single MAC-sublayer domain. The mapping of a unicast service identifier to an active/admitted service flow MUST be unique within a single MAC-sublayer domain. The length of the service flow ID is 32 bits. The length of the service ID is 14 bits (although the service ID is sometimes carried in the low-order bits of a 16-bit field).
+
+Unicast flows on different logical upstreams that are attached to a single MAC-sublayer domain MAY be assigned the same SID, as long as the SFIDs are unique.
+
+#### 8.1.2.4 Upstream intervals, mini-slots and 6.25-microsecond increments
+
+The upstream transmission time-line is divided into intervals by the upstream bandwidth allocation mechanism. Each interval is an integral number of mini-slots. A "mini-slot" is the unit of granularity for upstream transmission opportunities. There is no implication that any PDU can actually be transmitted in a single mini-slot. Each interval is labelled with a usage code which defines both the type of traffic that can be transmitted during that interval and the physical-layer modulation encoding. The usage code values are defined in Table 8-20 and allowed use is defined in clause 8.3. The binding of these values to physical-layer parameters is defined in Table 8-18.
+
+##### 8.1.2.4.1 TDMA mode
+
+For DOCS 1.x channels, a mini-slot is a power-of-two multiple of 6.25- $\mu$ s increments, i.e., 2, 4, 8, 16, 32, 64 or 128 times 6.25 $\mu$ s. For DOCS 2.0 TDMA, a mini-slot is a power-of-two multiple of 6.25- $\mu$ s increments: 1, 2, 4, 8, 16, 32, 64 or 128 times 6.25 $\mu$ s. The relationship between mini-slots, bytes, and time ticks is described further in clause 9.3.4.
+
+##### 8.1.2.4.2 S-CDMA mode
+
+For DOCS 2.0 S-CDMA channels, a mini-slot is not restricted to be a power-of-two multiple of 6.25- $\mu$ s increments. Instead a mini-slot is a unit of capacity that is dependent on the modulation rate, number of spreading codes, and number of spreading intervals configured for the upstream channel6. While the channel may be configured such that the time duration of a mini-slot is a power-of-two multiple of 6.25- $\mu$ s increments, there is no special significance to 6.25- $\mu$ s time ticks for S-CDMA channels. The relationship between mini-slots and S-CDMA framing is described further in clause 6.2.11. The relationship between mini-slots, bytes and time ticks is described further in clause 9.3.4.
+
+#### 8.1.2.5 MAC frame
+
+A MAC layer frame is a unit of data exchanged between two (or more) entities at the data link layer. A MAC frame consists of a MAC header (beginning with a frame control byte; see Figure 8-3), and may incorporate a variable-length data PDU. The variable-length PDU includes a pair of 48-bit addresses, data and a CRC. In special cases, the MAC header may encapsulate multiple MAC frames (see clause 8.2.5.5) into a single MAC frame. The MAC layer definition of a frame is different from any physical layer or MPEG layer definition of a frame.
+
+#### 8.1.2.6 Logical upstream channels
+
+The MAC layer deals with logical upstreams. A logical upstream is identified with an upstream channel ID which is unique within the MSAP. A logical upstream consists of a contiguous stream of mini-slots which are described and allocated by the UCD and MAP messages associated with a channel ID. A CM can only register to operate on a single logical upstream channel.
+
+There are 4 distinct types of logical upstream:
+
+- Type 1: DOCS 1.x upstreams that support no DOCS 2.0 TDMA features;
+- Type 2: Mixed upstreams that support DOCS 1.x and DOCS 2.0 TDMA bursts;
+- Type 3A: DOCS 2.0 TDMA-only upstreams that cannot support DOCS 1.x CMs;
+- Type 3S: S-CDMA upstreams that support only CMs operating in S-CDMA mode.
+
+All valid logical upstreams fall into one of these 4 categories.
+
+In DOCS 2.0 it is possible for multiple logical upstreams to share the same spectrum. When this occurs, the logical upstreams sharing the same spectrum are time domain multiplexed and only one is active at any time. The only exception to this rule is that it is possible for the broadcast initial maintenance regions to be simultaneous. When a logical upstream channel is inactive, its mini-slots are allocated to the NULL SID by its associated MAP messages. Having multiple logical upstreams that share the same spectrum is the only way to have modems operating in S-CDMA mode share the same upstream spectrum with modems not operating in S-CDMA mode.
+
+The CMTS MUST support all four logical upstream channel types individually, and MUST also support the following three combinations of two logical upstream channels sharing the same upstream spectrum:
+
+---
+
+6 This relationship holds true on an S-CDMA channel even if the burst parameters for a particular IUC have the spreader disabled.
+
+- one DOCS 1.x-only logical channel plus one S-CDMA logical channel with the same modulation rate on both logical channels;
+- one mixed DOCS 1.x and A-TDMA logical channel plus one S-CDMA logical channel with the same modulation rate on both logical channels;
+- one A-TDMA-only logical channel plus one S-CDMA logical channel with the same modulation rate on both logical channels.
+
+The CMTS MAY support other combinations of logical channels sharing the same upstream spectrum, including combinations of logical channels with different modulation rates.
+
+#### **8.1.2.7 DOCS 2.0-only logical upstreams**
+
+DOCS 2.0-only logical upstreams have operational parameters in their associated UCD messages that prevent the operation of DOCS 1.x CMs. See clause 8.3.3 for a detailed description of which parameter values make a channel a DOCS 2.0-only upstream. The UCD messages for DOCS 2.0-only logical upstreams use a different MAC management message type (see clause 8.3.1) than do UCD messages for channels that can support 1.x CMs. This prevents 1.x CMs from attempting to use DOCS 2.0-only upstreams or from being confused by UCD messages for those channels. A logical upstream is a DOCS 2.0-only upstream if and only if it is an S-CDMA upstream or a DOCS 2.0 TDMA-only upstream.
+
+### **8.1.3 Future use**
+
+A number of fields are defined as being "for future use" or reserved in the various MAC frames described in this Recommendation. These fields MUST NOT be interpreted or used in any manner by this version (2.0) of the MAC protocol.
+
+## **8.2 MAC frame formats**
+
+### **8.2.1 Generic MAC frame format**
+
+A MAC frame is the basic unit of transfer between MAC sublayers at the CMTS and the cable modem. The same basic structure is used in both the upstream and downstream directions. MAC frames are variable in length. The term "frame" is used in this context to indicate a unit of information that is passed between MAC sublayer peers. This is not to be confused with the term "framing" that indicates some fixed timing relationship.
+
+There are three distinct regions to consider, as shown in Figure 8-1. Preceding the MAC frame is either PMD sublayer overhead (upstream) or an MPEG transmission convergence header (downstream). The first part of the MAC frame is the MAC header. The MAC header uniquely identifies the contents of the MAC frame. Following the header is the optional data PDU region. The format of the data PDU and whether it is even present is described in the MAC header.
+
+
+
+The diagram illustrates the structure of a Generic MAC frame. It shows a vertical stack of components. At the top is a box labeled 'PMD overhead (upstream)'. Below this is a box containing two side-by-side components: 'MAC header (see Figure 8-3)' on the left and 'Data PDU (optional) (see Figure 8-4)' on the right. A horizontal curly brace underneath this box is labeled 'MAC frame'. At the bottom of the stack is a box labeled 'MPEG PSI header (downstream) (see Table 7-1)'. The text 'J.122\_F8-1' is located to the right of the MAC frame box.
+
+Diagram of Generic MAC frame format showing PMD overhead (upstream), MAC header, Data PDU (optional), and MPEG PSI header (downstream).
+
+**Figure 8-1 – Generic MAC frame format**
+
+#### 8.2.1.1 PMD overhead
+
+In the upstream direction, the PHY layer indicates the start of the MAC frame to the MAC sublayer. From the MAC sublayer's perspective, it only needs to know the total amount of overhead so it can account for it in the bandwidth allocation process. More information on this may be found in the PMD sublayer clause (clause 6).
+
+The FEC overhead is spread throughout the MAC frame and is assumed to be transparent to the MAC data stream. The MAC sublayer does need to be able to account for the overhead when doing bandwidth allocation. More information on this may be found in the upstream bandwidth allocation clause (refer to clause 9.1).
+
+#### 8.2.1.2 MAC frame transport
+
+The transport of MAC frames by the PMD sublayer for upstream channels is shown in Figure 8-2.
+
+
+
+The diagram illustrates the upstream MAC/PMD convergence process. At the top, the 'Upper layer' is shown. Below it, the 'MAC sublayer' contains three 'MAC frame' blocks. Arrows point from each MAC frame down to the 'PMD sublayer'. In the PMD sublayer, each MAC frame is mapped to a burst of mini-slots. Each burst consists of 'PMD overhead', 'Data', and 'FEC'. Arrows labeled 'Start of burst at mini-slot boundary' point to the beginning of each burst. The diagram is labeled 'J.122\_F8-2' in the bottom right corner.
+
+Diagram illustrating Upstream MAC/PMD convergence. The diagram shows three MAC frames being transmitted from the MAC sublayer to the PMD sublayer. Each MAC frame is mapped to a burst of mini-slots. The PMD sublayer adds PMD overhead, Data, and FEC to each burst. The start of each burst is indicated by an arrow pointing to the beginning of the PMD overhead. The diagram is labeled 'Upper layer', 'MAC sublayer', 'PMD sublayer', and 'J.122\_F8-2'.
+
+**Figure 8-2 – Upstream MAC/PMD convergence**
+
+The layering of MAC frames over MPEG in the downstream channel is described in clause 7.
+
+Note that the CMTS PHY ensures that the CMTS MAC receives upstream MAC frames in the same order the CM mapped the MAC frames onto mini-slots. That is to say that if MAC frame X begins in mini-slot n and MAC frame Y begins in mini-slot n+m, then the CMTS MAC will receive X before it receives Y. This is true even when, as is possible with S-CDMA, mini-slots n and n+m are actually simultaneously transmitted within the PHY layer.
+
+#### 8.2.1.3 Ordering of bits and octets
+
+Within an octet, the least-significant bit is the first transmitted on the wire. This follows the convention used by Ethernet and [ISO/IEC 8802-3]. This is often called bit-little-endian order7.
+
+Within the MAC layer, when numeric quantities are represented by more than one octet (i.e., 16-bit and 32-bit values), the octet containing the most-significant bits is the first transmitted on the wire. This is sometimes called byte-big-endian order.
+
+7 This applies to the upstream channel only. For the downstream channel, the MPEG transmission convergence sublayer presents an octet-wide interface to the MAC, so the MAC sublayer does not define bit order.
+
+This clause follows the textual convention that when bit-fields are presented in tables, the most-significant bits are topmost in the table. For example, in Table 8-2, FC\_TYPE occupies the two most-significant bits and EHDR\_ON occupies the least-significant bit.
+
+##### 8.2.1.3.1 Representing negative numbers
+
+Signed integer values MUST be transmitted and received in two's complement format.
+
+##### 8.2.1.3.2 Type-Length-Value fields
+
+Many MAC messages incorporate type-length-value (TLV) fields. TLV fields are unordered lists of TLV-tuples. Some TLVs are nested (see Annex C). All TLV length fields, except for EH\_LEN (see clause 8.2.6), MUST be greater than zero. Unless otherwise specified, type is one byte and length is one byte.
+
+Using this encoding, new parameters may be added that some devices cannot interpret. A CM or CMTS which does not recognize a parameter type MUST skip over this parameter and MUST NOT treat the event as an error condition.
+
+#### 8.2.1.4 MAC header format
+
+The MAC header format MUST be as shown in Figure 8-3.
+
+
+
+The diagram illustrates the MAC header format. The main header consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (SID) (2 bytes), EHDR (0-240 bytes), and HCS (2 bytes). The FC field is expanded to show its internal bit structure: FC\_TYPE (2 bits), FC\_PARM (5 bits), and EHDR\_ON (1 bit). Arrows indicate the expansion of the FC field.
+
+| | | | | |
+|----------------|----------------------|------------------------|-----------------------|------------------|
+| FC (1 byte) | MAC_PARM (1 byte) | LEN (SID) (2 bytes) | EHDR (0-240 bytes) | HCS (2 bytes) |
+|----------------|----------------------|------------------------|-----------------------|------------------|
+
+
+
+| | | |
+|---------------------|---------------------|--------------------|
+| FC_TYPE (2 bits) | FC_PARM (5 bits) | EHDR_ON (1 bit) |
+|---------------------|---------------------|--------------------|
+
+Diagram of MAC header format showing fields FC, MAC\_PARM, LEN (SID), EHDR, and HCS, with a detailed view of the FC field bits.
+
+J.122\_F8-3
+
+**Figure 8-3 – MAC header format**
+
+All MAC headers MUST have the general format as shown in Table 8-1. The frame control (FC) field is the first byte and uniquely identifies the rest of the contents within the MAC header. The FC field is followed by 3 bytes of MAC control; an OPTIONAL extended header (EHDR) field; plus a header check sequence (HCS) to ensure the integrity of the MAC header.
+
+**Table 8-1 – Generic MAC header format**
+
+| MAC header field | Usage | Size |
+|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|
+| FC | Frame control: Identifies type of MAC header | 8 bits |
+| MAC_PARM | Parameter field whose use is dependent on FC: if EHDR_ON=1; used for EHDR field length (ELEN) else if for concatenated frames (see Table 8-10) used for MAC frame count else (for requests only) indicates the number of mini-slots requested | 8 bits |
+| LEN (SID) | The length of the MAC frame. The length is defined to be the sum of the number of bytes in the extended header (if present) and the number of bytes following the HCS field (for a REQ header, this field is the service ID instead). | 16 bits |
+| EHDR | Extended MAC header (where present; variable size) | 0-240 bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| | Length of a MAC header | 6 bytes + EHDR |
+
+The HCS field is a 16-bit CRC that ensures the integrity of the MAC header, even in a collision environment. The HCS field coverage MUST include the entire MAC header, starting with the FC field and including any EHDR field that may be present. The HCS is calculated using ITU-T CRC ( $x^{16} + x^{12} + x^5 + 1$ ) as defined in [ITU-T X.25].
+
+The FC field is broken down into the FC\_TYPE sub-field, FC\_PARM sub-field and an EHDR\_ON indication flag. The format of the FC field MUST be as shown in Table 8-2.
+
+**Table 8-2 – FC field format**
+
+| FC field | Usage | Size |
+|----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------|
+| FC_TYPE | MAC frame control type field: 00: Packet PDU MAC header 01: ATM PDU MAC header 10: Reserved PDU MAC header 11: MAC-specific header | 2 bits |
+| FC_PARM | Parameter bits, use dependent on FC_TYPE | 5 bits |
+| EHDR_ON | When = 1, indicates that EHDR field is present. (Length of EHDR (ELEN) determined by MAC_PARM field) | 1 bit |
+
+The FC\_TYPE sub-field is the two MSBs of the FC field. These bits MUST always be interpreted in the same manner to indicate one of four possible MAC frame formats. These types include: MAC header with packet PDU; MAC header with ATM cells; MAC header reserved for future PDU types; or a MAC header used for specific MAC control purposes. These types are spelled out in more detail in the remainder of this clause.
+
+The five bits following the FC\_TYPE sub-field is the FC\_PARM sub-field. The use of these bits is dependent on the type of MAC header. The LSB of the FC field is the EHDR\_ON indicator. If this bit is set, then an extended header (EHDR) is present. The EHDR provides a mechanism to allow the MAC header to be extensible in an inter-operable manner.
+
+The transmission convergence sublayer stuff-byte pattern is defined to be a value of 0xFF. This precludes the use of FC byte values which have FC\_TYPE = '11' and FC\_PARM = '11111'.
+
+The MAC\_PARM field of the MAC header serves several purposes depending on the FC field. If the EHDR\_ON indicator is set, then the MAC\_PARM field MUST be used as the extended header length (ELEN). The EHDR field may vary from 0 to 240 bytes. If this is a concatenation MAC header, then the MAC\_PARM field represents the number of MAC frames (CNT) in the concatenation (see clause 8.2.5.5). If this is a request MAC header (REQ) (see clause 8.2.5.3), then the MAC\_PARM field represents the amount of bandwidth being requested. In all other cases, the MAC\_PARM field is reserved for future use.
+
+The third field has two possible uses. In most cases, it indicates the length (LEN) of this MAC frame. In one special case, the request MAC header, it is used to indicate the cable modem's service ID since no PDU follows the MAC header.
+
+The extended header (EHDR) field provides extensions to the MAC frame format. It is used to implement data link security as well as frame fragmentation, and can be extended to add support for additional functions in future releases. Initial implementations SHOULD pass this field to the processor. This will allow future software upgrades to take advantage of this capability (refer to clause 8.2.6 for details).
+
+#### 8.2.1.5 Data PDU
+
+The MAC header may be followed by a data PDU. The type and format of the data PDU is defined in the frame control field of the MAC header. The FC field explicitly defines a packet data PDU, an ATM data PDU, a MAC-specific frame and a reserved code point (used as an escape mechanism for future extensions). All CMs MUST use the length in the MAC header to skip over any reserved data.
+
+### 8.2.2 Packet-based MAC frames
+
+#### 8.2.2.1 Variable-length packets
+
+The MAC sublayer MUST support a variable-length Ethernet/[ISO/IEC 8802-3]-type packet data PDU. With the exception of packets that have been subject to payload header suppression, the packet PDU MUST be passed across the network in its entirety, including its original CRC. In the case where payload header suppression has been applied to the packet PDU, all bytes except those suppressed MUST be passed across the network, and the CRC covers only those bytes actually transmitted (refer to clause 8.2.6.3.1). A unique packet MAC header is appended to the beginning. The frame format without an extended header MUST be as shown in Figure 8-4 and Table 8-3.
+
+
+
+| | | | | |
+|----------------|----------------------|------------------|------------------|-----------------------------------------|
+| FC (1 byte) | MAC_PARM (1 byte) | LEN (2 bytes) | HCS (2 bytes) | Packet PDU (18-1518 bytes) (Note) |
+|----------------|----------------------|------------------|------------------|-----------------------------------------|
+
+The diagram shows the MAC header structure. The first row contains the main fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Packet PDU (18-1518 bytes). Below the FC field, a dashed line points to a sub-field breakdown: FC\_TYPE = 00, FC\_PARM = 00000, and EHDR\_ON = 0. Below the HCS field, a dashed line points to a sub-field breakdown: DA (6 bytes), SA (6 bytes), Type/len (2 bytes), User data (0-1500 bytes), and CRC (4 bytes).
+
+Diagram of Ethernet/802.3 packet PDU format showing the MAC header fields and their sub-fields.
+
+NOTE – Frame size is limited to 1518 bytes in the absence of VLAN tagging. Cooperating devices which implement IEEE 802.1Q VLAN tagging MAY use a frame size up to 1522 bytes.
+
+J.122\_F8-4
+
+**Figure 8-4 – Ethernet/802.3 packet PDU format**
+
+**Table 8-3 – Packet PDU format**
+
+| Field | Usage | Size |
+|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
+| FC | FC_TYPE = 00; packet MAU header FC_PARM[4:0] = 00000; other values reserved for future use and ignored EHDR_ON = 0 if there is no extended header, 1 if there is an EHDR | 8 bits |
+| MAC_PARM | MAC_PARM = x; MUST be set to zero if there is no EHDR; Otherwise set to length of EHDR | 8 bits |
+| LEN | LEN = n + x; length of packet PDU in bytes + length of EHDR | 16 bits |
+| EHDR | Extended MAC header, if present | x (0-240) bytes |
+| HCS | MAC header check sequence | 16 bits |
+| Packet data, packet PDU | DA – 48-bit destination address SA – 48-bit source address Type/LEN – 16-bit Ethernet type or [ISO/IEC 8802-3] length field User data (variable length, 0-1500 bytes) CRC – 32-bit CRC over packet PDU (as defined in Ethernet/[ISO/IEC 8802-3]) | n bytes |
+| | Length of packet MAC frame | 6 + x + n bytes |
+
+Under certain circumstances (see Appendix VI) it may be necessary to transmit a packet PDU MAC frame without an actual PDU. This is done so that the extended header can be used to carry certain information about the state of the service flow. This could also happen as a result of PHS (see clause 8.2.6.3.1). Such a frame will have the length field in MAC header set to the length of the extended header and will have no packet data, and therefore no CRC. This can only happen with frames transmitted on the upstream as frames transmitted on the downstream always have at least the DA and SA fields of the packet PDU.
+
+### 8.2.3 ATM cell MAC frames
+
+The FC\_TYPE 0x01 is reserved for future definition of ATM cell MAC frames. This FC\_TYPE field in the MAC header indicates that an ATM PDU is present. This PDU MUST be silently discarded by MAC implementations of this version of the Recommendation. Implementations MUST use the length field to skip over the ATM PDU.
+
+### 8.2.4 Reserved PDU MAC frames
+
+The MAC sublayer provides a reserved FC code point to allow for support of future (to be defined) PDU formats. The FC field of the MAC header indicates that a reserved PDU is present. This PDU MUST be silently discarded by MAC implementations of this version of the Recommendation. Implementations compliant to this version of the Recommendation MUST use the length field to skip over the reserved PDU.
+
+The format of the reserved PDU without an extended header MUST be as shown in Figure 8-5 and Table 8-4.
+
+
+
+J.122\_F8-5
+
+Diagram of Reserved PDU format showing fields FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Reserved PDU (n bytes). The FC field is expanded to show FC\_TYPE = 10, FC\_PARM = RRRRR, and EHDR\_ON = 0. A label J.122\_F8-5 is present.
+
+**Figure 8-5 – Reserved PDU format**
+
+**Table 8-4 – Reserved PDU format**
+
+| Field | Usage | Size |
+|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
+| FC | FC_TYPE = 10; reserved PDU MAC header FC_PARM[4:0]; reserved for future use EHDR_ON = 0 if there is no extended header, 1 if there is an EHDR | 8 bits |
+| MAC_PARM | MAC_PARM = x; MUST be set to zero if there is no EHDR; Otherwise set to length of EHDR | 8 bits |
+| LEN | LEN = n + x; length of reserved PDU + length of EHDR in bytes | 16 bits |
+| EHDR | Extended MAC header, if present | x (0-240) bytes |
+| HCS | MAC header check sequence | 16 bits |
+| User data | Reserved data PDU | n bytes |
+| | Length of reserved PDU MAC frame | 6 + x + n bytes |
+
+### 8.2.5 MAC-specific headers
+
+There are several MAC headers which are used for very specific functions. These functions include support for downstream timing and upstream ranging/power adjust, requesting bandwidth, fragmentation and concatenating multiple MAC frames.
+
+Table 8-5 describes FC\_PARM usage within the MAC-specific header.
+
+**Table 8-5 – MAC-specific headers and frames**
+
+| FC_PARM | Header/Frame type |
+|---------|-----------------------|
+| 00000 | Timing header |
+| 00001 | MAC management header |
+| 00010 | Request frame |
+| 00011 | Fragmentation header |
+| 11100 | Concatenation header |
+
+#### 8.2.5.1 Timing header
+
+A specific MAC header is identified to help support the timing and adjustments required. In the downstream, this MAC header MUST be used to transport the global timing reference to which all cable modems synchronize. In the upstream, this MAC header MUST be used as part of the ranging
+
+message needed for a cable modem's timing and power adjustments. The timing MAC header is followed by a packet data PDU. The format MUST be as shown in Figure 8-6 and Table 8-6.
+
+
+
+Figure 8-6: Timing MAC header diagram. The main header consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and Packet PDU (various lengths). The FC field is expanded to show its internal structure: FC\_TYPE = 11, FC\_PARM = 00000, and EHDR\_ON = 0. The diagram is labeled J.122\_F8-6.
+
+**Figure 8-6 – Timing MAC header**
+
+**Table 8-6 – Timing MAC header format**
+
+| Field | Usage | Size |
+|-------------|----------------------------------------------------------------------------------------------------------------------------------------------|-------------|
+| FC | FC_TYPE = 11; MAC-specific header FC_PARM[4:0] = 00000; timing MAC header EHDR_ON = 0; extended header prohibited for SYNC and RNG-REQ | 8 bits |
+| MAC_PARM | Reserved for future use | 8 bits |
+| LEN | LEN = n; length of packet PDU in bytes | 16 bits |
+| EHDR | Extended MAC header (not present) | 0 bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| Packet data | MAC management message: SYNC message (downstream only) RNG-REQ (upstream only) | n bytes |
+| | Length of timing message MAC frame | 6 + n bytes |
+
+#### 8.2.5.2 MAC management header
+
+A specific MAC header is identified to help support the MAC management messages required. This MAC header MUST be used to transport all MAC management messages (refer to clause 8.3). The format MUST be as shown Figure 8-7 and Table 8-7.
+
+
+
+Figure 8-7: MAC management header diagram. The main header consists of five fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), HCS (2 bytes), and MAC mgmt msg (24-1522 bytes). The FC field is expanded to show its internal structure: FC\_TYPE = 11, FC\_PARM = 00001, and EHDR\_ON = 0. The diagram is labeled J.122\_F8-7.
+
+**Figure 8-7 – MAC management header**
+
+**Table 8-7 – MAC management header format**
+
+| Field | Usage | Size |
+|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
+| FC | FC_TYPE = 11; MAC-specific header FC_PARM[4:0] = 00001; MAC management header EHDR_ON = 0 if there is no extended header, 1 if there is an EHDR | 8 bits |
+| MAC_PARM | MAC_PARM = x; MUST be set to zero if there is no EHDR; Otherwise set to length of EHDR | 8 bits |
+| LEN | LEN = n + x; length of MAC management message + length of EHDR in bytes | 16 bits |
+| EHDR | Extended MAC header, if present | x (0-240) bytes |
+| HCS | MAC header check sequence | 16 bits |
+| Packet data | MAC management message | n bytes |
+| | Length of packet MAC frame | 6 + x + n bytes |
+
+#### **8.2.5.3 Request frame**
+
+The request frame is the basic mechanism that a cable modem uses to request bandwidth. As such, it is only applicable in the upstream. There MUST be no data PDUs following the request frame. The general format of the request MUST be as shown in Figure 8-8 and Table 8-8.
+
+
+
+Figure 8-8 – Request frame format diagram. The top row shows the frame structure: FC (1 byte), MAC\_PARM (1 byte), SID (2 bytes), and HCS (2 bytes). Below the FC field, a breakdown shows its 8 bits: FC\_TYPE = 11, FC\_PARM = 00010, and EHDR\_ON = 0. The diagram is labeled J.122\_F8-8.
+
+**Figure 8-8 – Request frame format**
+
+**Table 8-8 – Request frame (REQ) format**
+
+| Field | Usage | Size |
+|----------|-----------------------------------------------------------------------------------------------------------------------------------|---------|
+| FC | FC_TYPE = 11; MAC-specific header FC_PARM[4:0] = 00010; MAC header only; no data PDU following EHDR_ON = 0; no EHDR allowed | 8 bits |
+| MAC_PARM | REQ; total number of mini-slots requested | 8 bits |
+| SID | Service ID used for requesting bandwidth. For valid SID ranges, see clause 9.1.2. | 16 bits |
+| EHDR | Extended MAC header not allowed | 0 bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| | Length of a REQ MAC header | 6 bytes |
+
+Because the request frame does not have a data PDU following it, the LEN field is not needed. The LEN field MUST be replaced with an SID. The SID MUST uniquely identify a particular service flow within a given CM.
+
+The bandwidth request, REQ, MUST be specified in mini-slots. The REQ field MUST indicate the current total amount of bandwidth requested for this service queue, including appropriate allowance for the PHY overhead.
+
+#### 8.2.5.4 Fragmentation header
+
+The fragmentation MAC header provides the basic mechanism to split a larger MAC PDU into smaller pieces that are transmitted individually and then reassembled at the CMTS. As such, it is only applicable in the upstream. The general format of the fragmentation MAC header MUST be as shown in Figure 8-9.
+
+A compliant CM MUST support fragmentation. A compliant CMTS MUST support fragmentation. To decrease the burden on the CMTS and to reduce unnecessary overhead, fragmentation headers MUST NOT be used on unfragmented frames.
+
+
+
+Figure 8-9: Fragmentation MAC header format diagram. The top row shows the main header fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), EHDR (6 bytes), HCS (2 bytes), Fragment data, and FCRC (4 bytes). Below FC, MAC\_PARM, and EHDR are expanded into their bit-level details. FC is split into FC\_TYPE (11), FC\_PARM (00011), and EHDR\_ON (1). MAC\_PARM is split into EHDR\_TYPE (0011) and EHDR\_LEN (0101). EHDR is split into EHDR\_VALUE (5 bytes). A label J.122\_F8-9 is present in the bottom right.
+
+Figure 8-9 – Fragmentation MAC header format
+
+Table 8-9 – Fragmentation MAC frame (FRAG) format
+
+| Field | Usage | Size |
+|---------------|---------------------------------------------------------------------------------------------------------------------------------|--------------|
+| FC | FC_TYPE = 11; MAC-specific header FC_PARM [4:0] = 00011; fragmentation MAC header EHDR_ON = 1; fragmentation EHDR follows | 8 bits |
+| MAC_PARM | ELEN = 6 bytes; length of fragmentation EHDR | 8 bits |
+| LEN | LEN = length of fragment payload + EHDR length + FCRC length | 16 bits |
+| EHDR | Refer to clause 8.2.6.2 | 6 bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| Fragment data | Fragment payload; portion of total MAC PDU being sent | n bytes |
+| FCRC | CRC – 32-bit CRC over fragment data payload (as defined in Ethernet/[ISO/IEC 8802-3]) | 4 bytes |
+| | Length of a MAC fragment frame | 16 + n bytes |
+
+#### 8.2.5.5 Concatenation header
+
+A specific MAC header is defined to allow multiple MAC frames to be concatenated. This allows a single MAC "burst" to be transferred across the network. The PHY overhead8 and the concatenation MAC header only occur once. Concatenation of multiple MAC frames MUST be as shown in Figure 8-10. Concatenation of multiple MAC frames is the only method by which the CM can transmit more than one MAC frame in a single transmit opportunity.
+
+8 This includes the preamble, guard time and possibly zero-fill bytes in the last codeword. The FEC overhead recurs for each codeword.
+
+A compliant CM MUST support concatenation. A compliant CMTS MUST support concatenation. Concatenation only applies to upstream traffic. Concatenation MUST NOT be used on downstream traffic.
+
+
+
+| | | | | | |
+|--------------|-------------------|---------------------------------------|--|--|---------------------------------------|
+| PHY overhead | MAC HDR (concat.) | MAC frame #1 (MAC HDR + optional PDU) | | | MAC frame #n (MAC HDR + optional PDU) |
+|--------------|-------------------|---------------------------------------|--|--|---------------------------------------|
+
+J.122\_F8-10
+
+**Figure 8-10 – Concatenation of multiple MAC frames**
+
+Only one concatenation MAC header MUST be present per MAC "burst." Nested concatenation MUST NOT be allowed. Immediately following the concatenation MAC header MUST be the MAC header of the first MAC frame. Information within the MAC header indicates the length of the first MAC frame and provides a means to find the start of the next MAC frame. Each MAC frame within a concatenation MUST be unique and MAY be of any type. This means that packet and MAC-specific frames MAY be mixed together. However, all frames in a concatenation MUST be assigned to the same service flow. The CMTS MUST support concatenations containing multiple frame types, including both packet and MAC-specific frames.
+
+The embedded MAC frames MAY be addressed to different destinations and MUST be delivered as if they were transmitted individually.
+
+The format of the concatenation MAC header MUST be as shown in Figure 8-11 and Table 8-10.
+
+
+
+| | | | |
+|-------------|-------------------|---------------|---------------|
+| FC (1 byte) | MAC_PARM (1 byte) | LEN (2 bytes) | HCS (2 bytes) |
+|-------------|-------------------|---------------|---------------|
+
+Diagram showing the breakdown of the FC (1 byte) field:
+
+| | | |
+|--------------|-----------------|-------------|
+| FC_TYPE = 11 | FC_PARM = 11100 | EHDR_ON = 0 |
+|--------------|-----------------|-------------|
+
+J.122\_F8-11
+
+**Figure 8-11 – Concatenation MAC header format**
+
+**Table 8-10 – Concatenated MAC frame format**
+
+| Field | Usage | Size |
+|-------------|---------------------------------------------------------------------------------------------------------------------------------------|---------------|
+| FC | FC_TYPE = 11; MAC-specific header FC_PARM[4:0] = 11100; concatenation MAC header EHDR_ON = 0; no EHDR with concatenation header | 8 bits |
+| MAC_PARM | CNT, number of MAC frames in this concatenation CNT = 0 indicates unspecified number of MAC frames | 8 bits |
+| LEN | LEN = x + ... + y; length of all following MAC frames in bytes | 16 bits |
+| EHDR | Extended MAC header MUST NOT be used | 0 bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| MAC frame 1 | First MAC frame: MAC header plus OPTIONAL data PDU | x bytes |
+| MAC frame n | Last MAC frame: MAC header plus OPTIONAL data PDU | y bytes |
+| | Length of concatenated MAC frame | 6 + LEN bytes |
+
+The MAC\_PARM field in the concatenation MAC header provides a count of MAC frames as opposed to EHDR length or REQ amount as used in other MAC headers. If the field is non-zero, then it MUST indicate the total count of MAC frames (CNT) in this concatenation burst.
+
+### 8.2.6 Extended MAC headers
+
+Every MAC header, except the timing, concatenation MAC header and request frame, has the capability of defining an extended header field (EHDR). The presence of an EHDR field MUST be indicated by the EHDR\_ON flag in the FC field being set. Whenever this bit is set, then the MAC\_PARM field MUST be used as the EHDR length (ELEN). The minimum defined EHDR is 1 byte. The maximum EHDR length is 240 bytes.
+
+A compliant CMTS and CM MUST support extended headers.
+
+The format of a generic MAC header with an extended header included MUST be as shown in Figure 8-12 and Table 8-11.
+
+NOTE – Extended headers MUST NOT be used in a concatenation MAC header, but MAY be included as part of the MAC headers within the concatenation.
+
+Extended headers MUST NOT be used in request frames and timing MAC headers.
+
+
+
+The diagram illustrates the Extended MAC format. The main header consists of six fields: FC (1 byte), MAC\_PARM (1 byte), LEN (2 bytes), EHDR (1-240 bytes), HCS (2 bytes), and Data PDU (optional). The FC field is expanded to show its internal structure: FC\_TYPE (XX), FC\_PARM (reserved), and EHDR\_ON (1). The EHDR field is expanded to show its internal structure: EH\_TYPE (4 bits), EH\_LEN (4 bits), EH\_VALUE (0-15 bytes), and a Repeat indicator. The diagram is labeled J.122\_F8-12.
+
+Figure 8-12 – Extended MAC format diagram showing the structure of the MAC header and the internal structure of the EHDR field.
+
+Figure 8-12 – Extended MAC format
+
+Table 8-11 – Example extended header format
+
+| Field | Usage | Size |
+|----------|----------------------------------------------------------------------------------------------------------------------------------|-----------------|
+| FC | FC_TYPE = XX; applies to all MAC headers FC_PARM[4:0] = XXXXX; dependent on FC_TYPE EHDR_ON = 1; EHDR present this example | 8 bits |
+| MAC_PARM | ELEN = x; length of EHDR in bytes | 8 bits |
+| LEN | LEN = x + y; length of EHDR plus OPTIONAL data PDU in bytes | 16 bits |
+| EHDR | Extended MAC header present this example | x bytes |
+| HCS | MAC header check sequence | 2 bytes |
+| PDU | OPTIONAL data PDU | y bytes |
+| | Length of MAC frame with EHDR | 6 + x + y bytes |
+
+Since the EHDR increases the length of the MAC frame, the LEN field MUST be increased to include both the length of the data PDU and the length of the EHDR.
+
+The EHDR field consists of one or more EH elements. Each EH element is variably sized. The first byte of the EH element MUST contain a type and a length field. Every CM MUST use this length to skip over any unknown EH elements. The format of an EH element MUST be as shown in Table 8-12.
+
+**Table 8-12 – EH element format**
+
+| EH element fields | Usage | Size |
+|-------------------|-----------------------|------------|
+| EH_TYPE | EH element type field | 4 bits |
+| EH_LEN | Length of EH_VALUE | 4 bits |
+| EH_VALUE | EH element data | 0-15 bytes |
+
+The types of EH element defined in Table 8-13 MUST be supported. Reserved and extended types are undefined at this point and MUST be ignored.
+
+**Table 8-13 – Extended header types**
+
+| EH_TYPE | EH_LEN | EH_VALUE |
+|---------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| 0 | 0 | Null configuration setting; may be used to pad the extended header. The EH_LEN MUST be zero, but the configuration setting may be repeated. |
+| 1 | 3 | Request: mini-slots requested (1 byte); SID (2 bytes) [CM → CMTS] |
+| 2 | 2 | Acknowledgment requested; SID (2 bytes) [CM → CMTS] |
+| 3 (= BP-UP) | 4 | Upstream privacy EH element [DOCS8] |
+| | 5 | Upstream privacy with fragmentation a) EH element [DOCS8] (See clause 8.2.7) |
+| 4 (= BP-DOWN) | 4 | Downstream privacy EH element [DOCS8] |
+| 5 | 1 | Service flow EH element; payload header suppression header downstream. |
+| 6 | 1 | Service flow EH element; payload header suppression header upstream |
+| | 2 | Service flow EH element; payload header suppression header upstream (1 byte), unsolicited grant synchronization header (1 byte) |
+| 7-9 | | Reserved |
+| 10-14 | | Reserved [CM ↔ CM] |
+| 15 | xx | Extended EH element: EHX_TYPE (1 byte), EHX_LEN (1 byte), EH_VALUE (length determined by EHX_LEN) |
+
+a) An upstream privacy with fragmentation EH element MUST only occur within a fragmentation MAC-specific header (refer to clause 8.2.5.4).
+
+The first ten EH element types are intended for one-way transfer between the cable modem and the CMTS. The next five EH element types are for end-to-end usage within a MAC-sublayer domain. Thus, the information attached to EHDR elements 10-14 on the upstream MUST also be attached when the information is forwarded within a MAC-sublayer domain. The final EH element type is an escape mechanism that allows for more types and longer values, and MUST be as shown in Table 8-13.
+
+#### 8.2.6.1 Piggyback requests
+
+Several extended headers can be used to request bandwidth for subsequent transmissions. These requests are generically referred to as "piggyback requests". They are extremely valuable for performance because they are not subject to contention as request frames generally are (refer to clause 9.4).
+
+Requests for additional bandwidth can be included in request, upstream privacy and upstream privacy with fragmentation extended header elements.
+
+#### 8.2.6.2 Fragmentation extended header
+
+Fragmented packets use a combination of the fragmentation MAC header and a modified version of the upstream privacy extended header. Clause 8.2.5.4 describes the fragmentation MAC header. The upstream privacy extended header with fragmentation, also known as the fragmentation extended header, MUST be as shown in Table 8-14.
+
+**Table 8-14 – Fragmentation extended header format**
+
+| EH Element Fields | Usage | Size |
+|-------------------|---------------------------------------------------------------------------------|---------|
+| EH_TYPE | Upstream privacy EH element = 3 | 4 bits |
+| EH_LEN | Length of EH_VALUE = 5 | 4 bits |
+| EH_VALUE | Key_seq; same as in BP_UP | 4 bits |
+| | Ver = 1; version number for this EHDR | 4 bits |
+| | BPI_ENABLE If BPI_ENABLE = 0, BPI disabled If BPI_ENABLE = 1, BPI enabled | 1 bit |
+| | Toggle bit; same as in BP-UP a) | 1 bit |
+| | SID; service ID associated with this fragment | 14 bits |
+| | REQ; number of mini-slots for a piggyback request | 8 bits |
+| | Reserved; must be set to zero | 2 bits |
+| | First_Frag; set to one for first fragment only | 1 bit |
+| | Last_Frag; set to one for last fragment only | 1 bit |
+| | Frag_seq; fragment sequence count, incremented for each fragment. | 4 bits |
+
+a) Refer to [DOCS8].
+
+#### 8.2.6.3 Service flow extended header
+
+The service flow EH element is used to enhance service flow operations. It may consist of one or two bytes in the EH\_VALUE field. The payload header suppression header is the only byte in a one-byte field or the first byte in a two-byte field. The unsolicited grant synchronization header is the second byte in a two-byte field.
+
+##### 8.2.6.3.1 Payload header suppression header
+
+In payload header suppression (PHS), a repetitive portion of the payload headers following the HCS is suppressed by the sending entity and restored by the receiving entity. In the upstream, the sending entity is the CM and the receiving entity is the CMTS. In the downstream, the sending entity is the CMTS and the receiving entity is the CM.
+
+For small payloads, payload header suppression provides increased bandwidth efficiency without having to use compression. Payload header suppression may be separately provisioned in the upstream and downstream, and is referenced with an extended header element.
+
+A compliant CM MUST support payload header suppression9. A compliant CMTS MUST support payload header suppression.
+
+The payload header suppression extended header sub-element has the format shown in Table 8-15:
+
+9 This is not intended to imply that the CM must be capable of determining when to invoke payload header suppression. Payload header suppression support is only required for the explicitly signalled case.
+
+**Table 8-15 – Payload header suppression EHDR sub-element format**
+
+| EH element fields | Usage | | Size |
+|--------------------------|----------------------------------------------------------------------|-----------------------------------------------------------|-------------|
+| EH_TYPE | Service flow EH_TYPE = 5 for downstream and EH_TYPE = 6 for upstream | | 4 bits |
+| EH_LEN | Length of EH_VALUE = 1 | | 4 bits |
+| EH_VALUE | 0 | Indicates no payload header suppression on current packet | 8 bits |
+| | 1-255 | Payload header suppression index (PHSI) | |
+
+The payload header suppression index is unique per SID in the upstream and unique per CM in the downstream. Payload header suppression is disabled if this extended header element is omitted or, if included, with the PHSI value set to 0. The payload header suppression index (PHSI) references the suppressed byte string known as a payload header suppression field (PHSF).
+
+NOTE – While PHS signalling allows for up to 255 payload header suppression rules per service flow, the exact number of PHS rules supported per service flow is implementation-dependent. Similarly, PHS signalling allows for PHS sizes of up to 255 bytes, however, the maximum PHS size supported is implementation-dependent. For interoperability, the minimum PHS size that MUST be supported is 64 bytes for any PHS rule supported. As with any other parameter requested in a dynamic service request, a PHS-related DSx request can be denied because of a lack of resources.
+
+The upstream suppression field MUST begin with the first byte following the MAC header checksum. The downstream suppression field MUST begin with the thirteenth byte following the MAC header checksum. This allows the Ethernet SA and DA to be available for filtering by the CM.
+
+The operation of baseline privacy (refer to [DOCS8]) is not affected by the use of PHS. When fragmentation is inactive, baseline privacy begins encryption and decryption with the thirteenth byte following the MAC header checksum.
+
+Unless the entire packet PDU is suppressed, the packet PDU CRC is always transmitted, and MUST be calculated only on the bytes transmitted. The bytes that are suppressed MUST NOT be included in the CRC calculation.
+
+##### **8.2.6.3.2 Unsolicited grant synchronization header**
+
+The unsolicited grant synchronization header may be used to pass status information regarding service flow scheduling between the CM and CMTS. It is currently only defined for use in the upstream with unsolicited grant and unsolicited grant with activity detection scheduling services (refer to clause 10.2.3).
+
+This extended header is similar to the payload suppression EHDR except that the EH\_LEN is 2, and the EH\_VALUE has one additional byte which includes information related to unsolicited grant synchronization. For all other service flow scheduling types, the field SHOULD NOT be included in the extended header element generated by the CM. The CMTS MAY ignore this field.
+
+**Table 8-16 – Unsolicited grant synchronization EHDR sub-element format**
+
+| EH element fields | Usage | | Size |
+|-------------------|--------------------------|------------------------------------------------------------|----------------------------|
+| EH_TYPE | Service flow EH_TYPE = 6 | | 4 bits |
+| EH_LEN | Length of EH_VALUE = 2 | | 4 bits |
+| EH_VALUE | 0 | Indicates no payload header suppression on current packet. | 8 bits (always present) |
+| | 1-255 | Payload header suppression index (PHSI) | |
+| | Queue indicator | | 1 bit |
+| | Active grants | | 7 bits |
+
+### 8.2.7 Fragmented MAC frames
+
+When enabled, fragmentation is initiated any time the grant length is less than the requested length. This normally occurs because the CMTS chooses to grant less than the requested bandwidth.
+
+
+
+**Single packet MAC frame**
+
+The diagram shows a single packet MAC frame structure. The MAC HDR is divided into three parts: HDR (containing FC, PARM, and LEN), EHDR (containing PRV and Other), and HCS. The frame also includes a Fragment payload, PDUs, and a CRC.
+
+**Concatenation of multiple MAC Frames**
+
+The diagram shows the concatenation of multiple MAC frames. Each frame consists of a Concat. HDR, MAC HDR1, PDUs, and a CRC. The concatenated frames are followed by a Fragment payload.
+
+**Fragmentation details**
+
+The diagram details the fragmentation process. It shows three fragments (Fragment #1, Fragment #2, and Fragment #3) and a Fragmentation header.
+
+**Fragmentation header structure:**
+
+- FC:** 1B, set to 11 (00011).
+- EHDR:** 1B, LEN = 8.
+- LEN:** 2B, representing the length of the fragment.
+- EHDR:** 6B, containing the following fields:
+ - Ver:** 1B, set to 35.
+ - SID:** 2B, containing the Key sequence number (YYYYY0001).
+ - RQ:** 1B, containing the sequence number (SSSS).
+ - RSV:** 1B, containing the reserved bits (XX).
+
+**Fragment structure:**
+
+- FRAG HDR:** 12 bytes (FHCS).
+- FHCS:** 4 bytes, containing:
+ - F:** Set on first fragment; clear otherwise.
+ - L:** Set on last fragment; clear otherwise.
+ - SSSS:** 4-bit sequence number; increments on each fragment of a packet, rolling over as necessary.
+ - XX:** Reserved; set to 00.
+- Frag payload:** (first, mid, last).
+- FCRC:** 4 bytes, containing:
+ - E:** Enable BPI: 1 = enable, 0 = disable.
+ - T:** Toggle: 1 = odd; 0 = even; Default = 0.
+ - XXXXXXXXXXXXXX:** 14-bit SID.
+
+The encrypted portion for baseline privacy is indicated for each fragment.
+
+Figure 8-13 – Fragmentation details. This diagram illustrates the structure of MAC frames for single packets and concatenated multiple MAC frames, and then details the fragmentation process. It shows the fields in the MAC header (HDR, EHDR, HCS, PDUs, CRC), the fragmentation header (FC, EHDR, LEN, EHDR), and the structure of individual fragments (FRAG HDR, FHCS, Frag payload, FCRC).
+
+J.122\_F8-13
+
+**Figure 8-13 – Fragmentation details**
+
+The CM MAC calculates how many bytes of the original frame, including overhead for a fragmentation header and CRC, can be sent in the received grant. The CM MAC generates a fragmentation header for each fragment. Fragmented frames use the MAC message type (FC = 11). The FC parameter field is set to (00011), in order to uniquely identify the fragmentation header from other MAC message types. A four bit sequence field is used in the last byte of the extended header field to aid in reassembly and to detect dropped or missing fragments. The CM arbitrarily
+
+selects a sequence number for the first fragment of a frame10. Once the sequence number is selected for the first fragment, the CM MUST increment the sequence number by one for each fragment transmitted for that frame. There are two flags associated with the sequence number, F and L, where F is set to indicate the first fragment and L is set to indicate the last fragment. Both are cleared for middle fragments. The CMTS stores the sequence number of the first fragment (F bit set) of each frame. The CMTS MUST verify that the fragment sequence field increments (by one) for each fragment of the frame.
+
+The REQ field in the fragmentation header is used by the fragmentation protocol for first and middle fragments (refer to clause 10.3). For the last fragment, the REQ field is interpreted as a request for bandwidth for a subsequent frame.
+
+Fragmentation headers are fixed size and MUST contain only a fragmentation extended header element. The extended header consists of a privacy EH element extended by one byte to make the fragment overhead an even 16 bytes. A privacy EH element is used whether the original packet header contained a privacy EH element or not. If privacy is in use, the following fields, version, enable bit and SID, in the fragment EH element are the same with those of BP EH element inside the original MAC frame. If privacy is not in use, the privacy EH element is used but the enable bit is cleared. The SID used in the fragment EH element MUST match the SID used in the partial grant that initiated the fragmentation. A separate CRC MUST be calculated for each fragment (note that each MAC frame payload will also contain the CRC for that packet). A packet CRC of a reassembled packet MAY be checked by the CMTS even though an FCRC covers each fragment.
+
+The CMTS MUST make certain that any fragmentary grant it makes is large enough to hold at least 17 bytes of MAC layer data. This is to ensure that the grant is large enough to accommodate fragmentation overhead plus at least 1 byte of actual data. The CMTS may want to enforce an even higher limit as small fragments are extremely inefficient.
+
+When fragmentation is active, baseline privacy encryption and decryption begin with the first byte following the MAC header checksum.
+
+#### **8.2.7.1 Considerations for concatenated packets and fragmentation**
+
+MAC management messages and data PDUs can occur in the same concatenated frame. Without fragmentation, the MAC management messages within a concatenated frame would be unencrypted. However, with fragmentation enabled on the concatenated frame, the entire concatenated frame is encrypted based on the privacy extended header element. This allows baseline privacy to encrypt each fragment without examining its contents. Clearly, this only applies when baseline privacy is enabled.
+
+To ensure encryption synchronization, if fragmentation, concatenation and baseline privacy are all enabled, a CM MUST NOT concatenate BPKM MAC management messages. This ensures that BPKM MAC management messages are always sent unencrypted.
+
+### **8.2.8 Error-handling**
+
+The cable network is a potentially harsh environment that can cause several different error conditions to occur. This clause, together with clause 11.5, describes the procedures that are required when an exception occurs at the MAC framing level.
+
+The most obvious type of error occurs when the HCS on the MAC header fails. This can be a result of noise on the network or possibly by collisions in the upstream channel. Framing recovery on the downstream channel is performed by the MPEG transmission convergence sublayer. In the upstream channel, framing is recovered on each transmitted burst, such that framing on one burst is
+
+---
+
+10 'Frame' always refers to either frames with a single packet PDU or concatenated frame.
+
+independent of framing on prior bursts. Hence, framing errors within a burst are handled by simply ignoring that burst; i.e., errors are unrecoverable until the next burst.
+
+A second exception, which applies only to the upstream, occurs when the length field is corrupted and the MAC thinks the frame is longer or shorter than it actually is. Synchronization will recover at the next valid upstream data interval.
+
+For every MAC transmission, The HCS MUST be verified. When a bad HCS is detected, the MAC header and any payload MUST be dropped.
+
+For packet PDU transmissions, a bad CRC may be detected. Since the CRC only covers the data PDU and the HCS covers the MAC Header; the MAC header is still considered valid. Thus, the packet PDU MUST be dropped, but any pertinent information in the MAC header (e.g., bandwidth request information) MAY be used.
+
+#### **8.2.8.1 Error recovery during fragmentation**
+
+There are some special error handling considerations for fragmentation. Each fragment has its own fragmentation header complete with an HCS and its own FCRC. There may be other MAC headers and CRCs within the fragmented payload. However, only the HCS of the fragment header and the FCRC are used for error detection during fragment reassembly.
+
+If the HCS for a fragment fails, the CMTS MUST discard that fragment. If the HCS passes but the FCRC fails, the CMTS MUST discard that fragment, but MAY process any requests in the fragment header. The CMTS SHOULD process such a request if it is performing fragmentation in piggyback mode (refer to clause 10.3.2.2). This allows the remainder of the frame to be transmitted as quickly as possible.
+
+If a CMTS is performing fragmentation in multiple grant mode (refer to clause 10.3.2.1) it SHOULD complete all the grants necessary to fulfil the CM's original request even if a fragment is lost or discarded. This allows the remainder of the frame to be transmitted as quickly as possible.
+
+If any fragment of a non-concatenated MAC frame is lost or discarded, the CMTS MUST discard the rest of that frame. If a fragment of a concatenated MAC frame is lost or discarded, the CMTS MAY forward any frames within the concatenation that have been received correctly or it MAY discard all the frames in the concatenation.
+
+A CMTS MUST terminate fragment reassembly if any of the following occurs for any fragment on a given SID:
+
+- The CMTS receives a fragment with the L-bit set.
+- The CMTS receives an upstream fragment, other than the first one, with the F-bit set.
+- The CMTS receives a packet PDU frame with no fragmentation header.
+- The CMTS deletes the SID for any reason.
+
+In addition, the CMTS MAY terminate fragment reassembly based on implementation-dependent criteria such as a reassembly timer. When a CMTS terminates fragment reassembly, it MUST dispose of (either by discarding or forwarding) the reassembled frame(s).
+
+#### **8.2.8.2 Error codes and messages**
+
+Annex D of [DOCS5] lists CM and CMTS error codes and messages. When reporting error conditions, these codes MUST be used as indicated in [DOCS5] and MAY be used for reporting errors via vendor-specific interfaces. If the error codes are used, the error messages MAY be replaced by other descriptive messages.
+
+## 8.3 MAC management messages
+
+### 8.3.1 MAC management message header
+
+MAC management messages MUST be encapsulated in an LLC unnumbered information frame per [ISO/IEC 8802-2], which in turn is encapsulated within the cable network MAC framing, as shown in Figure 8-14. Figure 8-14 shows the MAC header and the MAC management message header fields which are common across all MAC management messages.
+
+
+
+| | | | | | |
+|-----|----------------------------|----------|------|------|----|
+| Bit | 0 | 8 | 16 | 24 | 31 |
+| | FC | MAC PARM | LEN | | |
+| | HCS | | | | |
+| | DA | | | | |
+| | DA | | SA | | |
+| | SA | | | | |
+| | Msg LEN | | DSAP | SSAP | |
+| | Control | Version | Type | RSVD | |
+| | Management message payload | | | | |
+| | CRC | | | | |
+
+J.122\_F8-14
+
+Diagram of MAC header and MAC management message header fields. The diagram shows a sequence of fields in a frame, with bit positions 0, 8, 16, 24, and 31 marked at the top. The fields are grouped into the MAC header (FC, MAC PARM, LEN, HCS) and the MAC management message header (DA, DA, SA, Msg LEN, DSAP, SSAP, Control, Version, Type, RSVD). The Management message payload and CRC follow. Labels on the right indicate the MAC header, MAC management message header, and the payload.
+
+Figure 8-14 – MAC header and MAC management message header fields
+
+The fields MUST be as defined below:
+
+- **FC, MAC PARM, LEN, HCS:** Common MAC frame header (refer to clause 8.2.1.4 for details). All messages use a MAC-specific header.
+- **Destination address (DA):** MAC management frames will be addressed to a specific CM unicast address or to the DOCS management multicast address. These DOCS MAC management addresses are described in Annex A.
+- **Source address (SA):** The MAC address of the source CM or CMTS system.
+- **Msg LEN:** Length of the MAC message from DSAP to the end of the payload.
+- **DSAP:** The LLC null destination SAP (00) as defined by [ISO/IEC 8802-2].
+- **SSAP:** The LLC null source SAP (00) as defined by [ISO/IEC 8802-2].
+- **Control:** Unnumbered information frame (03) as defined by [ISO/IEC 8802-2].
+- **Version and Type:** Each 1 octet. Refer to Table 8-17. Messages with a version number of 1 are understood by all CMs and CMTSs compliant with all versions of the DOCS Recommendation. Messages with a version number of 2 are understood by DOCS 1.1 and 2.0 equipment, and messages with a version number of 3 are understood by DOCS 2.0
+
+equipment. DOCS 2.0-compliant CMs and CMTSs MUST silently discard any message with a version number greater than 3.
+
+**Table 8-17 – MAC management message types**
+
+| Type value | Version | Message name | Message description |
+|------------|---------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1 | 1 | SYNC | Timing synchronization |
+| 2 or 29 | 1 or 3 | UCD | Upstream channel descriptor A UCD for a DOCS 2.0-only channel uses a type of 29 and a version of 3. All other UCDs use a type of 2 and a version of 1 (see clause 8.3.3). |
+| 3 | 1 | MAP | Upstream bandwidth allocation |
+| 4 | 1 | RNG-REQ | Ranging request |
+| 5 | 1 | RNG-RSP | Ranging response |
+| 6 | 1 | REG-REQ | Registration request |
+| 7 | 1 | REG-RSP | Registration response |
+| 8 | 1 | UCC-REQ | Upstream channel change request |
+| 9 | 1 | UCC-RSP | Upstream channel change response |
+| 10 | 1 | TRI-TCD | Telephony channel descriptor – [DOCS6] |
+| 11 | 1 | TRI-TSI | Termination system information – [DOCS6] |
+| 12 | 1 | BPKM-REQ | Privacy key management request [DOCS8] |
+| 13 | 1 | BPKM-RSP | Privacy key management response [DOCS8] |
+| 14 | 2 | REG-ACK | Registration acknowledgement |
+| 15 | 2 | DSA-REQ | Dynamic service addition request |
+| 16 | 2 | DSA-RSP | Dynamic service addition response |
+| 17 | 2 | DSA-ACK | Dynamic service addition acknowledgement |
+| 18 | 2 | DSC-REQ | Dynamic service change request |
+| 19 | 2 | DSC-RSP | Dynamic service change response |
+| 20 | 2 | DSC-ACK | Dynamic service change acknowledgement |
+| 21 | 2 | DSD-REQ | Dynamic service deletion request |
+| 22 | 2 | DSD-RSP | Dynamic service deletion response |
+| 23 | 2 | DCC-REQ | Dynamic channel change request |
+| 24 | 2 | DCC-RSP | Dynamic channel change response |
+| 25 | 2 | DCC-ACK | Dynamic channel change acknowledgement |
+| 26 | 2 | DCI-REQ | Device class identification request |
+| 27 | 2 | DCI-RSP | Device class identification response |
+| 28 | 2 | UP-DIS | Upstream transmitter disable |
+| 29 | 3 | | (See entry for UCD) |
+| 30 | 3 | INIT-RNG-REQ | Initial ranging request |
+| 31 | 3 | TST-REQ | Test request message |
+| 32 | 3 | DCD | Downstream channel descriptor (DSG) |
+| 33-255 | | | Reserved for future use |
+
+- **RSVD:** 1 octet. This field is used to align the message payload on a 32-bit boundary. Set to 0 for this version for all messages other than the RNG-REQ and INIT-RNG-REQ. See clauses 8.3.5 and 8.3.26 for setting this value for these two messages.
+- **Management message payload:** Variable length. As defined for each specific management message.
+- **CRC:** Covers message including header fields (DA, SA, ...). Polynomial defined by [ISO/IEC 8802-3].
+
+A compliant CMTS or CM MUST support the MAC management message types listed in Table 8-17, except messages specific to telephony return devices which MAY be supported.
+
+### 8.3.2 Time synchronization (SYNC)
+
+Time synchronization (SYNC) MUST be transmitted by CMTS at a periodic interval to establish MAC sublayer timing. This message MUST use an FC field with FC\_TYPE = MAC-specific header and FC\_PARM = timing MAC header. This MUST be followed by a packet PDU in the format shown in Figure 8-15.
+
+
+
+J.122\_F8-15
+
+Diagram of packet PDU following the timing header. It shows a 32-bit structure with Bit 0, 8, 16, 24, and 31 marked at the top. The top portion is the 'MAC management message header' and the bottom portion is the 'CMTS timestamp'. There are break symbols on the left and right sides of the header section.
+
+**Figure 8-15 – Format of packet PDU following the timing header**
+
+The parameters shall be as defined below:
+
+- **CMTS timestamp:** The count state of an incrementing 32-bit binary counter clocked with the CMTS 10.24-MHz master clock.
+
+The CMTS timestamp represents the count state at the instant that the first byte (or a fixed time offset from the first byte) of the time synchronization MAC management message is transferred from the downstream transmission convergence sublayer to the downstream physical media dependent sublayer as described in clause 6.3.7. The CMTS MUST NOT allow a SYNC message to cross an MPEG packet boundary11.
+
+### 8.3.3 Upstream channel descriptor (UCD)
+
+An upstream channel descriptor MUST be transmitted by the CMTS at a periodic interval to define the characteristics of an logical upstream channel (see Figure 8-16). A separate message MUST be transmitted for each logical upstream that is currently available for use.
+
+11 Since the SYNC message applies to all upstream channels within this MAC domain, units were chosen to be independent of the modulation rate of any particular upstream channel. See clause 9.3.4 for time-unit relationships.
+
+
+
+| | | | |
+|--------------------------------------------------------------|----------------------------|----------------|-----------------------|
+| Bit 0 8 16 24 31 | | | |
+| MAC management message header | | | |
+| Upstream channel ID | Configuration change count | Mini-slot size | Downstream channel ID |
+| TLV-encoded information for the overall channel | | | |
+| TLV-encoded burst description | | | |
+| TLV-encoded information for the subsequent burst descriptors | | | |
+
+J.122\_F8-16
+
+Diagram of the Upstream channel descriptor message structure. The message is 32 bits long (bits 0 to 31). The first 16 bits (bits 0-15) are the MAC management message header. The next 16 bits (bits 16-31) are divided into four 4-bit nibbles: Upstream channel ID (bits 16-19), Configuration change count (bits 20-23), Mini-slot size (bits 24-27), and Downstream channel ID (bits 28-31). Below these nibbles are three TLV-encoded information fields: 'TLV-encoded information for the overall channel', 'TLV-encoded burst description', and 'TLV-encoded information for the subsequent burst descriptors'. The diagram is labeled J.122\_F8-16.
+
+**Figure 8-16 – Upstream channel descriptor**
+
+The MAC management header for this message has 2 possible values for the type field and for the version field. For DOCS 2.0-only upstreams the CMTS MUST use a value of 29 for the type field and MUST use a value of 3 for the version field. For all other logical upstreams, the CMTS MUST use a value of 2 for the type field and a value of 1 for the version field. A CMTS MUST NOT use type 5 TLVs to encode IUCs 1-6 in a UCD with a message type of 2. A CMTS MUST use type 5 TLVs to encode all burst profiles in a UCD with a message type of 29.
+
+A type 2 UCD MUST contain type 4 burst descriptors for IUCs 3 and 4, a type 4 burst descriptor for requests and a type 4 burst descriptor for data. The burst descriptors for requests and data MUST use 1.x TDMA. To describe a 1.x/2.0 mixed logical channel, the UCD MUST additionally contain a type 5 burst descriptor for 2.0 TDMA data opportunities.
+
+A type 29 UCD MUST contain a type 5 burst descriptor for IUC 3, a type 5 burst descriptor for requests, and a type 5 burst descriptor for data.
+
+A CMTS MUST NOT include burst descriptors for IUCs 5 or 6 in a UCD message for a DOCS 2.0-only upstream.
+
+For interoperability, a CMTS SHOULD provide:
+
+- burst descriptors for IUCs 1, 5 and 6 in a type 2 UCD describing a 1.x-only channel;
+- burst descriptors for IUCs 1, 5, 6, 9 and 10 in a type 2 UCD describing a 1.x/2.0 mixed logical channel;
+- burst descriptors for IUCs 1, 9 and 10 in a type 29 UCD.
+
+The CMTS MUST treat an upstream as a DOCS 2.0-only upstream if any of the following is true about the channel wide parameters: S-CDMA mode is enabled, the mini-slot size is 1 time tick, or the value of the modulation rate parameter is 32. The CMTS MUST treat an upstream as a DOCS 2.0-only upstream if any of the following is true about any of IUCs 1-4: A modulation type other than QPSK or 16QAM is used, the FEC error correction (T) parameter is greater than 10, any portion of the extended preamble is used, any attribute from Table 8-19, "upstream physical-layer burst attributes," with a type greater than 11 is present in the descriptor. Note that none of these conditions can ever be true for IUCs 5 or 6.
+
+To provide for flexibility, the message parameters following the channel ID MUST be encoded in a type/length/value (TLV) form in which the type and length fields are each 1 octet long.
+
+A CMTS MUST generate UCDs in the format shown in Figure 8-16, including all of the following parameters:
+
+- **Configuration change count:** Incremented by one (modulo the field size) by the CMTS whenever any of the values of this channel descriptor change, excluding the S-CDMA snapshot TLV12. If the value of this count in a subsequent UCD remains the same, the CM can quickly decide that the channel operating parameters have not changed, and may be able to disregard the remainder of the message. This value is also referenced from the MAP.
+- **Mini-slot size:** The size T of the mini-slot for this upstream channel in units of the timebase tick of 6.25 µs. For channels that can support DOCS 1.x CMs, the allowable values are $T = 2^M$ , $M = 1, \dots, 7$ . That is, $T = 2, 4, 8, 16, 32, 64$ or $128$ .
+
+For DOCS 2.0-only channels, the relationship between M and T remains the same, but the allowable values are $M = 0, 1, \dots, 7$ , with $T = 1, 2, 4, 8, 16, 32, 64$ or $128$ . If the value of T is 1 then the channel MUST be treated as a DOCS 2.0-only channel. On S-CDMA channels, this parameter will not have any effect.
+
+- **Upstream channel ID:** The identifier of the upstream channel to which this message refers. This identifier is arbitrarily chosen by the CMTS and is only unique within the MAC-sublayer domain.
+
+NOTE – Upstream channel ID = 0 is reserved to indicate telephony return.
+
+- **Downstream channel ID:** The identifier of the downstream channel on which this message has been transmitted. This identifier is arbitrarily chosen by the CMTS at startup, and is only unique within the MAC-sublayer domain.
+
+All other parameters are coded as TLV tuples. The type values used MUST be those defined in Table 8-18, for channel parameters, and Table 8-19, for upstream physical layer burst attributes. Burst descriptors (type 4 and/or type 5) MUST appear in the UCD message after all other channel-wide parameters.
+
+**Table 8-18 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|-----------------|------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Modulation rate | 1 | 1 | Multiples of base rate of 160 kHz (value is 1, 2, 4, 8, 16, or 32). A value of 32 means that this is a DOCS 2.0-only upstream. If S-CDMA mode is enabled, then this parameter MUST have a value of 8, 16 or 32. |
+| Frequency | 2 | 4 | Upstream centre frequency (Hz) |
+
+12 Refer to clause 6.2.11.2 for a description of the timestamp snapshot. The periodic update of the snapshot association does not represent a change in the operating parameters of the channel, hence the UCD configuration change count will not be incremented.
+
+**Table 8-18 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|--------------------------------------|------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Preamble pattern | 3 | 1-128 |
The value field defines the first portion of the preamble superstring. If there is no extended preamble pattern parameter, then this parameter defines the entire preamble superstring. All burst-specific preamble values are chosen as bit-substrings of the preamble superstring.
The first byte of the value field contains the first 8 bits of the superstring, with the first bit of the preamble superstring in the MSB position of the first value field byte, the eighth bit of the preamble superstring in the LSB position of the first value field byte; the second byte in the value field contains the second eight bits of the superstring, with the ninth bit of the superstring in the MSB of the second byte and sixteenth bit of the preamble superstring in the LSB of the second byte, and so forth.
|
+| Burst descriptor (DOCS 1.x) | 4 | n | May appear more than once; described below. |
+| Burst descriptor (DOCS 2.0) | 5 | n | May appear more than once; described below. |
+| Extended preamble pattern | 6 | 1-64 |
512-bit preamble superstring extension.
The value field is concatenated to the end of the value field of the preamble pattern to complete the preamble superstring. This parameter MUST NOT be included unless the length of the preamble pattern parameter is 128 bytes. Therefore, the MSB of the first byte of the value field of this parameter always follows the LSB of the 128th byte of the value field of the preamble pattern parameter in the preamble superstring.
|
+| S-CDMA mode enable a) | 7 | 1 | 1 = on; 2 = off. If parameter is on, the upstream will operate in S-CDMA mode. Otherwise, it operates in TDMA mode. If this parameter is set to on, this is a DOCS 2.0-only upstream. |
+| S-CDMA spreading intervals per frame | 8 | 1 |
Number of consecutive spreading intervals mapped onto a two-dimensional frame (value is 1 through 32).
This TLV MUST be present if S-CDMA mode is enabled, and MUST NOT be present if it is not.
|
+| S-CDMA codes per mini-slot | 9 | 1 |
Number of consecutive codes mapped into a two-dimensional mini-slot (value is 2 through 32).
This TLV MUST be present if S-CDMA mode is enabled, and MUST NOT be present if it is not.
|
+| S-CDMA number of active codes | 10 | 1 |
Number of codes available to carry data payload (value is 64 through 128). This value MUST be a multiple of codes per mini-slot (TLV type 9).
This TLV MUST be present if S-CDMA Mode is enabled, and MUST NOT be present if it is not.
|
+| S-CDMA code-hopping seed | 11 | 2 |
15-bit seed to initialize code-hopping sequence. The value is left-justified in the 2-byte field. Set seed = 0 to disable code hopping.
This TLV MUST be present if S-CDMA Mode is enabled, and MUST NOT be present if it is not.
|
+
+**Table 8-18 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|-----------------------------------------|------------------|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| S-CDMA US ratio numerator "M" | 12 | 2 | The numerator (M) of the M/N ratio relating the downstream symbol clock to the upstream modulation clock.
This TLV MUST be present if S-CDMA mode is enabled, and MUST NOT be present if it is not. |
+| S-CDMA US ratio denominator "N" | 13 | 2 | The denominator (N) of the M/N ratio relating the downstream symbol clock to the upstream modulation clock.
This TLV MUST be present if S-CDMA mode is enabled, and MUST NOT be present if it is not. |
+| S-CDMA timestamp snapshot b) | 14 | 9 | Snapshot of the timestamp, mini-slot and S-CDMA frame taken at an S-CDMA frame boundary at the CMTS. A new value MUST be sampled and sent with each UCD message. Refer to clause 6.2.11.2, "mini-slot numbering".
This TLV MUST be present if S-CDMA mode is enabled, and MUST NOT be present if it is not. |
+| Maintain power spectral density | 15 | 1 | 1 = on; 2 = off. If this value is on and the modulation rate is different from the previous UCD, the CM MUST change its transmit power level to keep the power spectral density as close as possible to what it was prior to the modulation rate change. If this value is off or this parameter is omitted then the CM maintains the same power level that it was using prior to the modulation rate change.
In any case the effect of this parameter only lasts until the CM receives a power adjustment in a RNG-RSP. |
+| Ranging required | 16 | 1 | 0 = no ranging required; 1 = unicast initial ranging required; 2 = broadcast initial ranging required.
If this value is non-zero and the UCD change count does not match the UCD currently in effect, the CM MUST perform ranging as specified by this TLV before using any other transmit opportunities with the new UCD parameters. If ranging is required, and the CM is already registered, then it MUST maintain its SIDs and not re-register.
If this value is 0 or this TLV is omitted, no ranging is required. |
+| S-CDMA maximum scheduled codes enabled | 17 | 1 | 1 = maximum scheduled codes is enabled 2 = maximum scheduled codes is disabled. CMs that implement the S-CDMA maximum scheduled codes MUST set the RSVD field in the ranging requests as described in clauses 8.3.5 and 8.3.26. If S-CDMA mode is disabled on this channel, this TLV MUST NOT be present. |
+| Ranging hold-off priority field | 18 | 4 | Bit field with values representing device classes, as defined in clause C.1.3.1.16 that should temporarily inhibit initial ranging. The CMTS MAY include this TLV in the UCD message. The CM MUST observe this TLV, as described in clause 11.2.2. |
+
+**Table 8-18 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Channel class ID | 19 | 4 | Bit field with values representing device classes as defined in clause C.1.3.1.16 that are allowed to use the channel. The CMTS MAY include this TLV in the UCD message. The CM MUST observe this TLV, as described in clause 11.2.2. |
+| a) CM MUST assume S-CDMA mode is off if TLV is not present. b) Refer to clause 6.2.11.2, "mini-slot numbering", for a description of the timestamp snapshot. A change solely in this parameter for a particular UCD does not represent a change in overall channel operating parameters, hence the UCD channel change count will not be incremented. | | | |
+
+Burst descriptors are composed of an upstream interval usage code, followed by TLV encodings that define, for each type of upstream usage interval, the physical-layer characteristics that are to be used during that interval. The upstream interval usage codes are defined in the MAP message (see clause 8.3.4 and Table 8-20). The format of the burst descriptors is shown in Figure 8-17.
+
+
+
+Figure 8-17: Top-level encoding for burst descriptors. The diagram shows a 32-bit word structure. Bits 0-7 are 'Type = 4 or 5 burst descriptor'. Bits 8-15 are 'Length (n)'. Bits 16-23 are 'Interval usage code'. Bits 24-31 are 'TLV codes for PHY parameters (n - 1)'. The diagram uses a dashed box for the variable-length TLV section.
+
+**Figure 8-17 – Top-level encoding for burst descriptors**
+
+In Figure 8-17:
+
+- **Type:** 4 for burst descriptors intended for DOCS 1.x and/or DOCS 2.0 modems. 5 is for burst descriptors intended for DOCS 2.0 modems only.
+- **Length:** The number of bytes in the overall object, including the IUC and the embedded TLV items.
+- **IUC:** Interval usage code defined in Table 8-20. The IUC is coded on the 4 least-significant bits. The four most-significant bits are unused (=0).
+- **TLV items:** TLV parameters described in Table 8-18, "channel TLV parameters".
+
+Two different type values are used to describe burst descriptors. Type 4 burst descriptors MUST be understood by all modems and MUST only be used to describe IUCs 1 through 6 from Table 8-20. Type 5 burst descriptors MUST be understood by DOCS 2.0 modems. A type 5 burst descriptor MUST be used to describe any IUC if any of the following is true: a modulation type other than QPSK or 16QAM is used, the FEC error correction (T) attribute is greater than 10, any portion of the extended preamble is used, or any attribute from Table 8-19, "upstream physical-layer burst attributes", with a type greater than 11 is present in the descriptor. Type 5 burst descriptors MUST NOT be used to describe IUC 5 or IUC 6. Type 5 burst descriptors MUST be used to describe IUCs 9-11.
+
+A burst descriptor MUST be included for each interval usage code that is to be used in the allocation MAP. The interval usage code MUST be one of the values from Table 8-20.
+
+Within each burst descriptor is an unordered list of physical-layer attributes, encoded as TLV values. These attributes are shown in Table 8-19. The CMTS MUST ensure that the set of burst attributes for all the burst descriptors in the UCD allow any CM on the upstream to be able to request enough mini-slots to be able to transmit a maximum size PDU (see clause 8.2.2, "packet-based MAC Frames").
+
+**Table 8-19 – Upstream physical-layer burst attributes**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|------------------------------------|------------------|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Modulation type | 1 | 1 | 1 = QPSK 2 = 16QAM 3 = 8QAM 4 = 32QAM 5 = 64QAM 6 = 128QAM (S-CDMA only) Values greater than 2 MUST NOT be used in a descriptor encoded in a type 4 TLV. |
+| Differential encoding | 2 | 1 | 1 = on, 2 = off (see clause 6.2.13, "symbol mapping".) |
+| Preamble length | 3 | 2 | Up to 1536 bits for burst descriptors encoded in a type 5 TLV. Up to 1024 bits for descriptors encoded in a type 4 TLV. If this descriptor is encoded in a type 4 TLV then the substring of the preamble superstring defined by this parameter and the preamble value offset MUST NOT include any bits from the extended preamble pattern. The value must be an integral number of symbols (see clause 6.2.9, "preamble prepend"). |
+| Preamble value offset | 4 | 2 | Identifies the bits to be used in the preamble. This is specified as a starting offset into the preamble superstring (see Table 8-18). That is, a value of zero means that the first bit of the preamble for this burst type is the value of the first bit of the preamble superstring. A value of 100 means that the preamble is to use the 101st and succeeding bits from the preamble superstring. This value must be a multiple of the symbol size. The first bit of the preamble is the first bit into the symbol mapper (see Figures 6-2 and 6-3), and is $I_1$ in the first symbol of the burst (see clause 6.2.13). |
+| FEC error correction (T) | 5 | 1 | 0-16 for descriptors encoded in a type 5 TLV. 0-10 for descriptors encoded in a type 4 TLV. (0 implies no FEC. The number of codeword parity bytes is $2 \times T$ ) |
+| FEC codeword information bytes (k) | 6 | 1 | Fixed: 16 to 253 (assuming FEC on) Shortened: 16 to 253 (assuming FEC on) (Not used if no FEC, $T = 0$ ) |
+| Scrambler seed | 7 | 2 | The 15-bit seed value left justified in the 2-byte field. Bit 15 is the MSB of the first byte and the LSB of the second byte is not used (not used if scrambler is off). |
+
+**Table 8-19 – Upstream physical-layer burst attributes**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|--------------------------------------|---------------|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Maximum burst size | 8 | 1 | The maximum number of mini-slots that can be transmitted during this burst type. Absence of this configuration setting implies that the burst size is limited elsewhere. When the interval type is short data grant (IUC 5) or advanced PHY short data grant (IUC 9), this value MUST be present and greater than zero (see clause 9.1.2.5). If the CMTS needs to limit the maximum length of concatenated frames it SHOULD use this configuration setting to do so. |
+| Guard time size | 9 | 1 | For TDMA channels, the number of modulation intervals measured from the end of the last symbol of one burst to the beginning of the first symbol of the preamble of an immediately following burst. In type 4 burst descriptors, the CMTS MUST choose the parameters such that the number of bytes that fit into any valid number of mini-slots will not change if the guard time is increased by 1. For S-CDMA channels, there is no guard time, and hence the CM MUST ignore this value. This TLV MUST NOT be present for S-CDMA channels. |
+| Last codeword length | 10 | 1 | 1 = fixed; 2 = shortened |
+| Scrambler on/off | 11 | 1 | 1 = on; 2 = off |
+| R-S interleaver depth ( $I_r$ ) | 12 | 1 | Reed-Solomon block interleaving depth. A depth of 0 indicates dynamic mode; a depth of 1 indicates R-S interleaving disabled (see clause 6.2.6) (0 through $\lfloor 2048/(K + 2T) \rfloor$ ). This TLV MUST be present for burst descriptors encoded in type 5 TLVs on DOCS 2.0 TDMA channels. This TLV MUST NOT be present for S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+| R-S interleaver block size ( $B_r$ ) | 13 | 2 | Reed-Solomon block interleaving size in dynamic mode (18 through 2048). This TLV MUST be present in burst descriptors encoded in type 5 TLVs for DOCS 2.0 TDMA channels. This TLV MUST NOT be present on S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+| Preamble type | 14 | 1 | 1 = QPSK0 2 = QPSK1 (Refer to Figure 6-18 and to clause 6.2.9) This TLV MUST NOT be present in descriptors encoded in a type 4 TLV. |
+| S-CDMA spreader on/off | 15 | 1 | 1 = on; 2 = off. This TLV MUST be present for S-CDMA channels. This TLV MUST NOT be present for non-S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+| S-CDMA codes per subframe | 16 | 1 | Number of codes per sub-frame used in the S-CDMA framer (1 through 128). This TLV MUST be present for S-CDMA channels. This TLV MUST NOT be present for non-S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+
+**Table 8-19 – Upstream physical-layer burst attributes**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|--------------------------------------|---------------|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| S-CDMA framer interleaving step size | 17 | 1 | Size of interleaving steps used in S-CDMA framer (1 through 32). This TLV MUST be present for S-CDMA channels. This TLV MUST NOT be present for non-S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+| TCM encoding | 18 | 1 | 1 = on; 2 = off. This TLV MUST be present for S-CDMA channels. This TLV MUST NOT be present for non-S-CDMA channels or in descriptors encoded in a type 4 TLV. |
+
+#### **8.3.3.1 Example of UCD encoded TLV data**
+
+An example of UCD encoded TLV data is given in Figure 8-18.
+
+Image: Diagram showing a sequence of TLV structures for UCD encoded data. Each row represents a TLV entry with Type, Length, and Value fields. The values are: Modulation rate, Frequency, Preamble pattern, Extended preamble pattern, First burst descriptor, Second burst descriptor, Third burst descriptor, and Fourth burst descriptor. The diagram uses visual offsets to show the sequential nature of the data.
+
+| | | | | | |
+|--------|--------------|---------------------------|--|--|--|
+| Type 1 | Length 1 | Modulation rate | | | |
+| Type 2 | Length 4 | Frequency | | | |
+| Type 3 | Length 1-128 | Preamble pattern | | | |
+| Type 6 | Length 1-64 | Extended preamble pattern | | | |
+| Type 4 | Length N | First burst descriptor | | | |
+| Type 4 | Length N | Second burst descriptor | | | |
+| Type 5 | Length N | Third burst descriptor | | | |
+| Type 5 | Length N | Fourth burst descriptor | | | |
+
+J.122\_F8-18
+
+**Figure 8-18 – Example of UCD encoded TLV data**
+
+### 8.3.4 Upstream bandwidth allocation map (MAP)
+
+A CMTS MUST generate MAPs in the format shown in Figure 8-19.
+
+
+
+The diagram illustrates the structure of a 32-bit MAC management message. The word is divided into several fields. The first 32 bits (bits 0 to 31) form the 'MAC management message header'. This header is further subdivided: bits 0-7 are 'Upstream channel ID', bits 8-15 are 'UCD count', bits 16-23 are 'Number of elements', and bits 24-31 are 'Reserved'. Following the header are two 32-bit fields: 'Alloc start time' and 'Ack time'. Below these are four 8-bit fields: 'Ranging backoff start' (bits 0-7), 'Ranging backoff end' (bits 8-15), 'Data backoff start' (bits 16-23), and 'Data backoff end' (bits 24-31). The final part of the message is 'MAP information elements', which follows the header and the backoff fields. The diagram includes bit markers at 0, 8, 16, 24, and 31. A label 'J.122\_F8.19' is present at the bottom right.
+
+Diagram of the MAP format showing a 32-bit word structure with fields for MAC management message header, Upstream channel ID, UCD count, Number of elements, Reserved, Alloc start time, Ack time, Ranging backoff start, Ranging backoff end, Data backoff start, Data backoff end, and MAP information elements.
+
+Figure 8-19 – MAP format
+
+The parameters MUST be as follows:
+
+- **Upstream channel ID:** The identifier of the upstream channel to which this message refers.
+- **UCD count:** Matches the value of the configuration change count of the UCD which describes the burst parameters which apply to this map. See clause 11.3.2.
+- **Number of elements:** Number of information elements in the map.
+- **Reserved:** Reserved field for alignment.
+- **Alloc start time:** Effective start time from CMTS initialization (in mini-slots) for assignments within this map.
+- **Ack time:** Latest time, from CMTS initialization, (mini-slots) processed in upstream. This time is used by the CMs for collision detection purposes. See clause 9.4.
+- **Ranging backoff start:** Initial back-off window for initial ranging contention, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0).
+- **Ranging backoff end:** Final back-off window for initial ranging contention, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0).
+- **Data backoff start:** Initial back-off window for contention data and requests, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0).
+- **Data backoff end:** Final back-off window for contention data and requests, expressed as a power of two. Values range 0-15 (the highest order bits must be unused and set to 0).
+- **MAP information elements:** MUST be in the format defined in Figure 8-20 and Table 8-20. Values for IUCs are defined in Table 8-20 and are described in detail in clause 9.1.2.
+
+NOTE – Refer to clause 9.1.1 for the relationship between alloc start/ack time and the timebase.
+
+
+
+The diagram illustrates the structure of the MAP information element across multiple intervals. Each interval is a 32-bit word (bits 0 to 31) divided into three fields: SID (bits 0-13), IUC (bits 14-17), and Offset (bits 18-31). The intervals shown are:
+
+- First interval:** SID, IUC, Offset = 0
+- Second interval:** SID, IUC, Offset
+- ...** (indicated by wavy lines)
+- Last interval:** SID, IUC, Offset
+- End-of-list (null IE):** SID = 0, IUC = 7, Offset = map length
+- Acknowledgements and data grants pending:** SID, IUC, Offset = map length
+- ...** (indicated by wavy lines)
+
+Figure 8-20 – MAP information element structure diagram showing the layout of intervals and fields (SID, IUC, Offset) across bit positions 0 to 31.
+
+J.122\_F8-20
+
+**Figure 8-20 – MAP information element structure**
+
+**Table 8-20 – Allocation MAP information elements (IE)**
+
+| IE name a) | Interval usage code (IUC) (4 bits) | SID (14 bits) | Mini-slot offset (14 bits) |
+|-------------------------------------------------------------------------------|------------------------------------|-----------------------|-------------------------------------------------------------------------------------------------------|
+| Request | 1 | Any | Starting offset of REQ region |
+| REQ/data (refer to Annex A, "well-known addresses", for multicast definition) | 2 | Multicast | Starting offset of IMMEDIATE data region (well-known multicasts define start intervals) |
+| Initial maintenance b) | 3 | Broadcast or unicast | Starting offset of MAINT region (used in initial or periodic ranging) |
+| Station maintenance | 4 | Unicast c) | Starting offset of MAINT region (used in periodic ranging) |
+| Short data grant d) | 5 | Unicast | Starting offset of data grant assignment; If inferred length = 0, then it is a data grant pending |
+| Long data grant | 6 | Unicast | Starting offset of data grant assignment; If inferred length = 0, then it is a data grant pending |
+| Null IE | 7 | Zero | Ending offset of the previous grant. Used to bound the length of the last actual interval allocation. |
+| Data ack | 8 | Unicast | CMTS sets to map length |
+| Advanced PHY short e) data grant | 9 | Unicast | Starting offset of data grant assignment; If inferred length = 0, then it is a data grant pending |
+
+**Table 8-20 – Allocation MAP information elements (IE)**
+
+| IE name a) | Interval usage code (IUC) (4 bits) | SID (14 bits) | Mini-slot offset (14 bits) |
+|--------------------------------|------------------------------------|---------------|---------------------------------------------------------------------------------------------------|
+| Advanced PHY long data grant | 10 | Unicast | Starting offset of data grant assignment; If inferred length = 0, then it is a data grant pending |
+| Advanced PHY unsolicited grant | 11 | Unicast | Starting offset of data grant assignment |
+| Reserved | 12-14 | Any | Reserved |
+| Expansion | 15 | Expanded IUC | # of additional 32-bit words in this IE |
+
+a) Each IE is a 32-bit quantity, of which the most significant 14 bits represent the SID, the middle 4 bits the IUC, and the low-order 14 bits the mini-slot offset.
+b) The CMTS MUST NOT use a unicast SID with an initial maintenance IUC on any upstream that is not a DOCS 2.0-only upstream.
+c) The SID used in the station maintenance IE MUST be a temporary SID, or the primary SID that was assigned in the REG-RSP message to a CM.
+d) The distinction between long and short data grants is related to the amount of data that can be transmitted in the grant. A short data grant interval may use FEC parameters that are appropriate to short packets while a long data grant may be able to take advantage of greater FEC coding efficiency.
+e) The advanced PHY types are provided for channels carrying a combination of DOCS 1.x and DOCS 2.0 bursts and also for channels carrying DOCS 2.0 bursts only.
+
+### **8.3.5 Ranging request (RNG-REQ)**
+
+A ranging request MUST be transmitted by a CM at initialization on an upstream other than a DOCS 2.0-only upstream, and periodically on request from CMTS to determine network delay and request power adjustment. On a DOCS 2.0-only upstream, the CM transmits a INIT-RNG-REQ (see clause 8.3.26) message at initialization instead, but uses the RNG-REQ for all unicast maintenance opportunities provided by the CMTS. This message MUST use an FC\_TYPE = MAC-specific header and FC\_PARM = timing MAC header. This MUST be followed by a packet PDU in the format shown in Figure 8-21.
+
+
+
+Bit 0 8 16 24 31
+
+| | | | |
+|-------------------------------|--|-----------------------|-----------------------|
+| MAC management message header | | | |
+| SID | | Downstream channel ID | Pending till complete |
+
+J.122\_F8-21
+
+Diagram of a 32-bit packet PDU structure. The top part is a 32-bit MAC management message header. The bottom part is divided into three fields: SID (bits 0-15), Downstream channel ID (bits 16-23), and Pending till complete (bits 24-31).
+
+**Figure 8-21 – Packet PDU following the timing header**
+
+Parameters MUST be as follows:
+
+- **SID:** For RNG-REQ messages transmitted in broadcast initial maintenance intervals:
+ - Initialization SID if modem is attempting to join the network.
+
+- Initialization SID if modem has not yet registered and is changing upstream, downstream, or both downstream and upstream channels as directed by a downloaded parameter file.
+- Primary SID (previously assigned in REG-RSP) if modem is registered and is changing upstream channels, or if the CM is redoing initial ranging as a result of a DCC, UCC or UCD change (see clauses 8.3.3 and 11.3.2).
+
+For RNG-REQ messages transmitted in unicast initial maintenance or station maintenance intervals:
+
+- Temporary SID if modem has not yet registered.
+- Primary SID (previously assigned in REG-RSP) if modem is registered or is redoing initial ranging as a result of DCC, UCC or UCD change.
+
+This is a 16-bit field of which the lower 14 bits define the SID, with bits 14 and 15 defined to be 0.
+
+- **Downstream channel ID:** The identifier of the downstream channel on which the CM received the UCD which described this upstream. This is an 8-bit field.
+- **Pending till complete:** If zero, then all previous ranging response attributes have been applied prior to transmitting this request. If non-zero, then this is time estimated to be needed to complete assimilation of ranging parameters. Note that only equalization can be deferred. Units are in unsigned centiseconds (10 ms).
+
+A CM MUST set the RSVD field of the MAC management message header to report support of the S-CDMA maximum scheduled codes if and only if the CMTS indicated that it supports the S-CDMA maximum scheduled codes from TLV-17 of the UCD for the upstream channel on which the CM is ranging. In this case, the CM MUST report the maximum ratio of number of active codes to maximum scheduled codes that the CM can support; this ratio is indicated by a bit mask in the reserved field as shown below. For example, if the number of active codes on the channel is 128 and the CM supports a minimum of 64 scheduled codes (the minimum number of allowed active codes), the CM would report a ratio of 2. The CMTS will use this value in calculating an appropriate value for maximum scheduled codes to assign to the CM. The CM SHOULD support a maximum ratio of 32.
+
+When the CM reports support for the S-CDMA maximum scheduled codes, the CM MUST also report its current transmit power shortfall (in dB). The CM power shortfall is the difference between the current target transmit power of the ranging request and the maximum S-CDMA spreader-on transmit power of 53 dBmV. The CM MUST report a power shortfall of 0 if the current target transmit power of the ranging request is less than or equal to 53 dBmV. This value will be used by the CMTS for calculating appropriate values for S-CDMA maximum scheduled codes and S-CDMA power headroom for the CM.
+
+The format of the RSVD field is:
+
+| | | |
+|----------------------------------------------------|------------------------------------------------------------------------------------------|-----------------------------------------|
+| Bit 7: 1= S-CDMA maximum scheduled codes supported | Bits 6 to 5: CM maximum ratio of: 00 = 20 1 = 8 10 = 16 11 = 32 | Bit 4 to 0: CM power shortfall (1/4 dB) |
+|----------------------------------------------------|------------------------------------------------------------------------------------------|-----------------------------------------|
+
+### 8.3.6 Ranging response (RNG-RSP)
+
+A ranging response MUST be transmitted by a CMTS in response to received RNG-REQ or INIT-RNG-REQ. The state machines describing the ranging procedure appear in clause 11.2.4. In that procedure it may be noted that, from the point of view of the CM, reception of a ranging response is stateless. In particular, the CM MUST be prepared to receive a ranging response at any time, not just following a ranging request.
+
+To provide for flexibility, the message parameters following the upstream channel ID MUST be encoded in a type/length/value (TLV) form.
+
+
+
+The diagram illustrates the structure of a Ranging response message. It is a 32-bit word, with bits numbered 0 to 31. The first 16 bits (bits 0-15) are the MAC management message header, indicated by a break symbol. The next 8 bits (bits 16-23) are the SID from request. The following 8 bits (bits 24-31) are the Upstream channel ID. The final 16 bits (bits 32-47) are TLV encoded information. The diagram is labeled J.122\_F8-22.
+
+| Bit | 0 | 8 | 16 | 24 | 31 | |
+|-------|-------------------------------|---|------------------|----|---------------------|--|
+| Field | MAC management message header | | SID from request | | Upstream channel ID | |
+| Field | TLV encoded information | | | | | |
+
+Diagram of Ranging response message structure
+
+Figure 8-22 – Ranging response
+
+A CMTS MUST generate ranging responses in the form shown in Figure 8-22, including all of the following parameters:
+
+- **SID:** If the modem is being instructed by this response to move to a different channel, this is initialization SID. Otherwise, this is the SID from the corresponding RNG-REQ to which this response refers, except that if the corresponding RNG-REQ was an initial ranging request specifying an initialization SID, then this is the assigned temporary SID.
+- **Upstream channel ID:** The identifier of the upstream channel on which the CMTS received the RNG-REQ or INIT-RNG-REQ to which this response refers. On the first ranging response received by the CM during initial ranging, this channel ID may be different from the channel ID the CM used to transmit the range request (see Appendix III). Thus, the CM MUST use this channel ID for the rest of its transactions, not the channel ID from which it initiated the range request.
+
+All other parameters are coded as TLV tuples:
+
+- **Ranging status:** Used to indicate whether upstream messages are received within acceptable limits by CMTS.
+- **Timing adjust information:** The amount by which to change the ranging offset of the burst transmission so that bursts arrive at the expected mini-slot time at the CMTS. The units are $(1/10.24 \text{ MHz}) = 97.65625 \text{ ns}$ . A negative value implies the ranging offset is to be decreased, resulting in later times of transmission at the CM (see Table 6-8 and clause 6.2.19.1, "ranging offset").
+- **Power adjust information:** Specifies the relative change in transmission power level that the CM is to make in order that transmissions arrive at the CMTS at the desired power.
+
+- **Frequency adjust information:** Specifies the relative change in transmission frequency that the CM is to make in order to better match the CMTS (this is fine-frequency adjustment within a channel, not re-assignment to a different channel).
+- **CM transmitter equalization information:** This provides the equalization coefficients for the pre-equalizer.
+- **Downstream frequency override:** An optional parameter. The downstream frequency with which the modem should redo initial ranging (see clause 8.3.6.3).
+- **Upstream channel ID override:** An optional parameter. The identifier of the upstream channel with which the modem should redo initial ranging (see clause 8.3.6.3).
+- **Fine timing adjust extension:** Higher resolution timing adjust offset to be appended to timing adjust, integer part. The units are $(1/(256 \times 10.24 \text{ MHz})) = 0.3814697265625 \text{ ns}$ . This parameter provides finer granularity timing offset information for transmission in S-CDMA mode. This TLV MUST be present for S-CDMA channels (see clause 6.2.20).
+- **S-CDMA maximum scheduled codes:** The value that the CMTS uses to limit the number of codes scheduled to a CM in an S-CDMA frame. CMs that implement the S-CDMA maximum scheduled codes use this value to limit the maximum size of a concatenated burst in an S-CDMA frame.
+- **S-CDMA power headroom:** CMs that implement the S-CDMA maximum scheduled codes MUST use this value to control transmit power as per clause 6.2.18.2.
+
+#### 8.3.6.1 Encodings
+
+The type values used MUST be those defined in Table 8-21 and Figure 8-23. These are unique within the ranging response message but not across the entire MAC message set. The type and length fields MUST each be 1 octet in length.
+
+**Table 8-21 – Ranging response message encodings**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|--------------------------------|---------------|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Timing adjust, integer part | 1 | 4 | TX timing offset adjustment (signed 32-bit, units of $(6.25 \text{ } \mu\text{s}/64)$ ) |
+| Power level adjust | 2 | 1 | TX power offset adjustment (signed 8-bit, 1/4-dB units) |
+| Offset frequency adjust | 3 | 2 | TX frequency offset adjustment (signed 16-bit, Hz units) |
+| Transmit equalization adjust | 4 | n | TX equalization data to be convolved with current values (refer to clause 6.2.15). See below for details about representation. This TLV MUST NOT be included in a RNG-RSP that includes a type 9 TLV. |
+| Ranging status | 5 | 1 | 1 = continue, 2 = abort, 3 = success |
+| Downstream frequency override | 6 | 4 | Centre frequency of new downstream channel in Hz |
+| Upstream channel ID override | 7 | 1 | Identifier of the new upstream channel |
+| Timing adjust, fractional part | 8 | 1 | TX timing fine offset adjustment. Eight-bit unsigned value specifying the fine timing adjustment in units of $1/(245 \times 10.24 \text{ MHz})$ |
+
+**Table 8-21 – Ranging response message encodings**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|--------------------------------|------------------|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Transmit equalization set | 9 | n | TX equalization data to be loaded in place of current values (refer to clause 6.2.10). See below for details about representation. This TLV MUST NOT be included in a RNG-RSP to a DOCS 1.x CM, and MUST not be included in a RNG-RSP that includes a type 4 TLV. |
+| S-CDMA maximum scheduled codes | 10 | 1 | A CMTS MAY send this TLV only if a CM indicated in the RNG-REQ or INIT-RNG-REQ that it supports the S-CDMA maximum scheduled codes. A value of 0 means no code limit. Other possible values range from 4 to number_active_codes inclusive. Maximum scheduled codes must be an integer multiple of codes_per_mini-slots. If S-CDMA mode is disabled, this TLV MUST NOT be present. Absence of this TLV indicates that maximum scheduled codes is inactive for this CM, which MUST then use the S-CDMA number of active codes. |
+| S-CDMA power headroom | 11 | 1 | A CMTS MUST send this TLV to a CM in conjunction with TLV-10. If S-CDMA mode is disabled, this TLV MUST NOT be present. The units are dB. The range of this TLV is from 0 to $4 \cdot 10 \log(\langle \text{Anchor2} \rangle)$ NOTE – A value of 0 for TLV-10 restricts the range to 0 for TLV-11. |
+| Reserved | 12-255 | n | Reserved for future use |
+
+| Type 4 | Length | Main tap location | Number of forward taps per symbol |
+|--------------------------------|----------|--------------------------------|-----------------------------------|
+| Number of forward taps (N) | Reserved | | |
+| First coefficient $F_1$ (real) | | First coefficient $F_1$ (imag) | |
+| | | | |
+| Last coefficient $F_N$ (real) | | Last coefficient $F_N$ (imag) | |
+
+J.122\_F8-23
+
+**Figure 8-23 – Generalized decision feedback equalization coefficients**
+
+The number of taps per modulation interval T MUST be either 1, 2 or 4. The main tap location refers to the position of the zero delay tap, between 1 and N. For a T-spaced equalizer, the number
+
+of taps per modulation interval field MUST be set to "1". The total number of taps MAY range up to 64. Each tap consists of a real and imaginary coefficient entry in the table.
+
+If more than 255 bytes are needed to represent equalization information, then several type 4 or 9 elements MAY be used. Data MUST be treated as if byte-concatenated, that is, the first byte after the length field of the second type 4 or 9 element is treated as if it immediately followed the last byte of the first type 4 or 9 element.
+
+Figure 6-28 depicts the operation of the equalizer.
+
+#### 8.3.6.2 Example of TLV data
+
+An example of TLV data is given in Figure 8-24.
+
+| | | | |
+|--------|----------|----------------------------------------------------|--|
+| Type 1 | Length 4 | Timing adjust | |
+| Type 2 | Length 1 | Power adjust | |
+| Type 3 | Length 2 | Frequency adjust information | |
+| Type 4 | Length x | x bytes of CM transmitter equalization information | |
+| Type 5 | Length 1 | Ranging status | |
+
+J.122\_F8-24
+
+**Figure 8-24 – Example of TLV data**
+
+#### 8.3.6.3 Overriding channels prior to registration
+
+The RNG-RSP message allows the CMTS to instruct the modem to move to a new downstream and/or upstream channel and to repeat initial ranging. However, the CMTS may do this only in response to an initial ranging request from a modem that is attempting to join the network, or in response to any of the unicast ranging requests that take place immediately after this initial ranging and up to the point where the modem successfully completes periodic ranging. If a downstream frequency override is specified in the RNG-RSP, the modem MUST re-initialize its MAC (see clause 11.2) using initial ranging with the specified downstream centre frequency as the first scanned channel. For the upstream channel, the modem selects its channel based on received UCD messages as per clause 11.2.2.
+
+If an upstream channel ID override is specified in the RNG-RSP, the modem MUST re-initialize its MAC (see clause 11.2) using initial ranging with the upstream channel specified in the RNG-RSP for its first attempt and the same downstream frequency on which the RNG-RSP was received.
+
+If both downstream frequency and upstream channel ID overrides are present in the RNG-RSP, the modem MUST re-initialize its MAC (refer to clause 11.2) using initial ranging with the specified downstream frequency and upstream channel ID for its first attempt.
+
+Note that when a modem with an assigned temporary SID is instructed to move to a new downstream and/or upstream channel and to redo initial ranging, the modem MUST consider the temporary SID to be de-assigned. The modem MUST redo initial ranging using the initialization SID.
+
+Configuration file settings for upstream channel ID and downstream frequency are optional, but if specified in the configuration file they take precedence over the ranging response parameters. Once ranging is complete, only clause C.1.1.2, UCC-REQ and DCC-REQ mechanisms are available for
+
+moving the modem to a new upstream channel, and only clauses C.1.1.1, C.1.1.21 and DCC-REQ mechanisms are available for moving the modem to a new downstream channel.
+
+### 8.3.7 Registration request (REG-REQ)
+
+A registration request MUST be transmitted by a CM at initialization after receipt of a CM parameter file, except as outlined in clauses 11.2.8 and 11.2.9.
+
+To provide for flexibility, the message parameters following the SID MUST be encoded in a type/length/value form.
+
+
+
+The diagram illustrates the structure of a Registration request message. It is a 32-bit word, with bits numbered 0 to 31. The message is divided into three main parts:
+
+- MAC management message header:** This part occupies the entire 32-bit word (bits 0 to 31). It is indicated by a bracket spanning the top of the diagram, with break symbols (wavy lines) at the ends.
+- SID:** This field occupies the first 16 bits (bits 0 to 15). It is shown as a rectangle in the second row of the diagram.
+- TLV encoded information:** This part occupies the remaining 16 bits (bits 16 to 31). It is shown as a rectangle in the third row of the diagram.
+
+The label "J.122\_F8-25" is located at the bottom right of the diagram.
+
+Diagram of a Registration request message structure. The message is 32 bits (0 to 31) long. It consists of a MAC management message header (bits 0-31), a SID field (bits 0-15), and TLV encoded information (bits 16-31).
+
+Figure 8-25 – Registration request
+
+A CM MUST generate registration requests in the form shown in Figure 8-25, including the following parameters:
+
+- **SID:** Temporary SID for this CM.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+Registration requests can contain many different TLV parameters, some of which are set by the CM according to its configuration file and some of which are generated by the CM itself. If found in the configuration file, the following configuration settings MUST be included in the registration request.
+
+Configuration file settings:
+
+- All configuration settings included in the CMTS MIC calculation as specified in clause D.3.1.
+- Enable 2.0 mode.
+- Downstream channel list.
+- CMTS MIC configuration setting.
+
+NOTE – The CM MUST forward DOCSIS extension field configuration settings to the CMTS in the same order in which they were received in the configuration file to allow the message integrity check to be performed.
+
+The following registration parameter MUST be included in the registration request.
+
+- Vendor-specific parameter: Vendor ID configuration setting (vendor ID of CM).
+
+The modem capabilities encodings registration parameter MUST also be included in the registration request13.
+
+The following registration parameters MAY also be included in the registration request:
+
+- Modem IP address.
+- Vendor-specific capabilities.
+
+The vendor-specific capabilities field is for vendor-specific information not included in the configuration file.
+
+The following configuration settings MUST NOT be forwarded to the CMTS in the registration request:
+
+- Software upgrade filename.
+- Software upgrade TFTP server IP address.
+- SNMP write-access control.
+- SNMP MIB object.
+- SNMPv3 kickstart value.
+- CPE Ethernet MAC address.
+- HMAC digest.
+- End configuration setting.
+- Pad configuration setting.
+- Telephone settings option.
+- SNMPv3 notification receiver.
+
+### **8.3.8 Registration response (REG-RSP)**
+
+A registration response MUST be transmitted by the CMTS in response to a received REG-REQ.
+
+To provide for flexibility, the message parameters following the response field MUST be encoded in a TLV format.
+
+---
+
+13 The CM MUST specify all of its modem capabilities in its registration request subject to the restrictions in clause C.1.3.1. The CMTS MUST NOT assume any modem capability which is defined but not explicitly indicated in the CM's registration request.
+
+
+
+Diagram of Registration response format showing a 32-bit message structure. The top section is the MAC management message header (bits 0-31). Below it, the first 16 bits are split into 'SID from corresponding RNG-REQ' (bits 0-8) and 'Response' (bits 9-16). The remaining 16 bits (bits 17-31) are 'TLV encoded information'. A break symbol is shown in the header section. The diagram is labeled J.122\_F8-26 at the bottom right.
+
+**Figure 8-26 – Registration response format**
+
+A CMTS MUST generate registration responses in the form shown in Figure 8-26, including both of the following parameters:
+
+- **SID from corresponding REG-REQ:** SID from corresponding REG-REQ to which this response refers (this acts as a transaction identifier).
+- **Response:** For REG-RSP to a modem registering as a 1.0 modem (i.e., REG-REQ contains DOCS 1.0 class of service encodings).
+ - 0 = Okay
+ - 1 = Authentication failure
+ - 2 = Class of service failure
+
+For REG-RSP to a modem registering as a 1.1 or 2.0 modem (i.e., REG-REQ contains service flow encodings), this field MUST contain one of the confirmation codes in clauses C.4 and C.4.2.
+
+NOTE 1 – Failures apply to the entire registration request. Even if only a single requested service flow or DOCS 1.0 service class is invalid or undeliverable, the entire registration is failed.
+
+If the REG-REQ was successful, and contained service flow parameters, classifier parameters or payload header suppression parameters, the REG-RSP MUST contain, for each of these:
+
+- **Classifier parameters:** All of the classifier parameters from the corresponding REG-REQ, plus the classifier identifier assigned by the CMTS.
+- **Service flow parameters:** All the service flow parameters from the REG-REQ, plus the service flow ID assigned by the CMTS. Every service flow that contained a service class name that was admitted/activated14 MUST be expanded into the full set of TLVs defining the service flow. Every upstream service flow that was admitted/activated MUST have a service identifier assigned by the CMTS. A service flow that was only provisioned will include only those QoS parameters that appeared in the REG-REQ, plus the assigned service flow ID.
+- **Payload header suppression parameters:** All the payload header suppression parameters from the REG-REQ, plus the payload header suppression index assigned by the CMTS.
+
+14 The ActiveQoSParamSet or AdmittedQoSParamSet is non-null.
+
+If the REG-REQ failed due to service flow parameters, classifier parameters or payload header suppression parameters, and the response is not one of the major error codes in clause C.4.2, the REG-RSP MUST contain at least one of the following:
+
+- **Classifier error set:** A classifier error set and identifying classifier reference and service flow reference MUST be included for at least one failed classifier in the corresponding REG-REQ. Every classifier error set MUST include at least one specific failed classifier parameter of the corresponding classifier.
+- **Service flow error set:** A service flow error set and identifying service flow reference MUST be included for at least one failed service flow in the corresponding REG-REQ. Every service flow error set MUST include at least one specific failed QoS parameter of the corresponding service flow.
+- **Payload header suppression error set:** A PHS error set and identifying service flow reference and classifier reference pair MUST be included for at least one failed PHS rule in the corresponding REG-REQ. Every PHS error set MUST include at least one specific failed PHS parameter of the corresponding failed PHS rule.
+
+Service class name expansion always occurs at admission time. Thus, if a registration request contains a service flow reference and a service class name for deferred admission/activation, the registration response MUST NOT include any additional QoS parameters except the service flow identifier (refer to clause 10.1.3).
+
+If the corresponding registration request contains DOCS 1.0 service class TLVs (refer to clause C.1.1.4), the registration response MUST contain the following TLV tuples:
+
+- **DOCS 1.0 service class data:** Returned when response = okay. This is a service ID/service class tuple for each class of service granted.
+
+NOTE 2 – Service class IDs MUST be those requested in the corresponding REG-REQ.
+
+- **Service not available:** Returned when response = class of service failure. If a service class cannot be supported, this configuration setting is returned in place of the service class data.
+
+All other parameters are coded TLV tuples.
+
+- **Modem capabilities:** The CMTS response to the capabilities of the modem (if present in the registration request).
+- **Vendor-specific data:** As defined in Annex C:
+ - vendor ID configuration setting (vendor ID of the CMTS);
+ - vendor-specific extensions.
+
+#### 8.3.8.1 Encodings
+
+The type values used MUST be those shown below. These are unique within the registration response message but not across the entire MAC message set. The type and length fields MUST each be one octet.
+
+##### 8.3.8.1.1 Modem capabilities
+
+This field defines the CMTS response to the modem capabilities field in the registration request. The CMTS MUST respond to the modem capability to indicate whether they may be used. If the CMTS does not recognize a modem capability, it MUST return the TLV with the value zero ("off") in the registration response.
+
+Only capabilities set to "on" in the REG-REQ may be set "on" in the REG-RSP as this is the handshake indicating that they have been successfully negotiated. Capabilities set to "off" in the REG-REQ MUST also be set to "off" in the REG-RSP.
+
+Encodings are as defined for the registration request.
+
+##### 8.3.8.1.2 DOCS 1.0 service class data
+
+A DOCS 1.0 service-class-data parameter MUST be present in the registration response for each DOCS 1.0 class-of-service parameter (refer to clause C.1.1.4) in the registration request.
+
+This encoding defines the parameters associated with a requested class of service. It is somewhat complex in that it is composed from a number of encapsulated type/length/value fields. The encapsulated fields define the particular class-of-service parameters for the class of service in question. Note that the type fields defined are only valid within the encapsulated service class data configuration setting string. A single service class data configuration setting MUST be used to define the parameters for a single service class. Multiple class definitions MUST use multiple service class data configuration setting sets.
+
+Each received DOCS 1.0 class-of-service parameter must have a unique class ID in the range 1 to 16. If no class ID is present for any single DOCS 1.0 class-of-service TLV in the REG-REQ, the CMTS MUST send a REG-RSP with a class-of-service failure response and no DOCS 1.0 class-of-service TLVs.
+
+| Type | Length | Value |
+|------|--------|----------------------------|
+| 1 | n | Encoded service class data |
+
+###### Class ID:
+
+The value of the field MUST specify the identifier for the class of service to which the encapsulated string applies. This MUST be a class which was requested in the associated REG-REQ, if present.
+
+| Type | Length | Value |
+|------|--------|--------------|
+| 1.1 | 1 | From REG-REQ |
+
+**Valid range:** The class ID MUST be in the range 1 to 16.
+
+**Service ID:** The value of the field MUST specify the SID associated with this service class.
+
+| Type | Length | Value |
+|------|--------|-------|
+| 1.2 | 2 | SID |
+
+### 8.3.9 Registration acknowledge (REG-ACK)
+
+A registration acknowledge MUST be transmitted by the CM in response to a REG-RSP from the CMTS with a confirmation code of okay (0)15. It confirms acceptance by the CM of the QoS parameters of the flow as reported by the CMTS in its REG-RSP. The format of a REG-ACK MUST be as shown in Figure 8-27.
+
+---
+
+15 The registration acknowledge is a DOCS 1.1/2.0 message. Refer to Annex G for details of registration interoperability issues.
+
+
+
+Diagram illustrating the structure of a Registration acknowledgment message. The message is 32 bits (0-31) long. The first part is the MAC management message header (bits 0-31). The second part contains the SID from corresponding REG-RSP (bits 0-15) and Confirmation code (bits 16-23). The third part is TLV encoded information (bits 24-31).
+
+| | | | | | |
+|--------------------------------|---|---|-------------------|----|----|
+| Bit | 0 | 8 | 16 | 24 | 31 |
+| MAC management message header | | | | | |
+| SID from corresponding REG-RSP | | | Confirmation code | | |
+| TLV encoded information | | | | | |
+
+J.122\_F8-27
+
+Diagram of a Registration acknowledgment message structure. The message is 32 bits (0-31) long. The first part is the 'MAC management message header' (bits 0-31). The second part contains 'SID from corresponding REG-RSP' (bits 0-15) and 'Confirmation code' (bits 16-23). The third part is 'TLV encoded information' (bits 24-31).
+
+**Figure 8-27 – Registration acknowledgment**
+
+The parameters MUST be as follows:
+
+- **SID from corresponding REG-RSP:** SID from corresponding REG-RSP to which this acknowledgment refers (this acts as a transaction identifier).
+- **Confirmation code:** The appropriate confirmation code (refer to clause C.4) for the entire corresponding registration response.
+
+The CM is required to send all provisioned classifiers, service flows and payload header suppression rules to the CMTS in the REG-REQ (see clause 8.3.7). The CMTS will return them with identifiers, expanding service class names if present, in the REG-RSP (see clause 8.3.8). Since the CM may be unable to support one or more of these provisioned items, the REG-ACK includes error sets for all failures related to these provisioned items.
+
+If there were any failures of provisioned items, the REG-ACK MUST include the error sets corresponding to those failures. The error set identification is provided by using service flow ID and classifier ID from corresponding REG-RSP. If a classifier ID or SFID was omitted in the REG-RSP, the CM MUST use the appropriate reference (classifier reference, SF reference) in the REG-ACK.
+
+- **Classifier error set:** A classifier error set and identifying classifier reference/identifier and service flow reference/identifier pair MUST be included for at least one failed classifier in the corresponding REG-RSP. Every classifier error set MUST include at least one specific failed classifier parameter of the corresponding classifier. This parameter MUST be omitted if the entire REG-REQ/RSP is successful.
+- **Service flow error set:** A service flow error set of the REG-ACK message encodes specifics of failed service flows in the REG-RSP message. A service flow error set and identifying service flow reference/identifier MUST be included for at least one failed QoS parameter of at least one failed service flow in the corresponding REG-RSP message. This parameter MUST be omitted if the entire REG-REQ/RSP is successful.
+- **Payload header suppression error set:** A PHS error set and identifying service flow reference/identifier and classifier reference/identifier pair MUST be included for at least one failed PHS rule in the corresponding REG-RSP. Every PHS error set MUST include at least one specific failed PHS of the failed PHS rule. This parameter MUST be omitted if the entire REG-REQ/RSP is successful.
+
+Per service flow acknowledgment is necessary not just for synchronization between the CM and CMTS, but also to support use of the service class name (refer to clause 10.1.3). Since the CM may not know all of the service flow parameters associated with a service class name when making the registration request, it may be necessary for the CM to NAK a registration response if it has insufficient resources to support this service flow.
+
+### 8.3.10 Upstream channel change request (UCC-REQ)
+
+An upstream channel change request MAY be transmitted by a CMTS to cause a CM to change the upstream channel on which it is transmitting. The format of an UCC-REQ message is shown in Figure 8-28.
+
+
+
+The diagram illustrates the structure of an UCC-REQ message. It is a 32-bit word, with bit positions 0, 8, 16, 24, and 31 marked at the top. The first 16 bits (bits 0-15) are the MAC management message header, indicated by a bracket and a break symbol. The next 8 bits (bits 16-23) are the Upstream channel ID. The remaining 8 bits (bits 24-31) are TLV encoded information. The label J.122\_F8-28 is at the bottom right.
+
+Diagram of UCC-REQ message format showing a 32-bit structure with a MAC management message header and an 8-bit Upstream channel ID field.
+
+Figure 8-28 – Upstream channel change request
+
+Parameters MUST be as follows:
+
+- **Upstream channel ID:** The identifier of the upstream channel to which the CM is to switch for upstream transmissions. This is an 8-bit field.
+
+Upon receipt of a UCC-REQ message, the CM MUST perform ranging with broadcast initial maintenance.
+
+### 8.3.11 Upstream channel change response (UCC-RSP)
+
+An upstream channel change response MUST be transmitted by a CM in response to a received upstream channel change request message to indicate that it has received and is complying with the UCC-REQ. The format of an UCC-RSP message is shown in Figure 8-29.
+
+
+
+The diagram illustrates the structure of an UCC-RSP message. It is a 32-bit word, with bit positions 0, 8, 16, 24, and 31 marked at the top. The first 16 bits (bits 0-15) are the MAC management message header, indicated by a bracket and a break symbol. The next 8 bits (bits 16-23) are the Upstream channel ID. The remaining 8 bits (bits 24-31) are TLV encoded information. The label J.122\_F8-29 is at the bottom right.
+
+Diagram of UCC-RSP message format showing a 32-bit structure with a MAC management message header and an 8-bit Upstream channel ID field.
+
+Figure 8-29 – Upstream channel change response
+
+Before it begins to switch to a new upstream channel, a CM MUST transmit a UCC-RSP on its existing upstream channel. A CM MAY ignore an UCC-REQ message while it is in the process of
+
+performing a channel change. When a CM receives a UCC-REQ message requesting that it switch to an upstream channel that it is already using, the CM MUST respond with a UCC-RSP message on that channel indicating that it is already using the correct channel.
+
+After switching to a new upstream channel, a CM MUST re-range using broadcast initial ranging, and then MUST proceed without re-performing registration. The full procedure for changing channels is described in clause 11.3.3.
+
+Parameters MUST be as follows:
+
+- **Upstream channel ID:** The identifier of the upstream channel to which the CM is to switch for upstream transmissions. This MUST be the same channel ID specified in the UCC-REQ message. This MUST be an 8-bit field.
+
+### 8.3.12 Dynamic service addition request (DSA-REQ)
+
+A dynamic service addition request MAY be sent by a CM or CMTS to create a new service flow.
+
+
+
+The diagram illustrates the structure of a DSA-REQ message. It is a 32-bit message with the following fields:
+
+- MAC management message header:** Bits 0 to 31. This field is shown with break symbols at the ends, indicating it may be split across multiple bytes.
+- Transaction ID:** Bits 0 to 15. This is a 16-bit field.
+- TLV encoded information:** Bits 16 to 31. This is a 16-bit field.
+
+The diagram is labeled J.122\_F8-30.
+
+Diagram of a Dynamic service addition request (DSA-REQ) message structure. The diagram shows a 32-bit message (bits 0 to 31) with a MAC management message header (bits 0-31), a Transaction ID (bits 0-15), and TLV encoded information (bits 16-31).
+
+Figure 8-30 – Dynamic service addition request
+
+A CM or CMTS MUST generate DSA-REQ messages in the form shown in Figure 8-30, including the following parameter:
+
+- **Transaction ID:** Unique identifier for this transaction assigned by the sender.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+A DSA-REQ message MUST NOT contain parameters for more than one service flow in each direction, i.e., a DSA-REQ message MUST contain parameters for either a single upstream service flow, or for a single downstream service flow, or for one upstream and one downstream service flow.
+
+The DSA-REQ message MUST contain:
+
+- **Service flow parameters:** Specification of the service flow's traffic characteristics and scheduling requirements.
+
+The DSA-REQ message MAY contain classifier parameters and payload header suppression parameters associated with the service flows specified in the message:
+
+- **Classifier parameters:** Specification of the rules to be used to classify packets into a specific service flow.
+
+- **Payload header suppression parameters:** Specification of the payload header suppression rules to be used with an associated classifier.
+
+If privacy is enabled, the DSA-REQ message MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+#### 8.3.12.1 CM-initiated dynamic service addition
+
+CM-initiated DSA-Requests MUST use the service flow reference to link classifiers to service flows. Values of the service flow reference are local to the DSA message; each service flow within the DSA-Request MUST be assigned a unique service flow reference. This value need not be unique with respect to the other service flows known by the sender.
+
+CM-initiated DSA-Request MUST use the classifier reference and service flow reference to link payload header suppression parameters to classifiers and service flows. A DSA-Request MUST use the service flow reference to link classifier to service flow. Values of the classifier reference are local to the DSA message; each classifier within the DSA-Request MUST be assigned a unique classifier reference.
+
+CM-initiated DSA-Requests MAY use the service class name (refer to clause C.2.2.3.4) in place of some, or all, of the QoS parameters.
+
+#### 8.3.12.2 CMTS-initiated dynamic service addition
+
+CMTS-initiated DSA-Requests MUST use the service flow ID to link classifiers to service flows. Service flow identifiers are unique within the MAC domain. CMTS-initiated DSA-Requests for upstream service flows MUST also include a service ID.
+
+CMTS-initiated DSA-Requests which include classifiers, MUST assign a unique classifier identifier on a per service flow basis.
+
+CMTS-initiated DSA-Requests for named service classes MUST include the QoS parameter set associated with that service class.
+
+### 8.3.13 Dynamic service addition response (DSA-RSP)
+
+A dynamic service addition response MUST be generated in response to a received DSA-Request. The format of a DSA-RSP MUST be as shown in Figure 8-31.
+
+
+
+Bit 0 8 16 24 31
+
+MAC management message header
+
+Transaction ID Confirmation code
+
+TLV encoded information
+
+J.122\_F8-31
+
+Diagram of Dynamic service addition response message structure. The diagram shows a 32-bit message (bits 0 to 31). The top section is the 'MAC management message header' (bits 0-31). Below it, the first 16 bits (bits 0-15) are split into 'Transaction ID' (bits 0-7) and 'Confirmation code' (bits 8-15). The remaining 16 bits (bits 16-31) are 'TLV encoded information'. A label 'J.122\_F8-31' is at the bottom right.
+
+**Figure 8-31 – Dynamic service addition response**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** Transaction ID from corresponding DSA-REQ.
+- **Confirmation code:** The appropriate confirmation code (refer to clause C.4) for the entire corresponding DSA-Request.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+If the transaction is successful, the DSA-RSP MAY contain one or more of the following:
+
+- **Classifier parameters:** The CMTS MUST include the complete specification of the classifier in the DSA-RSP, including a newly assigned classifier identifier. The CM MUST NOT include the specification of the classifier in the DSA-RSP.
+- **Service flow parameters:** The CMTS MUST include the complete specification of the service flow in the DSA-RSP, including a newly assigned service flow identifier and an expanded service class name if applicable. The CM MUST NOT include the specification of the service flow in the DSA-RSP.
+- **Payload header suppression parameters:** The CMTS MUST include the complete specification of the PHS parameters in the DSA-RSP, including a newly assigned PHS index, a classifier identifier and a service flow identifier. The CM MUST NOT include the specification of the PHS parameters.
+
+If the transaction is unsuccessful due to service flow parameters, classifier parameters or payload header suppression parameters, and the confirmation code is not one of the major error codes in clause C.4.2, the DSA-RSP MUST contain at least one of the following:
+
+- **Service flow error set:** A service flow error set and identifying service flow reference/identifier MUST be included for at least one failed service flow in the corresponding DSA-REQ. Every service flow error set MUST include at least one specific failed QoS parameter of the corresponding service flow. This parameter MUST be omitted if the entire DSA-REQ is successful.
+- **Classifier error set:** A classifier error set and identifying classifier reference/identifier and service flow reference/identifier pair MUST be included for at least one failed classifier in the corresponding DSA-REQ. Every classifier error set MUST include at least one specific failed classifier parameter of the corresponding classifier. This parameter MUST be omitted if the entire DSA-REQ is successful.
+
+- **Payload header suppression error set:** A PHS error set and identifying classifier reference/identifier and service flow reference/identifier pair MUST be included for at least one failed PHS rule in the corresponding DSA-REQ. Every PHS error set MUST include at least one specific failed PHS parameter of the corresponding failed PHS rule. This parameter MUST be omitted if the entire DSA-REQ is successful.
+
+If privacy is enabled, the DSA-RSP message MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+#### 8.3.13.1 CM-initiated dynamic service addition
+
+The CMTS's DSA-Response for service flows that are successfully added MUST contain a service flow ID. The DSA-Response for successfully admitted or active upstream QoS parameter sets MUST also contain a service ID.
+
+If the corresponding DSA-Request uses the service class name (refer to clause C.2.2.3.4) to request service addition, a DSA-Response MUST contain the QoS parameter set associated with the named service class. If the service class name is used in conjunction with other QoS parameters in the DSA-Request, the CMTS MUST accept or reject the DSA-Request using the explicit QoS parameters in the DSA-Request. If these service flow encodings conflict with the service class attributes, the CMTS MUST use the DSA-Request values as overrides for those of the service class.
+
+If the transaction is successful, the CMTS MUST assign a classifier identifier to each requested classifier and a PHS index to each requested PHS rule. The CMTS MUST use the original classifier reference(s) and service flow reference(s) to link the successful parameters in the DSA-RSP.
+
+If the transaction is unsuccessful, the CMTS MUST use the original classifier reference(s) and service flow reference(s) to identify the failed parameters in the DSA-RSP.
+
+#### 8.3.13.2 CMTS-initiated dynamic service addition
+
+If the transaction is unsuccessful, the CM MUST use the classifier identifier(s) and service flow identifier(s) to identify the failed parameters in the DSA-RSP.
+
+### 8.3.14 Dynamic service addition acknowledge (DSA-ACK)
+
+A dynamic service addition acknowledge MUST be generated in response to a received DSA-RSP. The format of a DSA-ACK MUST be as shown in Figure 8-32.
+
+
+
+Bit 0 8 16 24 31
+
+| | | | |
+|-------------------------------|--|-------------------|--|
+| MAC management message header | | | |
+| Transaction ID | | Confirmation code | |
+| TLV encoded information | | | |
+
+J.122\_F8-32
+
+Diagram of Dynamic service addition acknowledge message structure. The message is 32 bits (0-31) long. The first 32 bits are the MAC management message header. The next 32 bits are split into Transaction ID (bits 0-15) and Confirmation code (bits 16-31). The remaining bits are TLV encoded information.
+
+**Figure 8-32 – Dynamic service addition acknowledge**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** Transaction ID from corresponding DSA-Response.
+- **Confirmation code:** The appropriate confirmation code (refer to clause C.4) for the entire corresponding DSA-Response16.
+
+All other parameters are coded TLV tuples.
+
+- **Service flow error set:** The service flow error set of the DSA-ACK message encodes specifics of failed service flows in the DSA-RSP message. A service flow error set and identifying service flow reference/identifier MUST be included for at least one failed QoS parameter of at least one failed service flow in the corresponding DSA-REQ. This parameter MUST be omitted if the entire DSA-REQ is successful.
+
+If privacy is enabled, the DSA-RSP message MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.15 Dynamic service change request (DSC-REQ)
+
+A dynamic service change request MAY be sent by a CM or CMTS to dynamically change the parameters of an existing service flow. DSCs changing classifiers MUST carry the entire classifier TLV set for that new classifier.
+
+16 The confirmation code is necessary particularly when a service class name (refer to clause 10.1.3) is used in the DSA-Request. In this case, the DSA-Response could contain service flow parameters that the CM is unable to support (either temporarily or as configured).
+
+
+
+The diagram shows the structure of a Dynamic service change request message. It is a 32-bit word structure. The first 32 bits (0-31) are the MAC management message header. The next 32 bits (32-63) are the Transaction ID. The remaining bits (64-95) are TLV encoded information. The diagram is labeled J.122\_F8-33.
+
+Diagram of a Dynamic service change request message structure. The message is 32 bits (0-31) long. The first 32 bits are the MAC management message header. The next 32 bits are the Transaction ID. The remaining bits are TLV encoded information.
+
+**Figure 8-33 – Dynamic service change request**
+
+A CM or CMTS MUST generate DSC-REQ messages in the form shown in Figure 8-33 including the following parameters:
+
+- **Transaction ID:** Unique identifier for this transaction assigned by the sender.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+A DSC-REQ message MUST NOT carry parameters for more than one service flow in each direction, i.e., a DSC-REQ message MUST contain parameters for either a single upstream service flow, or for a single downstream service flow, or for one upstream and one downstream service flow. A DSC-REQ MUST contain at least one of the following:
+
+- **Classifier parameters:** Specification of the rules to be used to classify packets into a specific service flow – this includes the dynamic service change action TLV which indicates whether this classifier should be added, replaced or deleted from the service flow (refer to clause C.2.1.3.7). If included, the classifier parameters MUST contain the dynamic change action TLV, a classifier reference/identifier and a service flow identifier.
+- **Service flow parameters:** Specification of the service flow's new traffic characteristics and scheduling requirements. The admitted and active quality of service parameter sets in this message replace the admitted and active quality of service parameter sets currently in use by the service flow. If the DSC message is successful and it contains service flow parameters, but does not contain replacement sets for both admitted and active quality of service parameter sets, the omitted set(s) MUST be set to null. If included, the service flow parameters MUST contain a service flow identifier.
+- **Payload header suppression parameters:** Specification of the rules to be used for payload header suppression to suppress payload headers related to a specific classifier – this includes the dynamic service change action TLV which indicates whether this PHS rule should be added, set or deleted from the service flow or whether all the PHS rules for the service flow specified should be deleted (refer to clause C.2.2.8.5). If included, the PHS parameters MUST contain the dynamic service change action TLV, a classifier reference/identifier and a service flow identifier, unless the dynamic service change action is "delete all PHS rules". If the dynamic service change action is "delete all PHS rules", the PHS parameters MUST contain a service flow identifier along with the dynamic service change action, and no other PHS parameters need be present in this case. However, if other
+
+PHS parameters are present, in particular payload header suppression index, they MUST be ignored by the receiver of the DSC-REQ message.
+
+If privacy is enabled, a DSC-REQ MUST also contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.16 Dynamic service change response (DSC-RSP)
+
+A dynamic service change response MUST be generated in response to a received DSC-REQ. The format of a DSC-RSP MUST be as shown in Figure 8-34.
+
+
+
+The diagram illustrates the structure of a DSC-RSP message. It shows a 32-bit word structure with bit positions 0, 8, 16, 24, and 31 marked at the top. The first 32-bit word is the 'MAC management message header', indicated by a double slash on its left and right sides. Below this header is the 'Transaction ID', which occupies the first 16 bits (bits 0 to 15). The remaining 16 bits of the second 32-bit word and all subsequent bits are designated as 'TLV encoded information'. The diagram is labeled 'J.122\_F8-34' at the bottom right.
+
+Diagram of Dynamic service change response (DSC-RSP) structure
+
+**Figure 8-34 – Dynamic service change response**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** Transaction ID from corresponding DSC-REQ.
+- **Confirmation code:** The appropriate confirmation code (refer to clause C.4) for the corresponding DSC-Request.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+If the transaction is successful, the DSC-RSP MAY contain one or more of the following:
+
+- **Classifier parameters:** The CMTS MUST include the complete specification of the classifier in the DSC-RSP, including a newly assigned classifier identifier for new classifiers. The CM MUST NOT include the specification of the classifier in the DSC-RSP.
+- **Service flow parameters:** The CMTS MUST include the complete specification of the service flow in the DSC-RSP, including an expanded service class name if applicable. The CMTS MUST include a SID in the DSC-RSP if a service flow parameter set contained an upstream admitted QoS parameter set and this service flow does not have an associated SID. If a service flow parameter set contained a service class name and an admitted QoS parameter set, the CMTS MUST include the QoS parameter set corresponding to the named service class in the DSC-RSP. If specific QoS parameters were also included in the classed service flow request, the CMTS MUST include these QoS parameters in the DSC-RSP
+
+instead of any QoS parameters of the same type of the named service class. The CM MUST NOT include the specification of the service flow in the DSC-RSP.
+
+- **Payload header suppression parameters:** The CMTS MUST include the complete specification of the PHS parameters in the DSC-RSP, including a newly assigned PHS index for new PHS rules, a classifier identifier and a service flow identifier. The CM MUST NOT include the specification of the PHS parameters.
+
+If the transaction is unsuccessful due to service flow parameters, classifier parameters or payload header suppression parameters, and the confirmation code is not one of the major error codes in clause C.4.2, the DSC-RSP MUST contain at least one of the following:
+
+- **Classifier error set:** A classifier error set and identifying classifier reference/identifier and service flow reference/identifier pair MUST be included for at least one failed classifier in the corresponding DSC-REQ. Every classifier error set MUST include at least one specific failed classifier parameter of the corresponding classifier. This parameter MUST be omitted if the entire DSC-REQ is successful.
+- **Service flow error set:** A service flow error set and identifying service flow ID MUST be included for at least one failed service flow in the corresponding DSC-REQ. Every service flow error set MUST include at least one specific failed QoS parameter of the corresponding service flow. This parameter MUST be omitted if the entire DSC-REQ is successful.
+- **Payload header suppression error set:** A PHS error set and identifying service flow reference/identifier and classifier reference/identifier pair MUST be included for at least one failed PHS rule in the corresponding DSC-REQ, unless the dynamic service change action is "delete all PHS rules". If the dynamic service change action is "delete all PHS rules" the PHS error set(s) MUST include an identifying service flow ID. Every PHS error set MUST include at least one specific failed PHS parameter of the corresponding failed PHS rule. This parameter MUST be omitted if the entire DSC-REQ is successful.
+
+Regardless of success or failure, if privacy is enabled for the CM, the DSC-RSP MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.17 Dynamic service change acknowledge (DSC-ACK)
+
+A dynamic service change acknowledge MUST be generated in response to a received DSC-RSP. The format of a DSC-ACK MUST be as shown in Figure 8-35.
+
+
+
+Diagram of Dynamic service change acknowledge message structure. The diagram shows a 32-bit message structure. The top section is the 'MACmanagement message header' (bits 0-31). Below it, the first 16 bits are split into 'Transaction ID' (bits 0-8) and 'Confirmation code' (bits 9-16). The remaining 16 bits (bits 17-31) are 'TLV encoded information'. A break symbol (double wavy line) is shown in the header section. The diagram is labeled 'J.122\_F8-35' at the bottom right.
+
+**Figure 8-35 – Dynamic service change acknowledge**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** Transaction ID from the corresponding DSC-REQ.
+- **Confirmation code:** The appropriate confirmation code (refer to clause C.4) for the entire corresponding DSC-Response17.
+
+All other parameters are coded as TLV tuples.
+
+- **Service flow error set:** The service flow error set of the DSC-ACK message encodes specifics of failed service flows in the DSC-RSP message. A service flow error set and identifying service flow identifier MUST be included for at least one failed QoS parameter of at least one failed service flow in the corresponding DSC-REQ. This parameter MUST be omitted if the entire DSC-REQ is successful.
+
+If privacy is enabled, the DSC-ACK message MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.18 Dynamic service deletion request (DSD-REQ)
+
+A dynamic service deletion request MAY be sent by a CM or CMTS to delete a single existing upstream service flow and/or a single existing downstream service flow. The format of a DSD-Request MUST be as shown in Figure 8-36.
+
+17 The confirmation code and service flow error set are necessary particularly when a service class name (refer to clause 10.1.3) is used in the DSC-Request. In this case, the DSC-Response could contain service flow parameters that the CM is unable to support (either temporarily or as configured).
+
+
+
+Bit 0 8 16 24 31
+
+| | | | |
+|-------------------------------|--|----------|--|
+| MAC management message header | | | |
+| Transaction ID | | Reserved | |
+| SFID | | | |
+| TLV encoded information | | | |
+
+J.122\_F8-36
+
+Diagram of Dynamic service deletion request (DSD-REQ) message structure. The diagram shows a 32-bit (0-31) message format. The first part is a 'MAC management message header' (bits 0-31). Below it is a 16-bit 'Transaction ID' (bits 0-15) and a 16-bit 'Reserved' field (bits 16-31). The next part is a 32-bit 'SFID' (bits 0-31). The final part is 'TLV encoded information' (bits 0-31). The diagram is labeled J.122\_F8-36.
+
+**Figure 8-36 – Dynamic service deletion request**
+
+Parameters MUST be as follows:
+
+- **Service flow identifier:** If this value is non-zero, it is the SFID of a single upstream or single downstream service flow to be deleted. If this value is zero, the service flow(s) to be deleted will be identified by SFID(s) in the TLVs. If this value is non-zero, any SFIDs included in the TLVs MUST be ignored.
+- **Transaction ID:** Unique identifier for this transaction assigned by the sender.
+
+All other parameters are coded as TLV tuples as defined in Annex C.
+
+- **Service flow identifier:** The SFID(s) to be deleted, which MUST be encoded per clause C.2.2.3.2. The service flow identifier TLV MUST be the only service flow encoding sub-TLV used.
+
+If privacy is enabled, the DSD-REQ MUST include:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic service message's attribute list (refer to clause C.1.4.1).
+
+### **8.3.19 Dynamic service deletion response (DSD-RSP)**
+
+A dynamic service deletion response MUST be generated in response to a received DSD-REQ. The format of a DSD-RSP MUST be as shown in Figure 8-37.
+
+
+
+| | | | |
+|-------------------------------|-------------------|----------|--|
+| Bit 0 8 16 24 31 | | | |
+| MAC management message header | | | |
+| Transaction ID | Confirmation code | Reserved | |
+
+Diagram of Dynamic service deletion response message structure. It shows a 32-bit word with bit positions 0, 8, 16, 24, and 31. The top part is the MAC management message header. The bottom part is divided into three fields: Transaction ID (bits 0-15), Confirmation code (bits 16-23), and Reserved (bits 24-31).
+
+J.122\_F8-37
+
+**Figure 8-37 – Dynamic service deletion response**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** Transaction ID from corresponding DSD-REQ.
+- **Confirmation Code:** The appropriate confirmation code (refer to clause C.4) for the corresponding DSD-Request.
+
+**8.3.20 Dynamic channel change request (DCC-REQ)**
+
+A dynamic channel change request MAY be transmitted by a CMTS to cause a CM to change the upstream channel on which it is transmitting, the downstream channel on which it is receiving, or both.
+
+
+
+| | | | |
+|-------------------------------|-------------------------|--|--|
+| Bit 0 8 16 24 31 | | | |
+| MAC management message header | | | |
+| Transaction ID | TLV encoded information | | |
+
+Diagram of Dynamic channel change request message structure. It shows a 32-bit word with bit positions 0, 8, 16, 24, and 31. The top part is the MAC management message header. Below it is the Transaction ID (bits 0-15). The remaining part (bits 16-31) is TLV encoded information.
+
+J.122\_F8-38
+
+**Figure 8-38 – Dynamic channel change request**
+
+A CMTS MUST generate DCC-REQ message in the form shown in Figure 8-38, including the following parameters:
+
+- **Transaction ID:** A 16-bit unique identifier for this transaction assigned by the sender.
+
+The following parameters are optional and are coded as TLV tuples:
+
+- **Upstream channel ID:** The identifier of the upstream channel to which the CM is to switch for upstream transmissions.
+- **Downstream parameters:** The frequency of the downstream channel to which the CM is to switch for downstream reception.
+
+- **Initialization technique:** Directions for the type of initialization, if any, that the CM should perform once synchronized to the new channel(s).
+- **UCD substitution:** Provides a copy of the UCD for the new channel. This TLV occurs as many times as necessary to contain one UCD.
+- **SAID substitution:** A pair of security association identifiers (SAID) which contain the current SAID and the new SAID for the new channel. This TLV occurs once if the SAID requires substitution.
+- **Service flow substitution:** A group of sub-TLVs which allows substitution in a service flow of the service flow identifier and service identifier. This TLV is repeated for every service flow which has parameters requiring substitution.
+
+If privacy is enabled, a DCC-REQ MUST also contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic channel change message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.20.1 Encodings
+
+The type values used MUST be those shown below. These are unique within the dynamic channel change request message, but not across the entire MAC message set.
+
+#### 8.3.20.1.1 Upstream channel ID
+
+When present, this TLV specifies the new upstream channel ID that the CM MUST use when performing a dynamic channel change. It is an override for the current upstream channel ID. The CMTS SHOULD ensure that the upstream channel ID for the new channel is different from the upstream channel ID for the old channel. This TLV MUST be included if the upstream channel is changed, even if the UCD substitution TLV is included.
+
+| Type | Length | Value |
+|------|--------|----------------------------|
+| 1 | 1 | 0-255: Upstream channel ID |
+
+If this TLV is missing, the CM MUST NOT change its upstream channel ID. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+#### 8.3.20.1.2 Downstream parameters
+
+When present, this TLV specifies the operating parameters of the new downstream channel. The value field of this TLV contains a series of subtypes.
+
+| Type | Length | Value |
+|------|--------|-------|
+| 2 | n | |
+
+The CMTS MUST include this TLV when specifying a downstream channel change. If this TLV is missing, the CM MUST NOT change its downstream parameters.
+
+##### 8.3.20.1.2.1 Downstream frequency
+
+This TLV specifies the new receive frequency that the CM MUST use when performing a dynamic channel change. It is an override for the current downstream channel frequency. This is the centre frequency of the downstream channel in Hz and is stored as a 32-bit binary number. The downstream frequency MUST be a multiple of 62 500 Hz.
+
+| Subtype | Length | Value |
+|---------|--------|--------------|
+| 2.1 | 4 | Rx frequency |
+
+The CMTS MUST include this sub-TLV. The CM MUST observe this sub-TLV.
+
+#### 8.3.20.1.2.2 Downstream modulation type
+
+This TLV specifies the modulation type that is used on the new downstream channel.
+
+| Subtype | Length | Value |
+|---------|--------|------------------------------------------|
+| 2.2 | 1 | 0: 64QAM 1: 256QAM 2-255: Reserved |
+
+The CMTS SHOULD include this sub-TLV. The CM SHOULD observe this sub-TLV.
+
+#### 8.3.20.1.2.3 Downstream symbol rate
+
+This TLV specifies the symbol rate that is used on the new downstream channel.
+
+| Subtype | Length | Value |
+|---------|--------|-----------------------------------------------------------------------------------|
+| 2.3 | 1 | 0: 5.056941 Msymb/s 1: 5.360537 Msymb/s 2: 6.952 Msymb/s 3-255: Reserved |
+
+The CMTS SHOULD include this sub-TLV. The CM SHOULD observe this sub-TLV.
+
+#### 8.3.20.1.2.4 Downstream interleaver depth
+
+This TLV specifies the parameters "I" and "J" of the downstream interleaver.
+
+| Subtype | Length | Value |
+|---------|--------|----------------------|
+| 2.4 | 2 | I: 0-255 J: 0-255 |
+
+The CMTS SHOULD include this sub-TLV. The CM SHOULD observe this sub-TLV.
+
+#### 8.3.20.1.2.5 Downstream channel identifier
+
+This TLV specifies the 8-bit downstream channel identifier of the new downstream channel.
+
+| Subtype | Length | Value |
+|---------|--------|------------------------------|
+| 2.5 | 1 | 0-255: Downstream channel ID |
+
+The CMTS SHOULD include this sub-TLV. The CM SHOULD observe this sub-TLV.
+
+#### 8.3.20.1.2.6 SYNC Substitution
+
+When present, this TLV allows the CMTS to inform the CM to wait or not wait for a SYNC message before proceeding. The CMTS MUST have synchronized timestamps between the old and new channel(s) if it instructs the CM not to wait for a SYNC message before transmitting on the new channel. Synchronized timestamps implies that the timestamps are derived from the same clock and contain the same value.
+
+| Subtype | Length | Value |
+|---------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------|
+| 2.6 | 1 | 0: Acquire SYNC message on the new downstream channel before proceeding 1: Proceed without first obtaining the SYNC message 2-255: Reserved |
+
+If this TLV is absent, the CM MUST wait for a SYNC message on the new channel before proceeding. If the CM has to wait for a new SYNC message when changing channels, then operation may be suspended for a time up to the "SYNC interval" (see Annex B) or longer, if the SYNC message is lost or is not synchronized with the old channel(s).
+
+The CM MUST observe this TLV.
+
+### 8.3.20.1.3 Initialization technique
+
+When present, this TLV allows the CMTS to direct the CM as to what level of re-initialization, if any, it MUST perform before it can commence communications on the new channel(s). The CMTS can make this decision based upon its knowledge of the differences between the old and new MAC domains and the PHY characteristics of their upstream and downstream channels.
+
+Typically, if the move is between upstream and/or downstream channels within the same MAC domain, then the connection profile values may be left intact. If the move is between different MAC domains, then a complete initialization may be performed.
+
+If a complete re-initialization is not required, some re-ranging may still be required. For example, areas of upstream spectrum are often configured in groups. A DCC-REQ to an adjacent upstream channel within a group may not warrant re-ranging. Alternatively, a DCC-REQ to a non-adjacent upstream channel might require unicast initial ranging whereas a DCC-REQ from one upstream channel group to another might require broadcast initial ranging. Re-ranging may also be required if there is any difference in the PHY parameters between the old and new channels.
+
+| Subtype | Length | Value |
+|---------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 3 | 1 | 0: Re-initialize the MAC 1: Perform broadcast initial ranging on new channel before normal operation 2: Perform unicast initial ranging on new channel before normal operation 3: Perform either broadcast initial ranging or unicast initial ranging on new channel before normal operation 4: Use the new channel(s) directly without re-initializing or ranging 5-255: Reserved |
+
+The CM MUST first select the new upstream and downstream channels based upon the upstream channel ID TLV (refer to clause 8.3.20.1.1) and the downstream frequency TLV (refer to clause 8.3.20.1.2.1). The CM MUST follow the directives of these TLVs. For Option 0, the CM MUST begin with the initialization SID. For Options 1 to 4 the CM MUST continue to use the primary SID for ranging. A SID substitution TLV may specify a new primary SID for use on the new channel (refer to clause 8.3.20.1.6.2).
+
+- **Option 0:** This option directs the CM to perform all the operations associated with initializing the CM (refer to clause 11.2). This includes all the events after acquiring downstream QAM, FEC and MPEG lock and before standard operation (refer to clause 11.3), including obtaining a UCD, ranging, establishing IP connectivity, establishing time of day, transfer of operational parameters, registration and baseline privacy initialization. When this option is used, the only other TLVs in DCC-REQ that are relevant are the upstream channel ID TLV and the downstream parameters TLV. All other DCC-REQ TLVs are irrelevant.
+- **Option 1:** If broadcast initial ranging is specified, operation on the new channel could be delayed by several ranging intervals (see Annex B).
+- **Option 2:** If unicast initial ranging is specified, operation on the new channel could be delayed by the value of T4 (see Annex B).
+- **Option 3:** This value authorizes a CM to use an initial maintenance or station maintenance region, whichever the CM selects. This value might be used when there is uncertainty when the CM may execute the DCC command and thus a chance that it might miss station maintenance slots.
+- **Option 4:** This option provides for the least interruption of service, and the CM may continue its normal operation as soon as it has achieved synchronization on the new channel.
+
+If this TLV is absent, the CM MUST re-initialize the MAC. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+#### 8.3.20.1.4 UCD substitution
+
+When present, this TLV allows the CMTS to send an upstream channel descriptor message to the CM. This UCD message is intended to be associated with the new upstream and/or downstream channel(s). The CM stores this UCD message in its cache, and uses it after synchronizing to the new channel(s).
+
+| Type | Length | Value |
+|------|--------|----------------------------------|
+| 4 | n | UCD for the new upstream channel |
+
+This TLV includes all parameters for the UCD message as described in clause 8.3.3 except for the MAC management message header. The CMTS MUST ensure that the change count in the UCD matches the change count in the UCDs of the new channel(s). The CMTS SHOULD ensure that the upstream channel ID for the new channel is different from the upstream channel ID for the old channel. If the upstream channel IDs for the old and new channels are identical, the CMTS MUST include this TLV. The ranging required parameter in the new UCD does not apply in this context, since the functionality is covered by the initialization technique TLV.
+
+If the length of the UCD exceeds 254 bytes, the UCD MUST be fragmented into two or more successive type 4 elements. Each fragment, except the last, MUST be 254 bytes in length. The CM reconstructs the UCD substitution by concatenating the contents (value of the TLV) of successive type 4 elements in the order in which they appear in the DCC-REQ message. For example, the first byte following the length field of the second type 4 element is treated as if it immediately follows the last byte of the first type 4 element.
+
+If the CM has to wait for a new UCD message when changing channels, then operation may be suspended for a time up to the "UCD interval" (see Annex B) or longer, if the UCD message is lost.
+
+The CM MUST observe this TLV, even if the upstream channel ID and the UCD change count match the old channel.
+
+#### 8.3.20.1.5 Security association identifier (SAID) substitution
+
+When present, this TLV allows the CMTS to replace the security association identifier (SAID) in the current service flow with a new security association identifier. The baseline privacy keys associated with the SAID MUST remain the same. The CM does not have to simultaneously respond to the old and new SAID.
+
+| Subtype | Length | Value |
+|---------|--------|--------------------------------------------------------------------------------------------------------|
+| 6 | 4 | Current SAID (lower-order 14 bits of a 16-bit field), new SAID (lower-order 14 bits of a 16-bit field) |
+
+If this TLV is absent, the current security association identifier assignment is retained. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+#### 8.3.20.1.6 Service flow substitutions
+
+When present, this TLV allows the CMTS to replace specific parameters within the current service flows on the current channel assignment with new parameters for the new channel assignment. One TLV is used for each service flow that requires changes in parameters. The CMTS may choose to do this to help facilitate setting up new QoS reservations on the new channel before deleting QoS reservations on the old channel. The CM does not have to simultaneously respond to the old and new service flows.
+
+This TLV allows resource assignments and services to be moved between two independent ID value spaces and scheduling entities by changing the associated IDs and indices. ID value spaces that may differ between the two channels include the service flow identifier and the service ID. This TLV does not allow changes to service flow QoS parameters.
+
+The service class names used within the service flow ID should remain identical between the old and new channels.
+
+| Type | Length | Value |
+|------|--------|------------------|
+| 7 | n | List of subtypes |
+
+If this TLV is absent for a particular service flow, then the current service flow and its attributes are retained. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+##### 8.3.20.1.6.1 Service flow identifier substitution
+
+This TLV allows the CMTS to replace the current service flow identifier (SFID) with a new service flow identifier. Refer to clause C.2.2.3.2 for usage details.
+
+This TLV MUST be present if any other service flow subtype substitutions are made. If this TLV is included and the service flow ID is not changing, then the current and new service flow ID will be set to the same value.
+
+| Subtype | Length | Value |
+|---------|--------|----------------------------------------------|
+| 7.1 | 8 | Current service flow ID, new service flow ID |
+
+The CMTS MUST include this Sub-TLV. The CM MUST observe this Sub-TLV.
+
+##### 8.3.20.1.6.2 Service identifier substitution
+
+When present, this TLV allows the CMTS to replace the service identifier (SID) in the current upstream service flow with a new service identifier. Refer to clause C.2.2.3.3 for usage details.
+
+| Subtype | Length | Value |
+|---------|--------|---------------------------------------------------------------------------------------------------------|
+| 7.2 | 4 | Current SID (lower-order 14 bits of a 16-bit field), new SID (lower-order 14 bits of a 16-bit field) |
+
+If this TLV is absent, the current service identifier assignments are retained. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+#### 8.3.20.1.6.3 Unsolicited grant time reference substitution
+
+When present, this TLV allows the CMTS to replace the current unsolicited grant time reference with a new unsolicited grant time reference. Refer to clause C.2.2.6.11 for usage details.
+
+This TLV is useful if the old and new upstream use different time bases for their timestamps. This TLV is also useful if the unsolicited grant transmission window is moved to a different point in time. Changing this value may cause operation to temporarily exceed the jitter window specified by clause C.2.2.6.8.
+
+| Subtype | Length | Value |
+|---------|--------|---------------|
+| 7.5 | 4 | New reference |
+
+If this TLV is absent, the current unsolicited grant time reference is retained. The CMTS MAY include this TLV. The CM MUST observe this TLV.
+
+#### 8.3.20.1.7 CMTS MAC address
+
+When present, this TLV allows the current CMTS to send the MAC address of the destination CMTS corresponding to the target downstream frequency.
+
+| Type | Length | Value |
+|------|--------|---------------------------------|
+| 8 | 6 | MAC address of destination CMTS |
+
+The CMTS MUST include this TLV if the CM is changing downstream channels and UCD substitution is specified or if the CM is changing downstream channels and using initialization technique 4. The CM SHOULD observe this TLV.
+
+### 8.3.21 Dynamic channel change response (DCC-RSP)
+
+A dynamic channel change response MUST be transmitted by a CM in response to a received dynamic channel change request message to indicate that it has received and is complying with the DCC-REQ. The format of a DCC-RSP message MUST be as shown in Figure 8-39.
+
+
+
+Bit 0 8 16 24 31
+
+| | | |
+|-------------------------------|-------------------|--|
+| MAC management message header | | |
+| Transaction ID | Confirmation code | |
+| TLV encoded information | | |
+
+J.122\_F8-39
+
+Diagram of the Dynamic channel change response message structure. The message is 32 bits (0-31) long. The first 32 bits are the MAC management message header. The next 24 bits are divided into Transaction ID (16 bits) and Confirmation code (8 bits). The remaining 8 bits are TLV encoded information. The diagram shows the header, Transaction ID, Confirmation code, and TLV encoded information. The label J.122\_F8-39 is at the bottom right.
+
+**Figure 8-39 – Dynamic channel change response**
+
+Before it begins to switch to a new upstream or downstream channel, a CM MUST transmit a DCC-RSP on its existing upstream channel. When a CM receives a DCC-REQ message requesting that it switch to an upstream and downstream channel that it is already using or requesting that it switch to only an upstream or downstream channel that it is already using, the CM MUST respond with a DCC-RSP message on that channel indicating that it is already using the correct channel.
+
+A CM MAY ignore a DCC-REQ message while it is in the process of performing a channel change.
+
+After switching to a new channel, if the MAC was not re-initialized per DCC-REQ initialization TLV, option 0, the CM MUST send a DCC-RSP message to the CMTS. A DCC-RSP MUST NOT be sent if the CM re-initializes its MAC.
+
+The full procedure for changing channels is described in clause 11.4.5.
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** A 16-bit transaction ID from corresponding DCC-REQ.
+- **Confirmation code:** An 8-bit confirmation code as described in clause C.4.1.
+
+The following parameters are optional and are coded as TLV tuples:
+
+- **CM jump time:** Timing parameters describing when the CM will make the jump.
+
+Regardless of success or failure, if privacy is enabled for the CM, the DCC-RSP MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic channel change message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.21.1 Encodings
+
+The type values used MUST be those shown below. These are unique within the dynamic channel change response message, but not across the entire MAC message set.
+
+#### 8.3.21.1.1 CM jump time
+
+When present, this TLV allows the CM to indicate to the CMTS when the CM plans to perform its jump and be disconnected from the network. With this information, the CMTS MAY take
+
+preventative measures to minimize or to eliminate packet drops in the downstream due to the channel change.
+
+| Type | Length | Value |
+|------|--------|-------|
+| 1 | n | |
+
+The time reference and units of time for these sub-TLVs is based upon the same 32-bit time base used in the SYNC message on the current downstream channel. This timestamp is incremented by a 10.24-MHz clock.
+
+The CM SHOULD include this TLV. The CMTS SHOULD observe this TLV.
+
+#### 8.3.21.1.1.1 Length of jump
+
+This TLV indicates to the CMTS the length of the jump from the previous channel to the new channel. Specifically, it represents the length of time that the CM will not be able to receive data in the downstream.
+
+| Subtype | Length | Value |
+|---------|--------|-------------------------------|
+| 1 | 4 | Length (based upon timestamp) |
+
+The CM MUST include this sub-TLV.
+
+#### 8.3.21.1.1.2 Start time of jump
+
+When present, this TLV indicates to the CMTS the time in the future that the CM is planning on making the jump.
+
+| Subtype | Length | Value |
+|---------|--------|----------------------------------------------------------------------------------|
+| 2 | 8 | Start time (based upon timestamp), accuracy of start time (based upon timestamp) |
+
+The 32-bit, 10.24 MHz time base rolls over approximately every 7 minutes. If the value of the start time is less than the current timestamp, the CMTS will assume one roll-over of the timestamp counter has elapsed. The accuracy of the start time is an absolute amount of time before and after the start time.
+
+The potential jump window is from (start time – accuracy) to (start time + accuracy + length).
+
+The CM SHOULD include this TLV.
+
+#### 8.3.22 Dynamic channel change acknowledge (DCC-ACK)
+
+A dynamic channel change acknowledge MUST be transmitted by a CMTS in response to a received dynamic channel change response message on the new channel with its confirmation code set to arrive(181). The format of a DCC-ACK message MUST be as shown in Figure 8-40.
+
+
+
+The diagram illustrates the structure of a 32-bit message. At the top, a box labeled 'MAC management message header' spans from bit 0 to bit 31. Below this, a box labeled 'Transaction ID' spans from bit 0 to bit 15. The bottom section, labeled 'TLV encoded information', spans from bit 16 to bit 31. The diagram is labeled J.122\_F8-40.
+
+Diagram of Dynamic channel change acknowledge message structure. The diagram shows a 32-bit message (bits 0 to 31). The top section is the 'MAC management message header' (bits 0-31). Below it is the 'Transaction ID' (bits 0-15). The bottom section is 'TLV encoded information' (bits 16-31). The diagram is labeled J.122\_F8-40.
+
+**Figure 8-40 – Dynamic channel change acknowledge**
+
+Parameters MUST be as follows:
+
+- **Transaction ID:** A 16-bit transaction ID from corresponding DCC-RSP.
+
+If privacy is enabled, the DCC-ACK message MUST contain:
+
+- **Key sequence number:** The key sequence number of the auth key, which is used to calculate the HMAC-Digest (refer to clause C.1.4.3).
+- **HMAC-Digest:** The HMAC-Digest attribute is a keyed message digest (to authenticate the sender). The HMAC-Digest attribute MUST be the final attribute in the dynamic channel change message's attribute list (refer to clause C.1.4.1).
+
+### 8.3.23 Device class identification request (DCI-REQ)
+
+A CM MAY implement the DCI-REQ message.
+
+When implemented, a CM MUST transmit a DCI-REQ immediately following receipt of a ranging complete indication from the CMTS. A CM MUST NOT continue with initialization until a DCI-RSP message is received from the CMTS. Timeout and retry information is provided in Annex B, "parameters and constants".
+
+The DCI-REQ MUST be formatted as shown in Figure 8-41.
+
+
+
+Bit 0 8 16 24 31
+
+MAC management message header
+
+SID Device class
+
+Device class (cont.)
+
+TLV encoded information
+
+J.122\_F8-41
+
+Diagram of Device class identification request (DCI-REQ) packet structure. The packet is 32 bits long, with bit positions 0, 8, 16, 24, and 31 marked. The top section is the MAC management message header. Below it, the first 8 bits (0-7) are the SID. The next 8 bits (8-15) are the first part of the Device class field. The remaining 16 bits (16-31) are the second part of the Device class field, labeled 'Device class (cont.)'. The bottom section is the TLV encoded information.
+
+**Figure 8-41 – Device class identification request**
+
+Parameters MUST be as follows:
+
+- **SID:** The temporary SID assigned during ranging.
+- **Device class:** This is a 32-bit field where individual bits represent individual attributes of the CM. Bit #0 is the LSB of the field. Bits are set to 1 to select the attributes defined below:
+ - bit #0: CPE controlled cable modem (CCCM).
+ - bits #1-31: Reserved and must be set to zero.
+
+**8.3.24 Device class identification response (DCI-RSP)**
+
+A DCI-RSP MUST be transmitted by a CMTS in response to a received DCI-REQ.
+
+The DCI-RSP MUST be formatted as shown in Figure 8-42.
+
+
+
+Bit 0 8 16 24 31
+
+MAC management message header
+
+SID Device class
+
+Device class (cont.) Confirmation code
+
+TLV encoded information
+
+J.122\_F8-42
+
+Diagram of Device class identification response (DCI-RSP) packet structure. The packet is 32 bits long, with bit positions 0, 8, 16, 24, and 31 marked. The top section is the MAC management message header. Below it, the first 8 bits (0-7) are the SID. The next 8 bits (8-15) are the first part of the Device class field, labeled 'Device class (cont.)'. The next 8 bits (16-23) are the Confirmation code. The remaining 8 bits (24-31) are the second part of the Device class field. The bottom section is the TLV encoded information.
+
+**Figure 8-42 – Device class identification response**
+
+Parameters MUST be as follows:
+
+- **SID:** The SID received in the associated DCI-REQ.
+- **Device class:** The device class field as received in the associated DCI-REQ.
+- **Confirmation code:** Refer to clause C.4.
+
+The CMTS MUST use only one of three confirmation codes in the DCI-RSP.
+
+- If the response is reject-temporary(3), the CM MUST reset its DCI-REQ retry counter to zero and MUST resend the DCI-REQ and wait for the DCI-RSP before proceeding.
+- If the response is reject-permanent(4), the CM MUST abort this registration attempt and MUST begin re-scanning for a different downstream channel. The CM MUST NOT retry this channel until it has tried all other DOCS downstream channels on the network.
+- If the response is success(0), the CM MUST continue with registration.
+
+The CMTS MUST retain the device class information for use in the DHCP process. The CMTS MUST create a DHCP agent option 82 tuple with the device class information and MUST insert this tuple in the DHCPDISCOVER from the corresponding CM before forwarding that DHCPDISCOVER to the DHCP server.
+
+### 8.3.25 Upstream transmitter disable (UP-DIS) MAC management message
+
+The UP-DIS message provides additional functionality to permanently or temporarily disable the modem, as well as to disable the modem for a specified period of time. It is used to control the admission of certain modem types and groups to the network as early as immediately before registration. It can also be used for network troubleshooting, disabling modems that violate network policies, or for avoiding request floods in a large network when the CMTS goes on-line.
+
+This message is stateless and can be issued by the CMTS at any time. The UP-DIS message is sent from a CMTS to a CM; there is no response from the CM transmitted back to the CMTS. UP-DIS messages may be unicast, in which case the destination address in the MAC header is the address of the selected CM; or multicast, in which case the destination address is a well-known MAC multicast address (see Annex A for details on well-known addresses).
+
+The CMTS MUST be capable of transmitting the UP-DIS message. The CMTS can transmit UP-DIS messages either as a result of a triggering event detected by the CMTS internally, or in response to a remote management command. Mechanisms for setting up, detecting and reporting situations where the transmission of an UP-DIS message might be appropriate are implementation-dependent. Similarly, signalling, which remotely instructs the CMTS to transmit a UP-DIS message, is outside the scope of this Recommendation. One of the possible implementations may be SNMP commands sent to the CMTS over the network.
+
+CMs SHOULD support the UP-DIS message in order to ease network management.
+
+Since the UP-DIS mechanism at the CM is stateless and the CMs do not retain disabled status after a power cycle, the CMTS MAY incorporate mechanisms to track disabled CMs by their MAC addresses. The CMTS would resend an UP-DIS message as appropriate to the modems that were permanently disabled by the network operator, and then power-cycled by the user in an attempt to re-register. However, the same function may also be implemented by the provisioning infrastructure on modem registration; therefore, if the CMTS is unable to track disabled modems autonomously, it SHOULD be able to send a UP-DIS in response to an external command.
+
+The UP-DIS message MUST be formatted as shown in Figure 8-43.
+
+
+
+| | | | | |
+|----------------------------------------------------------|---|----|----|----|
+| Bit 0 | 8 | 16 | 24 | 31 |
+| MAC management message header | | | | |
+| UP-DIS timeout interval (0 = Off forever, FFFFFFFF = On) | | | | |
+
+J.122\_F8-43
+
+Diagram of UP-DIS message format showing a 32-bit structure. The top row indicates bit positions 0, 8, 16, 24, and 31. The first field is the MAC management message header. The second field is the UP-DIS timeout interval, which is a 32-bit unsigned integer. A note below the diagram reads J.122\_F8-43.
+
+**Figure 8-43 – UP-DIS message format**
+
+The only parameter is UP-DIS timeout interval, which MUST be encoded as follows.
+
+UP-DIS timeout interval is a 32-bit, unsigned integer representing the disable timeout interval in milliseconds. There are two special values defined:
+
+- 00000000 permanently disables the upstream of the modem, as described below.
+- FFFFFFFF remotely re-initializes the MAC, which resumes the normal operation of the modem.
+
+The CM MUST autonomously disable its upstream transmitter immediately upon receipt of an UP-DIS message with UP-DIS timeout interval = 0, regardless of any other transaction state (refer to clause 11), or the state of its control programme. The modem stops all transmissions, but continues to listen to the MAC messages sent in the downstream. Once disabled, the CM upstream transmitter MUST only be re-enabled by power cycling the CM, or by an UP-DIS message with UP-DIS timeout interval = FFFFFFFF. All other UP-DIS messages MUST be ignored when the upstream is disabled.
+
+If supported, the CM MUST autonomously reset its upstream transmitter upon receipt of an UP-DIS message with UP-DIS time-out interval = FFFFFFFF, regardless of any other transaction state (refer to clause 11), or the state of its control program. Resetting allows the modem to resume transmissions.
+
+Additional non-zero timeout values in the UP-DIS message SHOULD be supported. If supported, the CM MUST autonomously disable its upstream transmitter immediately upon receipt of an UP-DIS message with UP-DIS timeout interval $T > 0$ for a period of $T$ ms, regardless of any other transaction state (refer to clause 11), or the state of its control program. Although the timeout $T$ is specified in ms, the CM MAY extend the specified timeout by up to 100 ms. When timeout expires, the CM SHOULD re-initialize the MAC as appropriate, starting with the initial ranging process and registration, because there is no guarantee that the CMTS has not de-registered it. In the disabled state, all other UP-DIS messages MUST be ignored, except for an UP-DIS message with UP-DIS timeout interval = FFFFFFFF or 00000000.
+
+### 8.3.26 Initial ranging request (INIT-RNG-REQ)
+
+A ranging request MUST be transmitted by a CM at initialization to determine network delay and request power adjustment. This message MUST use an FC\_TYPE = MAC-specific header and FC\_PARM = timing MAC header. This MUST be followed by a packet PDU in the format shown in Figure 8-44.
+
+
+
+Diagram of a Packet PDU following the timing header. The diagram shows a 32-bit word structure. The top part is the 'MAC management message header', which is 16 bits long (bits 0 to 15). The bottom part is divided into three fields: 'SID' (bits 0 to 15), 'Downstream channel ID' (bits 16 to 23), and 'Upstream channel ID' (bits 24 to 31). The bit positions 0, 8, 16, 24, and 31 are marked at the top. There are break symbols on the left and right sides of the header section. The label 'J.122\_F8-44' is in the bottom right corner.
+
+**Figure 8-44 – Packet PDU following the timing header**
+
+The INIT-RNG-REQ differs from the RNG-REQ in that it is only transmitted in broadcast initial ranging opportunities and **MUST NOT** be transmitted on a logical upstream that is not a DOCS 2.0-only upstream. It also has an upstream channel ID in place of the pending till complete field in a RNG-REQ.
+
+Parameters **MUST** be as follows:
+
+- **SID:**
+ - Initialization SID if modem is attempting to join the network.
+ - Initialization SID if modem has not yet registered and is changing downstream, or both downstream and upstream channels, as directed by a downloaded parameter file.
+ - Primary SID (previously assigned in REG-RSP) if modem is registered and is changing upstream channels; if the CM is redoing initial ranging as a result of a DCC, UCC, or UCD change (see clauses 8.3.3 and 11.3.2); or if the CM is redoing initial ranging as a result of a temporary loss of downstream signal, while in S-CDMA mode (see clause 11.2.1).
+
+This is a 16-bit field of which the lower 14 bits define the SID with bits 14 and 15 defined to be 0.
+
+- **Downstream channel ID:** The identifier of the downstream channel on which the CM received the UCD which described this upstream. This is an 8-bit field.
+- **Upstream channel ID:** The upstream channel ID from the UCD the CM is using to transmit this INIT-RNG-REQ. In the case where multiple logical upstreams are sharing the same spectrum, and the broadcast initial ranging opportunities of some of these logical channels are aligned, this allows the CMTS to know which logical channel the CM is using.
+
+A CM **MUST** set the RSVD field of the MAC management message header to report support of the S-CDMA maximum scheduled codes if, and only if, the CMTS indicated that it supports the S-CDMA maximum scheduled codes from TLV-17 of the UCD for the upstream channel on which the CM is ranging. In this case, the CM **MUST** report the maximum ratio of number of active codes to maximum scheduled codes that the CM can support; this ratio is indicated by a bit mask in the reserved field as shown below. For example, if the number of active codes on the channel is 128 and the CM supports a minimum of 64 scheduled codes (the minimum number of allowed active codes), the CM would report a ratio of 2. The CMTS will use this value in calculating an appropriate value for maximum scheduled codes to assign to the CM. The CM **SHOULD** support a maximum ratio of 32.
+
+When the CM reports support for the S-CDMA maximum scheduled codes, the CM **MUST** also report its current transmit power shortfall (in dB). The CM power shortfall is the difference between the current target transmit power of the ranging request and the maximum S-CDMA spreader-on transmit power of 53 dBmV. The CM **MUST** report a power shortfall of 0 if the current target
+
+transmit power of the ranging request is less than or equal to 53 dBmV. This value will be used by the CMTS for calculating appropriate values for S-CDMA maximum scheduled codes and S-CDMA power headroom for the CM.
+
+The format of the RSVD field is:
+
+| | | |
+|----------------------------------------------------|------------------------------------------------------------------------------------------|------------------------------------------|
+| Bit 7: 1= S-CDMA maximum scheduled codes supported | Bits 6 to 5: CM maximum ratio of: 00 = 2 01 = 8 10 = 16 11 = 32 | Bits 4 to 0: CM power shortfall (1/4 dB) |
+|----------------------------------------------------|------------------------------------------------------------------------------------------|------------------------------------------|
+
+### 8.3.27 Test request (TST-REQ)
+
+The test request is used to force a CM to enter or leave one of two test modes. The TST-REQ message with Mode!= 0 MUST NOT be sent by the CMTS except in response to an explicit command from the operator.
+
+
+
+| | | | | | |
+|-----|-------------------------------|---|--------------------------------------------|----|----|
+| Bit | 0 | 8 | 16 | 24 | 31 |
+| | MAC management message header | | | | |
+| | Mode | | TLV encoded information for the channel | | |
+
+Diagram of the Test request (TST-REQ) message structure. It shows a 32-bit word with bit positions 0, 8, 16, 24, and 31. The first 16 bits (bits 0-15) are the MAC management message header. The next 8 bits (bits 16-23) are the Mode field. The final 8 bits (bits 24-31) are TLV encoded information for the channel.
+
+Figure 8-45 – Test request
+
+Parameters MUST be as follows:
+
+- **Mode:**
+ - 0 = Disable all test modes and reboot.
+ - 1 = Transmit a continuous (non-bursted) upstream signal at the commanded modulation rate, carrier frequency and power level. The chip sequence at the spreader output is replaced with an alternating binary sequence (1, -1, 1, -1, 1, -1, ...) at nominal amplitude, equal on I and Q. The CM tracks the downstream symbol clock and uses it to generate the upstream symbol clock as in normal synchronous operation.
+ - 2 = Transmit a continuous (non-bursted), unmodulated (CW) upstream signal at the commanded carrier frequency, modulation rate and power level. This is equivalent to replacing the chip sequence at the spreader output with the constant sequence (1, 1, 1, 1, 1, 1, ...) at nominal amplitude, equal on both I and Q. The CM tracks the downstream symbol clock and uses it to generate the upstream symbol clock as in normal synchronous operation.
+
+In normal operation, the CM MUST ignore any TST-REQ message it receives subsequent to receiving the first SYNC message. Note that this makes it less convenient to use this test mode with a CMTS, since the CMTS may send a SYNC message before the CM sees a TST-REQ message.
+
+After acquiring a downstream signal, and prior to receiving a SYNC message, if the CM receives a TST-REQ message (either unicast to the CM itself, or broadcast) with Mode $\neq 0$ , the CM MUST begin the test mode indicated in the mode parameter, using the channel parameters included in the TST-REQ message.
+
+In test mode, if the CM receives a TST-REQ message (either unicast to the CM itself, or broadcast) with Mode = 0, the CM MUST reboot. The CM MUST reboot after the expiration of the T16 timer, a 30 minute test mode timer.
+
+The TST-REQ message MUST be generated in the format shown in Figure 8-45, including all of the parameters coded as TLV-tuples defined in Table 8-22.
+
+**Table 8-22 – Channel TLV parameters**
+
+| Name | Type (1 byte) | Length (1 byte) | Value (variable length) |
+|---------------------------------|------------------|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Modulation rate | 1 | 1 | Multiples of base rate of 160 kHz (value is 1, 2, 4, 8, 16 or 32). This TLV MUST be present if the test mode is 1. |
+| Frequency | 2 | 4 | Upstream carrier frequency (Hz). This TLV MUST be present if the test mode is 1 or 2. |
+| Power | 3 | 1 | This TLV specifies the power (unsigned 8-bit, dBmV units) at which the CM MUST transmit the TST-REQ message. This TLV MUST be present if the test mode is 1 or 2. |
+| S-CDMA US ratio numerator 'M' | 4 | 2 | The numerator (M) of the M/N ratio relating the downstream symbol clock to the upstream modulation clock. This TLV MUST be present if the test mode is 1. This TLV MUST be present if the test mode is 2 and the operation is synchronous. |
+| S-CDMA US ratio denominator 'N' | 5 | 2 | The denominator (N) of the M/N ratio relating the downstream symbol clock to the upstream modulation clock. This TLV MUST be present if the test mode is 1. This TLV MUST be present if the test mode is 2 and the operation is synchronous. |
+
+## 9 Media access control protocol operation
+
+### 9.1 Upstream bandwidth allocation
+
+The upstream channel is modelled as a stream of mini-slots. The CMTS MUST generate the time reference for identifying these slots. It MUST also control access to these slots by the cable modems. For example, it MAY grant some number of contiguous slots to a CM for it to transmit a data PDU. The CM MUST time its transmission so that the CMTS receives it in the time reference specified. This clause describes the elements of protocol used in requesting, granting and using upstream bandwidth. The basic mechanism for assigning bandwidth management is the allocation MAP. Please refer to Figure 9-1.
+
+
+
+The diagram illustrates the Allocation MAP structure. At the top, a 'Map PDU' is shown being transmitted on the downstream channel by the CMTS. Below this, a horizontal bar represents the 'Permitted use of the upstream channel', divided into several segments. A callout from the Map PDU points to this bar. Below the bar, a sequence of 'Mini-slots' is shown, indicated by a horizontal arrow. The mini-slots are grouped into three main categories: 'CM Tx opportunity', 'Request contention area', and 'Maintenance'. The 'CM Tx opportunity' segments are shown as rounded rectangles, the 'Request contention area' as a rectangle, and the 'Maintenance' segment as a hexagon. The diagram also shows the transition from 'Previous map' to 'Current map' and 'As-yet unmapped time'.
+
+Diagram of the Allocation MAP structure. At the top, a 'Map PDU' box is shown being transmitted on the downstream channel by the CMTS. Lines from this box point to a horizontal timeline below labeled 'Permitted use of the upstream channel'. This timeline is divided into segments. Below this, a more detailed view shows 'Mini-slots' indicated by a horizontal arrow. These mini-slots are allocated for different purposes: 'CM Tx opportunity' (rounded rectangles), 'Request contention area' (rectangle), another 'CM Tx opportunity', and 'Maintenance' (hexagon). The diagram also indicates 'Previous map', 'Current map', and 'As-yet unmapped time' along the bottom timeline.
+
+J.122\_F9-1
+
+**Figure 9-1 – Allocation MAP**
+
+The allocation MAP is a MAC management message transmitted by the CMTS on the downstream channel which describes, for some interval, the uses to which the upstream mini-slots MUST be put. A given MAP MAY describe some slots as grants for particular stations to transmit data in, other slots as available for contention transmission, and other slots as an opportunity for new stations to join the link.
+
+Many different scheduling algorithms MAY be implemented in the CMTS by different vendors; this Recommendation does not mandate a particular algorithm. Instead, it describes the protocol elements by which bandwidth is requested and granted.
+
+The bandwidth allocation includes the following basic elements:
+
+- Each CM has one or more short (14-bit) service identifiers (SIDs) as well as a 48-bit address.
+- Upstream bandwidth is divided into a stream of mini-slots. Each mini-slot is numbered relative to a master reference maintained by the CMTS. The master reference is distributed to the CMs by means of SYNC and UCD packets (see clause 6.2.11.2).
+- CMs may issue requests to the CMTS for upstream bandwidth.
+
+The CMTS MUST transmit allocation MAP PDUs on the downstream channel defining the allowed usage of each mini-slot. The MAP is described below.
+
+### 9.1.1 The allocation MAP MAC management message
+
+The allocation MAP is a varying-length MAC management message that is transmitted by the CMTS to define transmission opportunities on the upstream channel. It includes a fixed-length
+
+header followed by a variable number of information elements (IEs) in the format shown in clause 8.3.4. Each information element defines the allowed usage for a range of mini-slots.
+
+NOTE – For TDMA channels, it should be understood by both CM and CMTS that the lower (26-M) bits of alloc start and ack times MUST be used as the effective MAP start and ack times, where M is defined in clause 8.3.3. The relationship between alloc start/ack time counters and the timestamp counter is further described in clause 9.3.4. For DOCS 2.0 S-CDMA channels, the alloc start/ack time counters are defined in mini-slots that are related to the timestamp counter, frame counter and S-CDMA timestamp snapshot as described in clause 6.2.11.2.
+
+### 9.1.2 Information elements
+
+Each IE consists of a 14-bit service ID, a 4-bit type code, and a 14-bit starting offset as defined in clause 8.3.4. Since all stations MUST scan all IEs, it is critical that IEs be short and relatively fixed format. IEs within the MAP are strictly ordered by starting offset. For most purposes, the duration described by the IE is inferred by the difference between the IE's starting offset and that of the following IE. For this reason, a null IE MUST terminate the list. Refer to Table 8-20.
+
+Five types of service IDs are defined:
+
+- 1) 0x3FFF – Broadcast; intended for all stations.
+- 2) 0x3E00-0x3FFE – Multicast; purpose is defined administratively. Refer to Annex A.
+- 3) 0x2000-0x3DFF – Expanded unicast; intended for a particular CM or a particular service within that CM, when supported by both the CM and CMTS.
+- 4) 0x0001-0x1FFF – Unicast; intended for a particular CM or a particular service within that CM.
+- 5) 0x0000 – Null address; addressed to no station.
+
+A CM MUST support the expanded unicast SID space. A CMTS MAY support the expanded unicast SID space.
+
+Unicast SIDs (including expanded unicast SIDs) MUST be unique on a given logical upstream. The CMTS MAY support unicast SIDs assignments which overlap across multiple logical upstreams within a single MAC-sublayer domain.
+
+All of the information elements defined below MUST be supported by conformant CMs. Conforming CMTSs MAY use any of these information elements when creating bandwidth allocation MAPs.
+
+#### 9.1.2.1 The request IE
+
+The request IE provides an upstream interval in which requests MAY be made for bandwidth for upstream data transmission. The character of this IE changes depending on the class-of-service ID. If broadcast, this is an invitation for CMs to contend for requests. Clause 9.4 describes which contention transmit opportunity may be used. If unicast, this is an invitation for a particular CM to request bandwidth. Unicasts MAY be used as part of a quality of service scheduling scheme (refer to clause 10.2). Packets transmitted in this interval MUST use the request MAC frame format (refer to clause 8.2.5.3).
+
+A small number of priority request SIDs are defined in clause A.2.3. These allow contention for request IEs to be limited to service flows of a given traffic priority (refer to clause C.2.2.5.1).
+
+#### 9.1.2.2 The request/data IE
+
+The request/data IE provides an upstream interval in which requests for bandwidth or short data packets MAY be transmitted. This IE is distinguished from the request IE in that:
+
+- It provides a means by which allocation algorithms MAY provide for "immediate" data contention under light loads, and a means by which this opportunity can be withdrawn as network loading increases.
+
+- Multicast service IDs MUST be used to specify maximum data length, as well as allowed random starting points within the interval. For example, a particular multicast ID may specify a maximum of 64-byte data packets, with transmit opportunities every fourth slot.
+
+A small number of well-known multicast Service IDs are defined in Annex A. Others are available for vendor-specific algorithms.
+
+Since data packets transmitted within this interval may collide, the CMTS MUST acknowledge any that are successfully received. The data packet MUST indicate in the MAC header that a data acknowledgment is desired (see Table 8-13).
+
+#### **9.1.2.3 The initial maintenance IE**
+
+The initial maintenance IE, when used with the broadcast SID, provides an interval in which new stations may join the network. A long interval, equivalent to the maximum round-trip propagation delay plus the transmission time of a ranging request (RNG-REQ) message (see clause 9.3.3), MUST be provided to allow new stations to perform initial ranging. Packets transmitted in this interval MUST use the RNG-REQ or the INIT-RNG-REQ MAC management message format (refer to clauses 8.3.5 and 8.3.26).
+
+On DOCS 2.0-only upstream channels, the initial maintenance IE MAY be used with a unicast SID. This is done to provide unicast initial maintenance opportunities in place of station maintenance opportunities at the discretion of the CMTS. This may be useful if the first unicast ranging opportunity on an S-CDMA channel needs to have spreader-off just like initial maintenance, but it is not desirable to impose the overhead of having the spreader-off on routine station maintenance. Unicast initial maintenance opportunities only need to be large enough to allow transmission of the ranging request. The CMTS MUST NOT provide unicast initial maintenance opportunities on any logical upstream which is not a DOCS 2.0-only upstream.
+
+#### **9.1.2.4 The station maintenance IE**
+
+The station maintenance IE provides an interval in which stations are expected to perform some aspect of routine network maintenance, such as ranging or power adjustment. The CMTS MAY request that a particular CM perform some task related to network maintenance, such as periodic transmit power adjustment. In this case, the station maintenance IE is unicast to provide upstream bandwidth in which to perform this task. Packets transmitted in this interval MUST use the RNG-REQ MAC management message format (see clause 8.3.5).
+
+#### **9.1.2.5 Short and long data grant IEs**
+
+The short and long data grant IEs provide an opportunity for a CM to transmit one or more upstream PDUs. These IEs are issued either in response to a request from a station, or because of an administrative policy providing some amount of bandwidth to a particular station (see class-of-service discussion below). These IEs MAY also be used with an inferred length of zero mini-slots (a zero length grant), to indicate that a request has been received and is pending (a data grant pending).
+
+Short data grants are used with intervals less than or equal to the maximum burst size for this usage specified in the upstream channel descriptor. If short data burst profiles are defined in the UCD, then all long data grants MUST be for a larger number of mini-slots than the maximum for short data. The distinction between long and short data grants may be exploited in physical-layer forward-error-correction coding; otherwise, it is not meaningful to the bandwidth allocation process.
+
+If this IE is a data grant pending (a zero length grant), it MUST follow the null IE. This allows cable modems to process all actual allocations first, before scanning the MAP for data grants pending and data acknowledgments.
+
+#### **9.1.2.6 Data acknowledge IE**
+
+The data acknowledge IE acknowledges that a data PDU was received. The CM MUST have requested this acknowledgment within the data PDU (normally this would be done for PDUs transmitted within a contention interval in order to detect collisions).
+
+This IE MUST follow the null IE. This allows cable modems to process all actual interval allocations first, before scanning the MAP for data grants pending and data acknowledgments.
+
+#### **9.1.2.7 Expansion IE**
+
+The expansion IE provides for extensibility, if more than 16 code points or 32 bits are needed for future IEs.
+
+#### **9.1.2.8 Null IE**
+
+A null IE terminates all actual allocations in the IE list. It is used to infer a length for the last interval. All data acknowledge IEs and all data grant pending IEs (data grants with an inferred length of 0) must follow the null IE.
+
+#### **9.1.2.9 Advanced PHY short and long data grant IEs**
+
+These IEs are the advanced PHY channel equivalent of the short and long data grant IEs in clause 9.1.2.5. In addition, these IEs allow DOCS 2.0 modems operating in DOCS 2.0 TDMA mode to share the same upstream channel with DOCS 1.x modems. Modems registered in DOCS 1.x mode MUST NOT use these intervals.
+
+For upstream channels supporting a mixture of DOCS 1.x and DOCS 2.0 TDMA CMs, the CMTS MUST use the SID in the request and the operational state of the CM to distinguish between requests for IUC 5 and 6 data grants and requests for IUC 9 and 10 data grants (refer to clause 11.2.9 for additional information). Once this distinction has been made, the CMTS then uses the request size to distinguish between a long grant and a short grant.
+
+Once a CMTS has received a REG\_ACK from a 2.0 CM on a type 2 channel, the CMTS MUST NOT send data grants using IUCs 5 or 6 if either IUC 9 or 10 is defined for that upstream channel. This restriction allows the CM to support only 7 burst profiles simultaneously.
+
+#### **9.1.2.10 Advanced PHY unsolicited grant IE**
+
+This IE can be used by the CMTS to make unsolicited grants of bandwidth to DOCS 2.0 CMs. If a significant portion of the traffic for an upstream is going to consist of unsolicited grants of a particular size, this IE provides a way for the CMTS to provide a set of physical layer parameters (such as code word length and FEC length) well tailored to that traffic, without compromising the general usefulness of the advanced phy short or advanced phy long data grant IEs. It is never used by the CM to calculate the size of a bandwidth request. The CMTS MUST NOT use it to make grants to DOCS 1.x CMs.
+
+### **9.1.3 Requests**
+
+Requests refer to the mechanism that CMs use to indicate to the CMTS that it needs upstream bandwidth allocation. A Request MAY come as a stand-alone request frame transmission (refer to clause 8.2.5.3) or it MAY come as a piggyback request in the EHDR of another frame transmission (refer to clause 8.2.6).
+
+The request frame MAY be transmitted during any of the following intervals:
+
+- request IE;
+- request/data IE;
+- short data grant IE;
+- long data grant IE;
+
+- adv PHY short data grant IE;
+- adv PHY long data grant IE;
+- adv PHY unsolicited grant IE.
+
+A piggyback request MAY be contained in the following extended headers:
+
+- request EH element;
+- upstream privacy EH element;
+- upstream privacy EH element with fragmentation.
+
+The request MUST include:
+
+- the service ID making the request;
+- the number of mini-slots requested.
+
+The CM MUST request the number of mini-slots needed to transmit an entire frame, or a fragment containing the entire remaining portion of a frame that a previous grant has caused to be fragmented. The frame may be a single MAC frame, or a MAC frame that has been formed by the concatenation of multiple MAC frames (see clause 8.2.5.5). The request from the CM MUST be large enough to accommodate the entire necessary physical layer overhead (see clause 6.2) for transmitting the MAC frame or fragment. The CM MUST NOT make a request that would violate the limits on data grant sizes in the UCD message (see clause 8.3.3) or any limits established by QoS parameters associated with the service flow.
+
+The CM MUST NOT request more mini-slots than are necessary to transmit the MAC frame. This means that if the CM is using short and long data IUCs to transmit data and the frame can fit into a short data grant, the CM MUST use the short data grant IUC attributes to calculate the amount of bandwidth to request and MUST make a request less than or equal to the short data maximum burst size. If the CM is using advanced PHY short and long data IUCs to transmit data and the frame can fit into an advanced PHY short data grant, the CM MUST use the advanced PHY short data grant IUC attributes to calculate the amount of bandwidth to request and MUST make a request less than or equal to the advanced PHY short data maximum burst size.
+
+The CM MUST have only one request outstanding at a time per service ID. If the CMTS does not immediately respond with a data grant, the CM is able to unambiguously determine that its request is still pending because the CMTS MUST continue to issue a data grant pending in every MAP that has an ack time indicating the request has already been processed until the request is granted or discarded.
+
+In MAPs, the CMTS MUST NOT make a data grant greater than 255 mini-slots to any assigned service ID. This puts an upper bound on the grant size the CM has to support.
+
+#### 9.1.4 Information element feature usage summary
+
+Table 9-1 summarizes what types of frames the CM can transmit using each of the MAP IE types that represent transmit opportunities. A "MUST" entry in the table means that, if appropriate, a compliant CM implementation has to be able to transmit that type of frame in that type of opportunity. A "MAY" entry means that compliant CM implementation does not have to be able to transmit that type of frame in that type of opportunity but that it is legal for it to do so, if appropriate. A "MUST NOT" entry means that a compliant CM will never transmit that type of frame in that type of opportunity.
+
+**Table 9-1 – IE feature compatibility summary**
+
+| Information element | Transmit request frame | Transmit concatenated MAC frame | Transmit fragmented MAC frame | Transmit RNG-REQ | Transmit any other MAC frame |
+|------------------------------|------------------------|---------------------------------|-------------------------------|------------------|------------------------------|
+| Request IE | MUST | MUST NOT | MUST NOT | MUST NOT | MUST NOT |
+| Request/data IE | MUST | MAY | MUST NOT | MUST NOT | MAY |
+| Initial maintenance IE | MUST NOT | MUST NOT | MUST NOT | MUST | MUST NOT |
+| Station maintenance IE | MUST NOT | MUST NOT | MUST NOT | MUST | MUST NOT |
+| Short data grant IE | MAY | MUST | MUST | MUST NOT | MUST |
+| Long data grant IE | MAY | MUST | MUST | MUST NOT | MUST |
+| Adv PHY short data grant IE | MAY | MUST | MUST | MUST NOT | MUST |
+| Adv PHY long data grant IE | MAY | MUST | MUST | MUST NOT | MUST |
+| Adv PHY unsolicited grant IE | MAY | MUST | MUST | MUST NOT | MUST |
+
+### 9.1.5 MAP transmission and timing
+
+The allocation MAP MUST be transmitted in time to propagate across the physical cable and be received and handled by the receiving CMs. As such, it MAY be transmitted considerably earlier than its effective time. The components of the delay are:
+
+- worst-case round-trip propagation delay – may be network-specific, but on the order of hundreds of microseconds;
+- queuing delays within the CMTS – implementation-specific;
+- processing delays within the CMs – MUST allow a minimum processing time by each CM as specified in Annex B (CM MAP processing time), which has to include any upstream delays caused by the DOCS 2.0 TDMA;
+- downstream delays caused by the PMD-layer framer and the FEC interleaver.
+
+Within these constraints, vendors may wish to minimize this delay so as to minimize latency of access to the upstream channel.
+
+The number of mini-slots described MAY vary from MAP to MAP. At minimum, a MAP MAY describe a single mini-slot. This would be wasteful in both downstream bandwidth and in processing time within the CMs. At maximum, a MAP MAY stretch to tens of milliseconds. Such a MAP would provide poor upstream latency. Allocation algorithms MAY vary the size of the maps over time to provide a balance of network utilization and latency under varying traffic loads.
+
+At minimum, a MAP MUST contain two information elements: one to describe an interval, and a null IE to terminate the list. At a maximum, a MAP MUST be bounded by a limit of 240 information elements. Maps are also bounded in that they MUST NOT describe more than 4096 mini-slots into the future. The latter limit is intended to bound the number of future mini-slots that each CM is required to track. A CM MUST be able to support multiple outstanding MAPs. Even though multiple MAPs may be outstanding, the sum of the number of mini-slots they describe MUST NOT exceed 4096.
+
+The set of all MAPs, taken together, MUST describe every mini-slot in the upstream channel. If a CM fails to receive a MAP describing a particular interval, it MUST NOT transmit during that interval.
+
+### 9.1.6 Protocol example
+
+This clause illustrates the interchange between the CM and the CMTS when the CM has data to transmit (Figure 9-2). Suppose a given CM has a data PDU available for transmission.
+
+
+
+```
+
+sequenceDiagram
+ participant CMTS
+ participant CM
+ Note over CMTS, CM: t1
+ CMTS->>CM: MAP PDU
+ Note over CMTS, CM: t2
+ Note over CMTS, CM: t3 (Effective start time)
+ Note over CMTS, CM: t4
+ CM->>CMTS: Request
+ Note over CMTS, CM: t5 (Request IE start)
+ Note over CMTS, CM: t6 (Request arrival)
+ Note over CMTS, CM: t7
+ CMTS->>CM: MAP PDU
+ Note over CMTS, CM: t8
+ Note over CMTS, CM: t9 (Effective start time)
+ Note over CMTS, CM: t10
+ CM->>CMTS: Data PDU
+ Note over CMTS, CM: t11 (Data grant start/arrival)
+
+```
+
+Figure 9-2 – Protocol example. A sequence diagram showing the interaction between a CMTS and a CM. The CMTS transmits a MAP PDU at t1, which the CM receives at t2. The MAP PDU contains a request IE starting at t3. The CM calculates a random offset t6 and transmits a Request at t4, which arrives at the CMTS at t6. The CMTS receives the request and schedules it for service in the next MAP. The CMTS transmits a second MAP PDU at t7, which the CM receives at t8. This MAP PDU contains a data grant starting at t9. The CM transmits its Data PDU at t10, which arrives at the CMTS at t11. Above the timeline, a box labeled 'Slots mapped by first MAP PDU' spans from t3 to t9, and a box labeled 'Second MAP' spans from t9 to t11. The diagram is labeled J.122\_F9-2.
+
+**Figure 9-2 – Protocol example**
+
+Description:
+
+- 1) At time $t_1$ , the CMTS transmits a MAP whose effective starting time is $t_3$ . Within this MAP is a request IE which will start at $t_5$ . The difference between $t_1$ and $t_3$ is needed to allow for all the delays discussed in clause 9.1.5.
+- 2) At $t_2$ , the CM receives this MAP and scans it for request opportunities. In order to minimize request collisions, it calculates $t_6$ as a random offset based on the data backoff start value in the most recent MAP (see clause 9.4; also, the multicast SID definitions in clause A.2).
+- 3) At $t_4$ , the CM transmits a request for as many mini-slots as needed to accommodate the PDU. Time $t_4$ is chosen based on the ranging offset (see clause 9.3.3) so that the request will arrive at the CMTS at $t_6$ .
+- 4) At $t_6$ , the CMTS receives the request and schedules it for service in the next MAP (the choice of which requests to grant will vary with the class of service requested, any competing requests, and the algorithm used by the CMTS).
+- 5) At $t_7$ , the CMTS transmits a MAP whose effective starting time is $t_9$ . Within this MAP, a data grant for the CM will start at $t_{11}$ .
+- 6) At $t_8$ , the CM receives the MAP and scans for its data grant.
+- 7) At $t_{10}$ , the CM transmits its data PDU so that it will arrive at the CMTS at $t_{11}$ . Time $t_{10}$ is calculated from the ranging offset as in step 3.
+
+Steps 1 and 2 need not contribute to access latency if CMs routinely maintain a list of request opportunities.
+
+At Step 3, the request may collide with requests from other CMs and be lost. The CMTS does not directly detect the collision. The CM determines that a collision (or other reception failure) occurred when the next MAP with an ack time indicating that the request would have been received and processed fails to include an acknowledgment of the request. The CM MUST then perform a back-off algorithm and retry (refer to clause 9.4.1).
+
+At Step 4, the CMTS scheduler MAY fail to accommodate the request within the next MAP. If so, it MUST reply with a zero-length grant in that MAP or discard the request by giving no grant at all. It MUST continue to report this zero-length grant in all succeeding maps until the request can be granted or is discarded. This MUST signal to the CM that the request is still pending. So long as the CM is receiving a zero-length grant, it MUST NOT issue new requests for that service queue.
+
+### 9.1.7 MAP generation example – Two logical upstreams
+
+This clause illustrates the timing requirements for scheduling an S-CDMA and a TDMA logical channel on the same physical channel (Figure 9-3).
+
+For simplicity, it is assumed that:
+
+- the duration of the S-CDMA frames is an integral multiple of the duration of the TDMA mini-slots;
+- both TDMA and S-CDMA maps begin and end on frame boundaries;
+- for the duration of the example, there are no S-CDMA bursts with the spreader-off, and there are no broadcast initial ranging regions where both channels are active.
+
+
+
+The diagram shows two logical channels: S-CDMA and CM TDMA. The S-CDMA channel has frames represented by stacked horizontal lines. The TDMA channel has mini-slots and grants. Key time points are marked: $T_1$ and $T_2$ are transmission times for maps. $T_3$ to $T_7$ is the S-CDMA map duration. $T_4$ to $T_8$ is the TDMA map duration. During the S-CDMA active period, the TDMA channel has 'Null SID' grants to prevent interference. A legend defines: vertical dashed lines as Frame boundaries, a horizontal line with ticks as Mini-slot count, a shaded box as Null grant (Null SID), a stack of lines as S-CDMA frame, and an empty box as TDMA grant.
+
+Figure 9-3 – Logical S-CDMA TDMA channels. A timing diagram showing the relationship between S-CDMA and TDMA logical channels over time. The bottom axis represents TDMA mini-slots, with vertical dashed lines indicating frame boundaries. Above this, the CM TDMA logical channel is shown with grants (white boxes) and null grants (shaded boxes labeled 'Null SID'). The top axis shows the S-CDMA logical channel with S-CDMA frames (stacks of horizontal lines). Arrows T1 through T8 indicate key time points: T1 and T2 at the start, T3 and T7 marking the start and end of an S-CDMA map, and T4 and T8 marking the start and end of a TDMA map. A legend at the bottom left defines the symbols for frame boundaries, mini-slot counts, null grants, S-CDMA frames, and TDMA grants.
+
+J.122\_F9-3
+
+Figure 9-3 – Logical S-CDMA TDMA channels
+
+Description:
+
+- The example begins at $T_1$ and the first MAP discussed takes effect at $T_3$ .
+- At time $T_1$ , the CMTS transmits a S-CDMA map whose effective starting time is $T_3$ and end time is $T_7$ .
+- At time $T_2$ , the CMTS transmits a TDMA map whose effective starting time is $T_4$ and end time is $T_8$ .
+- At time $T_3$ the S-CDMA map has three frames of S-CDMA grants. The CMTS upstream scheduler must not allow TDMA transmissions to occur at the same time. To prevent the two channels from interfering with each other, the scheduler will mute the TDMA upstream (by granting mini-slots to the null SID for the TDMA channel) during the time S-CDMA is active.
+- At time $T_4$ , on a frame boundary, the TDMA channel becomes active. In this example, it has one empty mini-slot (null SID) to guarantee sufficient guard time for the following
+
+TDMA burst. Then it proceeds with usable TDMA grants. At the same time, the S-CDMA upstream is muted by granting mini-slots to the null SID in every frame.
+
+- 6) At $T_5$ and $T_6$ , the TDMA logical channel and S-CDMA logical channel transmit the next map for the upstream. Note that Figure 9-3 does not continue to detail the complete maps beginning at $T_7$ and $T_8$ .
+- 7) At time $T_7$ , the S-CDMA map sends a group of S-CDMA grants in a frame. Note that when switching from TDMA to S-CDMA, there is no requirement for additional guard time.
+
+## 9.2 Support for multiple channels
+
+Vendors may choose to offer various combinations of upstream and downstream channels within one MAC service access point. The upstream bandwidth allocation protocol allows for multiple upstream channels to be managed via one or many downstream channels. Some or all of these multiple upstream channels may even co-exist on the same upstream transmit centre frequency.
+
+If multiple upstream channels are associated with a single downstream channel, then the CMTS MUST send one allocation MAP per upstream channel. The MAP's channel identifier, taken with the upstream channel descriptor message (see clause 8.3.3), MUST specify to which channel each MAP applies. There is no requirement that the maps be synchronized across channels. Appendix III provides an example.
+
+If multiple logical upstream channels are associated with the same upstream centre frequency on the same cable segment, then the CMTS MUST ensure that the MAP allocations to each logical upstream channel sharing the same spectrum do not coincide with the potential transmit opportunities of the other logical upstream channels with the possible exception of broadcast initial ranging opportunities. When sharing the upstream between S-CDMA and TDMA channels, the CMTS MUST take into account the lack of guard time on the synchronous physical layer upstreams. Annex G provides more information on the co-existence of DOCS 1.x and DOCS 2.0 channels.
+
+If multiple downstream channels are associated with a single upstream channel, the CMTS MUST ensure that the allocation MAP reaches all CMs. That is, if some CMs are attached to a particular downstream channel, then the MAP MUST be transmitted on that channel. This may necessitate that multiple copies of the same MAP be transmitted. The alloc start time in the MAP header MUST always relate to the timebase reference on the downstream channel on which it is transmitted.
+
+If multiple downstream channels are associated with multiple upstream channels, the CMTS may need to transmit multiple copies of multiple maps to ensure both that all upstream channels are mapped and that all CMs have received their needed maps.
+
+## 9.3 Timing and synchronization
+
+One of the major challenges in designing a MAC protocol for a cable network is compensating for the large delays involved. These delays are an order of magnitude larger than the transmission burst time in the upstream. To compensate for these delays, the cable modem MUST be able to time its transmissions precisely to arrive at the CMTS at the start of the assigned mini-slot.
+
+To accomplish this, two pieces of information are needed by each cable modem:
+
+- a global timing reference sent downstream from the CMTS to all cable modems;
+- a timing offset, calculated during a ranging process, for each cable modem.
+
+### 9.3.1 Global timing reference
+
+For TDMA channels, the CMTS MUST create a global timing reference by transmitting the time synchronization (SYNC) MAC management message downstream at a nominal frequency. The
+
+message contains a timestamp that exactly identifies when the CMTS transmitted the message. Cable modems MUST then compare the actual time the message was received with the timestamp and adjust their local clock references accordingly.
+
+For S-CDMA channels, the CMTS also creates a global timing reference by transmitting the time synchronization (SYNC) and upstream channel descriptor (UCD) MAC messages downstream at a nominal frequency (see clause 6.2.11.2).
+
+The transmission convergence sublayer must operate closely with the MAC sublayer to provide an accurate timestamp for the SYNC message. As mentioned in the ranging clause below (see 9.3.3), the model assumes that the timing delays through the remainder of the PHY layer MUST be relatively constant with the exception of the timing offsets specified in clause 6.2.19.4 related to modulation rate changes to accommodate a legacy DOCSIS upstream receiver implementation. For TDMA, any variation in the PHY delays MUST be accounted for in the guard time of the PHY overhead.
+
+It is intended that the nominal interval between SYNC messages be tens of milliseconds and the nominal interval between UCD messages be no more than 2 seconds. This imposes very little downstream overhead while letting cable modems acquire their global timing synchronization quickly.
+
+### **9.3.2 CM channel acquisition**
+
+Any cable modem MUST NOT use the upstream channel until it has successfully synchronized to the downstream.
+
+First, the cable modem MUST establish PMD sublayer synchronization. This implies that it has locked onto the correct frequency, equalized the downstream channel, recovered any PMD sublayer framing and the FEC is operational (refer to clause 11.2.2). At this point, a valid bit stream is being sent to the transmission convergence sublayer. The transmission convergence sublayer performs its own synchronization (see clause 7). On detecting the well-known DOCS PID, along with a payload unit start indicator per [ITU-T H.222.0], it delivers the MAC frame to the MAC sublayer.
+
+The MAC sublayer MUST now search for the timing synchronization (SYNC) MAC management messages. For TDMA channels, the cable modem achieves MAC synchronization once it has received at least two SYNC messages and has verified that its clock tolerances are within specified limits. For S-CDMA channels, the cable modem achieves MAC synchronization once it has received at least two SYNC messages, received one UCD message, and has locked to the downstream symbol clock and verified that its clock tolerances are within specified limits.
+
+A cable modem remains in "SYNC" as long as it continues to successfully receive the SYNC messages. If the lost SYNC interval (refer to Annex B) has elapsed without a valid SYNC message, a cable modem MUST NOT use the upstream and MUST try to re-establish synchronization again.
+
+### **9.3.3 Ranging**
+
+Ranging is the process of acquiring the correct timing offset such that the cable modem's transmissions are aligned to the correct mini-slot boundary. The timing delays through the PHY layer MUST be relatively constant with the exception of the timing offsets specified in clause 6.2.19.4 related to modulation rate changes to accommodate a legacy DOCSIS upstream receiver implementation. For TDMA, any variation in the PHY delays MUST be accounted for in the guard time of the upstream PMD overhead.
+
+#### **9.3.3.1 Broadcast initial ranging**
+
+First, a cable modem MUST synchronize to the downstream and learn the upstream channel characteristics through the upstream channel descriptor MAC management message. At this point, the cable modem MUST scan the bandwidth allocation MAP message to find a broadcast initial maintenance region. Refer to clause 9.1.2.4. The CMTS MUST make a broadcast initial
+
+maintenance region large enough to account for the variation in delays between any two CMs. On S-CDMA channels, the CMTS MUST schedule broadcast initial maintenance transmit opportunities such that they align with S-CDMA frames and span an integral number of S-CDMA frames. Refer to clause 6.2.11.5.
+
+The cable modem MUST put together either an initial ranging request message or a ranging request message to be sent in a broadcast initial maintenance region. An INIT-RNG-REQ MUST be transmitted if the upstream is a DOCS 2.0-only upstream, which can be determined from the UCD. Otherwise a RNG-REQ MUST be transmitted. The SID field MUST be set to the non-initialized CM value (zero), unless this initial ranging is a result of a UCD ranging required TLV or a DCC or UCC request in which the CM has been instructed to retain its existing SIDs.
+
+The CM MUST set its initial timing offset to the amount of internal fixed delay equivalent to putting this CM next to the CMTS. This amount includes delays introduced through a particular implementation, and MUST include the downstream PHY interleaving latency. When the broadcast initial maintenance transmit opportunity occurs, the cable modem MUST send the INIT-RNG-REQ or RNG-REQ message. Thus, the cable modem sends the message as if it were physically right at the CMTS.
+
+Once the CMTS has successfully received the RNG-REQ or INIT-RNG-REQ message, it MUST return a ranging response message addressed to the individual cable modem. Within the ranging response message MUST be a temporary SID assigned to this cable modem (unless the CM has retained a previous primary SID during a UCC, DCC or UCD change) until it has completed the registration process. The message MUST also contain information on RF power level adjustment and offset frequency adjustment as well as any timing offset corrections. Ranging adjusts each CM's timing offset such that it appears to be located right next to the CMTS.
+
+### 9.3.3.2 Unicast initial ranging
+
+The cable modem MUST now wait for an individual station maintenance or unicast initial maintenance region assigned to its temporary SID (or previous primary SID if ranging as a result of a UCC, DCC or UCD change). It MUST now transmit a ranging request message at this time using the temporary SID (or previous primary SID) along with any power level and timing offset corrections.
+
+The CMTS MUST return another ranging response message to the cable modem with any additional fine tuning required. The ranging request/response steps MUST be repeated until the response contains a ranging successful notification or the CMTS aborts ranging. Once successfully ranged, the cable modem MUST join normal data traffic in the upstream. See clause 11 for complete details on the entire initialization sequence. In particular, state machines and the applicability of retry counts and timer values for the ranging process are defined in clause 11.2.4.
+
+NOTE – The burst type to use for any transmission is defined by the interval usage code (IUC). Each IUC is mapped to a burst type in the UCD message.
+
+### 9.3.4 Timing units and relationships
+
+The SYNC message conveys a time reference with a resolution of 6.25/64 microseconds (10.24 MHz) to allow the CM to track the CMTS clock with a small phase offset. Since this timing reference is decoupled from particular upstream channel characteristics, a single SYNC time reference may be used for all upstream channels associated with the downstream channel.
+
+The bandwidth allocation MAP uses time units of "mini-slots." A mini-slot represents the time needed for transmission of a fixed number of symbols. For some modulations (e.g., QPSK), an integer number of bytes can be transmitted in a mini-slot. For these channels, the mini-slot is expected to represent 16 byte-times, although other values could be chosen.
+
+A "mini-slot" is the unit of granularity for upstream transmission opportunities; there is no implication that any PDU can actually be transmitted in a single mini-slot.
+
+### 9.3.4.1 TDMA timing units and relationships
+
+#### 9.3.4.1.1 Mini-slot capacity
+
+On TDMA channels, the size of the mini-slot, expressed as a multiple of the SYNC time reference, is carried in the upstream channel descriptor. The example in Table 9-2 relates mini-slots to the SYNC time ticks (assuming QPSK modulation):
+
+**Table 9-2 – Example relating mini-slots to time ticks**
+
+| Parameter | Example value |
+|------------------------|------------------------------------------|
+| Time tick | 6.25 microseconds |
+| Bytes per mini-slot | 16 (nominal, when using QPSK modulation) |
+| Symbols/byte | 4 (assuming QPSK) |
+| Symbols/second | 2 560 000 |
+| Mini-slots/second | 40 000 |
+| Microseconds/mini-slot | 25 |
+| Ticks/mini-slot | 4 |
+
+Note that the symbols/byte is a characteristic of an individual burst transmission, not of the channel. A mini-slot in this instance could represent a minimum of 16 or a maximum of 48 bytes, depending on the modulation choice.
+
+In a channel allocated exclusively to DOCS 2.0 TDMA modems, the mini-slot size field of the UCD MAY take on the value 0, in which case the mini-slot size is 1 timebase tick. If a channel is to be accessible to both DOCS 1.x and 2.0 TDMA cable modems, the UCD MUST follow the DOCS 1.x requirements for timing units and relationships.
+
+#### 9.3.4.1.2 Mini-slot numbering
+
+The MAP counts mini-slots in a 32-bit counter that normally counts to $(2^{32} - 1)$ and then wraps back to zero. The least-significant bits (i.e., bit 0 to bit 25-M) of the mini-slot counter MUST match the most-significant bits (i.e., bit 6 + M to bit 31) of the SYNC timestamp counter. That is, mini-slot N begins at timestamp reference $(N \times T \times 64)$ , where $T = 2^M$ is the UCD multiplier that defines the mini-slot (i.e., the number of time ticks per mini-slot).
+
+NOTE 1 – The unused upper bits of the 32-bit mini-slot counter (i.e., bit 26-M to bit 31) are not needed by the CM and MAY be ignored.
+
+NOTE 2 – The constraint that the UCD multiplier be a power of two has the consequence that the number of bytes per mini-slot must also be a power of two.
+
+### 9.3.4.2 S-CDMA timing units and relationships
+
+#### 9.3.4.2.1 Mini-slot capacity
+
+On S-CDMA channels, the size of the mini-slot is dependent on the modulation rate, the codes per mini-slot, and the spreading intervals per frame, which are all carried in the upstream channel descriptor. The timing units and relationships for S-CDMA are covered in detail in clause 6.2.11, "S-CDMA framer and interleaver". An example of the timing relationships (assuming 64QAM modulation) is shown in Table 9-3:
+
+**Table 9-3 – Example of mini-slot capacity in S-CDMA mode**
+
+| Parameter | Example value |
+|-------------------------------|-------------------------------------------|
+| Spreading intervals per frame | 10 |
+| Active code length | 128 |
+| Codes per mini-slot | 4 |
+| Mini-slots per frame | 32 |
+| Symbols per mini-slot | 40 |
+| Bytes per mini-slot | 30 (nominal, when using 64QAM modulation) |
+| Bits/symbol | 6 (assuming 64QAM) |
+| Symbols/second | 5 120 000 |
+| Mini-slots/second | 128 000 |
+| Microseconds/mini-slot | 7.8125 |
+
+#### 9.3.4.2.2 Mini-slot numbering
+
+Mini-slot numbering in S-CDMA mode is described in detail in clause 6.2.11.2.
+
+### 9.4 Upstream transmission and contention resolution
+
+The CMTS controls assignments on the upstream channel through the MAP and determines which mini-slots are subject to collisions. The CMTS MAY allow collisions on either requests or data PDUs.
+
+This clause provides an overview of upstream transmission and contention resolution. For simplicity, it refers to the decisions a CM makes; however, this is just a pedagogical tool. Since a CM can have multiple upstream service flows (each with its own SID) it makes these decisions on a per service queue or per SID basis. Refer to Appendix IV for a state transition diagram and more detail.
+
+#### 9.4.1 Contention resolution overview
+
+The mandatory method of contention resolution which MUST be supported is based on a truncated binary exponential back-off, with the initial back-off window and the maximum back-off window controlled by the CMTS. The values are specified as part of the bandwidth allocation map (MAP) MAC message and represent a power-of-two value. For example, a value of 4 indicates a window between 0 and 15; a value of 10 indicates a window between 0 and 1023.
+
+Every time a CM wants to transmit in a contention region, it MUST enter the contention resolution process by setting its internal back-off window equal to the data backoff start defined in the MAP currently in effect18.
+
+The CM MUST randomly select a number within its back-off window. This random value indicates the number of contention transmit opportunities that the CM MUST defer before transmitting. A CM MUST only consider contention transmit opportunities for which this transmission would have been eligible. These are defined by either request IEs or request/data IEs in the MAP.
+
+NOTE 1 – Each IE can represent multiple transmission opportunities.
+
+As an example, consider a CM whose initial back-off window is 0 to 15 and it randomly selects the number 11. The CM must defer a total of 11 contention transmission opportunities. If the first available request IE is for 6 requests, the CM does not use this and has 5 more opportunities to
+
+---
+
+18 The MAP currently in effect is the MAP whose allocation start time has occurred but which includes IEs that have not occurred.
+
+defer. If the next request IE is for 2 requests, the CM has 3 more to defer. If the third request IE is for 8 requests, the CM transmits on the fourth request, after deferring for 3 more opportunities.
+
+After a contention transmission, the CM waits for a data grant (data grant pending) or data acknowledge in a subsequent MAP. Once either is received, the contention resolution is complete. The CM determines that the contention transmission was lost when it finds a MAP without a data grant (data grant pending) or data acknowledge for it and with an ack time more recent than the time of transmission19. The CM MUST now increase its back-off window by a factor of two, as long as it is less than the maximum back-off window. The CM MUST randomly select a number within its new back-off window and repeat the deferring process described above.
+
+This re-try process continues until the maximum number of retries (16) has been reached, at which time the PDU MUST be discarded.
+
+NOTE 2 – The maximum number of retries is independent of the initial and maximum back-off windows that are defined by the CMTS.
+
+If the CM receives a unicast request or data grant at any time while deferring for this SID, it MUST stop the contention resolution process and use the explicit transmit opportunity.
+
+The CMTS has much flexibility in controlling the contention resolution. At one extreme, the CMTS may choose to set up the data backoff start and end to emulate an Ethernet-style back-off with its associated simplicity and distributed nature, but also its fairness and efficiency issues. This would be done by setting data backoff start = 0 and end = 10 in the MAP. At the other end, the CMTS may make the data backoff start and end identical and frequently update these values in the MAP so all cable modems are using the same, and hopefully optimal, back-off window.
+
+A CM transmitting a RNG-REQ in the initial maintenance IE MUST perform truncated binary exponential backoff using the ranging backoff start and ranging backoff end to control the backoff window. The algorithm works similarly to data transmissions, except on the calculation of transmit opportunities, which is described in the next clause.
+
+#### 9.4.2 Transmit opportunities
+
+A transmit opportunity is defined as any mini-slot in which a CM may be allowed to start a transmission. Transmit opportunities typically apply to contention opportunities and are used to calculate the proper amount to defer in the contention resolution process.
+
+The number of transmit opportunities associated with a particular IE in a MAP is dependent on the total size of the region as well as the allowable size of an individual transmission. As an example, assume a contention REQ IE defines a region of 12 mini-slots. If the UCD defines a REQ burst size that fits into a single mini-slot then there are 12 transmit opportunities associated with this REQ IE, i.e., one for each mini-slot. If the UCD defines a REQ that fits in two mini-slots, then there are six transmit opportunities and a REQ can start on every other mini-slot.
+
+As another example, assume a REQ/data IE that defines a 24 mini-slot region. If it is sent with an SID of 0x3FF4 (refer to Annex A), then a CM can potentially start a transmit on every fourth mini-slot; so this IE contains a total of six transmit opportunities (TX OPs). Similarly, a SID of 0x3FF6 implies four TX OPs; 0x3FF8 implies three TX OPs; and 0x3FFC implies two TX OPs.
+
+For a broadcast initial maintenance IE, a CM MUST start its transmission in the first mini-slot of the region; therefore it has a single transmit opportunity. The remainder of the region is used to compensate for the round-trip delays since the CM has not yet been ranged.
+
+---
+
+19 Data acknowledge IEs are intended for collision detection only and are not designed for providing reliable transport (that is the responsibility of higher layers). If a MAP is lost or damaged, a CM waiting for a data acknowledge MUST assume that its contention data transmission was successful and MUST NOT retransmit the data packet. This prevents the CM from sending duplicate packets unnecessarily.
+
+Station maintenance IEs, short/long data grant IEs, adv PHY short/long data grant IEs, adv PHY unsolicited grant IEs, unicast initial maintenance, and unicast request IEs are unicast and thus are not typically associated with contention transmit opportunities. They represent a single dedicated, or reservation-based, transmit opportunity.
+
+In summary:
+
+**Table 9-4 – Transmit opportunity**
+
+| Interval | SID type | Transmit opportunity |
+|---------------------|----------------------|-------------------------------------|
+| Request | Broadcast | # mini-slots required for a request |
+| Request | Multicast | # mini-slots required for a request |
+| Request/data | Broadcast | Not allowed |
+| Request/data | Well-known multicast | As defined by SID in Annex A |
+| Request/data | Multicast | Vendor-specific algorithms |
+| Initial maintenance | Broadcast | Entire interval is a single TX OP |
+
+NOTE – Transmit opportunity should not be confused with burst size. Burst size requirements are specified in Table 6-1.
+
+#### 9.4.3 CM bandwidth utilization
+
+The following rules govern the response a CM makes when processing maps.
+
+NOTE – These standard behaviours can be overridden by the CM's request/transmission policy (refer to clause C.2.2.6.3):
+
+- 1) A CM MUST first use any grants assigned to it. Next, the CM MUST use any unicast REQ for it. Finally, the CM MUST use the next available broadcast/multicast REQ or REQ/data IEs for which it is eligible.
+- 2) A CM MUST NOT have more than one request outstanding at a time for a particular service ID.
+- 3) If a CM has a request pending, it MUST NOT use intervening contention intervals for that service ID.
+
+### 9.5 Data link encryption support
+
+The procedures to support data link encryption are defined in [DOCS8]. The interaction between the MAC layer and the security system is limited to the items defined below.
+
+#### 9.5.1 MAC messages
+
+MAC management messages (see clause 8.3) MUST NOT be encrypted, except for certain cases where such a frame is included in a fragmented concatenated burst on the upstream (refer to clause 8.2.7.1)
+
+#### 9.5.2 Framing
+
+The following rules MUST be followed when encryption is applied to a data PDU:
+
+- Privacy EH element of [DOCS8] MUST be in the extended header and MUST be the first EH element of the extended header field (EHDR).
+- Encrypted data are carried as data PDUs to the cable MAC transparently.
+
+## 10 Quality of service and fragmentation
+
+This Recommendation introduces several new quality of service (QoS) related concepts not present in the original March 1998 version of J.112 Annex B. These include:
+
+- packet classification and flow identification;
+- service flow QoS scheduling;
+- dynamic service establishment;
+- fragmentation;
+- two-phase activation model.
+
+### 10.1 Theory of operation
+
+The various DOCS protocol mechanisms described in this Recommendation can be used to support quality of service (QoS) for both upstream and downstream traffic through the CM and the CMTS. This clause provides an overview of the QoS protocol mechanisms and their part in providing end-to-end QoS.
+
+The requirements for quality of service include:
+
+- a configuration and registration function for pre-configuring CM-based QoS **service flows** and traffic parameters;
+- a signalling function for dynamically establishing QoS-enabled service flows and traffic parameters;
+- a traffic-shaping and traffic-policing function for service flow-based traffic management, performed on traffic arriving from the upper layer service interface and outbound to the RF;
+- utilization of MAC scheduling and traffic parameters for upstream service flows;
+- utilization of QoS traffic parameters for downstream service flows;
+- classification of packets arriving from the upper layer service interface to a specific active service flow;
+- grouping of service flow properties into named **service classes**, so upper layer entities and external applications (at both the CM and CMTS) can request service flows with desired QoS parameters in a globally consistent way.
+
+The principal mechanism for providing enhanced QoS is to classify packets traversing the RF MAC interface into a **service flow**. A service flow is a unidirectional flow of packets that is provided a particular quality of service. The CM and CMTS provide this QoS by shaping, policing and prioritizing traffic according to the **QoS parameter set** defined for the service flow.
+
+The primary purpose of the quality of service features defined here is to define transmission ordering and scheduling on the radio frequency interface. However, these features often need to work in conjunction with mechanisms beyond the RF interface in order to provide end-to-end QoS or to police the behaviour of cable modems. For example, the following behaviours are permitted:
+
+- Policies may be defined by CM MIBs which overwrite the ToS byte. Such policies are outside the scope of the RFI Recommendation. In the upstream direction, the CMTS polices the ToS byte setting regardless of how the ToS byte is derived or by whom it is written (originator or CM policy).
+- The queueing of service flow packets at the CMTS in the downstream direction may be based on the ToS byte.
+- Downstream service flows can be reclassified by the CM to provide enhanced service onto the subscriber-side network.
+
+Service flows exist in both the upstream and downstream direction, and may exist without actually being activated to carry traffic. Service flows have a 32-bit **service flow identifier** (SFID) assigned by the CMTS. All service flows have an SFID; active and admitted upstream service flows also have a 14-bit service identifier (SID).
+
+At least two service flows must be defined in each configuration file: one for upstream and one for downstream service. The first upstream service flow describes the **primary upstream service flow**, and is the default service flow used for otherwise unclassified traffic, including both MAC management messages and data PDUs. The first downstream service flow describes service to the primary downstream service flow. Additional service flows defined in the configuration file create service flows that are provided QoS services.
+
+Conceptually, incoming packets are matched to a **classifier** that determines to which QoS service flow the packet is forwarded. The classifier can examine the LLC header of the packet, the IP/TCP/UDP header of the packet or some combination of the two. If the packet matches one of the classifiers, it is forwarded to the service flow indicated by the SFID attribute of the classifier. If the packet is not matched to a classifier, it is forwarded on the primary service flow.
+
+### 10.1.1 Concepts
+
+#### 10.1.1.1 Service flows
+
+A service flow is a MAC-layer transport service that provides unidirectional transport of packets either to upstream packets transmitted by the CM or to downstream packets transmitted by the CMTS20. A service flow is characterized by a set of **QoS parameters** such as latency, jitter and throughput assurances. In order to standardize operation between the CM and CMTS, these attributes include details of how the CM requests upstream mini-slots and the expected behaviour of the CMTS upstream scheduler.
+
+A service flow is partially characterized by the following attributes21:
+
+- **ServiceFlowID**: Exists for all service flows.
+- **ServiceID**: Only exists for admitted or active upstream service flows.
+- **ProvisionedQosParamSet**: Defines a set of QoS parameters that appears in the configuration file and is presented during registration. This MAY define the initial limit for authorizations allowed by the authorization module. The ProvisionedQosParamSet is defined once when the service flow is created via registration22.
+- **AdmittedQosParamSet**: Defines a set of QoS parameters for which the CMTS (and possibly the CM) are reserving resources. The principal resource to be reserved is bandwidth, but this also includes any other memory or time-based resource required to subsequently activate the flow.
+- **ActiveQosParamSet**: Defines a set of QoS parameters defining the service actually being provided to the service flow. Only an active service flow may forward packets.
+
+---
+
+20 A service flow, as defined here, has no direct relationship to the concept of a "flow" as defined by the IETF's integrated services (intserv) working group [b-RFC 2212]. An intserv flow is a collection of packets sharing transport-layer endpoints. Multiple intserv flows can be served by a single service flow. However, the classifiers for a service flow may be based on 802.1P/Q criteria, and so may not involve intserv flows at all.
+
+21 Some attributes are derived from the above attribute list. The service class name is an attribute of the ProvisionedQoSParamSet. The activation state of the service flow is determined by the ActiveQoSParamSet. If the ActiveQoSParamSet is null then the service flow is inactive.
+
+22 The ProvisionedQoSParamSet is null when a flow is created dynamically.
+
+A service flow exists when the CMTS assigns a service flow ID (SFID) to it. The SFID serves as the principal identifier in the CM and CMTS for the service flow. A service flow which exists has at least an SFID, and an associated direction.
+
+The **authorization module** is a logical function within the CMTS that approves or denies every change to QoS parameters and classifiers associated with a service flow. As such, it defines an "envelope" that limits the possible values of the AdmittedQosParamSet and ActiveQosParamSet.
+
+The relationship between the QoS parameter sets is as shown in Figures 10-1 and 10-2. The ActiveQosParamSet is always a subset23 of the AdmittedQosParamSet which is always a subset of the authorized "envelope." In the dynamic authorization model, this envelope is determined by the authorization module (labelled as the AuthQosParamSet). In the provisioned authorization model, this envelope is determined by the ProvisionedQosParamSet (refer to clause 10.1.4 for further information on the authorization models).
+
+
+
+The diagram illustrates the relationship between three nested QoS parameter sets in the provisioned authorization model. It consists of three concentric rectangles. The outermost rectangle has a dashed border and is labeled "AuthQosParamSet = ProvisionedQosParamSet (SFID)". Inside it is a solid-bordered rectangle labeled "AdmittedQosParamSet (SFID and SID)". Inside that is another solid-bordered rectangle labeled "ActiveQosParamSet (SFID and Active SID)". The labels are positioned in the top-left corner of each respective rectangle.
+
+Diagram illustrating the provisioned authorization model envelopes. It shows three nested boxes: the outermost dashed box is labeled 'AuthQosParamSet = ProvisionedQosParamSet (SFID)'; the middle solid box is labeled 'AdmittedQosParamSet (SFID and SID)'; and the innermost solid box is labeled 'ActiveQosParamSet (SFID and Active SID)'.
+
+J.122\_F10-1
+
+**Figure 10-1 – Provisioned authorization model "envelopes"**
+
+23 To say that QoS parameter set A is a subset of QoS parameter set B, the following MUST be true for all QoS parameters in A and B:
+
+- If a smaller QoS parameter value indicates less resources (e.g., maximum traffic rate), A is a subset of B if the parameter in A less than or equal to the same parameter in B.
+- If a larger QoS parameter value indicates less resources (e.g., tolerated grant jitter), A is a subset of B if the parameter in A is greater than or equal to the same parameter in B.
+- If the QoS parameter specifies a periodic interval (e.g., nominal grant interval), A is a subset of B if the parameter in A is an integer multiple of the same parameter in B.
+- If the QoS parameter is not quantitative (e.g., service flow scheduling type), A is a subset of B if the parameter in A is equal to the same parameter in B.
+
+
+
+Figure 10-2: Dynamic authorization model 'envelopes' diagram. It shows four nested boxes representing different QoS parameter sets. The outermost box is 'ProvQosParamSet (SFID)'. Inside it is 'AuthQosParamSet (CMTS only, not known by CM)'. Inside that is 'AdmitQosParamSet (SFID and SID)'. The innermost box is 'ActiveQosParamSet (SFID and active SID)'. The boxes are nested and slightly offset to the right and down. A label 'J.122\_F10-2' is at the bottom right.
+
+**Figure 10-2 – Dynamic authorization model "envelopes"**
+
+It is useful to think of three types of service flows:
+
+- **Provisioned:** this type of service flow is known via provisioning through the configuration file, its AdmittedQosParamSet and ActiveQosParamSet are both null. A **provisioned service flow** may or may not have associated classifiers. If a provisioned service flow has associated classifiers, the classifiers **MUST NOT** be used to classify packets onto the flow, regardless of the classifier's activation state.
+- **Admitted:** this type of service flow has resources reserved by the CMTS for its AdmittedQosParamSet, but these parameters are not active (its ActiveQosParamSet is null). **Admitted service flows** may have been provisioned or may have been signalled by some other mechanism. Generally, admitted service flows have associated classifiers, however, it is possible for admitted service flows to use policy-based classification. If admitted service flows have associated classifiers, the classifiers **MUST NOT** be used to classify packets onto the flow, regardless of the classifier's activation state.
+- **Active:** this type of service flow has resources committed by the CMTS for its QoS parameter set, (e.g., is actively sending MAPs containing unsolicited grants for a UGS-based service flow). Its ActiveQosParamSet is non-null. Generally, active service flows have associated classifiers; however, it is possible for active service flows to use policy-based classification. primary service flows may have associated classifiers(s), but in addition to any packets matching such classifiers, all packets that fail to match any classifier will be sent on the primary service flow for that direction.
+
+#### 10.1.1.2 Classifiers
+
+A **classifier** is a set of matching criteria applied to each packet entering the cable network. It consists of some packet-matching criteria (destination IP address, for example), a **classifier priority**, and a reference to a service flow. If a packet matches the specified packet matching criteria, it is then delivered on the referenced service flow.
+
+Several classifiers may all refer to the same service flow. The classifier priority is used for ordering the application of classifiers to packets. Explicit ordering is necessary because the patterns used by classifiers may overlap. The priority need not be unique, but care must be taken within a classifier priority to prevent ambiguity in classification (refer to clause 10.1.6.1). **Downstream classifiers** are applied by the CMTS to packets it is transmitting, and **upstream classifiers** are applied at the CM and may be applied at the CMTS to police the classification of upstream packets. Figure 10-3 illustrates the mappings discussed above.
+
+
+
+Diagram illustrating classification within the MAC layer for CMTS and CM entities. The diagram shows two main components: CMTS (left) and CM (right), connected by a central RF (Radio Frequency) section. On the CMTS side, an 'Upper-layer entity (e.g. bridge, router)' is connected to a 'Downstream classifier'. The classifier directs traffic to multiple service flows labeled 'Primary SFID', 'SFID 2', '...', 'SFID n', collectively labeled 'Downstream service flows'. MAC Management Messages are also shown. On the CM side, an 'Upper layer entity (e.g. bridge, router, client)' is connected to an '(Optional) ingress classifier'. This classifier directs traffic to service flows labeled 'Primary SID', 'SID 2', '...', 'SID n', collectively labeled 'Upstream service flows'. MAC Management Messages are also shown. Both sides have an 'Upstream classifier' that directs traffic from the service flows back towards the upper-layer entity. The central RF section has 'Downstream' and 'Upstream' arrows indicating the direction of traffic flow between the CMTS and CM.
+
+J.122\_F10-3
+
+**Figure 10-3 – Classification within the MAC layer**
+
+CM and CMTS packet classification consists of multiple classifiers. Each classifier contains a priority field which determines the search order for the classifier. The highest priority classifier MUST be applied first. If a classifier is found in which all parameters match the packet, the classifier MUST forward the packet to the corresponding service flow (irrelevant parameters – as defined in clause C.2.1 – have no impact on packet classification decisions). If a classifier contains no relevant parameters for a given packet (i.e., all parameters are irrelevant), then that packet cannot match the classifier, and the classifier MUST NOT forward the packet to the corresponding service flow. If a packet does not match any classifier and, as a result, has not been classified to any other flow, then it MUST be classified to the primary service flow.
+
+The packet classification table contains the following fields:
+
+- Priority – Determines the search order for the table. Higher priority classifiers are searched before lower priority classifiers.
+- IP classification parameters – Zero or more of the IP classification parameters (IP ToS range/mask, IP protocol, IP source address/mask, IP destination address/mask, TCP/UDP source port start, TCP/UDP source port end, TCP/UDP destination port start, TCP/UDP destination port end).
+- LLC classification parameters – Zero or more of the LLC classification parameters (destination MAC address, source MAC address, ethertype/SAP).
+- IEEE 802.1P/Q parameters – Zero or more of the IEEE classification parameters (802.1P priority range, 802.1Q VLAN ID).
+- Service flow identifier – Identifier of a specific flow to which this packet is to be directed.
+
+Classifiers can be added to the table either via management operations (configuration file, registration) or via dynamic operations (dynamic signalling, DOCS MAC sublayer service interface). SNMP-based operations can view classifiers that are added via dynamic operations, but cannot modify or delete classifiers that are created by dynamic operations. The format for classification table parameters defined in the configuration file, registration message or dynamic signalling message is contained in Annex C.
+
+Classifier attributes include an activation state (see clause C.2.1.3.6). The 'inactive' setting may be used to reserve resources for a classifier which is to be activated later. The actual activation of the classifier depends both on this attribute and on the state of its service flow. If the service flow is not active then the classifier is not used, regardless of the setting of this attribute.
+
+### 10.1.2 Object model
+
+The major objects of the architecture are represented by named rectangles in Figure 10-4. Each object has a number of attributes; the attribute names that uniquely identify the object are underlined. Optional attributes are denoted with brackets. The relationship between the number of objects is marked at each end of the association line between the objects. For example, a service flow may be associated with from 0 to 65535 classifiers, but a classifier is associated with exactly one service flow.
+
+![UML Class Diagram showing the Theory of operation object model. The diagram includes five classes: Packet, Classifier, Service Flow, PayloadHeader Suppression (PHS), and Service Class. Packet has attributes: LlHeader, [IpHeader], [SClass], [RulePriority], [SFID]. Classifier has attributes: SFID, ClassifierId, LlPacketPattern, IpPacketPattern, RulePriority. Service Flow has attributes: SFID, Direction, [SID], [ProvQosParamSet], [AdmittedQosParamSet], [ActiveQosParamSet]. PayloadHeader Suppression (PHS) has attributes: SFID, PHSI, ClassifierId, PHSF, PHSM, PHSS, PHSV. Service Class has attributes: Service Class Name, QosParamSet. Relationships: Packet 'matches' Classifier; Classifier is associated with Service Flow (0..65535 to 1); Classifier is associated with PHS (0,1 to 0..255); Service Flow is associated with Service Class (1 to N); Service Flow is associated with PHS (1 to 0,1). A dashed line connects Packet and Service Flow.](e1e41cc8c8434891237529fedcbba418_img.jpg)
+
+```
+
+classDiagram
+ class Packet {
+ LlHeader
+ [IpHeader]
+ [SClass]
+ [RulePriority]
+ [SFID]
+ }
+ class Classifier {
+ SFID
+ ClassifierId
+ LlPacketPattern
+ IpPacketPattern
+ RulePriority
+ }
+ class ServiceFlow {
+ SFID
+ Direction
+ [SID]
+ [ProvQosParamSet]
+ [AdmittedQosParamSet]
+ [ActiveQosParamSet]
+ }
+ class PHS {
+ SFID
+ PHSI
+ ClassifierId
+ PHSF
+ PHSM
+ PHSS
+ PHSV
+ }
+ class ServiceClass {
+ Service Class Name
+ QosParamSet
+ }
+
+ Packet --> Classifier : matches
+ Classifier --> ServiceFlow : 0..65535 to 1
+ Classifier --> PHS : 0,1 to 0..255
+ ServiceFlow --> ServiceClass : 1 to N
+ ServiceFlow --> PHS : 1 to 0,1
+ Packet -.-> ServiceFlow
+
+```
+
+UML Class Diagram showing the Theory of operation object model. The diagram includes five classes: Packet, Classifier, Service Flow, PayloadHeader Suppression (PHS), and Service Class. Packet has attributes: LlHeader, [IpHeader], [SClass], [RulePriority], [SFID]. Classifier has attributes: SFID, ClassifierId, LlPacketPattern, IpPacketPattern, RulePriority. Service Flow has attributes: SFID, Direction, [SID], [ProvQosParamSet], [AdmittedQosParamSet], [ActiveQosParamSet]. PayloadHeader Suppression (PHS) has attributes: SFID, PHSI, ClassifierId, PHSF, PHSM, PHSS, PHSV. Service Class has attributes: Service Class Name, QosParamSet. Relationships: Packet 'matches' Classifier; Classifier is associated with Service Flow (0..65535 to 1); Classifier is associated with PHS (0,1 to 0..255); Service Flow is associated with Service Class (1 to N); Service Flow is associated with PHS (1 to 0,1). A dashed line connects Packet and Service Flow.
+
+Figure 10-4 – Theory of operation object model
+
+The service flow is the central concept of the MAC protocol. It is uniquely identified by a 32-bit service flow ID (SFID) assigned by the CMTS. Service flows may be in either the upstream or downstream direction. A unicast service identifier (SID) is a 14-bit index, assigned by the CMTS, which is associated with one, and only one, admitted upstream service flow.
+
+Typically, an outgoing user data packet is submitted by an upper layer protocol (such as the forwarding bridge of a CM) for transmission on the cable MAC interface. The packet is compared against a set of classifiers. The matching classifier for the packet identifies the corresponding service flow via the service flow ID (SFID). In the case where more than one classifier matches the packet, the highest priority classifier is chosen.
+
+The classifier matching a packet may be associated with a payload header suppression rule. A PHS rule provides details on how header bytes of a packet PDU can be omitted, replaced with a payload header suppression index for transmission, and subsequently regenerated at the receiving end. PHS rules are indexed by the combination of {SFID, PHSI} (refer to clause 10.4). When a service flow is deleted, all classifiers and any associated PHS rules referencing it MUST also be deleted.
+
+The service class is an optional object that MUST be implemented at the CMTS. It is referenced by an ASCII name which is intended for provisioning purposes. A service class is defined in the CMTS to have a particular QoS parameter Set. A service flow may contain a reference to the service class name that selects all of the QoS parameters of the service class. The service flow QoS parameter sets may augment and even override the QoS parameter settings of the service class, subject to authorization by the CMTS (refer to clause C.2.2.5).
+
+If a packet has already been determined by upper layer policy mechanisms to be associated with a particular service class name/priority combination, that combination associates the packet with a particular service flow directly (refer to clause 10.1.6.1). The upper layer may also be aware of the particular service flows in the MAC sublayer, and may have assigned the packet directly to a service flow. In these cases, a user data packet is considered to be directly associated with a service flow as selected by the upper layer. This is depicted with the dashed arrow in Figure 10-4 (refer to Appendix I).
+
+### 10.1.3 Service classes
+
+The QoS attributes of a service flow may be specified in two ways: either by explicitly defining all attributes, or implicitly by specifying a **service class name**. A service class name is a string which the CMTS associates with a QoS parameter set. It is described further below.
+
+The service class serves the following purposes:
+
+- 1) It allows operators, who so wish, to move the burden of configuring service flows from the provisioning server to the CMTS. Operators provision the modems with the service class name; the implementation of the name is configured at the CMTS. This allows operators to modify the implementation of a given service to local circumstances without changing modem provisioning. For example, some scheduling parameters may need to be tweaked differently for two different CMTSs to provide the same service. As another example, service profiles could be changed by time of day.
+- 2) It allows CMTS vendors to provide class-based-queuing if they choose, where service flows compete within their class and classes compete with each other for bandwidth.
+- 3) It allows higher-layer protocols to create a service flow by its service class name. For example, telephony signalling may direct the CM to instantiate any available provisioned service flow of class "G711".
+- 4) It allows packet classification policies to be defined which refer to a desired service class, without having to refer to a particular service flow instance of that class.
+
+NOTE – The service class is optional: the flow scheduling specification may always be provided in full; a service flow may belong to no service class whatsoever. CMTS implementations MAY treat such "unclassed" flows differently from "classed" flows with equivalent parameters.
+
+Any service flow MAY have each of its QoS parameter sets specified in any of three ways:
+
+- by explicitly including all traffic parameters;
+
+- by indirectly referring to a set of traffic parameters by specifying a service class name;
+- by specifying a service class name along with modifying parameters.
+
+The service class name is "expanded" to its defined set of parameters at the time the CMTS successfully admits the service flow. The service class expansion can be contained in the following CMTS-originated messages: Registration response, DSA-REQ, DSC-REQ, DSA-RSP and DSC-RSP. In all of these cases, the CMTS MUST include a service flow encoding that includes the service class name and the QoS parameter set of the service class. If a CM-initiated request contained any supplemental or overriding service flow parameters, a successful response MUST also include these parameters.
+
+When a service class name is given in an admission or activation request, the returned QoS parameter set may change from activation to activation. This can happen because of administrative changes to the service class' QoS parameter set at the CMTS. If the definition of a service class name is changed at the CMTS (e.g., its associated QoS parameter set is modified), it has no effect on the QoS parameters of existing service flows associated with that service class. A CMTS MAY initiate DSC transactions to existing service flows that reference the service class name to affect the changed service class definition.
+
+When a CM uses the service class name to specify the admitted QoS parameter set, the expanded set of TLV encodings of the service flow will be returned to the CM in the response message (REG-RSP, DSA-RSP or DSC-RSP). Use of the service class name later in the activation request may fail if the definition of the service class name has changed and the new required resources are not available. Thus, the CM SHOULD explicitly request the expanded set of TLVs from the response message in its later activation request.
+
+#### 10.1.4 Authorization
+
+Every change to the service flow QoS parameters MUST be approved by an authorization module. This includes every REG-REQ or DSA-REQ message to create a new service flow, and every DSC-REQ message to change a QoS parameter set of an existing service flow. Such changes include requesting an admission control decision (e.g., setting the AdmittedQosParamSet) and requesting activation of a service flow (e.g., setting the ActiveQosParamSet). Reduction requests regarding the resources to be admitted or activated are also checked by the authorization module, as are requests to add or change the classifiers.
+
+In the static authorization model, the authorization module receives all registration messages and stores the provisioned status of all "deferred" service flows. Admission and activation requests for these provisioned service flows will be permitted as long as the admitted QoS parameter set is a subset of the provisioned QoS parameter set, and the active QoS parameter set is a subset of the admitted QoS parameter set. Requests to change the provisioned QoS parameter set will be refused, as will requests to create new dynamic service flows. This defines a static system where all possible services are defined in the initial configuration of each CM.
+
+In the dynamic authorization model, the authorization module not only receives all registration messages, but also communicates through a separate interface to an independent policy server. This policy server may provide to the authorization module advance notice of upcoming admission and activation requests, and specifies the proper authorization action to be taken on those requests. Admission and activation requests from a CM are then checked by the authorization module to ensure that the ActiveQosParamSet being requested is a subset of the set provided by the policy server. Admission and activation requests from a CM that are signalled in advance by the external policy server are permitted. Admission and activation requests from a CM that are not pre-signalled by the external policy server may result in a real-time query to the policy server, or may be refused.
+
+During registration, the CM MUST send to the CMTS the authenticated set of TLVs derived from its configuration file which defines the provisioned QoS parameter set. Upon receipt and
+
+verification at the CMTS, these are handed to the authorization module within the CMTS. The CMTS MUST be capable of caching the provisioned QoS parameter set, and MUST be able to use this information to authorize dynamic flows which are a subset of the provisioned QoS parameter set. The CMTS SHOULD implement mechanisms for overriding this automated approval process (such as described in the dynamic authorization model). For example:
+
+- Deny all requests whether or not they have been pre-provisioned.
+- Define an internal table with a richer policy mechanism but seeded by the configuration file information.
+- Refer all requests to an external policy server.
+
+### 10.1.5 Types of service flows
+
+It is useful to think about three basic types of service flows. This clause describes these three types of service flows in more detail. However, it is important to note that there are more than just these three basic types (refer to clause C.2.2.3.5).
+
+#### 10.1.5.1 Provisioned service flows
+
+A service flow may be provisioned but not immediately activated (sometimes called "deferred"). That is, the description of any such service flow in the TFTP configuration file contains an attribute which provisions but defers activation and admission (refer to clause C.2.2.3.5). During registration, the CMTS assigns a service flow ID for such a service flow but does not reserve resources. The CMTS MAY also require an exchange with a policy module prior to admission.
+
+As a result of external action beyond the scope of this Recommendation (e.g., [ITU-T J.162]), the CM MAY choose to activate a provisioned service flow by passing the service flow ID and the associated QoS parameter sets. The CM MUST also provide any applicable classifiers. If authorized and resources are available, the CMTS MUST respond by assigning a unique unicast SID for the upstream service flow. The CMTS MAY deactivate the service flow, but SHOULD NOT delete the service flow during the CM registration epoch.
+
+As a result of external action beyond the scope of this Recommendation (e.g., [ITU-T J.162]), the CMTS MAY choose to activate a service flow by passing the service flow ID as well as the SID and the associated QoS parameter sets. The CMTS MUST also provide any applicable classifiers. The CMTS MAY deactivate the service flow, but SHOULD NOT delete the service flow during the CM registration epoch. Such a provisioned service flow MAY be activated and deactivated many times (through DSC exchanges). In all cases, the original service flow ID MUST be used when reactivating the service flow.
+
+#### 10.1.5.2 Admitted service flows
+
+This protocol supports a two-phase activation model which is often utilized in telephony applications. In the two-phase activation model, the resources for a "call" are first "admitted," and then once the end-to-end negotiation is completed (e.g., called party's gateway generates an "off-hook" event) the resources are "activated." Such a two-phase model serves the purposes of:
+
+- a) conserving network resources until a complete end-to-end connection has been established;
+- b) performing policy checks and admission control on resources as quickly as possible, and, in particular, before informing the far end of a connection request; and
+- c) preventing several potential theft-of-service scenarios.
+
+For example, if an upper-layer service were using unsolicited grant service, and the addition of upper-layer flows could be adequately provided by increasing the grants per interval QoS parameter, then the following might be used. When the first upper-layer flow is pending, the CM issues a DSA-Request with the admit grants per interval parameter equal to one, and the activate grants per interval parameter equal to zero. Later, when the upper-layer flow becomes active, it
+
+issues a DSC-Request with the instance of the activate grants per interval parameter equal to one. Admission control was performed at the time of the reservation, so the later DSC-Request, having the activate parameters within the range of the previous reservation, is guaranteed to succeed. Subsequent upper-layer flows would be handled in the same way. If there were three upper-layer flows establishing connections, with one flow already active, the service flow would have admit(ted) grants per interval equal to four, and active grants per interval equal to one.
+
+An activation request of a service flow where the new ActiveQosParamSet is a subset of the AdmittedQosParamSet and no new classifiers are being added MUST be allowed (except in the case of catastrophic failure). An admission request where the AdmittedQosParamSet is a subset of the previous AdmittedQosParamSet, so long as the ActiveQosParamSet remains a subset of the AdmittedQosParamSet, MUST succeed.
+
+A service flow that has resources assigned to its AdmittedQosParamSet, but whose resources are not yet completely activated, is in a transient state. A timeout value MUST be enforced by the CMTS that requires service flow activation within this period (refer to clause C.2.2.5.7). If service flow activation is not completed within this interval, the assigned resources in excess of the active QoS parameters MUST be released by the CMTS.
+
+It is possible in some applications that a long-term reservation of resources is necessary or desirable. For example, placing a telephone call on hold should allow any resources in use for the call to be temporarily allocated to other purposes, but these resources must be available for resumption of the call later. The AdmittedQosParamSet is maintained as "soft state" in the CMTS; this state must be refreshed periodically for it to be maintained without the above timeout releasing the non-activated resources. This refresh MAY be signalled with a periodic DSC-REQ message with identical QoS parameter sets, or MAY be signalled by some internal mechanism within the CMTS outside of the scope of this Recommendation (e.g., by the CMTS monitoring RSVP refresh messages). Every time a refresh is signalled to the CMTS, the CMTS MUST refresh the "soft state."
+
+### 10.1.5.3 Active service flows
+
+A service flow that has a non-NULL set of ActiveQosParameters is said to be an active service flow. It is requesting24 and being granted bandwidth for transport of data packets. An admitted service flow may be made active by providing an ActiveQosParamSet, signalling the resources actually desired at the current time. This completes the second stage of the two-phase activation model (refer to clause 10.1.5.2).
+
+A service flow may be provisioned and immediately activated. This is the case for the primary service flows. It is also typical of service flows for monthly subscription services, etc. These service flows are established at registration time and MUST be authorized by the CMTS based on the CMTS MIC. These service flows MAY also be authorized by the CMTS authorization module.
+
+Alternatively, a service flow may be created dynamically and immediately activated. In this case, two-phase activation is skipped and the service flow is available for immediate use upon authorization.
+
+### 10.1.6 Service flows and classifiers
+
+The basic model is that the classifiers associate packets into exactly one service flow. The service flow encodings provide the QoS parameters for treatment of those packets on the RF interface. These encodings are described in clause C.2.
+
+In the upstream direction, the CM MUST classify upstream packets to active service flows. The CMTS MUST classify downstream traffic to active downstream service flows. There MUST be a default downstream service flow for otherwise unclassified broadcast and multicast traffic.
+
+---
+
+24 According to its request/transmission policy (refer to clause C.2.2.6.3).
+
+The CMTS polices packets in upstream service flows to ensure the integrity of the QoS parameters and the packet's ToS value. When the rate at which packets are sent is greater than the policed rate at the CMTS, then these packets MAY be dropped by the CMTS (refer to clause C.2.2.5.2). When the value of the ToS byte is incorrect, the CMTS (based on policy) MUST police the stream by overwriting the ToS byte (refer to clause C.2.2.6.10).
+
+It may not be possible for the CM to forward certain upstream packets on certain service flows. In particular, a service flow using unsolicited grant service with fragmentation disabled cannot be used to forward packets larger than the grant size. If a packet is classified to a service flow on which it cannot be transmitted, the CM MUST either transmit the packet on the primary service flow or discard the packet depending on the request/transmission policy of the service flow to which the packet was classified.
+
+MAC management messages may only be matched by a classifier that contains a clause C.2.1.6.3 "ethertype/DSAP/MacType" parameter encoding and when the "type" field of the MAC management message header (see clause 8.3.1) matches that parameter. One exception is that the primary SID MUST be used for periodic ranging, as specified in clause 8.1.2.3, even if a classifier matches the upstream RNG-REQ message of periodic ranging. In the absence of any classifier matching a MAC management message, it SHOULD be transmitted on the primary service flow. Other than those MAC message types precluded from classification in clause C.2.1.6.3, a CM or CMTS MAY forward an otherwise unclassified MAC message on any service flow in an implementation-specific manner.
+
+Although MAC management messages are subject to classification, they are not considered part of any service flow. Transmission of MAC management messages MUST NOT influence any QoS calculations of the service flow to which they are classified. Delivery of MAC management messages is implicitly influenced by the attributes of the associated service flow.
+
+#### 10.1.6.1 Policy-based classification and service classes
+
+As noted in Appendix I, there are a variety of ways in which packets may be enqueued for transmission at the MAC service interface. At one extreme are embedded applications that are tightly bound to a particular payload header suppression rule (refer to clause 10.4) and which forego more general classification by the MAC. At the other extreme are general transit packets of which nothing is known until they are parsed by the MAC classification rules. Another useful category is traffic to which policies are applied by a higher-layer entity and then passed to the MAC for further classification to a particular service flow.
+
+Policy-based classification is, in general, beyond the scope of this Recommendation. One example might be the docsDevFilterIpPolicyTable defined in the Cable Device MIB [b-RFC 2669]. Such policies may tend to be longer-lived than individual service flows and MAC classifiers and so it is appropriate to layer the two mechanisms, with a well-defined interface between policies and MAC service flow classification.
+
+The interface between the two layers is the addition of two parameters at the MAC transmission request interface. The two parameters are a service class name and a rule priority that is applied to matching the service class name. The policy priority is from the same number space as the packet classifier priority of the packet-matching rules used by MAC classifiers. The MAC classification algorithm is now:
+
+```
+MAC_DATA.request( PDU, ServiceClassName, RulePriority )
+TxServiceFlowID = FIND_FIRST_SERVICE_FLOW_ID (ServiceClassName)
+SearchID = SEARCH_CLASSIFIER_TABLE (All Priority Levels)
+IF (SearchID not NULL and Classifier.RulePriority >= MAC_DATA.RulePriority)
+ TxServiceFlowID = SearchID
+IF (TxServiceFlowID = NULL)
+ TRANSMIT_PDU (PrimaryServiceFlowID)
+```
+
+ELSE
+
+TRANSMIT\_PDU (TxServiceFlowID)
+
+While policy priority competes with packet classifier priority and its choice might in theory be problematic, it is anticipated that well-known ranges of priorities will be chosen to avoid ambiguity. In particular, dynamically-added classifiers **MUST** use the priority range 64-191. Classifiers created as part of registration, as well as policy-based classifiers, may use zero through 255, but **SHOULD** avoid the dynamic range.
+
+NOTE – Classification within the MAC sublayer is intended to simply associate a packet with a service flow. If a packet is intended to be dropped it **MUST** be dropped by the higher-layer entity and not delivered to the MAC sublayer.
+
+### 10.1.7 General operation
+
+#### 10.1.7.1 Static operation
+
+Static configuration of classifiers and service flows uses the registration process. A provisioning server provides the CM with configuration information. The CM passes this information to the CMTS in a registration request. The CMTS adds information and replies with a registration response. The CM sends a registration acknowledge to complete registration.
+
+
+
+```
+sequenceDiagram
+ participant CM
+ participant PS as Provisioning Server
+ participant CMTS
+ Note left of CM: J.122_F10-5
+ PS->>CM: TFTP Configuration
+ CM->>CMTS: Registration Request
+ CMTS->>CM: Registration Response
+ CM->>CMTS: Registration Acknowledge
+```
+
+The diagram illustrates the registration message flow. It features three vertical lifelines: CM (Client Module), Provisioning Server, and CMTS (Cable Modem Termination System). The sequence of messages is as follows: 1. TFTP Configuration: A message from the Provisioning Server to the CM. 2. Registration Request: A message from the CM to the CMTS. 3. Registration Response: A message from the CMTS to the CM. 4. Registration Acknowledge: A message from the CM to the CMTS. The diagram is labeled 'J.122\_F10-5' at the bottom right.
+
+Sequence diagram showing the registration message flow between a CM, a Provisioning Server, and a CMTS.
+
+**Figure 10-5 – Registration message flow**
+
+A TFTP configuration file consists of one or more instances of classifiers and service flow encodings. Classifiers are loosely ordered by 'priority'. Each classifier refers to a service flow via a 'service flow reference'. Several classifiers may refer to the same service flow. Additionally, more than one classifier may have the same priority, and in this case, the particular classifier used is not defined.
+
+**Table 10-1 – TFTP file contents**
+
+| Items | Point to service flow reference | Service flow reference | Service flow ID |
+|-----------------------------------------------------------------------------------------|---------------------------------|------------------------|-----------------|
+| Upstream classifiers Each containing a service flow reference (pointer) | 1..n | | |
+| Downstream classifiers Each containing a service flow reference (pointer) | (n + 1)..q | | |
+| Service flow encodings Immediate activation requested, upstream | | 1..m | None yet |
+| Service flow encodings Provisioned for later activation requested, upstream | | (m + 1)..n | None yet |
+| Service flow encodings Immediate activation requested, downstream | | (n + 1)..p | None yet |
+| Service flow encodings Provisioned for later activation requested, downstream | | (p + 1)..q | None yet |
+
+Service flow encodings contain either a full definition of service attributes (omitting defaultable items if desired) or a service class name. A service class name is an ASCII string which is known at the CMTS and which indirectly specifies a set of QoS parameters (refer to clauses 10.1.3 and C.2.2.3.4)
+
+NOTE – At the time of the TFTP configuration file, service flow references exist as defined by the provisioning server. Service flow identifiers do not yet exist because the CMTS is unaware of these service flow definitions.
+
+The registration request packet contains downstream classifiers (if to be immediately activated) and all inactive service flows. The configuration file, and thus the registration request, generally does not contain a downstream classifier if the corresponding service flow is requested with deferred activation. This allows for late binding of the classifier when the flow is activated.
+
+**Table 10-2 – Registration request contents**
+
+| Items | Point to service flow reference | Service flow reference | Service flow ID |
+|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|------------------------|-----------------|
+| Upstream classifiers Each containing a service flow reference (pointer) | 1..n | | |
+| Downstream classifiers Each containing a service flow reference (pointer) | (n + 1)..p | | |
+| Service flow encodings Immediate activation requested, upstream. May specify explicit attributes or service class name. | | 1..m | None yet |
+| Service flow encodings Provisioned for later activation requested, upstream. Explicit attributes or service class name. | | (m + 1)..n | None yet |
+| Service flow encodings Immediate activation requested, downstream. Explicit attributes or service name. | | (n + 1)..p | None yet |
+| Service flow encodings Provisioned for later activation requested, downstream. Explicit attributes or service name. | | (p + 1)..q | None yet |
+
+The registration response sets the QoS parameter sets according to the quality of service parameter set type in the registration request.
+
+The registration response preserves the service flow reference attribute, so that the service flow reference can be associated with SFID and/or SID.
+
+**Table 10-3 – Registration response contents**
+
+| Items | Service flow reference | Service flow identifier | Service identifier |
+|----------------------------------------------------------|------------------------|-------------------------|--------------------|
+| Active upstream service flows explicit attributes | 1..m | SFID | SID |
+| Provisioned upstream service flows explicit attributes | (m + 1)..n | SFID | Not yet |
+| Active downstream service flows explicit attributes | (n + 1)..p | SFID | N/A |
+| Provisioned downstream service flows explicit attributes | (p + 1)..q | SFID | N/A |
+
+The SFID is chosen by the CMTS to identify a downstream or upstream service flow that has been authorized but not activated. A DSC-Request from a modem to admit or activate a provisioned service flow contains its SFID. If it is a downstream flow then the downstream classifier is also included.
+
+### 10.1.7.2 Dynamic service flow Creation – CM-initiated
+
+Service flows may be created by the dynamic service addition process, as well as through the registration process outlined above. The dynamic service addition may be initiated by either the CM or the CMTS, and may create one upstream and/or one downstream dynamic service flow(s). A three-way handshake is used to create service flows. The CM-initiated protocol is illustrated in Figure 10-6 and described in detail in clause 11.4.2.1.
+
+
+
+```
+
+sequenceDiagram
+ participant CM
+ participant CMTS
+ CM->>CMTS: DSA-Request
+ CMTS-->>CM: DSA-Response
+ CM->>CMTS: DSA-Acknowledge
+
+```
+
+Sequence diagram for CM-initiated dynamic service addition. A Client Module (CM) sends a DSA-Request to a Cable Modem Termination System (CMTS). The CMTS responds with a DSA-Response, and the CM replies with a DSA-Acknowledge. The diagram is labeled J.122\_F10-6.
+
+**Figure 10-6 – Dynamic service addition message flow – CM-initiated**
+
+A DSA-Request from a CM contains service flow reference(s), QoS parameter set(s) (marked either for admission-only or for admission and activation) and any required classifiers.
+
+### 10.1.7.3 Dynamic service flow creation – CMTS-initiated
+
+A DSA-Request from a CMTS contains service flow identifier(s) for one upstream and/or one downstream service flow, possibly a SID, set(s) of active or admitted QoS parameters, and any required classifier(s). The protocol is as illustrated in Figure 10-7 and is described in detail in clause 11.4.2.2.
+
+
+
+```
+
+sequenceDiagram
+ participant CMTS
+ participant CM
+ CMTS->>CM: DSA-Request
+ CM-->>CMTS: DSA-Response
+ CMTS->>CM: DSA-Acknowledge
+
+```
+
+Sequence diagram for CMTS-initiated dynamic service addition. A Cable Modem Termination System (CMTS) sends a DSA-Request to a Client Module (CM). The CM responds with a DSA-Response, and the CMTS replies with a DSA-Acknowledge. The diagram is labeled J.122\_F10-7.
+
+**Figure 10-7 – Dynamic service addition message flow – CMTS-initiated**
+
+### 10.1.7.4 Dynamic service flow modification and deletion
+
+In addition to the methods presented above for creating service flows, protocols are defined for modifying and deleting service flows. Refer to clauses 11.4.3 and 11.4.4.
+
+Both provisioned and dynamically created service flows are modified with the DSC message, which can change the admitted and active QoS parameter sets of the flow. The DSC can also add, replace, or delete classifiers, and add, add parameters to, or delete PHS Rules.
+
+A successful DSC transaction changes a service flow's QoS parameters by replacing both the admitted and active QoS parameter sets. If the message contains only the admitted set, the active set is set to null and the flow is deactivated. If the message contains neither set ('000' value used for quality of service parameter set type, see clause C.2.2.3.5) then both sets are set to null and the flow is de-admitted. When the message contains both QoS parameter sets, the admitted set is checked first and, if admission control succeeds, the active set in the message is checked against the admitted set in the message to ensure that it is a subset (see clause 10.1.1.1). If all checks are successful, the QoS parameter sets in the message become the new admitted and active QoS
+
+parameter sets for the service flow. If either of the checks fails, the DSC transaction fails and the service flow QoS parameter sets are unchanged.
+
+## 10.2 Upstream service flow scheduling services
+
+The following clauses define the basic upstream service flow scheduling services and list the QoS parameters associated with each service. A detailed description of each QoS parameter is provided in Annex C. Annex C also discusses how these basic services and QoS parameters can be combined to form new services, such as committed information rate (CIR) service.
+
+Scheduling services are designed to improve the efficiency of the poll/grant process. By specifying a scheduling service and its associated QoS parameters, the CMTS can anticipate the throughput and latency needs of the upstream traffic and provide polls and/or grants at the appropriate times.
+
+Each service is tailored to a specific type of data flow as described below. The basic services comprise: unsolicited grant service (UGS), real-time polling service (rtPS), unsolicited grant service with activity detection (UGS-AD), non-real-time polling service (nrtPS) and best effort (BE) service. Table 10-4 shows the relationship between the scheduling services and the related QoS parameters.
+
+### 10.2.1 Unsolicited grant service
+
+The unsolicited grant service (UGS) is designed to support real-time service flows that generate fixed size data packets on a periodic basis, such as voice over IP. The service offers fixed-size grants on a real-time periodic basis, which eliminate the overhead and latency of CM requests and assure that grants will be available to meet the flow's real-time needs. The CMTS MUST provide fixed-size data grants at periodic intervals to the service flow. In order for this service to work correctly, the request/transmission policy (refer to clause C.2.2.6.3) setting MUST be such that the CM is prohibited from using any contention request or request/data opportunities and the CMTS SHOULD NOT provide any unicast request opportunities. The request/transmission policy MUST also prohibit piggyback requests. This will result in the CM only using unsolicited data grants for upstream transmission. All other bits of the request/transmission policy are not relevant to the fundamental operation of this scheduling service and should be set according to network policy. The key service parameters are the unsolicited grant size, the nominal grant interval, the tolerated grant jitter and the request/transmission policy (refer to Appendix VI).
+
+The unsolicited grant synchronization header (UGSH) in the service flow EH element (refer to clause 8.2.6.3.2) is used to pass status information from the CM to the CMTS regarding the state of the UGS service flow. The most significant bit of the UGSH is the queue indicator (QI) flag. When the QI flag is set, it indicates a rate overrun condition for the service flow. When the QI flag is clear, it indicates a rate non-overrun condition for the service flow. The QI flag allows the CMTS to provide for a dynamic rate compensation function by issuing additional grants.
+
+The CM MUST set the QI flag when it detects that the packet reception rate is greater than the upstream transmission rate. The CM MUST clear the QI flag when it detects that the packet reception rate is equal to or less than the upstream transmission rate and the queued packet backlog is cleared.
+
+The number of packets already queued for upstream transmission is a measure of the rate differential between received and transmitted packets. The CM SHOULD set the QI flag when the number of packets queued is greater than the number of grants per interval parameter of the active QoS set. The CM SHOULD clear the QI flag when the number of packets queued is less than or equal to the number of grants per interval parameter of the active QoS set. The QI flag of each packet MAY be set either at the time the packet is received and queued or at the time the packet is dequeued and transmitted.
+
+The CM MAY set/clear the QI flag using a threshold of two times the number of grants per interval parameter of the active QoS set. Alternatively, the CM MAY provide hysteresis by setting the QI flag using a threshold of two times the number of grants per interval, then clearing it using a threshold of one times the number of grants per interval.
+
+The CMTS MUST NOT allocate more grants per nominal grant interval than the grants per interval parameter of the active QoS parameter set, excluding the case when the QI bit of the UGSH is set. In this case, the CMTS SHOULD grant up to 1% additional bandwidth for clock rate mismatch compensation. If the CMTS grants additional bandwidth, it MUST limit the total number of bytes forwarded on the flow during any time interval to $\text{Max}(T)$ , as described in the expression:
+
+$$\text{Max}(T) = T \times (R \times 1.01) + 3B$$
+
+where:
+
+$\text{Max}(T)$ = the maximum number of bytes transmitted on the flow over a time $T$ (in units of seconds)
+
+$R$ = $(\text{grant\_size} \times \text{grants\_per\_interval}) / \text{nominal\_grant\_interval}$
+
+$B$ = $\text{grant\_size} \times \text{grants\_per\_interval}$
+
+The active grants field of the UGSH is ignored with UGS service. The CMTS policing of the service flow remains unchanged.
+
+### 10.2.2 Real-time polling service
+
+The real-time polling service (rtPS) is designed to support real-time service flows that generate variable-size data packets on a periodic basis, such as MPEG video. The service offers real-time, periodic, unicast request opportunities, which meet the flow's real-time needs and allow the CM to specify the size of the desired grant. This service requires more request overhead than UGS, but supports variable grant sizes for optimum data transport efficiency.
+
+The CMTS MUST provide periodic unicast request opportunities. In order for this service to work correctly, the request/transmission policy setting (refer to clause C.2.2.6.3) SHOULD be such that the CM is prohibited from using any contention request or request/data opportunities. The request/transmission policy SHOULD also prohibit piggyback requests. The CMTS MAY issue unicast request opportunities as prescribed by this service even if a grant is pending. This will result in the CM using only unicast request opportunities in order to obtain upstream transmission opportunities (the CM could still use unsolicited data grants for upstream transmission as well). All other bits of the request/transmission policy are not relevant to the fundamental operation of this scheduling service and should be set according to network policy. The key service parameters are the nominal polling interval, the tolerated poll jitter and the request/transmission policy.
+
+### 10.2.3 Unsolicited grant service with activity detection
+
+The unsolicited grant service with activity detection (UGS-AD) is designed to support UGS flows that may become inactive for substantial portions of time (i.e., tens of milliseconds or more), such as voice over IP with silence suppression. The service provides unsolicited grants when the flow is active and unicast polls when the flow is inactive. This combines the low overhead and low latency of UGS with the efficiency of rtPS. Though USG/AD combines UGS and rtPS, only one scheduling service is active at a time.
+
+The CMTS MUST provide periodic unicast grants when the flow is active but MUST revert to providing periodic unicast request opportunities when the flow is inactive. (The CMTS can detect flow inactivity by detecting unused grants. However, the algorithm for detecting a flow changing from an active to an inactive state is dependent on the CMTS implementation.) In order for this service to work correctly, the request/transmission policy setting (refer to clause C.2.2.6.3) MUST be such that the CM is prohibited from using any contention request or request/data opportunities. The request/transmission policy MUST also prohibit piggyback requests. This results in the CM
+
+using only unicast request opportunities in order to obtain upstream transmission opportunities. However, the CM will use unsolicited data grants for upstream transmission as well. All other bits of the request/transmission policy are not relevant to the fundamental operation of this scheduling service and should be set according to network policy. The key service parameters are the nominal polling interval, the tolerated poll jitter, the nominal grant interval, the tolerated grant jitter, the unsolicited grant size and the request/transmission policy.
+
+In UGS-AD service, when restarting UGS after an interval of rtPS, the CMTS SHOULD provide additional grants in the first (and/or second) grant interval such that the CM receives a total of one grant for each grant interval from the time the CM requested restart of UGS, plus one additional grant (refer to Appendix VI). Because the service flow is provisioned as a UGS flow with a specific grant interval and grant size, when restarting UGS, the CM MUST NOT request a different sized grant than the already provisioned UGS flow. As with any service flow, changes can only be requested with a DSC command. If the restarted activity requires more than one grant per interval, the CM MUST indicate this in the active grants field of the UGSH beginning with the first packet sent.
+
+The service flow extended header element allows for the CM to dynamically state how many grants per interval are required to support the number of flows with activity present. In UGS-AD, the CM MAY use the queue indicator bit in the UGSH. The remaining seven bits of the UGSH define the active grants field. This field defines the number of grants within a nominal grant interval that this service flow currently requires. When using UGS-AD, the CM MUST indicate the number of requested grants per nominal grant interval in this field. The active grants field of the UGSH is ignored with UGS without activity detection. This field allows the CM to signal to the CMTS to dynamically adjust the number of grants per interval that this UGS service flow is actually using. The CM MUST NOT request more than the number of grants per interval in the ActiveQosParamSet.
+
+If the CMTS allocates additional bandwidth in response to the QI bit, it MUST use the same rate-limiting formula as UGS, but the formula only applies to steady state periods where the CMTS has adjusted the grants\_per\_interval to match the active\_grants requested by the CM.
+
+When the CM is receiving unsolicited grants and it detects no activity on the service flow, it MAY send one packet with the active grants field set to zero grants and then cease transmission. Because this packet may not be received by the CMTS, when the service flow goes from inactive to active the CM MUST be able to restart transmission with either polled requests or unsolicited grants.
+
+#### **10.2.4 Non-real-time polling service**
+
+The non-real-time polling service (nrtPS) is designed to support non real-time service flows that require variable size data grants on a regular basis, such as high bandwidth FTP. The service offers unicast polls on a regular basis, which assures that the flow receives request opportunities even during network congestion. The CMTS typically polls nrtPS SIDs on an (periodic or non-periodic) interval on the order of one second or less.
+
+The CMTS MUST provide timely unicast request opportunities. In order for this service to work correctly, the request/transmission policy setting (refer to clause C.2.2.6.3) SHOULD be such that the CM is allowed to use contention request opportunities. This will result in the CM using contention request opportunities as well as unicast request opportunities and unsolicited data grants. All other bits of the request/transmission policy are not relevant to the fundamental operation of this scheduling service and should be set according to network policy. The key service parameters are nominal polling interval, minimum reserved traffic rate, maximum sustained traffic rate, request/transmission policy and traffic priority.
+
+### 10.2.5 Best effort service
+
+The intent of the best effort (BE) service is to provide efficient service to best effort traffic. In order for this service to work correctly, the request/transmission policy setting SHOULD be such that the CM is allowed to use contention request opportunities. This will result in the CM using contention request opportunities as well as unicast request opportunities and unsolicited data grants. All other bits of the request/transmission policy are not relevant to the fundamental operation of this scheduling service and should be set according to network policy. The key service parameters are the minimum reserved traffic rate, the maximum sustained traffic rate, and the traffic priority.
+
+### 10.2.6 Other services
+
+#### 10.2.6.1 Committed information rate (CIR)
+
+A committed information rate (CIR) service can be defined a number of different ways. For example, it could be configured by using a best effort service with a minimum reserved traffic rate or a nrtPS with a minimum reserved traffic rate.
+
+### 10.2.7 Parameter applicability for upstream service scheduling
+
+Table 10-4 summarizes the relationship between the scheduling services and key QoS parameters. A detailed description of each QoS parameter is provided in Annex C.
+
+**Table 10-4 – Parameter applicability for upstream service scheduling**
+
+| Service flow parameter | Best effort | Non-real-time polling | Real-time polling | Unsolicited grant | Unsolicited grant with activity detection |
+|------------------------------------|--------------------------|-------------------------|-------------------------|------------------------|-------------------------------------------|
+| Miscellaneous | | | | | |
+| • Traffic priority | Optional, default = 0 | Optional default = 0 | N/A a) | N/A | N/A |
+| • Max. concatenated burst | Optional | Optional | Optional | N/A | N/A |
+| • Upstream scheduling service type | Optional, default = 2 | Mandatory | Mandatory | Mandatory | Mandatory |
+| • Request/transmission policy | Optional, default = 0 | Mandatory | Mandatory | Mandatory | Mandatory |
+| Maximum rate | | | | | |
+| • Max. sustained traffic rate | Optional, default = 0 | Optional default = 0 | Optional default = 0 | N/A | N/A |
+| • Max. traffic burst | Optional, default = 1522 | Optional default = 1522 | Optional default = 1522 | N/A | N/A |
+| Minimum rate | | | | | |
+| • Min. reserved traffic rate | Optional, default = 0 | Optional default = 0 | Optional default = 0 | N/A | N/A |
+| • Assumed minimum packet size | Optional c) | Optional c) | Optional c) | Optional c) | Optional c) |
+| Grants | | | | | |
+| • Unsolicited grant size | N/A | N/A | N/A | Mandatory | Mandatory |
+| • Grants per interval | N/A | N/A | N/A | Mandatory | Mandatory |
+| • Nominal grant interval | N/A | N/A | N/A | Mandatory | Mandatory |
+
+**Table 10-4 – Parameter applicability for upstream service scheduling**
+
+| Service flow parameter | Best effort | Non-real-time polling | Real-time polling | Unsolicited grant | Unsolicited grant with activity detection |
+|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|-------------------------|-------------------------|-------------------|-------------------------------------------|
+| • Tolerated grant jitter | N/A | N/A | N/A | Mandatory | Mandatory |
+| Polls | | | | | |
+| • Nominal polling interval | N/A | Optional (c) | Mandatory | N/A | Optional b) |
+| • Tolerated poll jitter | N/A | N/A | Optional (c) | N/A | Optional (c) |
+| a) N/A means not applicable to this service flow scheduling type. If included in a request for a service flow of this service flow scheduling type, this request MUST be denied. b) Default is same as nominal grant interval. c) Default is CMTS-specific. | | | | | |
+
+### 10.2.8 CM transmit behaviour
+
+In order for these services to function correctly, all that is required of the CM in regards to its transmit behaviour for a service flow is for it to follow the rules specified in clause 9.4.3 and the request/transmission policy specified for the service flow.
+
+## 10.3 Fragmentation
+
+Fragmentation is an upstream CM "modem capability". The CMTS MUST enable or disable this capability on a per-modem basis with a TLV in the registration response. The per-modem basis provides compatibility with DOCS 1.0 CMs. Once fragmentation is enabled for a DOCS 1.1 modem, fragmentation is enabled on a per-service flow basis via the request/transmission policy configuration settings. When enabled for a service flow, fragmentation is initiated by the CMTS when it grants bandwidth to a particular CM with a grant size that is smaller than the corresponding bandwidth request from the CM. This is known as a **partial grant**.
+
+### 10.3.1 CM fragmentation support
+
+Fragmentation is essentially encapsulation of a portion of a MAC frame within a fixed size fragmentation header and a fragment CRC. Concatenated PDUs, as well as single PDUs, are encapsulated in the same manner. Baseline privacy, if enabled, is performed on each fragment as opposed to the complete original MAC frame.
+
+The CM MUST perform fragmentation according to the flow diagram in Figure 10-8. The phrase "untransmitted portion of packet" in the flow diagram refers to the entire MAC frame when fragmentation has not been initiated, and to the remaining untransmitted portion of the original MAC frame when fragmentation has been initiated.
+
+
+
+```
+
+graph TD
+ Start([Start]) --> Await[Await frame arrival]
+ Await --> Request[Request Bandwidth for SIDx]
+ Request --> Process[Process MAP information elements]
+ Process --> GrantForSIDx{Grant for SIDx?}
+ GrantForSIDx -- No --> GrantPending{Grant pending?}
+ GrantPending -- Yes --> Backoff[Backoff and re-request for untransmitted portion of frame]
+ GrantPending -- No --> AckTimer{Ack timer expired?}
+ AckTimer -- Yes --> RetriesExhausted{Retries exhausted?}
+ RetriesExhausted -- Yes --> Discard1[Discard untransmitted portion of frame]
+ RetriesExhausted -- No --> Backoff
+ AckTimer -- No --> Backoff
+ Backoff --> Request
+ GrantForSIDx -- Yes --> GrantSmaller{Grant smaller than request or request remainder?}
+ GrantSmaller -- Yes --> FragmentationAllowed{Fragmentation allowed for this SID?}
+ FragmentationAllowed -- Yes --> CalcFragment[Calculate amount to fragment and bandwidth needed to transmit remainder (request remainder)]
+ CalcFragment --> AnotherGrant{Another grant or grant pending in MAP queue?}
+ AnotherGrant -- Yes --> SendFragmentZero[Send fragment with zero in the piggyback field]
+ AnotherGrant -- No --> SendFragmentRemainder[Send fragment with piggyback field set to request remainder]
+ FragmentationAllowed -- No --> DiscardGrant[Discard grant or send up request in granted slot]
+ GrantSmaller -- No --> AnotherFrame{Another frame in queue?}
+ AnotherFrame -- Yes --> SendUntransmittedNext[Send untransmitted portion of frame with request for next frame in piggyback field]
+ AnotherFrame -- No --> SendUntransmittedZero[Send untransmitted portion of frame with piggyback field(s)=0.]
+ SendFragmentZero --> Request
+ SendFragmentRemainder --> Request
+ DiscardGrant --> Request
+ SendUntransmittedNext --> Request
+ SendUntransmittedZero --> Request
+ Discard1 --> Request
+
+```
+
+Flowchart for CM fragmentation process. It starts with 'Start', followed by 'Await frame arrival', 'Request Bandwidth for SIDx', and 'Process MAP information elements'. The main decision loop checks 'Grant for SIDx?'. If 'Yes', it checks 'Grant smaller than request or request remainder?'. If 'Yes', it checks 'Fragmentation allowed for this SID?'. If 'Yes', it calculates fragmentation amount and checks 'Another grant or grant pending in MAP queue?'. Depending on the answer, it sends a fragment with zero or the request remainder in the piggyback field. If 'No' at any point, it checks 'Another frame in queue?'. If 'Yes', it sends the untransmitted portion with a request for the next frame. If 'No', it sends the untransmitted portion with piggyback field(s)=0. If 'No' to 'Grant for SIDx?', it checks 'Grant pending?'. If 'Yes', it goes to 'Backoff and re-request for untransmitted portion of frame'. If 'No', it checks 'Ack timer expired?'. If 'Yes', it checks 'Retries exhausted?'. If 'Yes', it discards the untransmitted portion. If 'No', it goes to 'Backoff and re-request for untransmitted portion of frame'. If 'No' to 'Ack timer expired?', it goes to 'Backoff and re-request for untransmitted portion of frame'.
+
+J.122\_F.10-8
+
+Figure 10-8 – CM fragmentation flowchart
+
+### 10.3.1.1 Fragmentation rules
+
+- 1) Any time fragmentation is enabled and the grant size is smaller than the request, the CM MUST fill the partial grant it receives with the maximum amount of data (fragment payload) possible accounting for fragmentation overhead and physical layer overhead.
+- 2) The CM MUST send up a piggyback request any time there is no later grant or grant pending for that SID in MAPs that have been received at the CM.
+- 3) If the CM is fragmenting a frame25, any piggyback request for the next fragment MUST be made in the BPI EHDR portion of the fragment header. Any piggyback request for a subsequent frame SHOULD be made in the BPI EHDR portion of the last fragment, but MAY be made in one of the extended headers inside the original frame. However, the same request MUST NOT be made in more than one place. Because the CMTS could ignore a request inside the original frame, making the request in the original frame may cause a loss of the request.
+- 4) In calculating bandwidth requests for the remainder of the frame (concatenated frame, if concatenated) that has been fragmented, the CM MUST request enough bandwidth to transmit the entire remainder of the frame plus the 16-byte fragment overhead and all associated physical layer overhead.
+- 5) If the CM does not receive a grant or grant pending within the ack time of sending a request, the CM MUST backoff and re-request for the untransmitted portion of the frame until the bandwidth is granted or the CM exceeds its retry threshold.
+- 6) If the CM exceeds its retry threshold while requesting bandwidth, the CM discards whatever portion of the frame was not previously transmitted.
+- 7) The CM MUST set the F bit and clear the L bit in the first fragment of a frame.
+- 8) The CM MUST clear the F and L bits in the fragment header for any fragments that occur between the first and last fragments of a frame.
+- 9) The CM MUST set the L bit and clear the F bit in the last fragment of a frame.
+- 10) The CM MUST increment the fragment sequence number sequentially for each fragment of a frame transmitted.
+- 11) If a frame is to be encrypted and the frame is fragmented, the frame is encrypted only at the fragment layer with encryption beginning immediately after the fragment header HCS and continuing through the fragment CRC.
+- 12) Frames sent in immediate data (request/data) regions MUST NOT be fragmented.
+
+### 10.3.2 CMTS fragmentation support
+
+At the CMTS, the fragment is processed similarly to an ordinary packet with the exception that the baseline privacy encryption starts just after the fragmentation header as opposed to being offset by 12 bytes.
+
+The CMTS has two modes it can use to perform fragmentation. The multiple grant mode assumes that the CMTS retains the state of the fragmentation. This mode allows the CMTS to have multiple partial grants outstanding for any given SID. The piggyback mode assumes the CMTS does NOT retain any fragmentation state. Only one partial grant is outstanding, so that the CM inserts the remaining amount into the piggyback field of the fragment header. The type of mode being used is determined by the CMTS. In all cases, the CM operates with a consistent set of rules.
+
+---
+
+25 'Frame' always refers to either frames with a single packet PDU or concatenated frames.
+
+### 10.3.2.1 Multiple grant mode
+
+A CMTS MUST support multiple grant mode or piggyback mode for performing fragmentation. A CMTS MAY support both fragmentation modes.
+
+Multiple grant mode allows the CMTS to break a request up into two or more grants in a single or over successive maps and it calculates the additional overhead required in the remaining partial grants to satisfy the request. In multiple grant mode, if the CMTS cannot grant the remainder in the current MAP, it MUST send a grant pending (zero length grant) in the current MAP and all subsequent MAPs to the CM until it can grant additional bandwidth. If there is no grant or grant pending in subsequent MAPs, the CM MUST re-request for the remainder. This re-request mechanism is the same as that used when a normal REQ does not receive a grant or grant pending within the ack time.
+
+If a CM receives a grant pending IE along with a fragment grant, it MUST NOT piggyback a request in the extended header of the fragment transmitted in that grant.
+
+In the case where the CM misses a grant and re-requests the remaining bandwidth, the CMTS MUST recover without dropping the frame.
+
+Due to the imprecision of the mini-slot to byte conversion process, the CMTS may not be able to calculate exactly the number of extra mini-slots needed to allow for fragmentation overhead. Also because it is possible for a CM to have missed a map with a partial grant, and thus to be requesting to send an unsent fragment rather than a new PDU, the CMTS cannot be certain whether the CM has already accounted for fragmentation overhead in a request. Therefore, the CMTS MUST make sure that any fragment payload remainder is at least one mini-slot greater than the number of mini-slots needed to contain the overhead for a fragment (16 bytes) plus the physical layer overhead necessary to transmit a minimum-sized fragment. Failure to do this may cause the CMTS to issue a grant that is not needed as the CM has completed transmission of the fragment payload remainder using the previous partial grant. This may cause the CM to get out of sync with the CMTS by inadvertently starting a new fragmentation. Also the CMTS needs to deal with the fact that with certain sets of physical layer parameters, the CM may request one more mini-slot than the maximum size of a short data grant, but not actually need that many mini-slots. This happens in the case where the CM needs to push the request size beyond the short data grant limit. The CMTS needs a policy to ensure that fragmenting such requests in multiple grant mode does not lead to unneeded fragmentary grants.
+
+### 10.3.2.2 Piggyback mode
+
+If the CMTS does not put another partial grant or a grant pending in the MAP in which it initiates fragmentation on a SID, the CM MUST automatically piggyback for the remainder. The CM calculates how much of a frame can be sent in the granted bandwidth and forms a fragment to send it. The CM utilizes the piggyback field in the fragment extended header to request the bandwidth necessary to transfer the remainder of the frame. Since the CMTS did not indicate a multiple grant in the first fragment MAP, the CM MUST keep track of the remainder to send. The request length, including physical-layer and fragmentation overhead, for the remainder of the original frame is inserted into the piggyback request byte in the fragmentation header.
+
+If the fragment HCS is correct, the piggybacked request, if present, is passed on to the bandwidth allocation process while the fragment itself is enqueued for reassembly. Once the complete MAC frame is reassembled, and it has been determined that the HCS is correct, the CMTS processes the frame as though it had been received unfragmented except that the CMTS MUST ignore the decryption-related portion of any privacy EHDRs. However, the bandwidth requests in privacy EHDRs and request EHDRs of such frames SHOULD be processed, but they MAY be ignored also.
+
+### 10.3.3 Fragmentation example
+
+#### 10.3.3.1 Single packet fragmentation
+
+Refer to Figure 10-9. Assume that fragmentation has been enabled for a given SID.
+
+- 1) (Requesting state) – CM wants to transmit a 1018-byte packet. CM calculates how much physical layer overhead (POH) is required and requests the appropriate number of mini-slots. CM makes a request in a contention region. Go to step 2.
+- 2) (Waiting for grant) – CM monitors MAPs for a grant or grant pending for this SID. If the CM's ack time expires before the CM receives a grant or grant pending, the CM retries requesting for the packet until the retry count is exhausted – then the CM gives up on that packet. Go to step 3.
+- 3) (First fragment) – Prior to giving up in step 2, the CM sees a grant for this SID that is less than the requested number of mini-slots. The CM calculates how much MAC information can be sent in the granted number of mini-slots using the specified burst profile. In the example in Figure 10-9, the first grant can hold 900 bytes after subtracting the POH. Since the fragment overhead (FRAG HDR, FHCS and FCRC) is 16 bytes, 884 bytes of the original packet can be carried in the fragment. The CM creates a fragment composed of the FRAG HDR, FHCS, 884 bytes of the original packet, and an FCRC. The CM marks the fragment as first and prepares to send the fragment. Go to step 4.
+- 4) (First fragment, multiple grant mode) – CM looks to see if there are any other grants or grant pendings enqueued for this SID. If so, the CM sends the fragment with the piggyback field in the FRAG HDR set to zero and awaits the time of the subsequent grant to roll around. Go to step 6. If there are not any grants or grant pendings, go to step 5.
+- 5) (First fragment, piggyback mode) – If there are no other grants or grant pendings for this SID in this MAP, the CM calculates how many mini-slots are required to send the remainder of the fragmented packet, including the fragmentation overhead, and physical layer overhead, and inserts this amount into the piggyback field of the FRAG HDR. The CM then sends the fragment and starts its ack timer for the piggyback request. In the example in Figure 10-9, the CM sends up a request for enough mini-slots to hold the POH plus 150 bytes (1018 – 884 + 16). Go to step 6.
+- 6) (Waiting for grant) – The CM is now waiting for a grant for the next fragment. If the CM's ack timer expires while waiting on this grant, the CM should send up a request for enough mini-slots to send the remainder of the fragmented packet, including the fragmentation overhead, and physical layer overhead. Go to step 7.
+- 7) (Receives next fragment grant) – Prior to giving up in step 6, the CM sees another grant for this SID. The CM checks to see if the grant size is large enough to hold the remainder of the fragmented packet, including the fragmentation overhead and physical layer overhead. If so, go to step 10. If not, go to step 8.
+- 8) (Middle fragment, multiple grant mode) – Since the remainder of the packet (plus overhead) will not fit in the grant, the CM calculates what portion will fit. The CM encapsulates this portion of the packet as a middle fragment. The CM then looks for any other grants or grant pendings enqueued for this SID. If either are present, the CM sends the fragment with the piggyback field in the FRAG HDR set to zero and awaits the time of the subsequent grant to roll around. Go to step 6. If there are not any grants or grant pendings, go to step 9.
+- 9) (Middle fragment, piggyback mode) – The CM calculates how many mini-slots are required to send the remainder of the fragmented packet, including the fragmentation overhead and physical layer overhead, and inserts this amount into the piggyback field of the FRAG HDR. The CM then sends the fragment and starts its ack timer for the piggyback request. Go to step 6.
+
+- 10) (Last fragment) – The CM encapsulates the remainder of the packet as a last fragment. If there is no other packet enqueued or there is a another grant or a grant pending enqueued for this SID, the CM places a zero in the REQ field of the FRAG HDR. If there is another packet enqueued with no grant or grant pending, the CM calculates the number of mini-slots required to send the next packet and places this number in the REQ field in the FRAG HDR. The CM then transmits the packet. Go to step 11. In the example in Figure 10-9, the grant is large enough to hold the remaining 150 bytes plus POH.
+- 11) (Normal operation) – The CM then returns the normal operation of waiting for grants and requesting for packets. If at any time fragmentation is enabled and a grant arrives that is smaller than the request, the fragmentation process starts again as in step 2.
+
+
+
+Original packet with BPI EHDR (1018 bytes)
+
+| | | | | | | | |
+|-----|------|-----|-----|-------------|-----|-------------|------|
+| 1 B | 1 B | 2 B | 4 B | 4 B | 2 B | 1000 B | 4 B |
+| FC | PARM | LEN | PRV | Other EHDRs | HCS | PDU payload | PCRC |
+
+Fragment payload
+
+884 (900 – 16) bytes sent in first fragment
+
+134 (1018 – 884) bytes sent in last fragment
+
+---
+
+First grant can fit 900 bytes of MAC information
+
+| | | | | | | | | | |
+|----------|------|-----|------|-----|-----|-------------|-----|---------------------|------|
+| 10 B | 2 B | 1 B | 1 B | 2 B | 4 B | 4 B | 2 B | 870 B | 4 B |
+| FRAG HDR | FHCS | FC | PARM | LEN | PRV | Other EHDRs | HCS | PDU payload (first) | FCRC |
+
+Encrypted under baseline privacy
+
+| | | | |
+|-----|--------------|-----|----------|
+| 1 B | 1 B | 2 B | 6 B |
+| FC | EHDR LEN = 6 | LEN | BPI EHDR |
+
+| | | |
+|----|-------|---|
+| 11 | 00011 | 1 |
+|----|-------|---|
+
+| | | | | |
+|-----|-----|-------------|-----|-----------|
+| 1 B | 1 B | 2 B | 1 B | 1 B |
+| 35 | Ver | E T QoS_SID | RQ | Frag cntl |
+
+Request for enough mini-slots to fit 150 (130 + 4 + 16) bytes of MAC info. This field would be zero in multiple grant mode.
+
+| |
+|----------|
+| 00100000 |
+|----------|
+
+---
+
+Second grant can fit 150 bytes of MAC information
+
+| | | | | |
+|----------|------|---------------------|------|------|
+| 10 B | 2 B | 130 B | 4 B | 4 B |
+| FRAG HDR | FHCS | PDU payload (cont.) | PCRC | FCRC |
+
+Encrypted under baseline privacy
+
+| | | | |
+|-----|--------------|-----|----------|
+| 1 B | 1 B | 2 B | 6 B |
+| FC | EHDR LEN = 6 | LEN | BPI EHDR |
+
+| | | |
+|----|-------|---|
+| 11 | 00011 | 1 |
+|----|-------|---|
+
+| | | | |
+|-----|-----|-------------|-----|
+| 1 B | 2 B | 1 B | 1 B |
+| 35 | Ver | E T QoS_SID | RQ |
+
+Piggyback request for next PDU (if applicable)
+
+| |
+|----------|
+| 00010001 |
+|----------|
+
+J.122\_F10-9
+
+Frag cntl bit definition
+
+| | | |
+|----|----|------|
+| XX | FL | SSSS |
+|----|----|------|
+
+- XX Reserved, set to 00
+- F Set on first fragment, clear otherwise
+- L Set on last fragment, clear otherwise
+- SSSS 4-bit sequence number, increments on each fragment of a frame, rolling over as necessary
+
+Figure 10-9 – Example of fragmenting a single packet
+
+10.3.3.2 Concatenated packet fragmentation
+
+After the CM creates the concatenated packet, the CM treats the concatenated packet as a single PDU. Figure 10-10 shows an example of a concatenated packet broken into 3 fragments. Note that the packet is fragmented without regard to the packet boundaries within the concatenated packet.
+
+Original concatenated packet
+(287 bytes)
+
+
+
+Diagram of the original concatenated packet structure showing fields: Concat. HDR (6 B), MAC HDR1 (15 B), PDU payload 1 (68 B), PCRC1 (4 B), MAC HDR2 (6 B), PDU payload 2 (100 B), PCRC2 (4 B), MAC HDR3 (10 B), PDU payload 3 (70 B), and PCRC3 (4 B). Below Concat. HDR and MAC HDR1, details show FC (1 B), EHDR LEN=6 (1 B), LEN (2 B), and HCS (2 B). Below MAC HDR2, details show FC (1 B), PARM (1 B), LEN (2 B), PRV (4 B), Other EHDRs (5 B), and HCS (2 B).
+
+First grant can fit
+125 bytes of
+MAC information
+
+
+
+Diagram of the first grant structure. The packet starts with FRAG HDR (10 B) and FHCS (2 B). Below FRAG HDR are FC (1 B), EHDR LEN=6 (1 B), and LEN (2 B). Below FHCS is BPI EHDR (6 B), which contains E|T|QoS\_SID (1 B), RQ (1 B), and Frag cntl (1 B). The RQ field is expanded to show a request for 162 mini-slots (00100000). The remaining packet structure is Concat. HDR (6 B), MAC HDR1 (15 B), PDU payload 1 (68 B), PCRC1 (4 B), MAC HDR2 (6 B), PDU payload 2 (part 1) (10 B), and FCRC (4 B). A bracket indicates the portion from MAC HDR1 to the end is 'Encrypted under baseline privacy'. A note states: 'Request for enough mini-slots to fit 162 (287 - 109 + 16) bytes of MAC info. This field would be zero in multiple grant mode.'
+
+Second grant
+can fit 146 bytes
+of MAC
+information
+
+
+
+Diagram of the second grant structure. It starts with FRAG HDR (10 B) and FHCS (2 B). Below FRAG HDR are FC (1 B), EHDR LEN=6 (1 B), and LEN (2 B). Below FHCS is BPI EHDR (6 B), containing E|T|QoS\_SID (1 B), RQ (1 B), and Frag cntl (1 B). The RQ field is expanded to show a request for 64 mini-slots (00000001). The remaining packet structure is PDU payload 2 (part 2) (90 B), PCRC2 (4 B), MAC HDR3 (10 B), PDU payload 3 (part 1) (26 B), and FCRC (4 B). A bracket indicates the portion from PDU payload 2 (part 2) to the end is 'Encrypted under baseline privacy'. A note states: 'Request for enough mini-slots to fit 64 (287 - 109 - 130 + 16) bytes of MAC info. This field would be zero in multiple grant mode.'
+
+Third grant can
+fit 64 bytes of
+MAC information
+
+
+
+Diagram of the third grant structure. It starts with FRAG HDR (10 B) and FHCS (2 B). Below FRAG HDR are FC (1 B), EHDR LEN=6 (1 B), and LEN (2 B). Below FHCS is BPI EHDR (6 B), containing E|T|QoS\_SID (1 B), RQ (1 B), and Frag cntl (1 B). The RQ field is expanded to show a request for the next packet (00010010). The remaining packet structure is PDU payload 3 (part 2) (44 B), PCRC3 (4 B), and FCRC (4 B). A bracket indicates the portion from PDU payload 3 (part 2) to the end is 'Encrypted under baseline privacy'. A note states: 'Request for next packet'. A label 'J.122\_F10-10' is present.
+
+**Figure 10-10 – Fragmented concatenated packet example**
+
+### 10.4 Payload header suppression
+
+This overview clause explains the principles of payload header suppression. The subsequent clauses explain the signalling for initialization, operation and termination. Finally, specific upstream and downstream examples are given. The definitions shown in Table 10-5 are used.
+
+**Table 10-5 – Payload header suppression definitions**
+
+| | | |
+|-----------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| PHS | Payload header suppression | Suppressing an initial byte string at the sender and restoring the byte string at the receiver |
+| PHS rule | Payload header suppression rule | A set of TLVs that apply to a specific PHS index |
+| PHSF | Payload header suppression field | A string of bytes representing the header portion of a PDU in which one or more bytes will be suppressed (i.e., a snapshot of the uncompressed PDU header inclusive of suppressed and unsuppressed bytes) |
+| PHSI | Payload header suppression index | An 8-bit value that references the suppressed byte string |
+| PHSM | Payload header suppression mask | A bit mask that indicates which bytes in the PHSF to suppress and which bytes to not suppress |
+| PHSS | Payload header suppression size | The length of the suppressed field in bytes. This value is equivalent to the number of bytes in the PHSF and also the number of valid bits in the PHSM |
+| PHSV | Payload header suppression verify | A flag that tells the sending entity to verify all bytes that are to be suppressed |
+
+#### 10.4.1 Overview
+
+In payload header suppression, a repetitive portion of the payload headers following the extended header field is suppressed by the sending entity and restored by the receiving entity. In the upstream, the sending entity is the CM and the receiving entity is the CMTS. In the downstream, the sending entity is the CMTS and the receiving entity is the CM. The MAC extended header contains a payload header suppression index (PHSI) that references the payload header suppression field (PHSF).
+
+Although PHS may be used with any service flow type, it has been designed for use with the unsolicited grant service (UGS) scheduling type. UGS works most efficiently with packets of a fixed length. PHS works well with UGS because, unlike other header compression schemes sometimes used with IP data, PHS always suppresses the same number of bytes in each packet. PHS will always produce a fixed length compressed packet header.
+
+The sending entity uses classifiers to map packets into a service flow. The classifier uniquely maps packets to its associated payload header suppression rule. The receiving entity uses the service identifier (SID) and the PHSI to restore the PHSR.
+
+Once the PHSF and PHSS fields of a rule are known, the rule is considered "fully defined" and none of its fields can be changed. If modified PHS operation is desired for packets classified to the flow, the old rule must be removed from the service flow and a new rule must be installed.
+
+When a classifier is deleted, any associated PHS rule MUST also be deleted.
+
+PHS has a PHSV option to verify or not verify the payload before suppressing it. PHS also has a PHSM option to allow select bytes not to be suppressed. This is used for sending bytes that change, such as IP sequence numbers, and still suppressing bytes that do not change.
+
+PHS rules are consistent for all scheduling service types. Requests and grants of bandwidth are specified after suppression has been accounted for. For unsolicited grant services, the grant size is chosen with the unsolicited grant size TLV. The packet with its header suppressed may be equal to or less than the grant size.
+
+The CMTS MUST assign all PHSI values just as it assigns all SID values. Either the sending or the receiving entity MAY specify the PHSF and PHSS. This provision allows for pre-configured headers, or for higher level signalling protocols outside the scope of this Recommendation to establish cache entries. PHS is intended for unicast service, and is not defined for multicast service.
+
+It is the responsibility of the higher-layer service entity to generate a PHS rule that uniquely identifies the suppressed header within the service flow. It is also the responsibility of the higher-layer service entity to guarantee that the byte strings being suppressed are constant from packet to packet for the duration of the active service flow.
+
+#### 10.4.2 Example applications
+
+- A classifier on an upstream service flow that uniquely defines a voice over IP (VoIP) flow by specifying protocol type of UDP, IP SA, IP DA, UDP source port, UDP destination port, the service flow reference, and a PHS Size of 42 bytes. A PHS rule references this classifier providing a PHSI value that identifies this VoIP media flow. For the upstream case, 42 bytes of payload header are verified and suppressed, and a 2-byte extended header containing the PHSI is added to every packet in that media flow.
+- A classifier that identifies the packets in a service flow, of which 90% match the PHSR. Verification is enabled. This may apply in a packet compression situation where every so often compression resets are done and the header varies. In this example, the scheduling algorithm would allow variable bandwidth, and only 90% of the packets might get their headers suppressed. Since the existence of the PHSI extended header will indicate the choice made, the simple SID/PHSI lookup at the receiving entity will always yield the correct result.
+- A classifier on an upstream service flow that identifies all IP packets by specifying ethertype of IP, the service flow ID, a PHSS of 14 bytes, and no verification by the sending entity. In this example, the CMTS has decided to route the packet, and knows that it will not require the first 14 bytes of the Ethernet header, even though some parts such as the source address or destination address may vary. The CM removes 14 bytes from each upstream frame (Ethernet header) without verifying their contents and forwards the frame to the service flow.
+
+#### 10.4.3 Operation
+
+To clarify operational packet flow, this clause describes one potential implementation. CM and CMTS implementations are free to implement payload header suppression in any manner as long as the protocol specified in this clause is followed. Figure 10-11 illustrates the following procedure.
+
+A packet is submitted to the CM MAC service layer. The CM applies its list of classifier rules. A match of the rule will result in an upstream service flow, SID and a PHS rule. The PHS rule provides PHSF, PHSI, PHSM, PHSS and PHSV. If PHSV is set to zero, or is not present, the CM will compare the bytes in the packet header with the bytes in the PHSF that are to be suppressed as indicated by the PHSM. If they match, the CM will suppress all the bytes in the upstream suppression field except the bytes masked by PHSM. The CM will then insert the PHSI into the PHS\_Parm field of the service flow EH element, and queue the packet on the upstream service flow.
+
+When the packet is received by the CMTS, the CMTS will determine the associated SID either by internal means or from other extended headers elements such as the BPI extended header. The CMTS uses the SID and the PHSI to look up PHSF, PHSM and PHSS. The CMTS reassembles the packet and then proceeds with normal packet processing. The reassembled packet will contain bytes from the PHSF. If verification was enabled, then the PHSF bytes will equal the original header bytes. If verification was not enabled, then there is no guarantee that the PHSF bytes will match the original header bytes.
+
+
+
+```
+
+graph TD
+ subgraph Sender
+ S1([Sender PHS start]) --> S2[/Packet arrives/]
+ S2 --> S3[Classify packet
+retrieve PHSF, PHSI,
+PHSM, PHSS, PHSV]
+ S3 --> S4{Verify ?}
+ S4 -- Yes --> S5[Verify with
+PHSF]
+ S4 -- No --> S6[Suppress with
+PHSM
+append PHSI]
+ S5 --> S7{Pass
+verify ?}
+ S7 -- Yes --> S6
+ S7 -- No --> S6
+ S6 --> S8[/Forward
+packet/]
+ S8 --> S9([END])
+ end
+ subgraph Receiver
+ R1([Receiver PHS start]) --> R2[/Packet arrives/]
+ R2 --> R3[Identify SID and extract
+PHSI]
+ R3 --> R4[Retrieve PHSF, PHSM,
+PHSS]
+ R4 --> R5[Reconstruct header and
+forward packet]
+ R5 --> R6[/Forward
+packet/]
+ R6 --> R7([END])
+ end
+
+```
+
+J.122\_F.10-11
+
+Flowchart illustrating Payload header suppression operation. The diagram is split into two vertical columns: 'Sender PHS start' on the left and 'Receiver PHS start' on the right. The sender's path involves packet arrival, classification, verification, and suppression logic. The receiver's path involves identifying the SID, retrieving suppression fields, reconstructing the header, and forwarding the packet.
+
+**Figure 10-11 – Payload header suppression operation**
+
+A similar operation occurs in the downstream. The CMTS applies its list of classifiers. A match of the classifier will result in a downstream service flow and a PHS rule. The PHS rule provides PHSF, PHSI, PHSM, PHSS and PHSV. If PHSV is set to zero, or is not present, the CMTS will verify the downstream suppression field in the packet with the PHSF. If they match, the CMTS will suppress all the bytes in the downstream suppression field except the bytes masked by PHSM. The CMTS will then insert the PHSI into the PHS\_Parm field of the service flow EH element, and queue the packet on the downstream service flow.
+
+The CM will receive the packet based upon the Ethernet destination address filtering. The CM then uses the PHSI to lookup PHSF, PHSM and PHSS. The CM reassembles the packet and then proceeds with normal packet processing.
+
+Figure 10-12 demonstrates packet suppression and restoration when using PHS masking. Masking allows only bytes that do not change to be suppressed. Note that the PHSF and PHSM span the entire suppression field, including suppressed and unsuppressed bytes.
+
+
+
+The diagram illustrates the process of payload header suppression and restoration. It is divided into three main sections: Sender, Cable network, and Receiver.
+
+- Sender:**
+ - Current header: A B C D E
+ - PHSM (Payload Header Suppression Mask): 1 0 1 0 1
+ - PHSF (Payload Header Suppression Field): A' X C' X E'
+- Cable network:**
+ - Suppressed header: B D
+- Receiver:**
+ - PHSM: 1 0 1 0 1
+ - PHSF: A' X C' X E'
+ - Restored header: A' B C' D E'
+
+Arrows indicate the flow of data: from Sender's current header to PHSM and PHSF, then to the Cable network, then to the Receiver's PHSM and PHSF, and finally to the restored header. Dashed arrows show the mapping from Sender's PHSF to the Cable network and from the Cable network to the Receiver's PHSF.
+
+Legend:
+
+- Verify (solid double-headed arrow)
+- Assign (dashed double-headed arrow)
+- A-E: Current header
+- A'-E': Cached header
+- X: Don't care
+- PHSS: 5
+
+J.122\_F10-12
+
+Diagram illustrating payload header suppression with masking across a sender, cable network, and receiver. It shows the mapping of current headers (A-E) to cached headers (A'-E') using a suppression mask (PHSM) and suppression field (PHSF).
+
+Figure 10-12 – Payload header suppression with masking
+
+#### 10.4.4 Signalling
+
+Payload header suppression requires the creation of three objects:
+
+- service flow;
+- classifier;
+- payload header suppression rule.
+
+These three objects MAY be created in separate message flows, or MAY be created simultaneously.
+
+PHS rules are created with registration, DSA or DSC messages. The CMTS MUST define the PHSI when the PHS rule is created. PHS rules are deleted with the DSC or DSD messages. The CM or CMTS MAY define the PHSS and PHSF.
+
+Figure 10-13 shows the two ways to signal the creation of a PHS Rule.
+
+It is possible to partially define a PHS rule (in particular, the size of the rule) at the time a service flow is created.
+
+As an example, it is likely that when a service flow is first provisioned, the size of the header field to be suppressed will be known. The values of some items within the field (e.g., IP addresses, UDP port numbers, etc.) may not be known and would be provided in a subsequent DSC as part of the activation of the service flow (using the "set PHS rule" DSC action).
+
+A PHS rule is partially defined when the PHSF and PHSS field values are not both known. Once both PHSF and PHSS are known, the rule is considered fully defined, and MUST NOT be modified
+
+via DSC signalling. PHSV and PHSM fields have default values, thus are not required to fully define a PHS rule. If PHSV and PHSM are not known when the rule becomes fully defined, their default values are used, and MUST NOT be modified via DSC signalling.
+
+Each step of the PHS rule definition, whether it is a registration request, DSA or a DSC, MUST contain service flow ID (or reference), classifier ID (or reference) to uniquely identify the PHS rule being defined. A PHS index and service ID pair is used to uniquely identify the PHS rule during upstream packet transfer. A PHS index is enough to uniquely identify the PHS rule used in downstream packet transfer.
+
+#### 10.4.5 Payload header suppression examples
+
+
+
+| CMTS-initiated | | CM-initiated | |
+|----------------|-----------------------------------------------------------|------------------------------------------------------------------|---------|
+| CMTS | CM | CMTS | CM |
+| DSC-REQ | → Classifier ID + service flow ID + PHSI + PHSS + PHSF | ← Classifier reference/ ID + service flow ID + PHSS + PHSF | DSC-REQ |
+| DSC-RSP | ← | → PHSI | DSC-RSP |
+| DSC-ACK | → | ← | DSC-ACK |
+
+J.122\_F10-13
+
+Figure 10-13 – Payload header suppression signalling example
+
+##### 10.4.5.1 Upstream example
+
+A service class with the service class name of "G711-US-UGS-HS-42" is established, which is intended for G.711 VoIP traffic in the upstream with unsolicited grant service. When classifiers are added to the flow, a PHSS value of 42 is included, which explicitly states that the first 42 bytes following the MAC extended header on all packets in that flow must be verified, suppressed and restored. In this example, the service class is configured such that any packet that does not verify correctly will not have its header suppressed and will be discarded since it will exceed the unsolicited grant size (refer to clause C.2.2.6.3).
+
+Figure 10-14 shows the encapsulation used in the upstream with and without payload header suppression. An RTP voice over IP payload without IPsec is used as a specific example to demonstrate efficiency.
+
+a) VoIP with normal encapsulation
+
+
+
+| | | | | | | | | | |
+|-------|--------|-----|-----|----------|----|-----|-----|-------------|-----|
+| 14-34 | 4 | 5 | 2 | 14 | 20 | 8 | 12 | 10 to 160 | 4 |
+| FGPS | MAC OH | BPI | HCS | Ethernet | IP | UDP | RTP | Voice bytes | CRC |
+
+
+
+| | | | | | | | | |
+|-------|--------|-----|---|-----|-----|-------------|-----|-----------------|
+| 14-34 | 4 | 5 | 2 | 2 | 12 | 10 to 160 | 4 | values in bytes |
+| FGPS | MAC OH | BPI | P | HCS | RTP | Voice bytes | CRC | |
+
+Diagram showing normal VoIP encapsulation with fields: FGPS (14-34), MAC OH (4), BPI (5), HCS (2), Ethernet (14), IP (20), UDP (8), RTP (12), Voice bytes (10 to 160), CRC (4). A dashed line indicates suppression of Ethernet, IP, and UDP headers in the next diagram.
+
+b) VoIP with header suppression
+
+J.122\_F10-14
+
+Figure 10-14 – Upstream payload header suppression example
+
+Figure 10-14 a) shows a normal RTP packet carried on an upstream channel. The beginning of the frame represents the physical layer overhead (FGPS) of FEC, guard time, preamble and stuffing bytes. Stuffing bytes occur in the last code word and when mapping blocks to mini-slots. Next is the MAC layer overhead including the 6-byte MAC header with a 5-byte BPI extended header, the 14-byte Ethernet header, and the 4-byte Ethernet CRC trailer. The VoIP payload uses a 20-byte IP header, an 8-byte UDP header, and a 12-byte RTP header. The voice payload is variable and depends upon the sample time and the compression algorithm used.
+
+Figure 10-14 b) shows the same payload with payload header suppression enabled. In the upstream, payload header suppression begins with the first byte after the MAC header checksum. The 14-byte Ethernet header, the 20-byte IP header, and the 8-byte UDP header have been suppressed, and a 2-byte PHS extended header element has been added, for a net reduction of 40 bytes. In this example of an established VoIP connection, these fields remain constant from packet to packet, and are otherwise redundant.
+
+10.4.5.2 Downstream example
+
+A service class with the service class name of "G711-DS-HS-30" is established, which is intended for G.711 VoIP traffic in the downstream. When classifiers are added to the service flow, a PHSS value of 30 is included which explicitly indicates that 30 bytes of the payload header on all packets must be processed for suppression and restoration according to the PHSM. Any packet that does not verify correctly will not have its header suppressed but will be transmitted subject to the traffic shaping rules in place for that service flow.
+
+Figure 10-15 shows the encapsulation used in the downstream with and without payload header suppression. An RTP voice over IP payload without IPsec is used as a specific example to demonstrate efficiency.
+
+a) VoIP with normal encapsulation
+
+
+
+| | | | | | | | | | | |
+|--------|-----|-----|----|----|---|----|-----|-----|-------------|-----|
+| 4 | 5 | 2 | 6 | 6 | 2 | 20 | 8 | 12 | 10 to 160 | 4 |
+| MAC OH | BPI | HCS | DA | SA | T | IP | UDP | RTP | Voice bytes | CRC |
+
+
+
+| | | | | | | | | | |
+|--------|-----|---|-----|----|----|-----|-------------|-----|-----------------|
+| 4 | 5 | 2 | 2 | 6 | 6 | 12 | 10 to 160 | 4 | Values in bytes |
+| MAC OH | BPI | P | HCS | DA | SA | RTP | Voice bytes | CRC | |
+
+Diagram showing normal VoIP encapsulation with fields: MAC OH (4), BPI (5), HCS (2), DA (6), SA (6), T (2), IP (20), UDP (8), RTP (12), Voice bytes (10 to 160), CRC (4). A dashed line indicates suppression of DA, SA, T, IP, and UDP headers in the next diagram.
+
+b) VoIP with header suppression
+
+J.122\_F10-15
+
+Figure 10-15 – Downstream payload header suppression example
+
+Figure 10-15 a) shows a normal RTP packet carried on a downstream channel. The layer 2 overhead includes the 6-byte MAC header with a 5-byte BPI extended header, the 14-byte Ethernet header (6-byte destination address, 6-byte source address, and 2-byte ethertype field), and the 4-byte Ethernet CRC trailer. The layer 3 VoIP payload uses a 20-byte IP header, an 8-byte UDP header, and a 12-byte RTP header. The voice payload is variable and depends upon the sample time and the compression algorithm used.
+
+Figure 10-15 b) shows the same payload with payload header suppression enabled. In the downstream, payload header suppression begins with the thirteenth byte after the MAC header checksum. This retains the Ethernet destination address and source address, which is required so that the CM may filter and receive the packet. The remaining 2 bytes of the Ethernet header, the 20-byte IP header, and the 8-byte UDP header have been suppressed, and a 2-byte PHS extended header element has been added, for a net reduction of 28 bytes. In this example of an established VoIP connection, these fields remain constant from packet to packet, and are thus redundant.
+
+## **11 Cable modem – CMTS interaction**
+
+This clause covers the key requirements for the interaction between a CM and a CMTS. It only covers interaction between a CM and CMTS that are both compliant with this version of the Recommendation, and only in the case where the CM is using a configuration file with QoS parameters compliant with this version of the Recommendation. Issues involving interoperability with equipment and configuration files compliant with previous versions of this Recommendation (DOCS 1.x) are discussed in Annex G. The interaction can be broken down into five basic categories: initialization, authentication, configuration, authorization and signalling.
+
+### **11.1 CMTS initialization**
+
+The mechanism utilized for CMTS initialization (local terminal, file download, SNMP, etc.) is described in [DOCS5]. It MUST meet the following criteria for system interoperability:
+
+- The CMTS MUST be able to reboot and operate in a stand-alone mode using configuration data retained in non-volatile storage.
+- If valid parameters are not available from non-volatile storage or via another mechanism such as the spectrum management system (see [b-VECCHI]), the CMTS MUST NOT generate any downstream messages (including SYNC). This will prevent CMs from transmitting.
+- The CMTS MUST provide the information defined in clause 8 to CMs for each upstream channel.
+
+### **11.2 Cable modem initialization**
+
+The procedure for initialization of a cable modem MUST be as shown in Figure 11-1. This figure shows the overall flow between the stages of initialization in a CM. This shows no error paths, and is simply to provide an overview of the process. The more detailed finite state machine representations of the individual sections (including error paths) are shown in the subsequent figures. Timeout values are defined in Annex B.
+
+
+
+```
+
+graph TD
+ A([Scan for downstream channel]) --> B[/Downstream sync established/]
+ B --> C([Obtain upstream parameters])
+ C --> D[/Upstream parameters acquired/]
+ D --> E([Ranging and automatic adjustments])
+ E --> F[/Ranging and auto adj complete/]
+ F --> G([Device class identification optional])
+ G --> H([Establish IP connectivity])
+ H --> I[/IP complete/]
+ I --> J([Establish time of day])
+ J --> K[/Time of day established/]
+ K --> L([Transfer operational parameters])
+ L --> M[/Transfer complete/]
+ M --> N([Register with CMTS])
+ N --> O[/Registration complete/]
+ O --> P{Baseline privacy enabled}
+ P -- No --> Q([Operational])
+ P -- Yes --> R([Baseline privacy initialization])
+ R --> S[/Baseline privacy initialized/]
+ S --> Q
+
+```
+
+J.122\_F.11-1
+
+Flowchart of CM initialization overview. The process starts with 'Scan for downstream channel' and proceeds through 'Downstream sync established', 'Obtain upstream parameters', 'Upstream parameters acquired', 'Ranging and automatic adjustments', 'Ranging and auto adj complete', 'Device class identification (optional)', 'Establish IP connectivity', 'IP complete', and 'Establish time of day'. A line connects the bottom of the first column to the top of the second column starting with 'Time of day established'. The second column continues with 'Transfer operational parameters', 'Transfer complete', 'Register with CMTS', and 'Registration complete'. A decision diamond 'Baseline privacy enabled' follows. If 'No', it goes directly to 'Operational'. If 'Yes', it goes to 'Baseline privacy initialization', then 'Baseline privacy initialized', and finally 'Operational'.
+
+**Figure 11-1 – CM initialization overview**
+
+The procedure for initializing a cable modem and for a CM to re-initialize its MAC can be divided into the following phases:
+
+- scanning and synchronization to downstream;
+- obtaining upstream parameters;
+- ranging and automatic adjustments;
+- device class identification (optional);
+- establishing IP connectivity;
+- establishing time of day;
+- transferring operational parameters;
+- registration;
+
+- baseline privacy initialization, if CM is provisioned to run baseline privacy.
+
+Each CM contains the following information when shipped from the manufacturer:
+
+- A unique IEEE 802 48-bit MAC address that is assigned during the manufacturing process. This is used to identify the modem to the various provisioning servers during initialization.
+- Security information as defined in [DOCS8] (e.g., X.509 certificate) used to authenticate the CM to the security server and authenticate the responses from the security and provisioning servers.
+
+The SDL (specification and description language) notation used in the following figures is shown in Figure 11-2 (refer to [ITU-T Z.100]).
+
+
+
+Figure 11-2 – SDL notation. This diagram shows various symbols used in SDL. It includes: State symbols (rounded rectangles); Input symbols, divided into Internal (a chevron pointing right with a double line on the right side) and External (a chevron pointing right with a single line on the right side); Task symbols (rectangles); Output symbols, divided into Internal (a chevron pointing right with a double line on the left side) and External (a chevron pointing right with a single line on the left side); and Decision symbols (diamonds). Each symbol is shown in two variations: a standard single-line version and a version with double lines on its vertical edges.
+
+J122\_F11-2
+
+**Figure 11-2 – SDL notation**
+
+### 11.2.1 Scanning and synchronization to downstream
+
+On initialization or a "re-initialize MAC" operation, the cable modem MUST acquire a downstream channel. The CM MUST have non-volatile storage in which the last operational parameters are stored and MUST first try to re-acquire this downstream channel. If this fails, it MUST begin to continuously scan the 6-MHz channels of the downstream frequency band of operation until it finds a valid downstream signal.
+
+A downstream signal is considered to be valid when the modem has achieved the following steps:
+
+- synchronization of the QAM symbol timing;
+- synchronization of the FEC framing;
+- synchronization of the MPEG packetization;
+- recognition of SYNC downstream MAC messages.
+
+While scanning, it is desirable to give an indication to the user that the CM is doing so.
+
+In order to support redundant CMTS architectures, when a CM in the operational state detects that the downstream signal is invalid (i.e., does not meet the four criteria above), the CM MUST NOT immediately perform a re-initialize MAC operation. It must instead attempt to re-establish synchronization on the current downstream channel (see clause 11.5). Such re-establishment attempts MUST continue until the operation of periodic ranging as specified in Figure 11-17 calls for a "re-initialize MAC" operation after the expiration of timeout T4 or 16 expirations of timeout T3. Figure 11-17 shows the procedure that MUST be followed by a cable modem during standard operation.
+
+An interruption of downstream signal occurs when the following conditions are met:
+
+- The interruption occurs on a downstream that is valid (per clauses 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9 and 6.3.10) before and after the loss.
+- The interruption is defined as an instantaneous loss of signal and, after a predetermined delay, an instantaneous return to the original signal fidelity.
+- The restored downstream signal is the original signal transmitted from the original source.
+- The carrier frequency, physical plant and path delays remain the same before and after the interruption.
+- There are no changes in any downstream signalling parameter, including the modulation and the M/N ratio, from before to after the interruption.
+
+When a CM in the operational state in S-CDMA mode receives an interruption of downstream signal less than or equal to 5 ms, the CM MUST recover from the outage such that its fixed timing error is not greater than 0.02 of the nominal modulation interval (in addition to the allowed jitter defined in clause 6.2.21.8). When a CM in the operational state in TDMA mode receives an interruption of downstream signal less than or equal to 5 ms, the CM MUST recover from the outage such that the first upstream transmission after the CM resumes normal operation is performed within an accuracy of $\pm 250$ nanoseconds plus $\pm 0.5$ symbols (refer to clause 6.2.19.1). In either mode, the CM MUST continue with normal operation within 2 s from the end of the interruption. The CM is not required to continue normal operation if it receives a second interruption of downstream signal prior to the first receipt of a RNG-RSP with status "success".
+
+When a CM in the operational state receives an interruption of downstream signal greater than 5 ms but less than the lost sync interval (see Annex B), the CM MAY continue with normal operation as long as it recovers within 2 s:
+
+- with a fixed timing error not greater than 0.02 of the nominal modulation interval (in addition to the allowed jitter defined in clause 6.2.21.8), if the CM is in S-CDMA mode;
+- within the accuracy of clause 6.2.19.1, if the CM is in TDMA mode.
+
+If the CM cannot recover according to the preceding recovery time, timing and jitter specifications, the CM MUST re-acquire upstream timing to an accuracy of at least 1 $\mu\text{s}$ and be ready to respond to a ranging opportunity within 2 s, and MUST receive a RNG-RSP message with status "success" before resuming its upstream transmission. For the ranging process, the CM MAY use broadcast or unicast initial maintenance intervals, or station maintenance intervals, although a CM in S-CDMA mode MUST NOT use spreader-on station maintenance. For the ranging process, the CM MUST use its primary SID in the INIT-RNG-REQ or RNG-REQ message and MUST use its known timing offset. After completing this ranging process by receiving RNG-RSP with the ranging status set to "success", the CM MUST return to normal operation. A CMTS MUST process INIT-RNG-REQ messages with a primary SID from any CM that is in normal operation. If the primary SID used by the CM in INIT-RNG-REQ is no longer valid, the CMTS SHOULD send a RNG-RSP message to the CM with the ranging status set to "abort".
+
+In all cases, after the first successful ranging opportunity subsequent to the interruption, the CM MUST meet the timing requirements specified in clauses 6.2.19.1 and 6.2.21.8.
+
+### **11.2.2 Obtain upstream parameters**
+
+Refer to Figure 11-3. After synchronization, the CM MUST wait for an upstream channel descriptor message (UCD) from the CMTS in order to retrieve a set of transmission parameters for a possible upstream channel. These messages are transmitted periodically from the CMTS for all available upstream channels and are addressed to the MAC broadcast address. The CM MUST determine whether it can use the upstream channel from the channel description parameters.
+
+
+
+```
+
+graph TD
+ Start([Collect UCD Messages]) --> Build[Build channel list]
+ Start --> T1[Timeout T1]
+ Build --> First[Select first channel]
+ T1 --> Scanning([Scanning])
+ Scanning --> End{End of channel list?}
+ End -- Yes --> Scanning
+ End -- No --> Next[Select next channel]
+ Next --> WaitUCD([Wait for usable UCD])
+ First --> WaitUCD
+ WaitUCD --> Good{Good upstream descriptor}
+ Good --> WaitSYNC([Wait for SYNC])
+ WaitSYNC --> SYNC{SYNC}
+ SYNC --> Extract[Extract upstream mini-slot timing]
+ Extract --> WaitMap([Wait for map for this channel])
+ WaitMap --> Map{Map for selected channel}
+ Map --> InitialRanging([Initial Ranging])
+ InitialRanging --> Success{Initial Ranging Successful?}
+ Success -- Yes --> Periodic([Periodic Ranging])
+ Success -- No --> Start
+
+```
+
+J.122\_F11-3
+
+Flowchart for obtaining upstream parameters. The process starts with 'Collect UCD Messages', leading to 'Build channel list' and 'Timeout T1'. 'Build channel list' leads to 'Select first channel', which leads to 'Wait for usable UCD'. 'Timeout T1' leads to 'Scanning', which leads to 'End of channel list?'. 'End of channel list?' has a 'Yes' path to 'Scanning' and a 'No' path to 'Select next channel'. 'Select next channel' leads to 'Wait for usable UCD'. The sequence continues from 'Wait for usable UCD' through 'Good upstream descriptor', 'Wait for SYNC', 'SYNC', 'Extract upstream mini-slot timing', 'Wait for map for this channel', 'Map for selected channel', 'Initial Ranging', and 'Initial Ranging Successful?'. 'Initial Ranging Successful?' has a 'Yes' path to 'Periodic Ranging' and a 'No' path that loops back to the start of the channel selection process.
+
+**Figure 11-3 – Obtaining upstream parameters**
+
+The CM MUST collect all UCDs with different channel ID fields to build a set of usable channel IDs. If no channel can be found after a suitable timeout period, the CM MUST continue scanning to find another downstream channel.
+
+The CM MUST determine whether it can use the upstream channel from the channel description parameters. If the channel is not suitable, the CM MUST try other channels until it finds a usable channel.
+
+Before attempting initial ranging on an upstream, the CM categorizes the available upstreams into the following types based on the UCD for each channel:
+
+- 1) With a UCD (MAC management message type 2) offering DOCS 1.x burst descriptors only.
+- 2) With a UCD (MAC management message type 2) offering both DOCS 2.0 TDMA and DOCS 1.x burst descriptors.
+- 3) With a UCD (MAC management message type 29) for a DOCS 2.0-only upstream.
+
+The CM MUST have non-volatile storage in which channel ID of the last upstream on which the CM successfully completed registration is stored. If multiple upstreams are available, the CM MUST attempt to use the one that matches this stored channel ID. If none of the available upstreams match that stored ID, or if the CM is unable to successfully complete initial ranging on the matching channel, then the CM MUST preferentially select upstream channels in the following order. Type 3 channels are first, followed by type 2 channels, and type 1 channels are last. The CM MUST NOT begin initial ranging on a type 1 or type 2 upstream until it has allowed sufficient time, at least the UCD interval (refer to Annex B), to determine if a type 3 upstream is available. If initial ranging fails on a type 3 upstream, the CM MUST ensure that it has allowed sufficient time to detect any other type 3 upstreams that are available before moving on to a type 2 or type 1 upstream. Of course, once the CM has waited enough time to ensure that it knows about any available type 3 upstreams, it will also know about any available type 2 upstreams and it MUST try them in preference to any type 1 upstreams.
+
+If the channel is suitable, the CM MUST extract the parameters for this upstream from the UCD. If the UCD message contains a type 19 TLV, the CM MUST (except as noted below) perform a bitwise AND of its ranging class ID with the TLV 19 Value. If the result of the bitwise AND is zero, the CM MUST consider the channel unusable and try other channels until it finds a usable channel.
+
+If the CM is obtaining upstream parameters prior to performing initial ranging with an assigned SID or in preparation for ranging in response to a DCC-REQ, it MUST ignore TLV-19.
+
+If the CM is not responding to a DCC-REQ and is going to be ranging with the initialization SID and if the UCD contains a type 18 TLV, the CM performs a bitwise AND of its ranging class ID with the TLV 18 value. If the result of the bitwise AND is equal to the CM's ranging class ID, the CM MUST inhibit initial ranging and start the T17 timer. If the UCD change count in the UCD message for the channel the CM is using, is incremented while the T17 timer is active, the CM will re-inspect the TLV-18 value and re-start the T17 timer if necessary. If the T17 timer expires or the TLV-18 value is updated to permit ranging for the CMs ranging class, the CM will resume normal ranging. If the CM should undergo a lost SYNC event while waiting for T17, it MUST re-initialize the MAC. A CM that is performing initial ranging with an assigned SID MUST ignore TLV-18.
+
+After having transmitted at least one initial maintenance RNG-REQ message, the CM MUST ignore TLV-18 or TLV-19 values in any new UCD message for the channel even if the new UCD contains a ranging required TLV.
+
+The CM MUST wait for the next SYNC message and extract the upstream mini-slot timestamp from this message26. The CM then MUST wait for a bandwidth allocation map for the selected channel. It may begin transmitting upstream in accordance with the MAC operation and the bandwidth allocation mechanism.
+
+The CM MUST perform initial ranging at least once, in accordance with Figure 11-6. If initial ranging is not successful, the next channel ID is selected, and the procedure restarted from UCD extraction. When there are no more channel IDs to try, the CM MUST continue scanning to find another downstream channel.
+
+### **11.2.3 Message flows during scanning and upstream parameter acquisition**
+
+The CMTS MUST generate SYNC and UCD messages on the downstream at periodic intervals within the ranges defined in Annex B. These messages are addressed to all CMs. Refer to Figure 11-4.
+
+---
+
+26 Alternatively, since the SYNC message applies to all upstream channels, the CM may have already acquired a time reference from previous SYNC messages. If so, it need not wait for a new SYNC.
+
+
+
+| CMTS | | | CM |
+|-------------------------|-------|--------|-----------------------------------------------------------------------------------------------|
+| Clock time to send SYNC | _____ | SYNC → | |
+| Clock time to send UCD | _____ | UCD → | |
+| | | | |
+| Clock time to send SYNC | _____ | SYNC → | |
+| | | | Example of a UCD cycle prior to CM power-on |
+| | | | |
+| Clock time to send SYNC | _____ | SYNC → | |
+| | | | |
+| | | | |
+| Clock time to send SYNC | _____ | SYNC → | |
+| | | | |
+| Clock time to send SYNC | _____ | SYNC → | |
+| Clock time to send UCD | _____ | UCD → | |
+| Clock time to send SYNC | _____ | SYNC → | Power-on sequence complete |
+| Clock time to send SYNC | _____ | SYNC → | Establish PHY synchronization and wait for UCD |
+| Clock time to send SYNC | _____ | SYNC → | |
+| Clock time to send SYNC | _____ | SYNC → | |
+| Clock time to send UCD | _____ | UCD → | Obtain parameters for this upstream channel to use for initialization |
+| Clock time to send SYNC | _____ | SYNC → | Extract slot info for upstream and wait for transmit opportunity to perform ranging |
+| Clock time to send SYNC | _____ | SYNC → | |
+| Clock time to send MAP | _____ | MAP → | Start ranging process |
+
+**Figure 11-4 – Message flows during scanning and upstream parameter acquisition**
+
+### 11.2.4 Ranging and automatic adjustments
+
+The ranging and adjustment process is fully defined in clause 8 and in the following clauses. The message sequence chart and the finite state machines on the following pages define the ranging and adjustment process which MUST be followed by compliant CMs and CMTSs. Refer to Figures 11-5 through 11-8.
+
+NOTE – MAPs are transmitted as described in clause 8.
+
+
+
+| CMTS | | CM |
+|---------------------------------------------------------------------------------------------------------------------------|---------------------------|-----------------------------------------------------------------------------------------------|
+| [Time to send the initial maintenance opportunity] | | |
+| Send MAP containing initial maintenance information element with a broadcast/multicast service ID | MAP → | |
+| | ← RNG-REQ or INIT-RNG-REQ | Transmit ranging packet in contention mode with service ID parameter = 0 |
+| [Receive recognizable ranging packet] | | |
+| Allocate temporary service ID | | |
+| Send ranging response | RNG-RSP → | |
+| Add temporary service ID to poll list | | Store temporary service ID and adjust other parameters |
+| [Time to send the next MAP] | | |
+| Send MAP with station maintenance information element or unicast initial maintenance element to modem using temporary SID | MAP → | Recognize own temporary service ID in map |
+| | ← RNG-REQ | Reply to station maintenance opportunity poll or unicast initial maintenance opportunity poll |
+| Send ranging response | RNG-RSP → | |
+| | | Adjust local parameters |
+| [Time to send an initial maintenance opportunity] | | |
+| Send MAP containing initial maintenance information element with a broadcast/multicast service ID | | |
+| Send periodic transmit opportunity to broadcast address | MAP → | |
+
+NOTE – The CMTS MUST allow the CM sufficient time to have processed the previous RNG-RSP (i.e., to modify the transmitter parameters) before sending the CM a specific ranging opportunity. This is defined as CM ranging response time in Annex B.
+
+**Figure 11-5 – Ranging and automatic adjustments procedure**
+
+
+
+```
+
+graph TD
+ Start([Wait for broadcast initial ranging opportunity]) --> MAP{MAP with maintenance opportunity}
+ MAP --> SendReq{{Send INIT-RNG-REQ or RNG-REQ}}
+ SendReq --> WaitRSP([Wait for RNG-RSP])
+ WaitRSP --> RSP{RNG-RSP}
+ RSP --> AdjustParams[Adjust local parameters per RNG-RSP]
+ AdjustParams --> WaitUnicast([Wait for unicast maintenance opportunity])
+ WaitRSP --> T3{Timeout T3}
+ T3 --> Retries{Retries exhausted?}
+ Retries -- Y --> Error1([Error: re-initialize MAC])
+ Retries -- N --> AdjustPower[Adjust local power]
+ AdjustPower --> Backoff[Random backoff (Note 1)]
+ Backoff --> Start
+ Start --> T2{Timeout T2}
+ T2 --> Error2([Error re-initialize MAC])
+
+```
+
+Flowchart for Broadcast initial ranging - CM. The process starts with 'Wait for broadcast initial ranging opportunity', leading to 'MAP with maintenance opportunity', then 'Send INIT-RNG-REQ or RNG-REQ', and 'Wait for RNG-RSP'. From 'Wait for RNG-RSP', it branches to 'RNG-RSP' (leading to 'Adjust local parameters per RNG-RSP' and 'Wait for unicast maintenance opportunity') and 'Timeout T3'. 'Timeout T3' leads to a decision 'Retries exhausted?'. If 'Y' (Yes), it leads to 'Error: re-initialize MAC'. If 'N' (No), it leads to 'Adjust local power', 'Random backoff (Note 1)', and back to 'Wait for broadcast initial ranging opportunity'. There is also a 'Timeout T2' leading to 'Error re-initialize MAC' from the initial wait state.
+
+J.122\_F11-6
+
+NOTE 1 – Timeout T3 may occur because the RNG-REQs from multiple modems collided. To avoid these modems repeating the loop in lockstep, a random backoff is required. This is a backoff over the ranging window specified in the MAP. T3 timeouts can also occur during multi-channel operation. On a system with multiple upstream channels, the CM MUST attempt initial ranging on every suitable upstream channel before moving to the next available downstream channel.
+
+NOTE 2 – A unicast maintenance opportunity can be either a station maintenance or a unicast initial maintenance opportunity.
+
+**Figure 11-6 – Broadcast initial ranging – CM**
+
+
+
+```
+
+graph TD
+ Start([Wait for unicast maintenance opportunity]) --> MAP{MAP with maintenance opportunity}
+ MAP --> SendRNGREQ{{Send RNG-REQ}}
+ SendRNGREQ --> WaitRNGRSP([Wait for RNG-RSP])
+ WaitRNGRSP --> RNGRSP{RNG-RSP}
+ RNGRSP --> AdjustParams[Adjust parameters per RNG-RSP]
+ AdjustParams --> RangingSuccess{Ranging success (Note)}
+ RangingSuccess -- Yes --> EnableData[Enable data transfer]
+ EnableData --> EstablishIP([Establish IP layer])
+ RangingSuccess -- No --> AbortRanging{Abort ranging from CMTS?}
+ AbortRanging -- Yes --> Error([Error: re-initialize MAC])
+ AbortRanging -- No --> AdjustPower[Adjust transmit power]
+ AdjustPower --> TimeoutT4{Timeout T4}
+ TimeoutT4 --> Start
+ RangingSuccess -- No --> RetriesExceeded{RNG-REQ retries exceeded?}
+ RetriesExceeded -- Yes --> Error
+ RetriesExceeded -- No --> AdjustPower
+ AdjustPower --> TimeoutT3{Timeout T3}
+ TimeoutT3 --> RetriesExceeded
+
+```
+
+J.122\_F11-7
+
+Flowchart for Unicast initial ranging - CM. The process starts with 'Wait for unicast maintenance opportunity', followed by 'MAP with maintenance opportunity', 'Send RNG-REQ', 'Wait for RNG-RSP', 'RNG-RSP', 'Adjust parameters per RNG-RSP', and 'Ranging success (Note)'. If successful, it proceeds to 'Enable data transfer' and 'Establish IP layer'. If not, it checks 'RNG-REQ retries exceeded?' or 'Abort ranging from CMTS?'. If either is true, it goes to 'Error: re-initialize MAC'. Otherwise, it goes to 'Adjust transmit power' and then 'Timeout T4', which loops back to the start.
+
+NOTE – Ranging request is within the tolerance of the CMTS.
+
+**Figure 11-7 – Unicast initial ranging – CM**
+
+
+
+```
+
+graph TD
+ Start([Wait for recognizable
+INIT-RNG-REQ
+or RNG-REQ]) --> RNGREQ1[/RNG-REQ/]
+ RNGREQ1 --> SIDAssigned{SID assigned to
+this CM already?}
+ SIDAssigned -- No --> AssignSID[Assign temporary
+SID]
+ AssignSID --> AddCM[Add CM to poll
+list for future
+maps]
+ SIDAssigned -- Yes --> ResetRetry[Reset retry count
+in poll list for this
+CM]
+ AddCM --> SendRNGRSPCont[Send RNG-RSP
+(continue)]
+ ResetRetry --> SendRNGRSPCont
+ SendRNGRSPCont --> WaitPolledRNGREQ[Wait for polled
+RNG-REQ]
+ Note2[Map will be sent per allocation
+algorithm and pending till
+complete (Note 2)] -.-> WaitPolledRNGREQ
+ WaitPolledRNGREQ --> RNGREQNotReceived[/RNG-REQ not
+received/]
+ RNGREQNotReceived --> RetriesExhausted1{Retries exhausted?}
+ RetriesExhausted1 -- No --> WaitPolledRNGREQ
+ RetriesExhausted1 -- Yes --> RemoveCM1[Remove CM from
+poll list]
+ RemoveCM1 --> WaitRecog[Wait for
+recognizable
+RNG-REQ]
+ WaitPolledRNGREQ --> RNGREQReceived[/RNG-REQ/]
+ RNGREQReceived --> GoodEnough{Good enough?
+(Note 1)}
+ GoodEnough -- Yes --> SendRNGRSPSuccess[/Send
+RNG-RSP
+(success)/]
+ SendRNGRSPSuccess --> RemoveCM2[Remove CM from
+poll list]
+ RemoveCM2 --> Done([Done])
+ GoodEnough -- No --> RetriesExhausted2{Retries exhausted?}
+ RetriesExhausted2 -- Yes --> SendRNGRSPAbort[/Send
+RNG-RSP
+(abort)/]
+ SendRNGRSPAbort --> WaitRecog
+ RetriesExhausted2 -- No --> SendRNGRSPCont2[/Send
+RNG-RSP
+(continue)/]
+ SendRNGRSPCont2 --> WaitPolledRNGREQ2[Wait for polled
+RNG-REQ]
+ WaitPolledRNGREQ2 --> WaitRecog
+
+```
+
+Flowchart for Initial ranging - CMTS. The process starts with waiting for a recognizable INIT-RNG-REQ or RNG-REQ, followed by processing the RNG-REQ, checking if a SID is assigned, and then sending an RNG-RSP. It includes decision points for 'Good enough?' and 'Retries exhausted?' with various outcomes like 'Send RNG-RSP (success)', 'Send RNG-RSP (abort)', or 'Remove CM from poll list'.
+
+NOTE 1 – "Good enough" means ranging is within the tolerable limits of the CMTS.
+
+NOTE 2 – RNG-REQ pending-till-complete was non-zero, the CMTS SHOULD hold off the station maintenance opportunity accordingly unless needed, for example, to adjust the CMs power level. If opportunities are offered prior to the pending-till-complete expiry, the "good-enough" test that follows receipt of a RNG-RSP MUST NOT judge the CMs transmit equalization until pending-till-complete expires.
+
+**Figure 11-8 – Initial ranging – CMTS**
+
+#### 11.2.4.1 Ranging parameter adjustment
+
+Adjustment of local parameters (e.g., transmit power) in a CM as a result of the receipt (or non-receipt) of an RNG-RSP is considered to be implementation-dependent with the following restrictions (refer to clause 8.3.6):
+
+- All parameters MUST be within the approved range at all times.
+- Power adjustment MUST start from the minimum value unless a valid power is available from non-volatile storage, in which case this MUST be used as a starting point.
+- Power adjustment MUST be capable of being reduced or increased by the specified amount in response to RNG-RSP messages.
+- If, during initialization, power is increased to the maximum value (without a response from the CMTS) it MUST wrap back to the minimum.
+- For multi-channel support, the CM MUST attempt initial ranging on every suitable upstream channel before moving to the next available downstream channel.
+- For multi-channel support, the CM MUST use the upstream channel ID of the range response as specified in clause 8.3.6 and in Appendix III.
+
+#### 11.2.5 Device class identification
+
+After ranging is complete and before establishing IP connectivity, the CM MAY identify itself to the CMTS for use in provisioning. Refer to Figure 11-9.
+
+
+
+The diagram illustrates the interaction between a CMTS (Cable Modem Termination System) and a CM (Cable Modem) for device class identification. The CMTS sends an identification request to the CM. The CM processes the request and responds with a DCI-RSP. The CMTS then continues to establish IP connectivity.
+
+```
+sequenceDiagram
+ participant CMTS
+ participant CM
+ Note left of CMTS: Send identification request to CMTS
+ CMTS->>CM: DCI-REQ
+ Note right of CM: Process request
+ CM-->>CMTS: DCI-RSP
+ Note left of CMTS: Continue to establishing IP connectivity
+```
+
+Sequence diagram for Device class identification between CMTS and CM.
+
+Figure 11-9 – Device class identification
+
+If implemented, the CM MUST use an adaptive timeout for device class identification based on binary exponential backoff, similar to that used for TFTP. Refer to clause 11.2.8 for details.
+
+#### 11.2.6 Establish IP connectivity
+
+At this point, the CM MUST invoke DHCP mechanisms [RFC 2131] in order to obtain an IP address and any other parameters needed to establish IP connectivity (refer to Annex D). The DHCP response MUST contain the name of a file that contains further configuration parameters. Refer to Figure 11-10.
+
+
+
+```
+
+sequenceDiagram
+ participant CM
+ participant DHCP
+ Note left of CM: Send DHCP request to broadcast address
+ CM->>DHCP: DHCP discover
+ Note right of DHCP: Check CM MAC address and respond
+ DHCP-->>CM: DHCP offer
+ Note left of CM: Choose server
+ CM->>DHCP: DHCP request
+ Note right of DHCP: Process request
+ DHCP-->>CM: DHCP response
+ Note left of CM: Set up IP parameters from DHCP response
+
+```
+
+Sequence diagram showing the DHCP process between a CM and a DHCP server. The CM sends a DHCP discover, the DHCP server checks the MAC address and responds with a DHCP offer. The CM then chooses a server and sends a DHCP request, which the server processes and responds with a DHCP response. Finally, the CM sets up IP parameters.
+
+**Figure 11-10 – Establishing IP connectivity**
+
+As required in [RFC 2131], the CM MUST adopt a retransmission strategy that incorporates a randomized exponential backoff algorithm to determine the delay between retransmissions. The backoff algorithm SHOULD use a backoff start value of 4 seconds, a backoff end value of 64 seconds and randomized value of $\pm 1$ second. The CM MUST limit the number of retransmissions. The CM SHOULD limit the number of retransmissions (excluding the first transmission) to a maximum retries value of 5 but MAY implement less than the maximum retries value. The CM SHOULD also implement a different retransmission strategy for the RENEWING and REBINDING states, as recommended in [RFC 2131], which is based on one-half of the remaining lease time. Upon failure of obtaining or rebinding an IP address, the CM MUST attempt to establish communication on another upstream channel (see clause 11.2.2) or resume scanning to find another downstream channel (see clause 11.2.1).
+
+### 11.2.7 Establish time of day
+
+The CM and CMTS need to have the current date and time. This is required for time-stamping logged events which can be retrieved by the management system. This need not be authenticated and need only be accurate to the nearest second.
+
+The protocol by which the time of day MUST be retrieved is defined in [RFC 868]. Refer to Figure 11-11. The request and response MUST be transferred using UDP. The time retrieved from the server (UTC) MUST be combined with the time offset received from the DHCP response to create the current local time.
+
+
+
+```
+
+sequenceDiagram
+ participant CM
+ participant Time server
+ Note left of CM: Send request to time server
+ CM->>Time server: Time of day request
+ Note right of Time server: Process request
+ Time server-->>CM: Time of day response
+ Note left of CM: Set up/correct time of day from response
+
+```
+
+Sequence diagram showing the time of day protocol between a CM and a Time server. The CM sends a time of day request, the server processes it and responds with a time of day response. Finally, the CM sets up/corrects the time of day.
+
+**Figure 11-11 – Establishing time of day**
+
+The DHCP server may offer a CM multiple time of day server IP addresses to attempt. The CM MUST attempt all time of day servers included in the DHCP offer until local time is established.
+
+Successfully acquiring the time of day is not mandatory for a successful registration, but it is necessary for ongoing operation. If a CM is unable to establish time of day before registration it MUST log the failure, generate an alert to management facilities, then proceed to an operational state and retry periodically.
+
+The specific timeout for time of day Requests is implementation-dependent. However, for each server defined the CM MUST NOT exceed more than 3 time of day requests in any 5-minute period. At minimum, the CM MUST issue at least 1 time of day request per 5-minute period for each server specified until local time is established.
+
+#### **11.2.8 Transfer operational parameters**
+
+After DHCP is successful, the modem MUST download the parameter file using TFTP, as shown in Figure 11-12. The TFTP configuration parameter server is specified by the "siaddr" field of the DHCP response. The CM MUST use an adaptive timeout for TFTP based on binary exponential backoff. Refer to [RFC 1123] and [RFC 2349].
+
+
+
+```
+
+graph TD
+ A[/Time of day request/] --> B([Wait for time of day response])
+ B --> C[/Time of day response/]
+ B --> D[/Timeout/]
+ C --> E[/Request config. file/]
+ D --> E
+ E --> F([Wait for successful TFTP])
+ F --> G[/Config. file received/]
+ F --> H[/Timeout/]
+ H --> I[Increment retry counter]
+ G --> J{Mandatory items present?}
+ J -- No --> I
+ J -- Yes --> K{CM MIC valid?}
+ K -- No --> I
+ K -- Yes --> L{TLV type 11 errors?}
+ L -- Yes --> I
+ L -- No --> M[Acquire operational parameters]
+ M --> N[/Send REG-REQ/]
+ N --> O([Wait for REG-RSP])
+ I --> P{Retries exceeded?}
+ P -- No --> E
+ P -- Yes --> Q([Scan for downstream channel])
+ R[Time of day retries are asynchronous with registration]
+
+```
+
+Flowchart for Registration - CM process. The process starts with 'Time of day request' leading to 'Wait for time of day response'. A note indicates 'Time of day retries are asynchronous with registration'. The flow then splits into 'Time of day response' and 'Timeout'. Both lead to 'Request config. file'. From 'Request config. file', the flow goes to 'Wait for successful TFTP'. This leads to 'Config. file received' and 'Timeout'. 'Timeout' leads to 'Increment retry counter'. 'Config. file received' leads to a decision 'Mandatory items present?'. If 'No', it leads to 'Increment retry counter'. If 'Yes', it leads to 'CM MIC valid?'. If 'No', it leads to 'Increment retry counter'. If 'Yes', it leads to 'TLV type 11 errors?'. If 'Yes', it leads to 'Increment retry counter'. If 'No', it leads to 'Acquire operational parameters', which leads to 'Send REG-REQ', which leads to 'Wait for REG-RSP'. A decision 'Retries exceeded?' is also present. If 'No', it loops back to 'Request config. file'. If 'Yes', it leads to 'Scan for downstream channel'.
+
+**Figure 11-12 – Registration – CM**
+
+The parameter fields required in the DHCP response, and the format and content of the configuration file **MUST** be as defined in Annex D. Note that these fields are the minimum required for interoperability.
+
+If a modem downloads a configuration file containing an upstream channel ID configuration setting (clause C.1.1.2) different from what the modem is currently using, the modem **MUST NOT** send a registration request message to the CMTS. Likewise, if a modem downloads a configuration file containing a single downstream channel frequency (clause C.1.1.21.1.2) and/or downstream frequency range (clause C.1.1.21.2) that does not include the downstream frequency the modem is currently using, or a downstream frequency configuration setting (clause C.1.1.1) different from what the modem is currently using and no downstream channel list, the modem **MUST NOT** send a
+
+registration request message to the CMTS. In either case, the modem MUST redo initial ranging using the configured upstream channel and/or downstream frequency per clause 8.3.6.3.
+
+If a modem downloads a configuration file containing the enable 2.0 mode TLV set to disable (see clause C.1.1.19), then it MUST NOT operate in 2.0 mode until it registers again and downloads a configuration file which does not have this TLV set to disable. This is true no matter what type of upstream the CM is using at the time it is attempting registration. If it is using a type 3 channel (as described in clause 11.2.2), it MUST NOT send a registration request message to the CMTS. The modem MUST redo initial ranging using a type 1 or type 2 channel. If no such upstream channel is available (or if the modem is unable to range successfully on one) the modem MUST scan for a new downstream, at which point 2.0 mode is no longer disabled. If the modem downloads a configuration file that does not disable 2.0 mode, then, regardless of what kind of upstream it is using at the time of registration, it will continue to operate with 2.0 mode enabled until it is no longer registered. This means that if a modem registers on a type 1 channel with a configuration file that enables 2.0 mode operation, and then ends up on a type 2 or type 3 upstream without going through re-registration, the CM would immediately start operating in 2.0 mode.
+
+## 11.2.9 Registration
+
+A CM MUST be authorized to forward traffic into the network once it is initialized and configured. The CM is authorized to forward traffic into the network via registration. To register with a CMTS, the CM MUST forward its configured class of service and any other operational parameters in the configuration file (refer to clause 8.3.7) to the CMTS as part of a registration request. The CM MUST perform the following operations before registration (refer to Figure 11-12):
+
+- Check configuration file mandatory items (refer to clause D.2.2). The CM MUST reject a configuration file if it lacks any mandatory items.
+- Calculate a MIC per clause D.2.3.1 and compare it to the CM MIC included in the configuration file. If the MIC is invalid, the CM MUST reject the configuration file.
+- If the configuration file contains TLV-11 encoding, the CM MUST follow the configuration process defined in clause 3.4 of [DOCS5]. The CM MUST reject a configuration file in the case of TLV-11 processing failure.
+
+Figure 11-12 shows the procedure that MUST be followed by the CM.
+
+The configuration parameters downloaded to the CM MUST include a network access control object (see clause C.1.1.3). If this is set to "no forwarding," the CM MUST NOT forward data from attached CPE to the network, yet the CM MUST respond to network management requests. This allows the CM to be configured in a mode in which it is manageable but will not forward data.
+
+Once the CM has sent a registration request to the CMTS, it MUST wait for a registration response to authorize it to forward traffic to the network. Figure 11-13 shows the waiting procedure that MUST be followed by the CM.
+
+
+
+```
+
+graph TD
+ Start([Wait for Reg Rsp]) --> T6[Timeout T6]
+ Start --> REG_RSP[REG-RSP]
+ T6 --> Retries{Retries exhausted?}
+ Retries -- No --> Send_REG_REQ[Send REG-REQ]
+ Send_REG_REQ --> Wait_REG_RSP[Wait for REG-RSP]
+ Retries -- Yes --> Error[Error: Re-initialize MAC]
+ REG_RSP --> ResponseOk{Response = ok?}
+ ResponseOk -- No --> ImplDep[Implementation Dependent]
+ ResponseOk -- Yes --> CMParams{CM supports all parameters in REG-RSP?}
+ CMParams -- No --> Send_REG_ACK_Err[Send REG-ACK with error sets]
+ Send_REG_ACK_Err --> ImplDep
+ CMParams -- Yes --> Setup[Setup Service Flows & Activate Operational Parameters]
+ Setup --> Send_REG_ACK[Send REG-ACK]
+ Send_REG_ACK --> DOCS20_1{DOCS 2.0 enabled AND Type 2 channel?}
+ DOCS20_1 -- Yes --> Switch20[Switch to DOCS 2.0 mode]
+ DOCS20_1 -- No --> Operational([Operational])
+ Switch20 --> Operational
+ Operational --> REG_RSP_2[REG-RSP]
+ Switch20 --> Switch11[Switch to DOCS 1.1 mode]
+ Switch11 --> DOCS20_2{DOCS 2.0 enabled AND Type 2 channel?}
+ DOCS20_2 -- Yes --> Switch20
+ DOCS20_2 -- No --> REG_RSP_2
+
+```
+
+Flowchart titled 'Wait for Reg Rsp' showing the registration response process for a CM. It starts with 'Wait for Reg Rsp', leading to 'Timeout T6' and 'REG-RSP'. 'Timeout T6' leads to 'Retries exhausted?'. If 'No', it goes to 'Send REG-REQ' and then 'Wait for REG-RSP'. If 'Yes', it goes to 'Error: Re-initialize MAC'. 'REG-RSP' leads to 'Response = ok?'. If 'No', it goes to 'Implementation Dependent'. If 'Yes', it leads to 'CM supports all parameters in REG-RSP?'. If 'No', it goes to 'Send REG-ACK with error sets' and then to 'Implementation Dependent'. If 'Yes', it goes to 'Setup Service Flows & Activate Operational Parameters', then 'Send REG-ACK'. 'Send REG-ACK' leads to 'DOCS 2.0 enabled AND Type 2 channel?'. If 'Yes', it goes to 'Switch to DOCS 2.0 mode' and then to 'Operational'. If 'No', it goes to 'Operational'. 'Operational' leads to 'REG-RSP'. 'Switch to DOCS 2.0 mode' also leads to 'Operational'. 'Switch to DOCS 1.1 mode' leads to 'DOCS 2.0 enabled AND Type 2 channel?'. If 'Yes', it goes to 'Switch to DOCS 2.0 mode' and then to 'Operational'. If 'No', it goes to 'REG-RSP'.
+
+**Figure 11-13 – Wait for registration response – CM27**
+
+NOTE – In Figures 11-12 and 11-13, a type 2 upstream supports both DOCS 1.1 and DOCS 2.0 TDMA bursts (see 11.2.2). On such an upstream, it is necessary that the CMTS knows whether the CM has calculated a request to transmit data based on the DOCS 2.0 TDMA data IUCs (9, 10) or on the DOCS 1.x IUCs (5, 6). On these upstreams, the CM calculates all requests up to and including the request to transmit the REG-ACK based on the DOCS 1.x IUCs. If the CM is enabled to operate in 2.0 mode (see clause C.1.1.19), all requests to transmit data on such an upstream, subsequent to the transmission of the REG-ACK, are calculated based on the DOCS 2.0 TDMA data IUCs. If the CMTS indicates that it did not receive the REG-ACK by retransmitting the REG-RSP, a CM using such an upstream MUST revert to the DOCS 1.x data IUCs to request bandwidth for retransmitting the REG-ACK.
+
+27 Refer to clause 11.2.2 for channel type definitions.
+
+The CMTS MUST perform the following operations to confirm the CM authorization (refer to Figures 11-14 and 11-15):
+
+- Calculate a MIC per clause D.3.1 and compare it to the CMTS MIC included in the registration request. If the MIC is invalid, the CMTS MUST respond with an authentication failure.
+- If present, check the TFTP server timestamp field. If the CMTS detects that the time is different from its local time by more than CM configuration processing time (refer to Annex B), the CMTS MUST indicate authentication failure in the REG-RSP. The CMTS SHOULD also make a log entry stating the CM MAC address from the message.
+- If present, check the TFTP server provisioned modem address field. If the provisioned modem address does not match the requesting modem's actual address, the CMTS MUST indicate authentication failure in the REG-RSP. The CMTS SHOULD also make a log entry stating the CM MAC address from the message.
+- If the registration request contains DOCS 1.0 class-of-service encodings, verify the availability of the class(es) of service requested. If unable to provide the class(es) of service, the CMTS MUST respond with a class-of-service failure and the appropriate service not available response code(s) (refer to clause C.1.3.4).
+- If the registration request contains service flow encodings, verify the availability of the quality of service requested in the provisioned service flow(s). If unable to provide the service flow(s), the CMTS MUST respond with either a reject-temporary or a reject-permanent (see clause C.4) and the appropriate service flow response(s).
+- If the registration request contains DOCS 1.0 class-of-service encodings and service flow encodings, the CMTS MUST respond with a class-of-service failure and a service not available response code set to 'reject-permanent' for all DOCS 1.0 classes and service flows requested.
+- Verify the availability of any modem capabilities requested. If unable or unwilling to provide the modem capability requested, the CMTS MUST turn that modem capability 'off' (refer to clause 8.3.8.1.1).
+- Assign a service flow ID for each class of service supported.
+- Reply to the modem in a registration response.
+- If the registration request contains service flow encoding and the REG-RSP is sent with a confirmation code of ok (0), the CMTS MUST wait for a registration acknowledgment as shown in Figure 11-14. If the registration request contains DOCS 1.0 class-of-service encodings, the CMTS MUST NOT wait for a registration acknowledgment.
+- In a channel that supports both DOCS 1.x and DOCS 2.0 TDMA burst types (see clause 11.2), the CMTS MUST change the operational state of the DOCS 2.0 enabled CM (see clause C.1.1.19) to DOCS 2.0 TDMA after the registration acknowledgement message is received from the CM.
+- If timer T9 expires, the CMTS MUST both de-assign the temporary SID from that CM and make some provision for aging out that SID.
+
+
+
+```
+
+graph TD
+ Start([Waiting for REG-REQ]) --> REG-REQ[REG-REQ]
+ REG-REQ --> StopT9[Stop T9]
+ StopT9 --> CalcMIC[Calculate MIC over REG-REQ]
+ CalcMIC --> MICValid{CMTS MIC Valid?}
+ MICValid -- No --> RSP1[Send REG-RSP with response = authentication failure]
+ MICValid -- Yes --> TFTPValid{TFTP server IP and/or timestamp valid?}
+ TFTPValid -- No --> RSP2[Send REG-RSP with response = authentication failure and should log failure]
+ TFTPValid -- Yes --> ServiceEver{Can the requested service(s) ever be supported?}
+ ServiceEver -- No --> RSP3[Send REG-RSP with response = class of service failure and service not available = reason permanent]
+ ServiceEver -- Yes --> ServiceNow{Can the requested service(s) currently be supported?}
+ ServiceNow -- No --> RSP4[Send REG-RSP with response = class of service failure and service not available = reason temporary]
+ RSP1 --> WaitREQ([Wait for REG-REQ])
+ RSP2 --> WaitREQ
+ RSP3 --> WaitREQ
+ RSP4 --> WaitREQ
+ ServiceNow -- Yes --> SetCapabilities[Set modem capabilities supported in REG-RSP]
+ SetCapabilities --> CreateServices[Create requested services]
+ CreateServices --> RSP5[Send REG-RSP with response = OK]
+ RSP5 --> WaitACK([Waiting for REG-ACK])
+ J122_F11_14[J.122_F11-14]
+
+```
+
+Flowchart for Registration - CMTS process. The process starts with 'Waiting for REG-REQ', followed by 'REG-REQ', 'Stop T9', and 'Calculate MIC over REG-REQ'. It then enters a series of decision diamonds: 'CMTS MIC Valid?', 'TFTP server IP and/or timestamp valid?', 'Can the requested service(s) ever be supported?', and 'Can the requested service(s) currently be supported?'. Each 'No' branch leads to a 'Send REG-RSP' box with specific error reasons, all of which lead to 'Wait for REG-REQ'. The 'Yes' branches continue the process to 'Set modem capabilities supported in REG-RSP', 'Create requested services', and 'Send REG-RSP with response = OK', ending at 'Waiting for REG-ACK'. A label 'J.122\_F11-14' is present near the bottom right of the flow.
+
+**Figure 11-14 – Registration – CMTS**
+
+
+
+```
+
+graph TD
+ Start([Waiting for REG-ACK]) --> REG_ACK[REG-ACK]
+ Start --> Timeout[Timeout T6]
+ REG_ACK --> ErrorSets{REG-ACK contains error sets?}
+ ErrorSets -- No --> AdvPHY{Adv. PHY activated AND Type 2 channel?}
+ ErrorSets -- Yes --> Retries{Retries Exhausted?}
+ Timeout --> Retries
+ Retries -- No --> SendRSP{{Send REG-RSP with response = OK}}
+ Retries -- Yes --> Destroy[Destroy Services]
+ SendRSP --> WaitingRegReq([Waiting for Reg-Req])
+ Destroy --> WaitingRegReq
+ AdvPHY -- No --> Operational([Operational])
+ AdvPHY -- Yes --> SwitchState[Switch CM operational state to Adv PHY]
+ SwitchState --> Operational
+
+```
+
+Flowchart for Registration acknowledgment – CMTS. The process starts with 'Waiting for REG-ACK', leading to 'REG-ACK' or 'Timeout T6'. 'REG-ACK' leads to a decision 'REG-ACK contains error sets?'. If 'No', it leads to 'Adv. PHY activated AND Type 2 channel?'. If 'Yes', it leads to 'Retries Exhausted?'. 'Timeout T6' also leads to 'Retries Exhausted?'. From 'Retries Exhausted?', 'No' leads to 'Send REG-RSP with response = OK' and 'Yes' leads to 'Destroy Services'. Both 'Send REG-RSP with response = OK' and 'Destroy Services' lead to 'Waiting for Reg-Req'. 'Adv. PHY activated AND Type 2 channel?' 'Yes' leads to 'Switch CM operational state to Adv PHY' and 'No' leads to 'Operational'. Both 'Switch CM operational state to Adv PHY' and 'Operational' lead to 'Operational'.
+
+J.122\_F11-15
+
+**Figure 11-15 – Registration acknowledgment – CMTS**
+
+### 11.2.10 Baseline privacy initialization
+
+Following registration, if the CM is provisioned to run baseline privacy, the CM MUST initialize baseline privacy operations as described in [DOCS8]. A CM is provisioned to run baseline privacy if the privacy enable TLV (see clause C.1.1.16) in the DOCS 1.1 style configuration file is explicitly/implicitly set to enable or the baseline privacy configuration setting (see clause C.3.2) is contained in the DOCS 1.0 style configuration file as specified in clauses A.1.1 and C.2 of the BPI+ Recommendation [DOCS8]. Note that the secure software download is required regardless of whether the CM is provisioned to run baseline privacy or not as specified in Appendix D of the BPI+ Recommendation [DOCS8].
+
+When assigning provisioned SFIDs on receiving a registration request, the CMTS may re-use the temporary SID, assigning it to one of the service flows requested. If so, it MUST continue to allow initialization messages on that SID, since the registration response could be lost in transit. If the CMTS assigns all-new SIDs for class-of-service provisioning, it MUST age out the temporary SID. The aging-out MUST allow sufficient time to complete the registration process in case the registration response is lost in transit.
+
+### 11.2.11 Service IDs during CM initialization
+
+After completion of the registration process (see clause 11.2.9), the CM will have been assigned service flow IDs (SFIDs) to match its provisioning. However, the CM must complete a number of protocol transactions prior to that time (e.g., ranging, DHCP, etc.), and requires a temporary service ID in order to complete those steps.
+
+On reception of an initial ranging request, the CMTS MUST allocate a temporary SID and assign it to the CM for initialization use. The CMTS MAY monitor use of this SID and restrict traffic to that needed for initialization. It MUST inform the CM of this assignment in the ranging response.
+
+The temporary SID assigned by the CMTS MUST be in the unicast SID space (see clause 9.1.2). DOCSIS 2.0 CMs MUST support the capability to transmit unicast traffic on the expanded SID space (see clause C.1.3.1.3). If a CM supports the above capability the CMTS MAY assign SID numbers from the expanded unicast SID space in the registration response.
+
+On receiving a ranging response addressed to it, the CM MUST use the assigned temporary SID for further initialization transmission requests until the registration response is received.
+
+On receiving a ranging response instruction to move to a new downstream frequency and/or upstream channel ID, the CM MUST consider any previously assigned temporary SID to be de-assigned, and must obtain a new temporary SID via initial ranging.
+
+It is possible that the ranging response may be lost after transmission by the CMTS. The CM MUST recover by timing out and re-issuing its initial ranging request. Since the CM is uniquely identified by the source MAC address in the ranging request, the CMTS MAY immediately reuse the temporary SID previously assigned. If the CMTS assigns a new temporary SID, it MUST make some provision for aging out the old SID that went unused (see clause 8.3.8).
+
+When assigning provisioned SFIDs on receiving a registration request, the CMTS may reuse the temporary SID, assigning it to one of the service flows requested. If so, it MUST continue to allow initialization messages on that SID, since the registration response could be lost in transit. If the CMTS assigns all-new SIDs for class-of-service provisioning, it MUST age out the temporary SID. The aging-out MUST allow sufficient time to complete the registration process in case the registration response is lost in transit.
+
+## **11.2.12 Multiple-channel support**
+
+In the event that more than one downstream signal is present in the system, the CM MUST operate using the first valid downstream signal that it encounters when scanning. It will be instructed via the parameters in the configuration file (see Annex C) to shift operation to different downstream and/or upstream frequencies if necessary.
+
+Both upstream and downstream channels MUST be identified where required in MAC management messages using channel identifiers.
+
+## **11.3 Standard operation**
+
+### **11.3.1 Periodic signal level adjustment**
+
+The CMTS MUST provide each CM a periodic ranging opportunity at least once every T4 seconds. The CMTS MUST send out periodic ranging opportunities at an interval sufficiently shorter than T4 that a MAP could be missed without the CM timing out. The size of this "subinterval" is CMTS-dependent.
+
+The CM MUST re-initialize its MAC after T4 seconds have elapsed without receiving a periodic ranging opportunity.
+
+Remote RF signal level adjustment at the CM is performed through a periodic ranging function using the RNG-REQ and RNG-RSP MAC messages. This is similar to initial ranging and is shown in Figures 11-16 and 11-17. On receiving a RNG-RSP, the CM MUST NOT transmit until the RF signal has been adjusted in accordance with the RNG-RSP and has stabilized (refer to clause 6). The CM MUST NOT transmit anything other than RNG-REQs, if it has been suspended by receiving a RNG-RSP with a ranging state of CONTINUE, until such time as it receives a RNG-RSP with a ranging state of SUCCESS. When operating in 1.x mode, the CM should continue
+
+normal operation and MUST NOT suspend on-going data transmission if it receives a RNG-RSP with a ranging status of CONTINUE.
+
+The CMTS SHOULD NOT send a ranging status of CONTINUE in a RNG-RSP to any CMs in 2.0 mode unless the ranging parameters measured on the corresponding RNG-REQ are insufficient for the CMTS to guarantee proper reception of all burst types available to that CM. Additionally, upon sending a RNG-RSP with ranging status of CONTINUE to a CM in 2.0 mode, the CMTS SHOULD schedule another periodic ranging opportunity for the CM quickly so that the CM can return to a ranging status of SUCCESS as quickly as possible.
+
+As described in clause 11.2.1, during normal operation in the S-CDMA mode, if a CM temporarily loses synchronization to the downstream signal, it is required to perform a ranging process before returning to normal operation. To facilitate this recovery, if the CMTS does not receive a RNG-REQ message from a CM during a station maintenance interval, the CMTS MAY schedule unicast initial maintenance opportunities, or it MAY temporarily reduce the time between unicast spreader-off station maintenance opportunities.
+
+
+
+```
+
+graph TD
+ Start[On periodic timer add CM to poll list for future MAPs] --> WaitRNG[Wait for polled RNG-REQ]
+ Note2[MAP will be sent per allocation algorithm and pending till complete Note 2] -.-> WaitRNG
+ WaitRNG --> NotReceived{RNG-REQ not received}
+ NotReceived --> RetriesExhausted1{Retries exhausted?}
+ RetriesExhausted1 -- No --> WaitRNG
+ RetriesExhausted1 -- Yes --> AbortRSP[Send RNG-RSP abort]
+ AbortRSP --> RemoveCM1[Remove CM from poll list]
+ RemoveCM1 --> DestroySIDs[Destroy SIDs associated with this CM]
+ DestroySIDs --> Done1([Done])
+ WaitRNG --> Received{RNG-REQ}
+ Received --> GoodEnough{Good enough? Note 1}
+ GoodEnough -- Yes --> SuccessRSP[Send RNG-RSP success]
+ SuccessRSP --> RemoveCM2[Remove CM from poll list]
+ RemoveCM2 --> Done2([Done])
+ GoodEnough -- No --> RetriesExhausted2{Retries exhausted?}
+ RetriesExhausted2 -- Yes --> AbortRSP
+ RetriesExhausted2 -- No --> ContinueRSP[Send RNG-RSP continue]
+ ContinueRSP --> WaitRNG
+
+```
+
+J.122\_F11-16
+
+Flowchart for Periodic ranging - CMTS. The process starts with adding a CM to a poll list on a periodic timer. It then enters a loop waiting for a polled RNG-REQ. If not received, it checks if retries are exhausted. If yes, it sends an abort response, removes the CM from the poll list, destroys associated SIDs, and ends. If no, it loops back. If received, it checks if it's 'Good enough'. If yes, it sends a success response, removes the CM from the poll list, and ends. If no, it checks if retries are exhausted. If yes, it sends an abort response, removes the CM from the poll list, destroys associated SIDs, and ends. If no, it sends a continue response and loops back to waiting for a polled RNG-REQ. A note indicates that MAPs will be sent per allocation algorithm and pending till complete.
+
+NOTE 1 – "Good enough" means ranging request is within the tolerance limits of the CMTS for power and transmit equalization (if supported).
+ NOTE 2 – RGN-REQ pending-till-complete was non-zero, the CMTS SHOULD hold off the station maintenance opportunity accordingly unless needed, for example, to adjust the CM's power level. If opportunities are offered prior to the pending-till-complete expiry, the "good-enough" test that follows receipt of RGN-RSP MUST NOT judge the CM's transmit equalization until pending-till-complete expires.
+
+**Figure 11-16 – Periodic ranging – CMTS**
+
+
+
+```
+
+graph TD
+ Operational([Operational]) --> Unicast{Unicast maintenance opportunity}
+ Operational --> T3{Timeout T3}
+ Operational --> T4{Timeout T4}
+ Operational --> RNGRSP{RNG-RSP}
+
+ Unicast --> StartT4[Start T4 timer]
+ StartT4 --> SendRNGREQ[/Send RNG-REQ/]
+ SendRNGREQ --> IncrementRNGREQ[Increment RNG-REQ retry counter]
+ IncrementRNGREQ --> StartT3[Start T3 timer]
+ StartT3 --> Operational
+
+ T3 --> RetriesExceeded{RNG-REQ retries exceeded?}
+ RetriesExceeded -- Yes --> Error([Error: re-initialize MAC])
+ RetriesExceeded -- No --> StartT3
+
+ T4 --> AbortRanging{Abort ranging from CMTS?}
+ AbortRanging -- Yes --> Error
+ AbortRanging -- No --> SuccessRanging{Success ranging from CMTS?}
+
+ RNGRSP --> T3Started{T3 timer started?}
+ T3Started -- Yes --> ResetRNGREQ[Reset RNG-REQ retry counter; clear T3 timer]
+ ResetRNGREQ --> AbortRanging
+
+ SuccessRanging -- Yes --> ClearSuspend[Clear transmission suspend]
+ SuccessRanging -- No --> SuspendSuspend[Suspend transmission of everything except RNG-REQs]
+
+ ClearSuspend --> AdjustParams[Adjust local parameters per RNG-RSP]
+ SuspendSuspend --> AdjustParams
+
+ AdjustParams --> Operational
+ Error --> Operational
+
+```
+
+Flowchart for Periodic ranging - CM view. The process starts at 'Operational' and branches into 'Unicast maintenance opportunity', 'Timeout T3', 'Timeout T4', and 'RNG-RSP'. The 'Unicast maintenance opportunity' path leads to 'Start T4 timer', 'Send RNG-REQ', 'Increment RNG-REQ retry counter', and 'Start T3 timer'. The 'RNG-REQ' path leads to a decision 'RNG-REQ retries exceeded?'. If 'Yes', it leads to 'Error: re-initialize MAC'. If 'No', it loops back to 'Start T3 timer'. The 'Timeout T3' path leads to the 'RNG-REQ retries exceeded?' decision. The 'Timeout T4' path leads to 'Abort ranging from CMTS?'. The 'RNG-RSP' path leads to 'T3 timer started?'. If 'Yes', it leads to 'Reset RNG-REQ retry counter; clear T3 timer'. If 'No', it leads to 'Abort ranging from CMTS?'. From 'Abort ranging from CMTS?', if 'Yes', it leads to 'Error: re-initialize MAC'. If 'No', it leads to 'Success ranging from CMTS?'. If 'Yes', it leads to 'Clear transmission suspend' and then 'Adjust local parameters per RNG-RSP'. If 'No', it leads to 'Suspend transmission of everything except RNG-REQs' and then 'Adjust local parameters per RNG-RSP'. Both 'Adjust local parameters per RNG-RSP' and 'Error: re-initialize MAC' lead back to 'Operational'.
+
+**Figure 11-17 – Periodic ranging – CM view**
+
+### 11.3.2 Changing upstream channel descriptor message parameters
+
+Whenever the CMTS is to change any of the upstream burst characteristics specified in the upstream channel descriptor (UCD) message (see clause 8.3.3), it must provide for an orderly transition from the old values to the new values by all CMs. Whenever the CMTS is to change any of the upstream characteristics, it **MUST** announce the new values in an UCD message, and the configuration change count field in that UCD message **MUST** be incremented to indicate that a value has changed.
+
+After transmitting one or more UCD messages with the new value, the CMTS transmits a MAP message with a UCD change count matching the new configuration change count. The first interval in the MAP **MUST** be a data grant of at least 1 millisecond to the null service ID (zero). In the case of S-CDMA channels, that grant to the null service ID **MUST** be at least the longer of 1-ms or the duration of 2 S-CDMA frames to allow for the latency of the S-CDMA framing, and the start time of the MAP with the new UCD change count **MUST** correspond to the beginning of an S-CDMA frame. The CMTS **MUST** allow this time for cable modems to change their PMD sublayer parameters to match the new set. This time is independent of the lead time the CMTS needed to allow for in transmitting the MAP (see clause 9.1.5). The CMTS **MUST** transmit the new UCD message early enough that the CM receives the UCD message at least the UCD processing time (see Annex B) prior to the time the first MAP using the new UCD parameters arrives at the CM.
+
+With the following exceptions, the CM MUST be able to transmit normally on the first grant following the grant to the NULL SID. The exceptions are the case where the new UCD message has changed the S-CDMA enable parameter, or the S-CDMA US ratio numerator or denominator. In these cases, the CM MAY redo initial ranging to establish timing synchronization for the new mode of operation before it resumes normal transmissions. If the CM was already registered with the CMTS, and it redoes initial ranging for this reason, it MUST use its primary SID instead of the initialization SID for the initial ranging process and it MUST NOT re-register. Using the ranging required parameter in the new UCD message, the CMTS can force the CM to perform ranging prior to making any other transmissions using the parameters in the new UCD message. In certain cases, channel-wide parameter changes (in particular, modulation rate or centre frequency) may invalidate pre-equalization and synchronization parameters, and normal operation may not be possible without re-ranging. If the CMTS changes the modulation rate or centre frequency on an S-CDMA channel, it MUST force re-ranging using the ranging required parameter.
+
+In the case of an S-CDMA channel, the first UCD message with a new configuration count and any subsequent UCD messages that may be sent prior to the first MAP with the new UCD change count MUST have an updated timestamp snapshot corresponding to the start time of that first MAP with the new UCD change count. Also on an S-CDMA channel, the CMTS MUST maintain the continuity of the mini-slot and S-CDMA frame counters during the change in UCD parameters even if the size of a mini-slot is changed.
+
+The CMTS MUST NOT transmit MAPs with the old UCD change count after transmitting the new UCD message.
+
+The CM MUST use the parameters from the UCD message corresponding to the MAP's UCD change count for any transmissions it makes in response to that MAP. If the CM has, for any reason, not received the corresponding UCD message, it cannot transmit during the interval described by that MAP.
+
+It is possible for the change in upstream parameters to cause the upstream to change from a type 1 upstream (see clause 11.2.2) to a type 2 upstream or a type 3 upstream. If this happens, and the CM registered with a configuration file that enables 2.0 mode (see clause 11.2.8), then the CM MUST operate in 2.0 mode. If the upstream has changed to a type 2 upstream this means that any request the CM transmits in an opportunity in the MAP with the new configuration change count or any subsequent MAP MUST be calculated in terms of IUCs 9 and 10, rather than IUCs 5 and 6, and the CMTS MUST issue grants using IUCs 9 and 10. However, if the CM registered with a configuration file that disabled 2.0 mode, then the CM MUST continue to calculate requests in terms of IUCs 5 and 6, and the CMTS MUST issue grants using IUCs 5 and 6. If the CM registered with a configuration file that disables 2.0 mode, and the new parameters have changed the upstream to a type 3 upstream, then the CM MUST immediately re-initialize the MAC layer and attempt registration. It should be understood by the network operator that changing a type 1 upstream to a type 3 upstream will cause a significant disruption of service for any CMs with 2.0 mode disabled as well as any DOCS 1.x CMs that are using the channel. Also such CMs will only be able to resume operation if there is a type 1 or type 2 upstream available to them.
+
+### 11.3.3 Changing upstream channels
+
+At any time after registration, the CMTS may direct the CM to change its upstream channel. This may be done for traffic balancing, noise avoidance or any of a number of other reasons which are beyond the scope of this Recommendation. Figure 11-18 shows the procedure that MUST be followed by the CMTS. Figures 11-19 and 11-20 show the corresponding procedure at the CM.
+
+
+
+```
+
+graph TD
+ A[Decide to switch CM to new upstream channel] --> B[/UCC-REQ/]
+ B --> C[Wait for UCC-RSP]
+ C --> D{Timeout T5}
+ C --> E[/UCC-RSP/]
+ D --> F{Retries exhausted?}
+ E --> G[Done]
+ F -- No --> B
+ F -- Yes --> H[CM is unreachable]
+ style G text-align: right
+ style G font-size: small
+ style G content: J.122_F11-18
+
+```
+
+Flowchart illustrating the CMTS view for changing upstream channels. The process starts with 'Decide to switch CM to new upstream channel', followed by 'UCC-REQ', 'Wait for UCC-RSP', a 'Timeout T5' and 'UCC-RSP' parallel path, a 'Retries exhausted?' decision, and ends with 'CM is unreachable' or 'Done'.
+
+**Figure 11-18 – Changing upstream channels: CMTS view**
+
+Note that if the CMTS retries the UCC-REQ, the CM may have already changed channels (if the UCC-RSP was lost in transit). Consequently, the CMTS MUST listen for the UCC-RSP on both the old and the new channels.
+
+
+
+```
+
+graph TD
+ Start([CM operational]) --> UCC_REQ[/UCC-REQ/]
+ UCC_REQ --> AlreadyUsing{Already using this channel?}
+ AlreadyUsing -- Yes --> UCC_RSP_Reject[/UCC-RSP (reject already-there)/]
+ UCC_RSP_Reject --> Start
+ AlreadyUsing -- No --> UCC_RSP[/UCC-RSP/]
+ UCC_RSP --> Switch[Switch to new channel]
+ Switch --> ValidUCDStored{Valid UCD for target upstream stored?}
+ ValidUCDStored -- No --> Wait[Wait for valid UCD for target upstream channel (or expiry of T1)]
+ Wait --> ValidUCDStored
+ ValidUCDStored -- Yes --> PerformRanging[Perform broadcast initial ranging]
+ Wait -- Yes --> PerformRanging
+ PerformRanging --> RangingSuccess{Ranging success?}
+ RangingSuccess -- No --> CMUCCFailed1([CM UCC failed])
+ RangingSuccess -- Yes --> CMOperational2([CM operational])
+
+```
+
+①
+
+1. If DOCSIS 2.0 is enabled, a valid UCD describes either a type 1, 2 or 3 channel.
+2. If DOCSIS 2.0 is NOT enabled, a valid UCD describes a type 1 or type 2 channel.
+
+②
+
+The operational CM MUST base its requests on IUCs 9 and 10 if available and if DOCSIS 2.0 is enabled.
+
+J.122\_F11-19
+
+Flowchart for 'Changing upstream channels: CM view, part 1'. The process starts with 'CM operational', followed by 'UCC-REQ'. A decision 'Already using this channel?' leads to 'UCC-RSP (reject already-there)' if Yes, or 'UCC-RSP' if No. The 'No' path leads to 'Switch to new channel', then 'Valid UCD for target upstream stored?'. If No, it goes to 'Wait for valid UCD for target upstream channel (or expiry of T1)'. A loop exists from this wait state back to the 'Valid UCD for target upstream stored?' decision. A callout '1' is next to the 'Wait' block. From 'Valid UCD for target upstream stored?', a 'Yes' path leads to 'Perform broadcast initial ranging'. From 'Wait for valid UCD...', a 'Yes' path also leads to 'Perform broadcast initial ranging'. From 'Perform broadcast initial ranging', the path goes to 'Ranging success?'. If No, it leads to 'CM UCC failed'. If Yes, it leads to 'CM operational' with a callout '2'.
+
+**Figure 11-19 – Changing upstream channels: CM view, part 1**
+
+
+
+```
+
+graph TD
+ A([CM UCC Failed]) --> B[/ERROR:
+UCC failed
+/]
+ B --> C[Return to old
+upstream]
+ C --> D[Reset the MAC]
+ D --> E([Obtain Upstream
+Parameters])
+
+```
+
+The state "Obtain Upstream Parameters" links to the state machine in Figure 11-1.
+
+Flowchart illustrating the CM view for changing upstream channels, Part 2. The sequence starts with 'CM UCC Failed' (oval), followed by 'ERROR: UCC failed ' (parallelogram), 'Return to old upstream' (rectangle), 'Reset the MAC' (rectangle), and finally 'Obtain Upstream Parameters' (oval). A note to the right of the final step states: 'The state "Obtain Upstream Parameters" links to the state machine in Figure 11-1.'
+
+J.122\_F11-20
+
+**Figure 11-20 – Changing upstream channels: CM view, Part 2**
+
+Upon synchronizing with the new upstream channel, the CM MUST perform broadcast initial ranging on the new upstream channel.
+
+If the CM has previously established ranging on the new channel, and if that ranging on that channel is still current (T4 has not elapsed since the last successful ranging), then the CM MAY use cached ranging information and omit ranging.
+
+The CM SHOULD cache UCD information from multiple upstream channels to eliminate waiting for a UCD corresponding to the new upstream channel.
+
+The CM MUST NOT perform re-registration, since its provisioning and MAC domain remain valid on the new channel.
+
+If a DOCS 2.0-enabled CM is moved from a type 1 channel to a type 2 channel via a UCC, the CM MUST operate in 2.0 mode on the destination channel, basing its requests on IUCs 9 and 10 instead of IUCs 5 and 6. If a CM in which DOCS 2.0 is disabled in registration is moved from a type 1 channel to a type 2 channel via a UCC, the CM MUST continue to base its requests on the destination channel on IUCs 5 and 6.
+
+#### 11.4 Dynamic service
+
+Service flows may be created, changed or deleted. This is accomplished through a series of MAC management messages referred to as dynamic service addition (DSA), dynamic service change (DSC) and dynamic service deletion (DSD). The DSA messages create a new service flow. The DSC messages change an existing service flow. The DSD messages delete a single existing upstream and/or a single existing downstream service flow. This is illustrated in Figure 11-21.
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> Null
+ Null --> Operational : DSA
+ Operational --> Null : DSD
+ Operational --> Operational : DSC
+
+```
+
+The diagram illustrates the dynamic service flow overview. It consists of two states: 'Null' and 'Operational'. The 'Null' state is represented by a single circle, and the 'Operational' state is represented by a double circle. Transitions between states are indicated by arrows: a straight arrow from 'Null' to 'Operational' labeled 'DSA', a curved arrow from 'Operational' back to 'Null' labeled 'DSD', and a self-loop arrow on the 'Operational' state labeled 'DSC'. The diagram is labeled 'J.122\_F11-21' at the bottom right.
+
+Figure 11-21 – Dynamic service flow overview. A state transition diagram showing two states: 'Null' and 'Operational'. Transitions are labeled DSD, DSA, and DSC. The diagram is labeled J.122\_F11-21.
+
+**Figure 11-21 – Dynamic service flow overview**
+
+The null state implies that no service flow exists that matches the SFID and/or TransactionID in a message. Once the service flow exists, it is operational and has an assigned SFID. In steady state operation, a service flow resides in a nominal state. When dynamic service messaging is occurring, the service flow may transition through other states, but remains operational. Since multiple service flows may exist, there may be multiple state machines active, one for every service flow. Dynamic service messages only affect those state machines that match both the SFID and/or transaction ID or SFID only. A transaction ID which is reused for other SFID(s) indicates that the other side terminated the previous transaction. If a dynamic service request message is received that refers to the same transaction ID as one that has already been processed, but service flow(s) other than those locked in this transaction, the device MAY trigger a DSx ended input to the state machine(s) of SF(s) involved in the previous transaction. If privacy is enabled, both the CM and CMTS MUST verify the HMAC digest on all dynamic service messages before processing them, and discard any messages that fail.
+
+Service flows created at registration time effectively enter the SF\_operational state without a DSA transaction.
+
+TransactionIDs are unique per transaction and are selected by the initiating device (CM or CMTS). To help prevent ambiguity and provide simple checking, the TransactionID number space is split between the CM and CMTS. The CM MUST select its TransactionIDs from the first half of the number space (0x0000 to 0x7FFF). The CMTS MUST select its TransactionIDs from the second half of the number space (0x8000 to 0xFFFF).
+
+Each dynamic service message sequence is a unique transaction with an associated unique transaction identifier. To help support transaction identifier uniqueness between two devices in different states, the transaction initiating device SHOULD change the transaction identifier for each new initiated transaction. It MUST wait at least T10 to reuse the transaction identifier. The DSA/DSC transactions consist of a request/response/acknowledge sequence. The DSD transactions consist of a request/response sequence. The response messages MUST contain a confirmation code of okay unless some exception condition was detected. The acknowledge messages MUST include the confirmation code in the response unless a new exception condition arises. A more detailed state diagram, including transition states, is shown below. The detailed actions for each transaction will be given in the following clauses.
+
+#### 11.4.1 Dynamic service flow state transitions
+
+The dynamic service flow state transition diagram is the top-level state diagram and controls the general service flow state. As needed, it creates transactions, each represented by a transaction state transition diagram, to provide the DSA, DSC and DSD signalling. Each transaction state transition diagram only communicates with the parent dynamic service flow state transition diagram. The top-level state transition diagram filters dynamic service messages and passes them to the
+
+appropriate transaction based on service flow identifier (SFID), service flow reference number and TransactionID.
+
+If a single dynamic service message affects a pair of service flows, a single transaction is initiated which communicates with both parent dynamic service flow state transition diagrams. In this case, both service flows MUST remain locked in the same state until they receive the DSx succeeded or DSx failed input from the DSx transaction state transition diagram. During that "lock interval", if a message is received that refers to only one of the two service flows, it MUST be treated as if it refers to both service flows, so that both service flows stay in the same state. If a DSD-REQ message is received during the lock interval that refers to only one of the two service flows, the device MUST handle the event normally, by sending the SF Delete-Remote to the ongoing DSx transaction and by initiating a DSD-Remote transaction, and in addition, it MUST initiate a DSD-Local transaction to delete the second service flow of the locked pair.
+
+If a DSC request is received that refers to two service flows locked in different transactions, and they are in different states, the device MUST reject the request without affecting the ongoing transactions.
+
+There are six different types of transactions: locally initiated or remotely initiated for each of the DSA, DSC and DSD messages. Most transactions have three basic states: pending, holding and deleting. The pending state is typically entered after creation and is where the transaction is waiting for a reply. The holding state is typically entered once the reply is received. The purpose of this state is to allow for retransmissions in case of a lost message, even though the local entity has perceived that the transaction has completed. The deleting state is only entered if the service flow is being deleted while a transaction is being processed.
+
+The flow diagrams provide a detailed representation of each of the states in the transaction state transition diagrams. All valid transitions are shown. Any inputs not shown should be handled as a severe error condition.
+
+With one exception, these state diagrams apply equally to the CMTS and CM. In the dynamic service flow changing-local state, there is a subtle difference in the CM and CMTS behaviours. This is called out in the state transition and detailed flow diagrams.
+
+NOTE – The 'Num Xacts' variable in the dynamic service flow state transition diagram is incremented every time the top-level state diagram creates a transaction and is decremented every time a transaction terminates. A dynamic service flow MUST NOT return to the null state until it is deleted and all transactions have terminated.
+
+The inputs for the state diagrams are identified below.
+
+Dynamic service flow state transition diagram inputs from unspecified local, higher-level entities:
+
+- Add;
+- Change;
+- Delete.
+
+Dynamic service flow state transition diagram inputs from DSx transaction state transition diagrams:
+
+- DSA Succeeded;
+- DSA Failed;
+- DSA ACK Lost;
+- DSA Erred;
+- DSA Ended;
+- DSC Succeeded;
+- DSC Failed;
+
+- DSC ACK Lost;
+- DSC Erred;
+- DSC Ended;
+- DSD Succeeded;
+- DSD Erred;
+- DSD Ended.
+
+DSx transaction state transition diagram inputs from the dynamic service flow state transition diagram:
+
+- SF Add;
+- SF Change;
+- SF Delete;
+- SF Abort Add;
+- SF Change-Remote;
+- SF Delete-Local;
+- SF Delete-Remote;
+- SF DSA-ACK Lost;
+- SF-DSC-REQ Lost;
+- SF-DSC-ACK Lost;
+- SF DSD-REQ Lost;
+- SF Changed;
+- SF Deleted.
+
+The creation of DSx transactions by the dynamic service flow state transition diagram is indicated by the notation:
+
+DSx-[Local|Remote] ( initial\_input )
+
+where initial\_input may be SF Add, DSA-REQ, SF Change, DSC-REQ, SF Delete or DSD-REQ depending on the transaction type and initiator.
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> Null
+ Null --> Adding Local: Add/DSA-Local(SF Add)
+ Null --> Add Failed: DSA Ended/
+ Null --> Adding Remote: DSA-REQ/DSA-Remote(DSA-REQ)
+ Adding Local --> Add Failed: (DSA Failed/ (Delete/SFAbort Add) (DSA Ended/))
+ Adding Local --> Nominal: DSA Succeeded/
+ Adding Remote --> Add Failed: DSA Failed/
+ Adding Remote --> Nominal: DSA Succeeded/
+ Adding Remote --> Adding Remote: DSC-REQ/SF DSA-ACK Lost
+ Adding Remote --> Deleting: (DSA Erred/ DSD-Local(SF Delete)) (Delete/SF Delete-Local, DSD-Local(SF Delete))
+ Add Failed --> Null: DSA Ended/
+ Nominal --> Changing Local: (DSC-REQ/[CMTS Only]) (DSA ACK Lost/ SF DSC-REQ Lost) (DSC ACK Lost/ SF DSC-REQ Lost)
+ Nominal --> Changing Remote: DSC-REQ/ SF Change-Remote, DSC-Remote(DSC-REQ)
+ Changing Local --> Nominal: Change/ DSC-Local(SF Change)
+ Changing Local --> Deleting: (DSC Erred/SF Delete-Local, DSD-Local(SF Delete)) (Delete/SF Delete-Local, DSD-Local(SF Delete))
+ Changing Remote --> Nominal: (DSC Succeeded/ SF Changed) (DSC Failed/ SF Changed)
+ Changing Remote --> Deleting: (DSC Erred/ DSD-Local(SF Delete)) (Delete/SF Delete-Local, DSD-Local(SF Delete))
+ Changing Remote --> Changing Remote: New DSC-REQ/ SF DSC-ACK Lost
+ Changing Local --> Changing Remote: DSC-REQ/SF Change-Remote, DSC-Remote(DSC-REQ) [CM Only]
+ Deleting --> Deleted: (DSD Succeeded/SF Deleted) (DSD Erred/SF Deleted)
+ Deleted --> Null: DSD Ended && Num Xacts == 0/
+ Deleted --> Deleting: DSD Succeeded/SF Deleted
+
+```
+
+Dynamic service flow state transition diagram showing states: Null, Adding Local, Adding Remote, Add Failed, Nominal, Changing Local, Changing Remote, Deleting, Deleted. Transitions are triggered by events like Add/DSA-Local, DSA-REQ, DSC-REQ, and Delete, with outcomes like Succeeded, Failed, or Erred.
+
+J.122\_F11-22
+
+Figure 11-22 – Dynamic service flow state transition diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSA-RSP_Pending : SF Add/DSA-REQ
+ DSA-RSP_Pending --> DSA-RSP_Pending : Time-out T7 && Retries Available/DSA-REQ
+ DSA-RSP_Pending --> Retries_Exhausted : Time-out T7 && Retries Exhausted/
+ DSA-RSP_Pending --> Holding_Down : (DSA-RSP/DSA Succeeded, DSA-ACK)
+(DSA-RSP/DSA Failed, DSA-ACK)
+(SF Abort Add/)
+
+ DSA-RSP_Pending --> Deleting_Service_Flow : DSA-RSP/DSA-ACK, DSA-ACK Lost
+ Retries_Exhausted --> Holding_Down : (DSA-RSP/DSA Succeeded, DSA-ACK)
+(DSA-RSP/DSA Failed, DSA-ACK)
+(SF Abort Add/)
+
+ Retries_Exhausted --> End : Time-out T10/
+DSA Erred, DSA Ended
+ Holding_Down --> Holding_Down : DSA-RSP/DSA-ACK, DSA-ACK Lost
+ Holding_Down --> Deleting_Service_Flow : SF Delete Local/
+ Holding_Down --> End : (Time-out T10/DSA Ended)
+(SF Changed/DSA Ended)
+(SF Change-Remote/DSA Ended)
+
+ Deleting_Service_Flow --> Deleting_Service_Flow : DSA-RSP/DSA-ACK Lost
+ Deleting_Service_Flow --> End : (Time-out T10/DSA Ended)
+(SF Deleted/DSA Ended)
+
+ SF Delete-Remote/DSA Ended --> End
+
+```
+
+J.122\_F11-23
+
+State transition diagram for DSA - Locally-initiated transaction. States: Begin, DSA-RSP Pending, Retries Exhausted, Holding Down, Deleting Service Flow, End. Transitions include SF Add/DSA-REQ, Time-out T7, DSA-RSP/DSA-Succeeded, DSA-RSP/DSA-Failed, SF Abort Add/, DSA-RSP/DSA-ACK, DSA-ACK Lost, SF Delete Local/, Time-out T10, SF Changed, SF Change-Remote, SF Deleted, SF Delete-Remote.
+
+**Figure 11-23 – DSA – Locally-initiated transaction state transition diagram**
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-ACK Pending: (DSA-REQ/DSA-RSP) (DSA-REQ/DSA Failed, DSA-RSP)
+ DSC-ACK Pending --> DSC-ACK Pending: (Time-out T8 && Retries Available/DSA-RSP) (DSA-REQ && Retries Available/DSA-RSP) (DSA-REQ && Retries Exhausted/) (SF DSA-ACK Lost && Retries Available/DSA-RSP) (SF DSA-ACK Lost && Retries Exhausted/)
+ DSC-ACK Pending --> Holding Down: (DSA-ACK/DSA Succeeded) (DSA-ACK/DSA Failed)
+ DSC-ACK Pending --> Deleting Service Flow: SF Delete-Local/
+ Holding Down --> DSC-ACK Pending: (DSA-ACK/) (SF Delete-Local/) (SF Change-Remote/)
+ Holding Down --> End: (Time-out T8/DSA Ended) (SF Changed/DSA Ended) (SF Deleted/DSA Ended) (SF Delete-Remote/DSA Ended)
+ Holding Down --> DSC-ACK Pending: (Time-out T8 && Retries Exhausted/DSA Erred, DSA Ended) (SF Delete-Remote / DSA Ended)
+ Deleting Service Flow --> DSC-ACK Pending: (DSA-REQ/) (DSA-ACK/)
+ Deleting Service Flow --> End: (Time-out T10/DSA Ended) (SF Deleted/DSA Ended) (SF Delete-Remote/DSA Ended)
+
+```
+
+State transition diagram for DSA - Remotely-initiated transaction. States: Begin, DSC-ACK Pending, Holding Down, Deleting Service Flow, End. Transitions include DSA-REQ/DSA-RSP, Time-out T8, SF Delete-Local, DSA-ACK, and various error/ended conditions.
+
+J.122\_F11-24
+
+**Figure 11-24 – DSA – Remotely-initiated transaction state transition diagram**
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-RSP Pending : SF Change/DSC-REQ
+ DSC-RSP Pending --> DSC-RSP Pending : (Time-out T7 && Retries Available/DSC-REQ)
+ DSC-RSP Pending --> DSC-RSP Pending : (SF DSC-REQ Lost && Retries Available/DSC-REQ)
+ DSC-RSP Pending --> DSC-RSP Pending : (SF DSC-REQ Lost && Retries Exhausted/)
+ DSC-RSP Pending --> Retries Exhausted : Time-out T7 && Retries Exhausted/
+ DSC-RSP Pending --> Holding Down : (DSC-RSP/DSC Succeeded, DSC-ACK)
+ DSC-RSP Pending --> Holding Down : (DSC-RSP/DSC Failed, DSC-ACK)
+ DSC-RSP Pending --> Deleting Service Flow : SF Change-Remote/DSC Ended [CM Only]
+ Retries Exhausted --> Holding Down : (DSC-RSP/DSC Succeeded, DSC-ACK)
+ Retries Exhausted --> Holding Down : (DSC-RSP/DSC Failed, DSC-ACK)
+ Retries Exhausted --> End : Time-out T10/ DSC Erred, DSC Ended
+ Holding Down --> Holding Down : DSC-RSP/ DSC-ACK, DSC-ACK Lost
+ Holding Down --> End : (Time-out T10/DSC Ended)
+ Holding Down --> End : (SF Changed/DSC Ended)
+ Holding Down --> End : (SF Change-Remote/DSC Ended)
+ Deleting Service Flow --> Deleting Service Flow : DSC-RSP/ DSC-ACK Lost
+ Deleting Service Flow --> End : (Time-out T10/DSC Ended)
+ Deleting Service Flow --> End : (SF Deleted/DSC Ended)
+ Deleting Service Flow --> End : SF Delete-Remote/DSC Ended
+
+```
+
+J.122\_F11-25
+
+State transition diagram for DSC - Locally-initiated transaction. States: Begin, DSC-RSP Pending, Retries Exhausted, Holding Down, Deleting Service Flow, End. Transitions include SF Change/DSC-REQ, Time-out T7, DSC-RSP/DSC Succeeded, DSC-RSP/DSC Failed, SF Delete-Local, DSC-RSP/DSC ACK Lost, Time-out T10, SF Delete-Remote.
+
+**Figure 11-25 – DSC – Locally-initiated transaction state transition diagram**
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-ACK Pending : DSC-REQ/DSC-RSP
+ DSC-ACK Pending --> DSC-ACK Pending : (Time-out T8 && Retries Available/DSC-RSP)
+ DSC-ACK Pending --> DSC-ACK Pending : (DSC-REQ && Retries Available/DSC-RSP)
+ DSC-ACK Pending --> DSC-ACK Pending : (DSC-REQ && Retries Exhausted/)
+ DSC-ACK Pending --> DSC-ACK Pending : (SF DSC-ACK Lost && Retries Available/DSC-RSP)
+ DSC-ACK Pending --> DSC-ACK Pending : (SF DSC-ACK Lost && Retries Exhausted/)
+ DSC-ACK Pending --> Holding Down : (DSC-ACK/DSC Succeeded)
+ DSC-ACK Pending --> Holding Down : (DSC-ACK/DSC Failed)
+ DSC-ACK Pending --> Deleting Service Flow : SF Delete-Local/
+ Holding Down --> DSC-ACK Pending : (DSC-ACK/), (SF Delete-Local/), (SF Change-Remote/)
+ Holding Down --> [*] : (Time-out T8/DSC Ended), (SF Changed/DSC Ended), (SF Deleted/DSC Ended), (SF Delete-Remote/DSC Ended)
+ Holding Down --> DSC-ACK Pending : (Time-out T8 && Retries Exhausted/DSC Erred, DSC Ended), (SF Delete-Remote/DSC Ended)
+ Deleting Service Flow --> DSC-ACK Pending : (DSC-REQ/), (DSC-ACK/)
+ Deleting Service Flow --> [*] : (Time-out T10/DSC Ended), (SF Deleted/DSC Ended), (SF Delete-Remote/DSC Ended)
+
+```
+
+State transition diagram for DSC - Remotely-initiated transaction. States: Begin, DSC-ACK Pending, Holding Down, Deleting Service Flow, End. Transitions include DSC-REQ/DSC-RSP, (Time-out T8 && Retries Available/DSC-RSP), (DSC-REQ && Retries Available/DSC-RSP), (DSC-REQ && Retries Exhausted/), (SF DSC-ACK Lost && Retries Available/DSC-RSP), (SF DSC-ACK Lost && Retries Exhausted/), (DSC-ACK/DSC Succeeded), (DSC-ACK/DSC Failed), (Time-out T8 && Retries Exhausted/DSC Erred, DSC Ended), (SF Delete-Remote/DSC Ended), (DSC-ACK/), (SF Delete-Local/), (SF Change-Remote/), (Time-out T8/DSC Ended), (SF Changed/DSC Ended), (SF Deleted/DSC Ended), (SF Delete-Remote/DSC Ended), (Time-out T10/DSC Ended), (SF Deleted/DSC Ended), (SF Delete-Remote/DSC Ended), SF Delete-Local/.
+
+J.122\_F11-26
+
+Figure 11-26 – DSC – Remotely-initiated transaction state transition diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSD-RSP_Pending : SF Delete/DSD-REQ
+ state "DSD-RSP Pending" as DSD-RSP_Pending
+ DSD-RSP_Pending --> DSD-RSP_Pending : (Time-out T7 && Retries Available/DSD-REQ)
+ DSD-RSP_Pending --> DSD-RSP_Pending : (SF DSD-REQ Lost && Retries Available/DSD-REQ)
+ DSD-RSP_Pending --> DSD-RSP_Pending : (SF DSD-REQ Lost && Retries Exhausted/)
+ DSD-RSP_Pending --> Holding_Down : (DSD-RSP/DSD Succeeded) (SF Delete-Remote/)
+ state "Holding Down" as Holding_Down
+ Holding_Down --> Holding_Down : (DSD-RSP/DSD Succeeded) (SF Deleted/)
+ Holding_Down --> [*] : Time-out T7 && Retries Exhausted/DSD Erred, DSD Ended
+ Holding_Down --> [*] : Time-out T7/DSD Ended
+
+```
+
+J.122\_F11-27
+
+State transition diagram for DSD - Locally-initiated transaction. States: Begin, DSD-RSP Pending, Holding Down, End. Transitions include SF Delete/DSD-REQ, (Time-out T7 && Retries Available/DSD-REQ), (SF DSD-REQ Lost && Retries Available/DSD-REQ), (SF DSD-REQ Lost && Retries Exhausted/), (DSD-RSP/DSD Succeeded) (SF Delete-Remote/), (DSD-RSP/DSD Succeeded) (SF Deleted/), Time-out T7 && Retries Exhausted/DSD Erred, DSD Ended, and Time-out T7/DSD Ended.
+
+**Figure 11-27 – DSD – Locally-initiated transaction state transition diagram**
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> Begin
+ Begin --> Holding Down : DSD-REQ/DSD Succeeded, DSD-RSP
+ Holding Down --> Holding Down : DSD-REQ/DSD-RSP
+ Holding Down --> [*] : (Time-out T10/DSD Ended)
+(SF Deleted/DSD Ended)
+
+```
+
+J.122\_F11-28
+
+State transition diagram for Dynamic Deletion (DSD) - Remotely-initiated transaction. The diagram shows three states: Begin, Holding Down, and End. Transitions are labeled with messages and conditions.
+
+**Figure 11-28 – Dynamic deletion (DSD) – Remotely-initiated transaction state transition diagram**
+
+## 11.4.2 Dynamic service addition
+
+### 11.4.2.1 CM-initiated dynamic service addition
+
+A CM wishing to create an upstream and/or a downstream service flow sends a request to the CMTS using a dynamic service addition request message (DSA-REQ). The CMTS checks the CM's authorization for the requested service(s) and whether the QoS requirements can be supported, and generates an appropriate response using a dynamic service addition response message (DSA-RSP). The CM concludes the transaction with an acknowledgment message (DSA-ACK).
+
+In order to facilitate a common admission response, an upstream and a downstream service flow can be included in a single DSA-REQ. Both service flows are either accepted or rejected together.
+
+
+
+| CM | | CMTS |
+|---------------------------------------------------------------------------------------------------------------------------------|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| New service flow(s) needed Check if resources are available Send DSA-REQ | ————— DSA-REQ —————→ | Receive DSA-REQ Check if CM authorized for service(s) a) Check service flow(s) QoS can be supported Create SFID(s) If upstream AdmittedQosParamSet is non-null, create SID If upstream ActiveQosParamSet is non-null, enable reception of data on new upstream service flow |
+| Receive DSA-RSP If ActiveQosParamSet is non-null, enable transmission and/or reception of data on new service flow(s) | ←————— DSA-RSP ————— | Send DSA-RSP |
+| Send DSA-ACK | ————— DSA-ACK —————→ | Receive DSA-ACK If downstream ActiveQosParamSet is non-null, enable transmission of data on new downstream service flow |
+
+a) Authorization can happen prior to the DSA-REQ being received by the CMTS. The details of CMTS signalling to anticipate a DSA-REQ are beyond the scope of this Recommendation.
+
+**Figure 11-29 – Dynamic service addition initiated from CM**
+
+#### 11.4.2.2 CMTS-initiated dynamic service addition
+
+A CMTS wishing to establish an upstream and/or a downstream dynamic service flow(s) with a CM performs the following operations. The CMTS checks the authorization of the destination CM for the requested class of service and whether the QoS requirements can be supported. If the service can be supported, the CMTS generates new SFID(s) with the required class of service and informs the CM using a dynamic service addition request message (DSA-REQ). The CM checks that it can support the service and responds using a dynamic service addition response message (DSA-RSP). The transaction completes with the CMTS sending the acknowledge message (DSA-ACK).
+
+
+
+| CM | CMTS |
+|-----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| | New service flow(s) required for CM Check CM authorized for service(s) Check service flow(s) QoS can be supported Create SFID(s) If upstream AdmittedQosParamSet is non-null, create SID If upstream ActiveQosParamSet is non-null, enable reception of data on new upstream service flow |
+| Receive DSA-REQ ← DSA-REQ → | Send DSA-REQ |
+| Confirm CM can support service flow(s) Add downstream SFID (if present) Enable reception on any new downstream service flow | |
+| Send DSA-RSP → DSA-RSP → | Receive DSA-RSP Enable transmission and reception of data on new service flow(s) |
+| Receive DSA-ACK ← DSA-ACK → | Send DSA-ACK |
+| Enable transmission on new upstream service flow | |
+
+**Figure 11-30 – Dynamic service addition initiated from CMTS**
+
+### 11.4.2.3 Dynamic service addition state transition diagrams
+
+
+
+```
+graph TD; A([DSA-Local begin]) --> B[/SF Add/]; B --> C[/DSA-REQ/]; C --> D[Start T7 timer]; D --> E[Save transmitted DSA-REQ]; E --> F[Set DSA -REQ retries available to 'DSx Request Retries']; F --> G([DSA-Local DSA-RSP pending]);
+```
+
+The flowchart illustrates the state transition process for a locally-initiated DSA transaction. It begins with a start node 'DSA-Local begin', followed by a process 'SF Add', then a message 'DSA-REQ', a process 'Start T7 timer', a process 'Save transmitted DSA-REQ', a process 'Set DSA -REQ retries available to 'DSx Request Retries'', and finally an end node 'DSA-Local DSA-RSP pending'. The diagram is labeled J.122\_F11-31.
+
+Flowchart of DSA - Locally-initiated transaction begin state flow diagram
+
+Figure 11-31 – DSA – Locally-initiated transaction begin state flow diagram
+
+
+
+```
+
+graph TD
+ Start([DSA-Local DSA-RSP Pending]) --> T7[Timeout T7]
+ Start --> SFDR[SF Delete-Remote]
+ Start --> SFAB[SF Abort Add]
+ Start --> DSA_RSP[DSA-RSP]
+
+ T7 --> Retries{Retries Available?}
+ Retries -- Yes --> SavedReq[/Saved DSA-REQ/]
+ SavedReq --> StartT7[Start T7 Timer]
+ StartT7 --> DecRetries[Decrement DSA-REQ
+Retries Available]
+ DecRetries --> PendingRSP([DSA-Local DSA-RSP Pending])
+
+ Retries -- No --> StartT10[Start T10 Timer]
+ StartT10 --> RetriesExhausted([DSA-Local Retries Exhausted])
+
+ SFDR --> StopT7_1[Stop T7 Timer]
+ StopT7_1 --> Ended[/DSA Ended/]
+ Ended --> End([DSA-Local End])
+
+ SFAB --> StopT7_2[Stop T7 Timer]
+ StopT7_2 --> SaveACK[Save DSA-ACK with Condition Code 'reject-add-aborted']
+
+ DSA_RSP --> StopT7_3[Stop T7 Timer]
+ StopT7_3 --> Okay{Okay?}
+ Okay -- No --> Failed[/DSA Failed/]
+ Failed --> SetReject[Set Condition Code to 'reject-xxx']
+
+ Okay -- Yes --> Enable[Enable service flow]
+ Enable --> Succeeded[/DSA Succeeded/]
+ Succeeded --> SetOkay[Set Condition Code to 'okay']
+
+ SetReject --> ACK[/DSA-ACK/]
+ SetOkay --> ACK
+ SaveACK --> ACK
+
+ ACK --> SaveTrans[Save transmitted DSA-ACK]
+ SaveTrans --> StartT10_2[Start T10 Timer]
+ StartT10_2 --> HoldingDown([DSA-Local Holding Down])
+
+```
+
+Flowchart for DSA-Locally-initiated transaction DSA-RSP pending state. The process starts at 'DSA-Local DSA-RSP Pending' and branches into four paths: Timeout T7, SF Delete-Remote, SF Abort Add, and DSA-RSP. Each path leads to specific processing steps such as stopping timers, saving requests or ACKs, and eventually reaching states like 'DSA-Local End' or 'DSA-Local Holding Down'.
+
+J.122\_F11-32
+
+Figure 11-32 – DSA – Locally-initiated transaction DSA-RSP pending state flow diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSA-Local_holding_down : DSA-Local holding down
+ DSA-Local_holding_down --> SF_Changed : SF Changed, SF Change-Remote, SF Delete-Remote
+ DSA-Local_holding_down --> Timeout_T10 : Timeout T10
+ DSA-Local_holding_down --> SF_Delete_Local : SF Delete -Local
+ DSA-Local_holding_down --> DSA_RSP : DSA-RSP
+
+ SF_Changed --> Stop_T10_timer : Stop T10 timer
+ Stop_T10_timer --> DSA_Ended : DSA Ended
+ Timeout_T10 --> DSA_Ended
+
+ DSA_Ended --> DSA_Local_End : DSA-Local End
+
+ SF_Delete_Local --> DSA_Local_deleting_service_flow : DSA-Local deleting service flow
+
+ DSA_RSP --> Saved_DSA_ACK : Saved DSA-ACK
+ Saved_DSA_ACK --> DSA_ACK_Lost : DSA ACK Lost
+ DSA_ACK_Lost --> DSA_Local_holding_down
+
+```
+
+State flow diagram for DSA - Locally-initiated transaction holding state. The diagram starts with 'DSA-Local holding down' and branches into four paths: 'SF Changed, SF Change-Remote, SF Delete-Remote' leading to 'Stop T10 timer' then 'DSA Ended' then 'DSA-Local End'; 'Timeout T10' leading to 'DSA Ended'; 'SF Delete -Local' leading to 'DSA-Local deleting service flow'; and 'DSA-RSP' leading to 'Saved DSA-ACK' then 'DSA ACK Lost' then 'DSA-Local holding down'.
+
+J.122\_F11-33
+
+**Figure 11-33 – DSA – Locally-initiated transaction holding state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSA-Local retries exhausted]) --> T10[/Timeout T10/]
+ Start --> SFDR[/SF Delete-Remote/]
+ Start --> SFAB[/SF Abort Add/]
+ Start --> DSA_RSP[/DSA-RSP/]
+
+ T10 --> DSA_Erred[/DSA Erred/]
+ SFDR --> StopT10[Stop T10 timer]
+ DSA_Erred --> DSA_Ended[/DSA Ended/]
+ StopT10 --> DSA_Ended
+ DSA_Ended --> DSA_Local_End([DSA-Local End])
+
+ SFAB --> SaveACK1[Save DSA-ACK with condition code 'reject-add-aborted']
+
+ DSA_RSP --> Okay{Okay?}
+ Okay -- No --> DSA_Failed[/DSA Failed/]
+ Okay -- Yes --> Enable[Enable service flow]
+
+ DSA_Failed --> SetCondition1[Set condition code to 'reject-xxx']
+ Enable --> DSA_Succeeded[/DSA Succeeded/]
+ DSA_Succeeded --> SetCondition2[Set condition code to 'okay']
+
+ SetCondition1 --> DSA_ACK[/DSA-ACK/]
+ SetCondition2 --> DSA_ACK
+
+ DSA_ACK --> SaveACK2[Save transmitted DSA-ACK]
+ SaveACK1 --> DSA_Local_HoldingDown([DSA-Local holding down])
+ SaveACK2 --> DSA_Local_HoldingDown
+
+ J122_F11-34((J.122_F11-34))
+
+```
+
+Flowchart for DSA - Locally-initiated transaction retries exhausted state flow diagram. The process starts at 'DSA-Local retries exhausted' and branches into four paths: Timeout T10, SF Delete-Remote, SF Abort Add, and DSA-RSP. The DSA-RSP path includes an 'Okay?' decision leading to either 'Enable service flow' (Yes) or 'DSA Failed' (No).
+
+**Figure 11-34 – DSA – Locally-initiated transaction retries exhausted state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSA-Local deleting service flow]) --> SFDeleted[SF Deleted, SF Delete-Remote]
+ Start --> Timeout[Timeout T10]
+ Start --> DSA_RSP[DSA-RSP]
+ SFDeleted --> StopT10[Stop T10 timer]
+ Timeout --> DSA_Ended[DSA Ended]
+ StopT10 --> DSA_Ended
+ DSA_Ended --> DSA_Local_End([DSA-Local End])
+ DSA_RSP --> DSA_ACK_Lost[DSA ACK Lost]
+ DSA_ACK_Lost --> DSA_Local_Deleting([DSA-Local deleting service flow])
+ J122_F11-35[J.122_F11-35]
+
+```
+
+State flow diagram for DSA locally-initiated transaction deleting service flow. The process starts with 'DSA-Local deleting service flow', which branches into three paths: 'SF Deleted, SF Delete-Remote' leading to 'Stop T10 timer' then 'DSA Ended' then 'DSA-Local End'; 'Timeout T10' leading to 'DSA Ended'; and 'DSA-RSP' leading to 'DSA ACK Lost' then 'DSA-Local deleting service flow'.
+
+**Figure 11-35 – DSA – Locally-initiated transaction deleting service flow state flow diagram**
+
+![Flowchart for DSA - Remotely-initiated transaction begin state flow diagram. The process starts with 'DSA-Remote begin', followed by 'DSA-REQ'. A decision 'Okay ?' follows. If 'No', it goes to 'DSA Failed' and then 'Set condition code to 'reject-xxx''. If 'Yes', it branches into '[ CM Only ] enable downstream service flow' and '[ CMTS Only ] enable upstream service flow'. Both lead to 'Set condition code to 'okay''. All three paths converge to 'DSA-RSP', 'Start T8 timer', 'Save transmitted DSA-RSP', 'Set DSA-RSP retries available to 'DSx Response Retries'', and finally 'DSA-Remote DSA-ACK pending'.](96d77cb2f738859fd462953fad369a1f_img.jpg)
+
+```
+
+graph TD
+ Start([DSA-Remote begin]) --> REQ[/DSA-REQ/]
+ REQ --> Okay{Okay ?}
+ Okay -- No --> Failed[/DSA Failed/]
+ Failed --> Reject[Set condition code to 'reject-xxx']
+ Okay -- Yes --> CMOnly[ "[ CM Only ]
+enable
+downstream
+service flow" ]
+ Okay -- Yes --> CMTSOnly[ "[ CMTS Only ]
+enable
+upstream
+service flow" ]
+ CMOnly --> OkayCode[Set condition code to 'okay']
+ CMTSOnly --> OkayCode
+ Reject --> RSP[/DSA-RSP/]
+ OkayCode --> RSP
+ RSP --> T8[Start T8 timer]
+ T8 --> Save[Save transmitted DSA-RSP]
+ Save --> Retries[Set DSA-RSP retries available to 'DSx Response Retries']
+ Retries --> ACK([DSA-Remote DSA-ACK pending])
+
+```
+
+Flowchart for DSA - Remotely-initiated transaction begin state flow diagram. The process starts with 'DSA-Remote begin', followed by 'DSA-REQ'. A decision 'Okay ?' follows. If 'No', it goes to 'DSA Failed' and then 'Set condition code to 'reject-xxx''. If 'Yes', it branches into '[ CM Only ] enable downstream service flow' and '[ CMTS Only ] enable upstream service flow'. Both lead to 'Set condition code to 'okay''. All three paths converge to 'DSA-RSP', 'Start T8 timer', 'Save transmitted DSA-RSP', 'Set DSA-RSP retries available to 'DSx Response Retries'', and finally 'DSA-Remote DSA-ACK pending'.
+
+J.122\_F11-36
+
+**Figure 11-36 – DSA – Remotely-initiated transaction begin state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSA-Remote DSA-ACK pending]) --> DSA-REQ[/DSA-REQ/]
+ Start --> SF_DSA_ACK_Lost[/SF DSA-ACK Lost/]
+ Start --> Timeout_T8[/Timeout T8/]
+ Start --> SF_Delete_Remote[/SF Delete-Remote/]
+ Start --> SF_Delete_Local[/SF Delete-Local/]
+ Start --> DSA_ACK[/DSA-ACK/]
+
+ DSA-REQ --> Retries_Avail_1{Retries available?}
+ SF_DSA_ACK_Lost --> Retries_Avail_1
+ Retries_Avail_1 -- No --> DSA-REQ
+ Retries_Avail_1 -- Yes --> Saved_DSA_RSP_1[/Saved DSA-RSP/]
+ Saved_DSA_RSP_1 --> Decrement_Retries[Decrement DSA-RSP retries available]
+ Decrement_Retries --> DSA_Remote_DSA_ACK_Pending_1([DSA-Remote DSA-ACK pending])
+
+ Timeout_T8 --> Retries_Avail_2{Retries available?}
+ Retries_Avail_2 -- No --> DSA_Err[/DSA Erred/]
+ Retries_Avail_2 -- Yes --> Saved_DSA_RSP_2[/Saved DSA-RSP/]
+ Saved_DSA_RSP_2 --> Start_T8_1[Start T8 timer]
+ Start_T8_1 --> Decrement_Retries
+
+ SF_Delete_Remote --> Stop_T8_1[Stop T8 timer]
+ Stop_T8_1 --> DSA_Err
+ DSA_Err --> DSA_End[/DSA Ended/]
+ DSA_End --> DSA_Remote_End([DSA-Remote End])
+
+ SF_Delete_Local --> Stop_T8_2[Stop T8 timer]
+ Stop_T8_2 --> Start_T10[Start T10 timer]
+ Start_T10 --> DSA_Remote_Deleting([DSA-Remote deleting service flow])
+
+ DSA_ACK --> Stop_T8_3[Stop T8 timer]
+ Stop_T8_3 --> Okay{Okay?}
+ Okay -- No --> Disable_Service_Flow[Disable service flow]
+ Okay -- Yes --> CM_Only_1[/[ CM Only ] enable upstream service flow/]
+ Okay -- Yes --> CMTS_Only_1[/[ CMTS Only ] enable downstream service flow/]
+ Disable_Service_Flow --> DSA_Failed[/DSA Failed/]
+ CM_Only_1 --> DSA_Succeeded[/DSA Succeeded/]
+ CMTS_Only_1 --> DSA_Succeeded
+ DSA_Failed --> Start_T8_2[Start T8 timer]
+ DSA_Succeeded --> Start_T8_2
+ Start_T8_2 --> DSA_Remote_Holding_Down([DSA-Remote holding down])
+
+```
+
+Flowchart for DSA - Remotely-initiated transaction DSA-ACK pending state. The process starts at 'DSA-Remote DSA-ACK pending' and branches into six main paths: DSA-REQ, SF DSA-ACK Lost, Timeout T8, SF Delete-Remote, SF Delete-Local, and DSA-ACK. Each path leads to specific actions like 'Stop T8 timer', 'Start T10 timer', 'Disable service flow', or 'DSA-Remote deleting service flow', eventually leading to states like 'DSA-Remote End', 'DSA-Remote holding down', or 'DSA-Remote DSA-ACK pending'.
+
+J.122\_F11-37
+
+Figure 11-37 – DSA – Remotely-initiated transaction DSA-ACK pending state flow diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSA-Remote_holding_down : DSA-Remote holding down
+ DSA-Remote_holding_down --> SF_Changed_SF_Deleted_SF_Delete_Remote : SF Changed, SF Deleted, SF Delete-Remote
+ DSA-Remote_holding_down --> Timeout_T8 : Timeout T8
+ DSA-Remote_holding_down --> SF_Delete_Local_SF_Change_Remote : SF Delete-Local, SF Change-Remote
+ DSA-Remote_holding_down --> DSA_ACK : DSA-ACK
+ SF_Changed_SF_Deleted_SF_Delete_Remote --> Stop_T8_timer : Stop T8 timer
+ Stop_T8_timer --> DSA_Ended : DSA Ended
+ Timeout_T8 --> DSA_Ended
+ SF_Delete_Local_SF_Change_Remote --> DSA_ACK
+ DSA_ACK --> DSA-Remote_holding_down
+ DSA-Remote_holding_down --> DSA-Remote_holding_down
+ DSA_Ended --> DSA-Remote_End : DSA-Remote End
+
+```
+
+J.122\_F11-38
+
+State flow diagram for DSA - Remotely-initiated transaction holding down. It starts with 'DSA-Remote holding down' and branches into four paths: 'SF Changed, SF Deleted, SF Delete-Remote' leading to 'Stop T8 timer' then 'DSA Ended' to 'DSA-Remote End'; 'Timeout T8' leading directly to 'DSA Ended'; 'SF Delete-Local, SF Change-Remote' leading to 'DSA-ACK' then 'DSA-Remote holding down'; and 'DSA-ACK' leading directly to 'DSA-Remote holding down'. Reference J.122\_F11-38.
+
+**Figure 11-38 – DSA – Remotely-initiated transaction holding down state flow diagram**
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSA-Remote_deleting_service_flow : DSA-Remote deleting service flow
+ DSA-Remote_deleting_service_flow --> SF_Deleted_SF_Delete_Remote : SF Deleted, SF Delete-Remote
+ DSA-Remote_deleting_service_flow --> Timeout_T10 : Timeout T10
+ DSA-Remote_deleting_service_flow --> DSA_REQ_DSA_ACK : DSA-REQ, DSA-ACK
+ SF_Deleted_SF_Delete_Remote --> Stop_T10_timer : Stop T10 timer
+ Stop_T10_timer --> DSA_Ended : DSA Ended
+ Timeout_T10 --> DSA_Ended
+ DSA_REQ_DSA_ACK --> DSA-Remote_deleting_service_flow
+ DSA_Ended --> DSA-Remote_End : DSA-Remote End
+
+```
+
+J.122\_F11-39
+
+State flow diagram for DSA - Remotely-initiated transaction deleting service state. It starts with 'DSA-Remote deleting service flow' and branches into three paths: 'SF Deleted, SF Delete-Remote' leading to 'Stop T10 timer' then 'DSA Ended' to 'DSA-Remote End'; 'Timeout T10' leading directly to 'DSA Ended'; and 'DSA-REQ, DSA-ACK' leading to 'DSA-Remote deleting service flow'. Reference J.122\_F11-39.
+
+**Figure 11-39 – DSA – Remotely-initiated transaction deleting service state flow diagram**
+
+### 11.4.3 Dynamic service change
+
+The dynamic service change (DSC) set of messages is used to modify the flow parameters associated with a service flow. Specifically, DSC can:
+
+- modify the service flow specification;
+- add, delete or replace a flow classifier;
+- add, delete or set PHS elements.
+
+A single DSC message exchange can modify the parameters of one downstream service flow and/or one upstream service flow.
+
+To prevent packet loss, any required bandwidth change must be sequenced between the application generating the data and the bandwidth parameters of the service flow carrying the data. Because MAC messages can be lost, the timing of service flow parameter changes can vary, and it occurs at different times in the CM and CMTS. Applications should reduce their transmitted data bandwidth before initiating a DSC to reduce the service flow bandwidth, and should not increase their transmitted data bandwidth until after the completion of a DSC increasing the service flow bandwidth.
+
+The CMTS controls both upstream and downstream scheduling. Scheduling is based on data transmission requests and is subject to the limits contained in the current service flow parameters at the CMTS. The timing of service flow parameter changes, and any consequent scheduling changes, is independent of both direction and whether there is an increase or decrease in bandwidth. The CMTS always changes service flow parameters on receipt of a DSC-REQ (CM-initiated transaction) or DSC-RSP (CMTS-initiated transaction).
+
+The CMTS also controls the downstream transmit behaviour. The change in downstream transmit behaviour is always coincident with the change in downstream scheduling (i.e., CMTS controls both and changes both simultaneously).
+
+The CM controls the upstream transmit requests, subject to limits contained in the current service flow parameters at the CM. The timing of service flow parameter changes in the CM, and any consequent CM transmit request behaviour changes, is a function of which device initiated the transaction. For a CM-initiated DSC-REQ, the service flow parameters are changed on receipt of the DSC-RSP from the CMTS. For a CMTS-initiated DSC-REQ, the service flow parameters are changed on receipt of the DSC-REQ from the CMTS.
+
+Any service flow can be deactivated with a dynamic service change command by sending a DSC-REQ message, referencing the service flow identifier, and including a null ActiveQosParamSet. However, if a primary service flow of a CM is deactivated, that CM is de-registered and MUST re-register. Therefore, care should be taken before deactivating such service flows. If a service flow that was provisioned during registration is deactivated, the provisioning information for that service flow MUST be maintained until the service flow is reactivated.
+
+A CM MUST have only one DSC transaction outstanding per service flow. If it detects a second transaction initiated by the CMTS, the CM MUST abort the transaction it initiated and allow the CMTS-initiated transaction to complete.
+
+A CMTS MUST have only one DSC transaction outstanding per service flow. If it detects a second transaction initiated by the CM, the CMTS MUST abort the transaction the CM initiated and allow the CMTS-initiated transaction to complete.
+
+NOTE – Currently anticipated applications would probably control a service flow through either the CM or CMTS, and not both. Therefore, the case of a DSC being initiated simultaneously by the CM and CMTS is considered as an exception condition and treated as one.
+
+### 11.4.3.1 CM-initiated dynamic service change
+
+A CM that needs to change a service flow definition performs the following operations.
+
+The CM informs the CMTS using a dynamic service change request message (DSC-REQ). The CMTS MUST decide if the referenced service flow can support this modification. The CMTS MUST respond with a dynamic service change response (DSC-RSP) indicating acceptance or rejection. The CM reconfigures the service flow if appropriate, and then MUST respond with a dynamic service change acknowledge (DSC-ACK).
+
+
+
+This sequence diagram illustrates the interaction between a CMTS and a CM for a CM-initiated dynamic service change. The diagram is divided into two columns: CMTS on the left and CM on the right. The sequence of messages is as follows: 1. The CM sends a DSC-REQ message to the CMTS. The CM side of this message includes the text 'Service flow requires modifying'. 2. The CMTS receives the DSC-REQ and performs internal steps: 'Validate request' and 'Modify service flow'. 3. The CMTS then sends a DSC-RSP message back to the CM. 4. The CM receives the DSC-RSP and performs 'Modify service flow'. 5. Finally, the CM sends a DSC-ACK message to the CMTS, which the CMTS receives.
+
+| CMTS | CM |
+|---------------------|---------------------------------|
+| | Service flow requires modifying |
+| Receive DSC-REQ | Send DSC-REQ |
+| Validate request | |
+| Modify service flow | |
+| Send DSC-RSP | Receive DSC-RSP |
+| | Modify service flow |
+| Receive DSC-ACK | Send DSC-ACK |
+
+Sequence diagram for CM-initiated dynamic service change
+
+Figure 11-40 – CM-initiated DSC
+
+### 11.4.3.2 CMTS-initiated dynamic service change
+
+A CMTS that needs to change a service flow definition performs the following operations.
+
+The CMTS MUST decide if the referenced service flow can support this modification. If so, the CMTS informs the CM using a dynamic service change request message (DSC-REQ). The CM checks that it can support the service change, and MUST respond using a dynamic service change response (DSC-RSP) indicating acceptance or rejection. The CMTS reconfigures the service flow if appropriate, and then MUST respond with a dynamic service change acknowledgment (DSC-ACK).
+
+
+
+This sequence diagram illustrates the interaction between a CMTS and a CM for a CMTS-initiated dynamic service change. The diagram is divided into two columns: CMTS on the left and CM on the right. The sequence of messages is as follows: 1. The CMTS performs an internal step 'Service flow requires modifying' and then sends a DSC-REQ message to the CM. 2. The CM receives the DSC-REQ and performs 'Modify service flow'. 3. The CM then sends a DSC-RSP message back to the CMTS. 4. The CMTS receives the DSC-RSP and performs 'Modify service flow'. 5. Finally, the CMTS sends a DSC-ACK message to the CM, which the CM receives.
+
+| CMTS | CM |
+|---------------------------------|---------------------|
+| Service flow requires modifying | |
+| Send DSC-REQ | Receive DSC-REQ |
+| | Modify service flow |
+| Receive DSC-RSP | Send DSC-RSP |
+| Modify service flow | |
+| Send DSC-ACK | Receive DSC-ACK |
+
+Sequence diagram for CMTS-initiated dynamic service change
+
+Figure 11-41 – CMTS-initiated DSC
+
+### 11.4.3.3 Dynamic service change state transition diagrams
+
+
+
+```
+graph TD; A([DSC-Local Begin]) --> B[/SF Change/]; B --> C[Save service flow QoS state]; C --> D["[ CM Only ]
+If decrease upstream bandwidth, modify transmission"]; D --> E[/DSC-REQ/]; E --> F[Start T7 Timer]; F --> G[Save transmitted DSC-REQ]; G --> H["Set DSC-REQ
+Retries Available
+to 'DSx Request
+Retries'"]; H --> I([DSC-Local DSC-RSP Pending]);
+```
+
+The flowchart illustrates the sequence of operations for a locally-initiated DSC transaction. It begins with 'DSC-Local Begin', followed by 'SF Change', 'Save service flow QoS state', a conditional step '[ CM Only ] If decrease upstream bandwidth, modify transmission', 'DSC-REQ', 'Start T7 Timer', 'Save transmitted DSC-REQ', 'Set DSC-REQ Retries Available to 'DSx Request Retries'', and finally 'DSC-Local DSC-RSP Pending'.
+
+J.122\_F11-42
+
+Flowchart of the DSC locally-initiated transaction begin state flow diagram.
+
+Figure 11-42 – DSC – Locally-initiated transaction begin state flow diagram
+
+![Flowchart for DSC - Locally-initiated transaction DSC-RSP pending state. The process starts at 'DSC-Local DSC-RSP pending' and branches into six paths: SF DSC-REQ Lost, Timeout T7, SF Change-Remote [ CM only ], SF Delete-Remote, SF Delete-Local, and DSC-RSP. Each path leads to specific state transitions and timer management, eventually returning to 'DSC-Local DSC-RSP pending' or ending in 'DSC-Local End' or 'DSC-Local holding down'.](28583b06f211df822423d245dfad776f_img.jpg)
+
+```
+
+graph TD
+ Start([DSC-Local DSC-RSP pending]) --> SF_DSC_REQ_Lost[/SF DSC-REQ Lost/]
+ Start --> Timeout_T7[/Timeout T7/]
+ Start --> SF_Change_Remote[/SF Change-Remote [ CM only ]/]
+ Start --> SF_Delete_Remote[/SF Delete-Remote/]
+ Start --> SF_Delete_Local[/SF Delete-Local/]
+ Start --> DSC_RSP[/DSC-RSP/]
+
+ SF_DSC_REQ_Lost --> Retries_Avail_1{Retries available?}
+ Retries_Avail_1 -- No --> SF_DSC_REQ_Lost
+ Retries_Avail_1 -- Yes --> Saved_DSC_REQ_1[/Saved DSC-REQ/]
+ Saved_DSC_REQ_1 --> Decrement_DSC_REQ_Retries[Decrement DSC-REQ retries available]
+ Decrement_DSC_REQ_Retries --> Start_T7_1[Start T7 Timer]
+ Start_T7_1 --> Saved_DSC_REQ_2[/Saved DSC-REQ/]
+ Saved_DSC_REQ_2 --> Start_T7_2[Start T7 Timer]
+ Start_T7_2 --> Decrement_DSC_REQ_Retries
+ Start_T7_2 --> DSC_Local_End([DSC-Local End])
+
+ Timeout_T7 --> Retries_Avail_2{Retries available?}
+ Retries_Avail_2 -- No --> Start_T10_1[Start T10 timer]
+ Start_T10_1 --> DSC_Local_End
+ Retries_Avail_2 -- Yes --> Saved_DSC_REQ_3[/Saved DSC-REQ/]
+ Saved_DSC_REQ_3 --> Start_T7_3[Start T7 Timer]
+ Start_T7_3 --> Decrement_DSC_REQ_Retries
+ Start_T7_3 --> DSC_Local_End
+
+ SF_Change_Remote --> Stop_T7_1[Stop T7 timer]
+ Stop_T7_1 --> DSC_Ended[/DSC Ended/]
+ DSC_Ended --> DSC_Local_End
+
+ SF_Delete_Remote --> Stop_T7_2[Stop T7 timer]
+ Stop_T7_2 --> DSC_Ended
+ DSC_Ended --> DSC_Local_End
+
+ SF_Delete_Local --> Stop_T7_3[Stop T7 timer]
+ Stop_T7_3 --> Start_T10_2[Start T10 timer]
+ Start_T10_2 --> DSC_Local_End
+
+ DSC_RSP --> Stop_T7_4[Stop T7 timer]
+ Stop_T7_4 --> Okay{Okay?}
+ Okay -- No --> Restore_QoS[Restore service flow QoS state]
+ Okay -- Yes --> Modify_Params[Modify service flow parameters]
+ Restore_QoS --> DSC_Failed[/DSC Failed/]
+ DSC_Failed --> Set_Reject[Set condition code to 'reject-xxx']
+ Set_Reject --> Start_T10_3[Start T10 timer]
+ Modify_Params --> DSC_Succeeded[/DSC Succeeded/]
+ DSC_Succeeded --> Set_Okay[Set condition code to 'okay']
+ Set_Okay --> DSC_ACK[/DSC-ACK/]
+ DSC_ACK --> Start_T10_3
+ Start_T10_3 --> Save_ACK[Save transmitted DSC-ACK]
+ Save_ACK --> DSC_Local_Holding_Down([DSC-Local holding down])
+
+```
+
+Flowchart for DSC - Locally-initiated transaction DSC-RSP pending state. The process starts at 'DSC-Local DSC-RSP pending' and branches into six paths: SF DSC-REQ Lost, Timeout T7, SF Change-Remote [ CM only ], SF Delete-Remote, SF Delete-Local, and DSC-RSP. Each path leads to specific state transitions and timer management, eventually returning to 'DSC-Local DSC-RSP pending' or ending in 'DSC-Local End' or 'DSC-Local holding down'.
+
+Figure 11-43 – DSC – Locally-initiated transaction DSC-RSP pending state flow diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-Local_holding_down : DSC-Local holding down
+ DSC-Local_holding_down --> SF_Changed : SF Changed, SF Change-Remote, SF Delete-Remote
+ DSC-Local_holding_down --> Timeout_T10 : Timeout T10
+ DSC-Local_holding_down --> SF_Delete_Local : SF Delete-Local
+ DSC-Local_holding_down --> DSC_RSP : DSC-RSP
+
+ SF_Changed --> Stop_T10_timer : Stop T10 timer
+ Stop_T10_timer --> DSC_Ended : DSC Ended
+ Timeout_T10 --> DSC_Ended
+
+ DSC_Ended --> DSC_Local_End : DSC-Local End
+
+ SF_Delete_Local --> DSC_Local_deleting_service_flow : DSC-Local deleting service flow
+
+ DSC_RSP --> Saved_DSC_ACK : Saved DSC-ACK
+ Saved_DSC_ACK --> DSC_ACK_Lost : DSC ACK Lost
+ DSC_ACK_Lost --> DSC_Local_holding_down
+
+```
+
+J.122\_F11-44
+
+State flow diagram for DSC - Locally-initiated transaction holding down state. The diagram starts at 'DSC-Local holding down' and branches into four paths: 1) SF Changed, SF Change-Remote, SF Delete-Remote leads to Stop T10 timer, then DSC Ended, then DSC-Local End. 2) Timeout T10 leads directly to DSC Ended. 3) SF Delete-Local leads to DSC-Local deleting service flow. 4) DSC-RSP leads to Saved DSC-ACK, then DSC ACK Lost, then DSC-Local holding down. A label J.122\_F11-44 is at the bottom right.
+
+**Figure 11-44 – DSC – Locally-initiated transaction holding down state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSC-Local Retries Exhausted]) --> T10[Timeout T10]
+ Start --> SFDR[SF Delete-Remote]
+ Start --> SFDL[SF Delete-Local]
+ Start --> DSC_RSP[DSC-RSP]
+
+ T10 --> DSC_Erred[DSC Erred]
+ SFDR --> StopT10[Stop T10 Timer]
+ SFDL --> DSC_Local_Deleting([DSC-Local Deleting Service Flow])
+
+ DSC_Erred --> DSC_Ended[DSC Ended]
+ StopT10 --> DSC_Ended
+ DSC_Ended --> DSC_Local_End([DSC-Local End])
+
+ DSC_RSP --> Okay{Okay?}
+ Okay -- No --> Restore[Restore service flow QoS state]
+ Okay -- Yes --> Modify[Modify Service Flow parameters]
+
+ Restore --> DSC_Failed[DSC Failed]
+ DSC_Failed --> SetReject[Set Condition Code to 'reject-xxx']
+
+ Modify --> DSC_Succeeded[DSC Succeeded]
+ DSC_Succeeded --> SetOkay[Set Condition Code to 'okay']
+
+ SetReject --> DSC_ACK[DSC-ACK]
+ SetOkay --> DSC_ACK
+
+ DSC_ACK --> SaveACK[Save transmitted DSC-ACK]
+ SaveACK --> DSC_Local_HoldingDown([DSC-Local Holding Down])
+
+```
+
+Flowchart for DSC - Locally-initiated transaction retries exhausted state flow diagram. The process starts at 'DSC-Local Retries Exhausted' and branches into four paths: Timeout T10, SF Delete-Remote, SF Delete-Local, and DSC-RSP. The DSC-RSP path includes an 'Okay?' decision leading to either 'Restore service flow QoS state' (No) or 'Modify Service Flow parameters' (Yes), eventually leading to 'DSC-ACK' and 'DSC-Local Holding Down'.
+
+122\_F11-45
+
+Figure 11-45 – DSC – Locally-initiated transaction retries exhausted state flow diagram
+
+
+
+```
+
+graph TD
+ Start([DSC-Local Deleting Service Flow]) --> SFDeleted[SF Deleted, SF Delete-Remote]
+ Start --> Timeout[Timeout T10]
+ Start --> DSC-RSP[DSC-RSP]
+ SFDeleted --> StopT10[Stop T10 Timer]
+ StopT10 --> DSC-Ended1[DSC Ended]
+ Timeout --> DSC-Ended2[DSC Ended]
+ DSC-Ended1 --> End([DSC-Local End])
+ DSC-Ended2 --> End
+ DSC-RSP --> DSC-ACK-Lost[DSC ACK Lost]
+ DSC-ACK-Lost --> End2([DSC-Local Deleting Service Flow])
+
+```
+
+J.122\_F11-46
+
+State flow diagram for DSC - Locally-initiated transaction deleting service flow. The process starts with 'DSC-Local Deleting Service Flow', which branches into three paths: 'SF Deleted, SF Delete-Remote' leading to 'Stop T10 Timer' then 'DSC Ended' then 'DSC-Local End'; 'Timeout T10' leading to 'DSC Ended'; and 'DSC-RSP' leading to 'DSC ACK Lost' then 'DSC-Local Deleting Service Flow'.
+
+**Figure 11-46 – DSC – Locally-initiated transaction deleting service flow state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSC-Remote Begin]) --> DSC-REQ[/DSC-REQ/]
+ DSC-REQ --> Okay{Okay?}
+ Okay -- No --> SetReject[Set Condition Code to 'reject-xxx']
+ Okay -- Yes --> Modify[Modify Service Flow parameters]
+ Modify --> SetOkay[Set Condition Code to 'okay']
+ SetReject --> DSC-RSP[/DSC-RSP/]
+ SetOkay --> DSC-RSP
+ DSC-RSP --> StartT8[Start T8 Timer]
+ StartT8 --> SaveRSP[Save transmitted DSC-RSP]
+ SaveRSP --> SetRetries[Set DSC-RSP Retries Available to 'DSx Response Retries']
+ SetRetries --> End([DSC-Remote DSC-ACK Pending])
+
+```
+
+Flowchart for DSC - Remotely-initiated transaction begin state flow diagram. The process starts with 'DSC-Remote Begin', followed by 'DSC-REQ', a decision 'Okay?', and subsequent steps for 'No' and 'Yes' paths leading to 'DSC-RSP' and 'DSC-Remote DSC-ACK Pending'.
+
+J.122\_F11-47
+
+Figure 11-47 – DSC – Remotely-initiated transaction begin state flow diagram
+
+
+
+```
+
+graph TD
+ Start([DSC-Remote DSC-ACK Pending]) --> DSC_REQ[/DSC-REQ/]
+ Start --> SF_DACK_Lost[/SF DSC-ACK Lost/]
+ Start --> Timeout_T8[/Timeout T8/]
+ Start --> SF_Delete_Remote[/SF Delete-Remote/]
+ Start --> SF_Delete_Local[/SF Delete-Local/]
+ Start --> DACK_1[/DSC-ACK/]
+ Start --> DACK_2[/DSC-ACK/]
+
+ DSC_REQ --> Retries_Avail_1{Retries Available?}
+ Retries_Avail_1 -- No --> DSC_REQ
+ Retries_Avail_1 -- Yes --> Saved_DSC_RSP_1[/Saved DSC-RSP/]
+ Saved_DSC_RSP_1 --> Start_T8_1[Start T8 Timer]
+ Start_T8_1 --> Decrement_DSC_RSP[Decrement DSC-RSP
+Retries Available]
+ Decrement_DSC_RSP --> Start
+
+ SF_DACK_Lost --> Retries_Avail_2{Retries Available?}
+ Timeout_T8 --> Retries_Avail_2
+
+ Retries_Avail_2 -- No --> Stop_T8_1[Stop T8 Timer]
+ Stop_T8_1 --> DSC_Erred[/DSC Erred/]
+ DSC_Erred --> DSC_Ended[/DSC Ended/]
+ DSC_Ended --> DSC_Remote_End([DSC-Remote End])
+
+ Retries_Avail_2 -- Yes --> Saved_DSC_RSP_2[/Saved DSC-RSP/]
+ Saved_DSC_RSP_2 --> Start_T8_2[Start T8 Timer]
+ Start_T8_2 --> Decrement_DSC_RSP
+
+ SF_Delete_Remote --> Stop_T8_2[Stop T8 Timer]
+ Stop_T8_2 --> DSC_Erred
+
+ SF_Delete_Local --> Stop_T8_3[Stop T8 Timer]
+ Stop_T8_3 --> Start_T10_1[Start T10 Timer]
+ Start_T10_1 --> DSC_Remote_Deleting([DSC-Remote Deleting Service Flow])
+
+ DACK_1 --> Stop_T8_4[Stop T8 Timer]
+ Stop_T8_4 --> Okay_1{Okay?}
+ Okay_1 -- No --> Restore_SF[Restore service flow]
+ Restore_SF --> DSC_Failed[/DSC Failed/]
+ DSC_Failed --> Start_T8_3[Start T8 Timer]
+ Start_T8_3 --> DSC_Remote_Holding_Down_1([DSC-Remote Holding Down])
+
+ Okay_1 -- Yes --> DSC_Succeeded_1[/DSC Succeeded/]
+ DSC_Succeeded_1 --> Start_T8_3
+
+ DACK_2 --> Stop_T8_5[Stop T8 Timer]
+ Stop_T8_5 --> Okay_2{Okay?}
+ Okay_2 -- Yes --> DSC_Succeeded_2[/DSC Succeeded/]
+ DSC_Succeeded_2 --> Start_T8_4[Start T8 Timer]
+ Start_T8_4 --> DSC_Remote_Holding_Down_2([DSC-Remote Holding Down])
+
+```
+
+Flowchart for DSC - Remotely-initiated transaction DSC-ACK pending state. The process starts at 'DSC-Remote DSC-ACK Pending' and branches into several paths: DSC-REQ, SF DSC-ACK Lost, Timeout T8, SF Delete-Remote, SF Delete-Local, DSC-ACK, and another DSC-ACK. Each path leads to specific actions like 'Stop T8 Timer', 'Start T10 Timer', 'DSC-Remote Deleting Service Flow', 'DSC-Remote End', 'DSC-Remote Holding Down', or 'DSC-Remote DSC-ACK Pending'.
+
+Figure 11-48 – DSC – Remotely-initiated transaction DSC-ACK pending state flow diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-Remote_Holding_Down : DSC-Remote Holding Down
+ DSC-Remote_Holding_Down --> SF_Changed : SF Changed, SF Deleted, SF Delete-Remote
+ DSC-Remote_Holding_Down --> Timeout_T8 : Timeout T8
+ DSC-Remote_Holding_Down --> SF_Delete_Local : SF Delete-Local, SF Change-Remote
+ DSC-Remote_Holding_Down --> DSC_ACK : DSC-ACK
+ SF_Changed --> Stop_T8_Timer : Stop T8 Timer
+ Stop_T8_Timer --> DSC_Ended : DSC Ended
+ DSC_Ended --> DSC-Remote_End : DSC-Remote End
+ Timeout_T8 --> DSC_Ended
+ SF_Delete_Local --> DSC_ACK
+ DSC_ACK --> DSC-Remote_Holding_Down
+
+```
+
+State flow diagram for DSC - Remotely-initiated transaction holding down. The process starts at 'DSC-Remote Holding Down' and branches into four paths: 'SF Changed, SF Deleted, SF Delete-Remote' leading to 'Stop T8 Timer' then 'DSC Ended' then 'DSC-Remote End'; 'Timeout T8' leading directly to 'DSC Ended'; 'SF Delete-Local, SF Change-Remote' leading to 'DSC-ACK' then 'DSC-Remote Holding Down'; and 'DSC-ACK' leading directly to 'DSC-Remote Holding Down'.
+
+J.122\_F11-49
+
+Figure 11-49 – DSC – Remotely-initiated transaction holding down state flow diagram
+
+
+
+```
+
+stateDiagram-v2
+ [*] --> DSC-Remote_Deleting_Service_Flow : DSC-Remote Deleting Service Flow
+ DSC-Remote_Deleting_Service_Flow --> SF_Deleted : SF Deleted, SF Delete-Remote
+ DSC-Remote_Deleting_Service_Flow --> Timeout_T10 : Timeout T10
+ DSC-Remote_Deleting_Service_Flow --> DSC_REQ_ACK : DSC-REQ, DSC-ACK
+ SF_Deleted --> Stop_T10_Timer : Stop T10 Timer
+ Stop_T10_Timer --> DSC_Ended : DSC Ended
+ DSC_Ended --> DSC-Remote_End : DSC-Remote End
+ Timeout_T10 --> DSC_Ended
+ DSC_REQ_ACK --> DSC-Remote_Deleting_Service_Flow
+
+```
+
+State flow diagram for DSC - Remotely-initiated transaction deleting service flow. The process starts at 'DSC-Remote Deleting Service Flow' and branches into three paths: 'SF Deleted, SF Delete-Remote' leading to 'Stop T10 Timer' then 'DSC Ended' then 'DSC-Remote End'; 'Timeout T10' leading directly to 'DSC Ended'; and 'DSC-REQ, DSC-ACK' leading to 'DSC-Remote Deleting Service Flow'.
+
+J.122\_F11-50
+
+Figure 11-50 – DSC – Remotely-initiated transaction deleting service flow state flow diagram
+
+#### 11.4.4 Dynamic service deletion
+
+Any service flow can be deleted with the dynamic service deletion (DSD) messages. When a service flow is deleted, all resources associated with it are released, including classifiers and PHS. However, if a primary service flow of a CM is deleted, that CM is de-registered and MUST re-register. Also, if a service flow that was provisioned during registration is deleted, the
+
+provisioning information for that service flow is lost until the CM re-registers. However, the deletion of a provisioned service flow MUST NOT cause a CM to re-register. Therefore, care should be taken before deleting such service flows.
+
+#### 11.4.4.1 CM-initiated dynamic service deletion
+
+A CM wishing to delete an upstream and/or a downstream service flow generates a delete request to the CMTS using a dynamic service deletion request message (DSD-REQ). The CMTS removes the service flow(s) and generates a response using a dynamic service deletion response message (DSD-RSP). Only one upstream and/or one downstream service flow can be deleted per DSD-Request.
+
+
+
+```
+
+sequenceDiagram
+ participant CM
+ participant CMTS
+ Note left of CM: Service flow(s) no longer needed
+Delete service flow(s)
+ CM->>CMTS: Send DSD-REQ
+ Note right of CMTS: Receive DSD-REQ
+Verify CM is service flow(s) 'owner'
+Delete service flow(s)
+ CMTS->>CM: Send DSD-RSP
+ Note left of CM: Receive DSD-RSP
+
+```
+
+Sequence diagram for CM-initiated dynamic service deletion. The diagram shows two participants: CM and CMTS. The CM sends a DSD-REQ message to the CMTS. The CMTS receives the DSD-REQ, verifies the CM is the 'owner' of the service flow(s), and deletes the service flow(s). The CMTS then sends a DSD-RSP message back to the CM, which receives it.
+
+Figure 11-51 – Dynamic service deletion initiated from CM
+
+#### 11.4.4.2 CMTS-initiated dynamic service deletion
+
+A CMTS wishing to delete an upstream and/or a downstream dynamic service flow generates a delete request to the associated CM using a dynamic service deletion request message (DSD-REQ). The CM removes the service flow(s) and generates a response using a dynamic service deletion response message (DSD-RSP). Only one upstream and/or one downstream service flow can be deleted per DSD-Request.
+
+
+
+```
+
+sequenceDiagram
+ participant CM
+ participant CMTS
+ Note right of CMTS: Service flow(s) no longer needed
+Delete service flow(s)
+Determine associated CM for this service flow(s)
+ CMTS->>CM: Send DSD-REQ
+ Note left of CM: Receive DSD-REQ
+Delete service flow(s)
+ CM->>CMTS: Send DSD-RSP
+ Note right of CMTS: Receive DSD-RSP
+
+```
+
+Sequence diagram for CMTS-initiated dynamic service deletion. The diagram shows two participants: CM and CMTS. The CMTS determines the associated CM for the service flow(s), then sends a DSD-REQ message to the CM. The CM receives the DSD-REQ, deletes the service flow(s), and sends a DSD-RSP message back to the CMTS, which receives it.
+
+Figure 11-52 – Dynamic service deletion initiated from CMTS
+
+### 11.4.4.3 Dynamic service deletion state transition diagrams
+
+
+
+```
+graph TD;
+ A([DSD-Local
+Begin]) --> B[/SF Delete/];
+ B --> C[Disable
+service flow];
+ C --> D[DSD-REQ];
+ D --> E[Start T7 Timer];
+ E --> F[Save transmitted
+DSD-REQ];
+ F --> G[Set DSD-REQ
+Retries Available
+to 'DSx Request
+Retries'];
+ G --> H([DSD-Local
+DSD-RSP
+Pending]);
+```
+
+The flowchart illustrates the sequence of operations for a locally-initiated dynamic service deletion (DSD) transaction. It begins with a terminal state 'DSD-Local Begin', followed by an input/output step 'SF Delete', then a process step 'Disable service flow'. The next steps are 'DSD-REQ', 'Start T7 Timer', 'Save transmitted DSD-REQ', and 'Set DSD-REQ Retries Available to 'DSx Request Retries''. The process concludes at the terminal state 'DSD-Local DSD-RSP Pending'.
+
+J.122\_F11-53
+
+Flowchart of the DSD – Locally-initiated transaction begin state flow diagram.
+
+**Figure 11-53 – DSD – Locally-initiated transaction begin state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSD-Local DSD-RSP Pending]) --> SF_DSD_REQ_Lost[/SF DSD-REQ Lost/]
+ Start --> Timeout_T7[/Timeout T7/]
+ Start --> SF_Delete_Remote[/SF Delete-Remote/]
+ Start --> DSD_RSP[/DSD-RSP/]
+
+ SF_DSD_REQ_Lost --> Retries_Available_1{Retries Available?}
+ Retries_Available_1 -- Yes --> Saved_DSD_REQ_1[/Saved DSD-REQ/]
+ Retries_Available_1 -- No --> Pending_1([DSD-Local DSD-RSP Pending])
+
+ Timeout_T7 --> Retries_Available_2{Retries Available?}
+ Retries_Available_2 -- Yes --> Saved_DSD_REQ_2[/Saved DSD-REQ/]
+ Retries_Available_2 -- No --> DSD_Errer[/DSD Erred/]
+ Saved_DSD_REQ_2 --> Start_T7_Timer_2[Start T7 Timer]
+ Start_T7_Timer_2 --> Decrement_DSD_REQ_Retries[Decrement DSD-REQ Retries Available]
+ Decrement_DSD_REQ_Retries --> Pending_2([DSD-Local DSD-RSP Pending])
+ DSD_Errer --> DSD_Ended_2[/DSD Ended/]
+ DSD_Ended_2 --> DSD_Local_End([DSD-Local End])
+
+ SF_Delete_Remote --> Stop_T7_Timer_1[Stop T7 Timer]
+
+ DSD_RSP --> Stop_T7_Timer_2[Stop T7 Timer]
+ Stop_T7_Timer_2 --> DSD_Succeeded[/DSD Succeeded/]
+ DSD_Succeeded --> Start_T7_Timer_3[Start T7 Timer]
+ Start_T7_Timer_3 --> DSD_Local_Holding_Down_1([DSD-Local Holding Down])
+
+ J122_F11-54((J.122_F11-54))
+
+```
+
+Flowchart for DSD-Locally-initiated transaction DSD-RSP pending state. It starts at 'DSD-Local DSD-RSP Pending' and branches into four paths: 'SF DSD-REQ Lost' (leading to 'Retries Available?' and then 'Saved DSD-REQ' or back to pending), 'Timeout T7' (leading to 'Retries Available?' and then 'Saved DSD-REQ', 'Start T7 Timer', 'Decrement DSD-REQ Retries Available', or 'DSD Ended'), 'SF Delete-Remote' (leading to 'Stop T7 Timer'), and 'DSD-RSP' (leading to 'Stop T7 Timer', 'DSD Succeeded', 'Start T7 Timer', and 'DSD-Local Holding Down').
+
+Figure 11-54 – DSD – Locally-initiated transaction DSD-RSP pending state flow diagram
+
+
+
+```
+
+graph TD
+ Start([DSD-Local Holding Down]) --> Timeout_T7[/Timeout T7/]
+ Start --> SF_Deleted[/SF Deleted/]
+ Start --> DSD_RSP[/DSD-RSP/]
+
+ Timeout_T7 --> DSD_Ended[/DSD Ended/]
+ DSD_Ended --> DSD_Local_End([DSD-Local End])
+
+ SF_Deleted --> DSD_Local_Holding_Down_1([DSD-Local Holding Down])
+
+ DSD_RSP --> DSD_Succeeded[/DSD Succeeded/]
+ DSD_Succeeded --> DSD_Local_Holding_Down_2([DSD-Local Holding Down])
+
+ J122_F11-55((J.122_F11-55))
+
+```
+
+Flowchart for DSD-Locally-initiated transaction holding down state. It starts at 'DSD-Local Holding Down' and branches into three paths: 'Timeout T7' (leading to 'DSD Ended' and 'DSD-Local End'), 'SF Deleted' (leading to 'DSD-Local Holding Down'), and 'DSD-RSP' (leading to 'DSD Succeeded' and 'DSD-Local Holding Down').
+
+Figure 11-55 – DSD – Locally-initiated transaction holding down state flow diagram
+
+
+
+```
+graph TD; A([DSD-Remote begin]) --> B[/DSD-REQ/]; B --> C[Disable service flow]; C --> D[/DSD Succeeded/]; D --> E[/DSD-RSP/]; E --> F[Start T10 timer]; F --> G[Save transmitted DSD-RSP]; G --> H([DSD-Remote holding down])
+```
+
+The flowchart illustrates the state flow for a DSD - Remotely-initiated transaction begin. It starts with a rounded rectangle labeled 'DSD-Remote begin', which points down to a chevron shape labeled 'DSD-REQ'. This is followed by a rectangle labeled 'Disable service flow', which points to another chevron shape labeled 'DSD Succeeded'. The next step is a chevron shape labeled 'DSD-RSP', followed by a rectangle labeled 'Start T10 timer', and then a rectangle labeled 'Save transmitted DSD-RSP'. The final step is a rounded rectangle labeled 'DSD-Remote holding down'.
+
+Flowchart of DSD - Remotely-initiated transaction begin state flow diagram
+
+J.122\_F11-56
+
+**Figure 11-56 – DSD – Remotely-initiated transaction begin state flow diagram**
+
+
+
+```
+
+graph TD
+ Start([DSD-Remote Holding Down]) --> SF[SF Deleted]
+ Start --> T10[Timeout T10]
+ Start --> REQ[DSD-REQ]
+ SF --> Stop[Stop T10 Timer]
+ Stop --> Ended[DSD Ended]
+ T10 --> Ended
+ REQ --> Saved[Saved DSD-RSP]
+ Saved --> End([DSD-Remote End])
+ Ended --> End
+
+```
+
+Flowchart of DSD - Remotely-initiated transaction holding down state flow diagram. The process starts with 'DSD-Remote Holding Down' (oval), which branches into three paths: 1) 'SF Deleted' (parallelogram) -> 'Stop T10 Timer' (rectangle) -> 'DSD Ended' (parallelogram) -> 'DSD-Remote End' (oval). 2) 'Timeout T10' (parallelogram) -> 'DSD Ended' (parallelogram). 3) 'DSD-REQ' (parallelogram) -> 'Saved DSD-RSP' (parallelogram) -> 'DSD-Remote Holding Down' (oval). A label 'J.122\_F11-57' is at the bottom right.
+
+Figure 11-57 – DSD – Remotely-initiated transaction holding down state flow diagram
+
+## 11.4.5 Dynamically changing downstream and/or upstream channels
+
+### 11.4.5.1 DCC general operation
+
+At any time after registration, the CMTS MAY use the DCC-REQ to direct the CM to change its downstream and/or upstream channel. The CMTS MUST be capable of performing DCC operations to trigger upstream and/or downstream channel changes within a MAC domain and between MAC domains. Physical layer conditions permitting, the CMTS MUST be capable of executing such channel changes using all initialization techniques (see clause 11.4.5.1.2). This may be done for load balancing (as described in clause 11.4.5.6), noise avoidance or other reasons that are beyond the scope of this Recommendation. In addition, the CMTS MUST support DCC operations triggered via SNMP (see [DOCS5]). Figures 11-58 through 11-61 show the procedure that MUST be followed by the CMTS when performing a dynamic channel change. Figures 11-62 through 11-65 show the corresponding procedure that MUST be followed by a CM when performing a dynamic channel change.
+
+The DCC command can be used to change only the upstream frequency, only the downstream frequency, or both the upstream and downstream frequencies. When only the upstream or only the downstream frequency is changed, the change is typically within a MAC domain. When both the upstream and downstream frequencies are changed, the change may be within a MAC domain, or between MAC domains.
+
+The upstream channel ID SHOULD be unique between the old and new channels. In this context, the old channel refers to the channel that the CM was on before the jump, and the new channel refers to the channel that the CM is on after the jump.
+
+Upon synchronizing with the new upstream and/or downstream channel, the CM MUST use the technique specified in the DCC-REQ initialization technique TLV, if present, to determine if it should perform re-initialization, only ranging, or neither. If this TLV is not present in DCC-REQ, the CM MUST re-initialize its MAC on the new channel assignment (refer to clause 11.2). If the CM has been instructed to re-initialize, then the CMTS MUST NOT wait for a DCC-RSP to occur on the new channel.
+
+If the CM is being moved within a MAC domain, a re-initialization may not be required. If the CM is being moved between MAC domains, a re-initialization may be required. Re-initializing, if requested, is done with the new upstream and downstream channel assignments. It includes obtaining upstream parameters, establishing IP connectivity, establishing time of day, transferring operational parameters, registering, and initializing baseline privacy. If re-initialization is performed, the CM MUST NOT send a DCC-RSP on the new channel.
+
+The decision to re-range is based upon the CMTS's knowledge of any path diversity that may exist between the old and new channels, or if any of the fundamental parameters of the upstream or downstream channel, such as modulation rate, modulation type, or mini-slot size, have changed.
+
+When DCC-REQ does not involve re-initialization or re-ranging, the design goal of the CM will typically be to minimize the disruption of traffic to the end user. To achieve this goal, a CM MAY choose to continue to use QoS resources (such as bandwidth grants) on its current channel after receiving a DCC-REQ and before actually executing the channel change. The CM might also need this time to flush internal queues or reset state machines prior to changing channels.
+
+The CM MAY continue to use QoS resources on the old channel, including the transmission and reception of packets, after sending a DCC-RSP (depart) message and prior to the actual jump. The CM MAY use QoS resources on the new channel, including the transmission and reception of packets, after the jump and prior to sending a DCC-RSP (arrive) message. The CMTS MUST NOT use the DCC-RSP (depart) message to remove QoS resources on the old channel. The CMTS MUST NOT wait for a DCC-RSP (arrive) message on the new channel before allowing QoS resources to be used. This provision is to allow the unsolicited grant service to be used on the old and new channel with a minimum amount of disruption when changing channels.
+
+The CMTS MUST hold the QoS resources on the old channel until a time of T13 has passed after the last DCC-REQ that was sent, or until it can internally confirm the presence of the CM on the new channel assignment. The CM MUST execute the departure from the old channel before the expiry of T13. The CM MAY continue to use QoS resources on the old channel after responding with DCC-RSP and before the expiry of T13.
+
+If the CM is commanded to perform initial or station maintenance or to use the channel directly, the destination CMTS MUST hold the QoS resources on the new channel until a time of T15 has passed after the last DCC-REQ was sent if the CM has not yet been detected on the new channel. If the CM is commanded to re-initialize the MAC, then QoS resources are not reserved on the destination CMTS, and T15 does not apply. If, in the process of a dynamic channel change with a non-zero initialization technique, the CMTS detects that the CM has re-initialized the MAC before completing the channel change, the CMTS MAY de-allocate the resources that were previously allocated to the modem on the new channel before the expiration of T15.
+
+The T15 timer represents the maximum time period for the CM to complete the move to the destination CMTS, and is based on the TLV encodings (i.e., initialization technique TLV) included in the DCC-REQ message and the local configuration of the destination CMTS.
+
+The destination CMTS SHOULD calculate and limit T15 based on internal policy according to the guidelines in clause 11.4.5.1.1.
+
+If the initialization technique of initial ranging is utilized and if the CM arrives after T15 has passed, attempting to use resources on the new channel that have been removed (ranging or requesting bandwidth on a SID that has been deleted), the CMTS MUST send a ranging abort to the CM in order to cause the DCC transaction to fail, ensuring that the CM and CMTS states remain in sync.
+
+When a CM is moved between downstream channels on different IP subnets using initialization techniques other than re-initialize the MAC, a network connectivity issue may occur because no DHCP process is indicated as part of the DCC operation. The CM MAY implement a
+
+vendor-specific feature to deal with this situation. The CMTS SHOULD take this issue into account when sending a DCC-REQ and SHOULD direct the CM to use the appropriate initialization technique TLV to ensure no IP connectivity loss as a result of DCC.
+
+Once the CM changes channels, all previous outstanding bandwidth requests made via the request IE or request/data IE are invalidated, and the CM MUST re-request bandwidth on the new channel. In the case of unsolicited grant service in the upstream, the grants are implicit with the QoS reservations, and do not need to be re-requested.
+
+#### 11.4.5.1.1 Derivation of T15 timer
+
+The maximum value noted for the T15 timer denotes the maximum amount of time that the CMTS should reserve resources on the new channel. This value is not to be used to represent acceptable performance.
+
+The equation below describes the method for calculating the value of T15.
+
+$$T15 = CmJumpTime + CmtsRxRngReq$$
+
+Each of the variables in the equation calculating the T15 timer is explained in the table below.
+
+| Variable | Explanation and value |
+|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| CmJumpTime |
This is the CM's indication to the CMTS of when it intends to start the jump and how long it will take to jump. For a downstream change, it includes the time for the CM to synchronize to the downstream parameters on the destination channel, such as QAM symbol timing, FEC framing and MPEG framing. It incorporates CM housecleaning on the old channel. It also incorporates one T11 period for the CM to process and receive the DCC-REQ message. This optional value is computed by the CM and returned in DCC-RSP (depart).
If the CM does not specify the jump time TLVs, then the destination CMTS assumes that the value is 1.3 seconds. This recognizes the fact that the CM may continue to use the old channel until the expiry of the T13 timer.
If the CM specifies the jump time TLVs, then the destination CMTS uses the specified value.
|
+| CmtsRxRngReq |
This variable represents the time for the CM to receive and use a ranging opportunity, and for the CMTS to receive and process the RNG-REQ.
For the initialization technique of use directly, this value is two times the CMTS time period between unicast ranging opportunities plus 20-40 milliseconds for MAP and RNG-REQ transmission time and CMTS RNG-REQ processing time.
For the initialization technique of station maintenance, this value is two times the CMTS time period between unicast ranging opportunities plus 20-40 milliseconds for MAP and RNG-REQ transmission time and CMTS RNG-REQ processing time.
For the initialization technique of initial maintenance, this value is 30 seconds. Because the variables involved in initial maintenance are not strictly under the control of the CMTS, the computation of this factor is uncertain.