5G NR DMRS Explained (Part 2): Frequency Domain, Ports, CDM Groups and Type 1 vs Type 2
How DMRS is laid out in the frequency domain: Type 1 vs Type 2, DMRS multiplexing and its throughput gain, layers vs ports vs rank, CDM and FDM, MU-MIMO signalling in the DCI, and when double-symbol DMRS is worth it.
In Part 1 we covered what DMRS is, why the receiver needs it, and which parameters control it. This part goes deep into the frequency domain: which subcarriers carry DMRS, how many ports fit on them, how ports are kept apart, and what all of this costs or gains in throughput.

dmrs-Type: Configuration Type 1 vs Type 2
The frequency-domain layout of PDSCH and PUSCH DMRS is set by one RRC parameter, dmrs-Type. There are two options:
- Type 1 places DMRS on every second subcarrier. One CDM group takes 6 of the 12 REs in a resource block. It supports 4 ports with a single DMRS symbol and 8 with a double symbol.
- Type 2 places DMRS on two adjacent subcarriers, then skips four. One CDM group takes 4 of the 12 REs. It supports 6 ports with a single symbol and 12 with a double symbol.
Type 1 is denser, so the channel estimate is more accurate. That matters most for cell-edge users and poor radio conditions. Type 2 has lower overhead and more orthogonal ports, which suits MU-MIMO and areas with good coverage. If dmrs-Type is absent from RRC, the UE uses Type 1. Most vendors default to Type 1, and some can switch dynamically based on radio conditions.

DMRS multiplexing: turning empty REs into data
By default, the REs in a DMRS symbol that do not carry DMRS stay empty. The DMRS borrows their power, which gives it a 3 dB boost. That is good for channel estimation, but those REs carry no data.
DMRS multiplexing (the name differs slightly between vendors) lets PDSCH or PUSCH use those unused REs in the DMRS symbol. It works in both downlink and uplink, and it raises peak throughput.
The trade-off is the power boost. Once the empty REs carry data, the DMRS loses its 3 dB. A user in good radio conditions does not notice, but a cell-edge user does. This is why vendors usually enable the feature only above an SINR threshold: high-SINR users get the extra throughput and low-SINR users keep the boosted DMRS.

What Type 2 gains in throughput
Here is a worked example: 40 MHz, 30 kHz SCS, 106 PRBs, TDD DDDDDDDSUU, 256QAM, rank 2, one DMRS symbol.
| Downlink | DMRS overhead | Peak throughput |
|---|---|---|
| Multiplexing OFF | 7.7% | 621.6 Mbps |
| Type 1, multiplexing ON | 3.85% | 651.8 Mbps |
| Type 2, multiplexing ON | 2.56% | 661.8 Mbps |
Type 2 gains about 40 Mbps over the baseline in this example. The uplink shows the same pattern with smaller numbers (35.9 → 41.6 → 43.5 Mbps).
One important point: with multiplexing OFF, switching from Type 1 to Type 2 gains nothing, because the whole DMRS symbol is blocked either way. Check that your vendor supports DMRS multiplexing before planning that change.

Layers, ports, rank and REs
Before going into the port tables, it helps to separate four terms:
- Layers are independent data streams. The number of layers for one UE is its rank.
- DMRS ports carry one layer each. Each port has its own DMRS sequence and code. The UE learns its ports from the DCI.
- Precoding maps ports onto antennas. In the downlink, the DMRS is precoded together with the data.
- Antennas are the physical elements. How ports map to antennas is vendor-specific and hidden from the UE.
The same number can mean different things. Two layers can be one UE at rank 2 (SU-MIMO, ports 0 and 1) or two UEs at rank 1 each (MU-MIMO, for example ports 0 and 2). The ports tell each UE which case it is in. In the uplink, the gNB picks the rank and ports from the SRS and signals them in DCI 0_1. In the downlink, the UE reports RI and PMI, and the gNB signals the ports in DCI 1_1.

Port orthogonality: CDM and FDM
Ports that share a DMRS symbol must not interfere with each other. Two mechanisms keep them apart:
- CDM in frequency: two ports use exactly the same REs and are separated by an orthogonal cover code across 2 REs, (+ +) and (+ −).
- FDM: each CDM group sits on its own comb of subcarriers. Type 1 has 2 CDM groups and Type 2 has 3.
- CDM in time: with a double DMRS symbol, a time code across the two symbols doubles the ports per group from 2 to 4. This is still CDM, not TDM.
So: ports = CDM groups × ports per group. Type 1 gives 2 × 2 = 4 (single) or 2 × 4 = 8 (double). Type 2 gives 3 × 2 = 6 or 3 × 4 = 12.

