Network Coding
Beyond Store-and-Forward
Traditional relay networks use store-and-forward: the relay receives a packet, buffers it, and retransmits it unchanged. Network coding breaks this paradigm by allowing intermediate nodes to combine information from multiple flows before forwarding. In the classic two-way relay scenario, where nodes and exchange messages via relay , conventional relaying requires 4 time slots (, , , ). With network coding, the relay XORs the two messages and broadcasts the combination in a single slot, reducing the exchange to 3 or even 2 time slots. This physical-layer network coding (PNC) doubles the spectral efficiency of two-way relay communication and has profound implications for multi-hop network design.
Definition: Two-Way Relay Channel
Two-Way Relay Channel
In the two-way relay channel (TWRC), nodes and wish to exchange messages via a relay . Three strategies have increasing spectral efficiency:
Conventional relaying (4 phases): Phase 1: (). Phase 2: (). Phase 3: (). Phase 4: (). Total: 4 time slots for one exchange.
Digital network coding (DNCE, 3 phases): Phase 1: (). Phase 2: (). Phase 3: broadcasts . recovers ; similarly . Total: 3 time slots.
Physical-layer network coding (PNC, 2 phases): Phase 1: and transmit simultaneously to . receives . Phase 2: maps to a network-coded symbol and broadcasts. Total: 2 time slots.
PNC achieves the theoretical minimum of 2 time slots for a bidirectional exchange and doubles the spectral efficiency relative to conventional relaying. The key challenge is reliable decoding at the relay when two signals interfere, which requires careful design of the mapping function and can exploit the structure of lattice codes.
Definition: Physical-Layer Network Coding (PNC)
Physical-Layer Network Coding (PNC)
In physical-layer network coding, the relay exploits the natural superposition of wireless signals to directly decode a function of the transmitted messages. For binary messages with BPSK modulation:
Phase 1:
The relay decodes the XOR (not the individual messages) using a modified decision rule. With equal channel gains (), the received constellation has 3 distinct points: the sum and difference of the two signals.
Phase 2: The relay broadcasts . Each end node applies its own message as side information to recover the partner's message.
The achievable sum-rate of PNC is:
where the factor reflects the 2-phase protocol (each direction gets half the resources).
Theorem: Spectral Efficiency Gain of PNC
For a symmetric two-way relay channel where all links have the same average SNR , the sum spectral efficiencies of the three relaying strategies are:
Conventional (4-phase):
Digital network coding (3-phase):
Physical-layer network coding (2-phase):
The spectral efficiency ratios are: .
PNC achieves 2 the spectral efficiency of conventional relaying.
Each strategy requires a different number of time slots for one bidirectional exchange. Since the per-phase rate is the same ( per link), the spectral efficiency is inversely proportional to the number of phases: 4, 3, or 2 phases divide into the two directions' worth of information. PNC achieves the minimum possible 2 phases by exploiting the simultaneous transmission in Phase 1.
Conventional relaying
In 4 phases, each direction ( and ) uses 2 phases. The rate per direction is:
Wait β more precisely, each of the 4 phases carries bits. Two phases serve , two serve . But each direction is bottlenecked by the weaker link:
Sum rate: .
Digital network coding
In 3 phases: Phase 1 (), Phase 2 (), Phase 3 ( broadcasts ).
Each direction uses effectively 1.5 phases: Sum rate: .
Physical-layer network coding
In 2 phases: Phase 1 (simultaneous ), Phase 2 ( broadcasts network-coded symbol).
The relay decodes from the superimposed signal. At high SNR, the multiple-access phase supports rate for the XOR function, which exceeds .
Each direction uses exactly 1 phase: Sum rate: .
Network Coding Animation
Visualise the message exchange in a two-way relay scenario under conventional, digital network coding, and physical-layer network coding protocols. The animation shows the time-slot structure and the information flow at each phase. Adjust the SNR to compare the achievable sum rates of the three strategies. Observe that PNC consistently achieves 2 the spectral efficiency of conventional relaying.
Parameters
Example: Two-Way Relay Rate Comparison
Two nodes and exchange data via a relay . All links have SNR dB.
(a) Compute the sum spectral efficiency for conventional relaying, DNCE, and PNC. (b) If the system bandwidth is 10 MHz, compute the sum throughput for each strategy. (c) How much additional bandwidth would conventional relaying need to match PNC's throughput?
Spectral efficiencies
(a) .
Conventional: bits/s/Hz.
DNCE: bits/s/Hz.
PNC: bits/s/Hz.
Throughput
(b) Conv: Mbps. DNCE: Mbps. PNC: Mbps.
Bandwidth equivalence
(c) Conv needs MHz to match PNC at 10 MHz.
PNC saves 50% of the bandwidth β or equivalently, doubles the throughput for the same bandwidth.
Quick Check
In physical-layer network coding (PNC) for the two-way relay channel, what does the relay decode in Phase 1?
The individual messages and separately
The XOR (or a function) of the two messages , not the individual messages
Nothing β the relay simply amplifies and forwards
A compressed version of the superimposed signal
PNC exploits the fact that each end node already knows its own message. The relay only needs to decode the network-coded combination . Each end node then XORs the broadcast with its own message to recover the partner's message.
Network Coding
A technique where intermediate network nodes combine (encode) data from multiple incoming flows before forwarding, rather than simply routing individual packets. In wireless two-way relay channels, network coding reduces the number of time slots needed for bidirectional exchange from 4 to 3 (digital NC) or 2 (physical-layer NC).
Related: Physical-Layer Network Coding (PNC), Two-Way Relay Channel (TWRC)
Physical-Layer Network Coding (PNC)
A technique where the relay decodes a function (typically XOR) of simultaneously transmitted messages by exploiting the natural superposition of wireless signals. PNC achieves the minimum 2-phase protocol for two-way relay exchange, doubling the spectral efficiency over conventional 4-phase relaying.
Related: Network Coding, Two-Way Relay Channel (TWRC)
Common Mistake: Assuming PNC Works Without Tight Synchronisation
Mistake:
"Physical-layer network coding simply exploits the natural superposition of wireless signals β no additional synchronisation is needed beyond standard OFDM timing."
Correction:
PNC requires the two end nodes to transmit simultaneously so that their signals arrive at the relay within the cyclic prefix duration. In practice, this means:
- Symbol-level synchronisation: The relay must coordinate the two nodes' transmission timing to within the CP duration (e.g., 4.7 s in normal CP for 15 kHz SCS, corresponding to km of propagation distance mismatch).
- Carrier frequency offset (CFO): Residual CFO between the two nodes' oscillators creates inter-carrier interference in the superimposed OFDM signal. PNC performance degrades sharply when the CFO exceeds of the subcarrier spacing.
- Power control: If one node's signal is significantly stronger, the XOR decoding at the relay is unreliable (the near-far problem). Transmit power control or successive interference cancellation is needed.
These practical challenges have limited PNC deployment in standards despite its theoretical appeal.
Comparison of Relay Protocols
| Property | DF (Decode-and-Forward) | AF (Amplify-and-Forward) | CF (Compress-and-Forward) | PNC (Physical-Layer NC) |
|---|---|---|---|---|
| Relay processing | Full decoding + re-encoding | Linear amplification | Quantisation + Wyner-Ziv coding | XOR / lattice decoding of sum |
| Noise at relay | Removed (if decoded correctly) | Amplified and forwarded | Quantised (distortion-bounded) | Partially cancelled via structure |
| Best regime | Strong link (relay near source) | All regimes (simple, suboptimal) | Strong link (relay near destination) | Two-way exchange (bidirectional) |
| Half-duplex phases | 2 (listen + forward) | 2 (listen + forward) | 2 (listen + forward) | 2 (simultaneous Tx + forward) |
| Achieves capacity? | Yes, for degraded relay channel | No (suboptimal in general) | Approaches cut-set bound near destination | Optimal for TWRC under certain conditions |
| Complexity | High (full codec at relay) | Low (analog amplification) | High (source coding at relay) | High (structured codes, synchronisation) |
| Standards adoption | LTE-A Type 1 relay, 5G IAB | LTE-A Type 2 relay (transparent) | Research stage | Research stage |
Two-Way Relay Channel (TWRC)
A three-node network where two end nodes exchange messages via a common relay, with no direct link between the end nodes. The TWRC is the canonical setting for network coding in wireless networks.
Related: Network Coding, Physical-Layer Network Coding (PNC)