Application: The Two-Way Relay Channel
The Canonical CF Application
The simplest setting that exposes what compute-and-forward actually buys is the two-way relay channel (TWRC): two users and want to exchange messages via a single relay , with no direct link between and . This captures everything from a cellular uplink-downlink pair via a base station through a satellite-mediated terrestrial link to two nodes communicating through an amplifier in a sensor network. Three strategies compete: classical routing (four orthogonal time slots), amplify- or-decode-forward (two slots with a MAC-then-broadcast split), and compute-and-forward (two slots, relay decodes the XOR or sum).
The punchline (Nam-Chung-Lee 2010): on a symmetric TWRC, CF achieves the capacity region within bit per user, matching the best-known upper bound up to a constant gap. Neither AF nor DF does this — AF loses the full MAC gain to noise amplification; DF spends one slot decoding two messages it will immediately combine anyway. CF bypasses both failures by never decoding the individual users in the MAC phase. Zhang-Liew-Lam's 2006 physical-layer network coding (PNC) was the intuitive precursor; the Nazer-Gastpar framework is the rigorous generalisation. This section derives the TWRC rate region, compares strategies quantitatively, and sets up §4's identification of PNC as the integer-coefficient case.
Definition: Two-Way Relay Channel
Two-Way Relay Channel
The Gaussian two-way relay channel (TWRC) consists of three nodes:
- Two users and , each with a message or to send to the other.
- A relay with no message of its own.
Communication proceeds over two time slots:
Slot 1 (multiple-access phase). Both users transmit simultaneously: with per-user power and . The relay computes some function of .
Slot 2 (broadcast phase). The relay transmits at power to both users: Each user then recovers the other's message using its own self-knowledge (e.g., XOR XOR = ). A rate pair is achievable if both users eventually decode their target message with vanishing error.
TWRC Strategies: Symmetric Sum-Rate at
| Strategy | Slots | Relay function | Sum-rate (bits/ch. use) | Gap to cap. |
|---|---|---|---|---|
| Routing (4 slots) | 4 orthogonal | Relay decodes each user separately | Huge | |
| Amplify-and-forward | 2 (MA+BC) | Relay scales and rebroadcasts | Medium | |
| Decode-and-forward | 2 (MA+BC) | Relay decodes both messages and XORs | Medium | |
| Compute-and-forward | 2 (MA+BC) | Relay decodes | bit/user | |
| Capacity upper bound | 2 | (cut-set) | – |
Theorem: Nam-Chung-Lee: CF Is Within 1/2 Bit of TWRC Capacity
Consider the symmetric Gaussian TWRC with , , and common user power and relay power . Let . The capacity region of this channel satisfies (the cut-set bound), and the compute-and-forward strategy with integer coefficient in the MA phase achieves the rate pair in each direction — within bit per user of the cut-set bound for all .
At high , the cut-set bound grows like ; the CF rate grows like as well. The gap is bounded above by bit, achieved as and asymptotically vanishing as . So CF is not only within a constant gap of capacity — at high SNR it is essentially tight.
MA phase: apply the Nazer-Gastpar rate with $\mathbf{a} = (1,1)$
With and : , , . Hence , and by Thm. TNazer-Gastpar Computation Rate, Each user can transmit at rate and the relay decodes reliably.
BC phase: broadcast the decoded sum
The relay has , a lattice point of rate . In the BC phase the relay transmits (suitably scaled to power ). Each user receives at SNR , decodes at rate , and subtracts its own message: at user , and similarly at user . The BC rate is the single-user cap and does not bottleneck.
Rate is $\min(R_{\rm MA}, R_{\rm BC}) = R_{\rm MA}$ at moderate SNR
At balanced power , the BC rate always exceeds the MA CF rate . So the two-slot CF rate per user is .
Cut-set upper bound
Standard cut-set (Cover-Thomas Thm. 15.10.1): for any point-to- point message from to through relay , the rate is upper-bounded by — the single-user MA-to-relay capacity. The same bound holds for .
Gap computation
bit, with equality at and asymptotically as .
Two-Way Relay: CF vs. Amplify/Decode-Forward Sum-Rate
Sum-rate of the symmetric two-way relay channel versus SNR, comparing four strategies: (i) routing (4 orthogonal slots), (ii) amplify-and-forward (2 slots), (iii) decode-and-forward (2 slots, relay decodes both messages and XORs), (iv) compute- and-forward with . At moderate-to-high SNR the CF curve is the highest, and approaches the cut-set bound as — the "within 1/2 bit" Nam-Chung-Lee guarantee (Thm. TNam-Chung-Lee: CF Is Within 1/2 Bit of TWRC Capacity). At low SNR, DF can marginally outperform CF because the bit gap matters proportionally more.
Parameters
Example: TWRC Rates at Symmetric
Compare the per-user sum-rate of the symmetric Gaussian TWRC at under routing, AF, DF, and CF. Which strategy is closest to the cut-set upper bound?
Routing (4 slots)
Four orthogonal slots: , , , . Each link: rate bits. But each message uses 2 slots out of 4, so per- user rate is bits. Sum-rate: bits/ch. use.
Amplify-and-forward
Relay receives , rescales to power , broadcasts. Each user's end-to-end SNR is after interference cancellation. Per-user rate: bits. Sum-rate: .
Decode-and-forward
MA cut limits decoding both messages: bits/user. BC limit: . Bottleneck: MA. Per-user rate: . Sum-rate: . Better than routing, worse than CF.
Compute-and-forward
With : bits/user. Sum-rate: .
Cut-set upper bound and conclusion
Cut-set: bits/user, sum-rate . CF achieves of cut-set per user. The -bit gap in the Nam- Chung-Lee theorem has shrunk to bit at — essentially tight. CF wins decisively.
What About Asymmetric TWRC?
The -bit gap of Thm. TNam-Chung-Lee: CF Is Within 1/2 Bit of TWRC Capacity assumes a symmetric TWRC: and . For asymmetric channels (), the integer coefficient is not necessarily optimal. With , is exact and CF achieves nearly the full MAC sum-rate; with , no integer vector is exact and CF pays a Diophantine-approximation penalty.
Wilson-Narayanan-Pfister-Sprintson (2010) and Nam-Chung-Lee (2011) extended the constant-gap result to asymmetric TWRCs using optimised chosen from the channel; the gap grows to where is a Diophantine-mismatch parameter, but remains bounded over bounded SNR. For the curriculum we focus on the symmetric case; asymmetric refinements are deferred to exercises.
Historical Note: The TWRC in Theory: From Shannon 1961 to Nam-Chung-Lee 2010
1961-2011The two-way channel was introduced by Shannon in his 1961 "Two-way communication channels" paper — one of the first studies of network information theory. Shannon asked: what rate pairs can two users exchange over a shared medium? For the general two-way channel (direct links, no relay), Shannon gave an inner bound that is still not known to be tight 60 years later — one of the longest-standing open problems in information theory.
The relay-mediated two-way channel admits a cleaner answer. Wu-Chou-Chan (2005) first proposed a two-slot network-coded protocol using digital XOR at the relay. Popovski-Yomo (2006) extended it to wireless with analog superposition. Zhang-Liew-Lam (2006) — in the MobiCom paper that coined "physical-layer network coding" — showed that the XOR can be extracted from the analog sum itself, doubling the slot efficiency. Katti-Gollakota- Katabi (2007) demonstrated this experimentally in a MIT testbed called ANC (Analog Network Coding).
The information-theoretic characterisation came later. Oechtering and colleagues (2008–2009) computed the exact achievable region. Nam-Chung-Lee (2010) — the paper that sits at the heart of this section — proved the -bit constant-gap via lattice codes. Nazer-Gastpar (2011) then framed all of this as the specialisation of compute-and-forward, making the TWRC the pedagogical gateway to the general CF framework. The lineage is Shannon network coding PNC lattice CF — forty years of convergence on a two-slot lattice protocol that is nearly optimal.
Two-Slot Compute-and-Forward TWRC Protocol
Complexity: Encoding: lattice lookups per user. MMSE decoding at relay: per block with standard lattice decoders. Total latency: channel blocks of symbols each.The protocol's elegance lies in two moves. In slot 1 the relay decodes only the sum, not the individual messages — avoiding the MAC cut that limits DF. In slot 2 each user subtracts its own message from the decoded sum, turning the XOR broadcast into a point-to-point code.
Common Mistake: Both Users Need Their Dithers at the Relay
Mistake:
Forgetting that in the nested-lattice CF protocol the dithers at each user are shared with the relay — not broadcast in the air. If the dithers are unknown to the relay, the relay cannot form and the crypto-lemma argument breaks: the effective noise no longer has mean zero.
Correction:
In practice the dithers are generated from a pseudo-random seed shared in advance between each user and the relay (e.g., via a common pilot sequence or a key-exchange phase). This is inexpensive: a 128-bit seed regenerates an infinite dither sequence. It is not secret data — the dither exists to make the crypto-lemma uniformity hold, nothing more. The PNC protocol (§4) achieves a similar effect without dithers by using a finite-alphabet structured codebook; for asymptotic AWGN-capacity achievability, nested lattices with shared dithers are the standard construction.
Why This Matters: TWRC in Modern Wireless: Integrated Access and Backhaul
5G NR introduced Integrated Access and Backhaul (IAB) in Release 16: a hub gNB serves user equipments through wireless relay gNBs that also backhaul their traffic over the same spectrum. Architecturally, the IAB-relay plays the role of "" in a multi-user TWRC: users send uplink data, the relay forwards to the hub, the hub sends downlink data, the relay forwards to users — four logical traffic flows over shared spectrum.
5G NR does not implement compute-and-forward — it uses orthogonal time-frequency splitting for the four flows. But the information-theoretic analysis of this section predicts that a CF-based IAB relay could double the throughput of the backhaul link at high SNR. Chapter 20 discusses massive-MIMO coded modulation, where the role of lattice codes extends to precoded uplink-downlink combinations — a spiritual continuation of TWRC CF in higher dimensions.
See full treatment in Chapter 20
Quick Check
Why does compute-and-forward outperform decode-and-forward on the symmetric Gaussian TWRC at high SNR?
CF uses a single codebook while DF uses two; one codebook is cheaper.
The MA decode in DF is limited by , while CF's MA rate is per user — asymptotically identical but CF is tighter at finite SNR.
DF must decode both messages at the relay — limited by the MAC-sum capacity — while CF only decodes the sum, limited by the single-user effective rate which is worth larger at high SNR.
CF never requires synchronisation, while DF does.
Correct. DF's relay bottleneck is the MAC sum-capacity , which splits into per user. CF only needs to decode the sum , bypassing the per-user split — so its per-user rate scales with the full channel capacity.
Two-way relay channel (TWRC)
A three-node network in which two users and exchange messages via a single relay . No direct link exists. The canonical CF application, operating in two time slots (multiple-access + broadcast); Nam-Chung-Lee proved CF achieves capacity within bit per user.
Related: Forward Reference: Compute-and-Forward (Ch. 18), physical-layer network coding, relay channel
Key Takeaway
On the symmetric Gaussian two-way relay channel, compute-and- forward with integer coefficient achieves a per-user rate of , within bit per user of the cut-set capacity bound for all SNR (Nam-Chung-Lee 2010). Over two slots (MA + BC), this doubles the classical routing throughput and strictly outperforms both AF and DF at moderate-to-high SNR. The key move: the relay decodes — a single lattice point — and each user recovers the other's message by subtracting its own.