Type 1 single symbol in detail
With Type 1 and one DMRS symbol, ports 0 and 1 share CDM group 0 (even subcarriers) and ports 2 and 3 share CDM group 1 (odd subcarriers). Ports in the same group are separated by the (+ +) / (+ −) code.

How many REs are blocked depends on what the scheduler does:
| Scenario | Ports | DMRS REs blocked per PRB |
|---|---|---|
| SU-MIMO, 1 layer | 0 | 6 of 12 (1 CDM group) |
| SU-MIMO, 2 layers | 0, 1 | 6 of 12 (1 CDM group) |
| SU-MIMO, 4 layers | 0 to 3 | 12 of 12 (2 CDM groups) |
| MU-MIMO, 3 UEs | 0, 1, 2 | 12 of 12 (2 CDM groups) |
Code division is used before frequency division, so ranks 1 and 2 fit in one CDM group and leave the other comb free for data.

MU-MIMO: why the UE must be told about the other comb
Each UE only knows its own port. If a UE on port 0 assumes the other comb is free and puts PUSCH on it, it will collide with the DMRS of a paired UE that uses CDM group 1. That causes heavy DMRS-to-data interference.
3GPP solves this in the antenna ports field of the DCI. Besides the port, the signalled value tells the UE how many CDM groups carry no data:
- Values 0 or 1: one CDM group without data. The UE can use the other comb for PUSCH (this is what makes DMRS multiplexing possible).
- Values 2 to 5: two CDM groups without data. The UE leaves the other comb empty because a paired UE is using it.

For example, three UEs can be paired on the same DMRS symbol: UE 1 on port 0, UE 2 on port 1 (same comb, other code) and UE 3 on port 2 (other comb). All three get a value from 2 to 5, so none of them puts data on the DMRS symbol. Port 3 stays free for a fourth UE.

Single vs double symbol and maxLength
With one DMRS symbol, Type 1 has only 4 ports. When more are needed, the gNB can use two adjacent DMRS symbols. The same ports repeat on both symbols with a time code on top, so each CDM group carries 4 ports and the total becomes 8 (ports 1000 to 1007 in the downlink).
Double symbol is controlled by maxLength in DMRS-DownlinkConfig or DMRS-UplinkConfig. If it is absent, it is len1 (single symbol). It is used when more than 4 ports are needed: 5 to 8 layers in the downlink, or more than 4 paired UEs in the uplink MU-MIMO. The price is overhead: 24 REs per PRB instead of 12, about 14.3% of the slot instead of 7.1%.

Configuration Type 2
Type 2 puts DMRS on 2 adjacent subcarriers every 6, with 3 CDM groups: ports 0 and 1 on subcarriers 0, 1, 6, 7; ports 2 and 3 on 2, 3, 8, 9; ports 4 and 5 on 4, 5, 10, 11. That gives 6 ports with a single symbol.
Its strengths are higher peak throughput (less DMRS overhead) and more MU-MIMO capacity. Its weakness is a coarser channel estimate, so it fits areas with good coverage. In the uplink, Type 2 is CP-OFDM only: it is not allowed with transform precoding (DFT-s-OFDM).

With a double symbol, Type 2 reaches 12 ports (4 per CDM group). This is mainly for MU-MIMO with many paired UEs. In the uplink a single UE is still limited to 4 layers.

Type 1 vs Type 2 at a glance
| Type 1 | Type 2 | |
|---|---|---|
| CDM groups | 2 | 3 |
| Ports (single / double) | 4 / 8 | 6 / 12 |
| REs per CDM group | 6 of 12 | 4 of 12 |
| Channel estimation | Denser comb, more accurate | Coarser comb, less accurate |
| Peak throughput | Lower | Higher |
| Best for | Cell edge and low SNR | Areas with good coverage, MU-MIMO |
| Transform precoding | Supported | Not supported (CP-OFDM only) |

DMRS interference reduction (vendor feature)
One last idea is not defined in 3GPP but appears in different forms across vendors. If cell-edge UEs in neighbouring cells use the same DMRS resource, their DMRS signals collide, the channel estimate gets worse, and PUSCH demodulation suffers. The fix is to give UEs that interfere with each other different DMRS resources, for example the other comb, so their DMRS no longer overlap. Names and behaviour differ between vendors, so check what yours supports.

What's next
Part 3 covers the time domain: mapping type A vs B, dmrs-AdditionalPosition, how the parameters look in RRC and live L3 logs, and what additional DMRS costs in throughput.
3GPP references: TS 38.211 §6.4.1.1.3 and §7.4.1.1.2, TS 38.212 §7.3.1.1.2, TS 38.214 §5.1.6.2 and §6.2.2, TS 38.331.
Watch the full session (in Arabic) on YouTube: https://youtu.be/g-9kLHCR8gA