---
title: Signal flow graphs and de-embedding
heading: Drawing waves as graphs, the terminated two-port, multiple reflections in cascades, mismatch loss and removing test fixtures
eyebrow: S6 · Lesson 4 · Signal flow graphs and de-embedding
xp: 50
---

::: hook
When a two-port is connected to anything other than a perfect match, waves bounce back and forth between it and its terminations, and every bounce changes what's measured. Signal flow graphs keep track of those bounces: each wave is a node, each S-parameter or reflection coefficient a branch, and Mason's rule sums all the paths, including the infinite series of round trips, in one formula. The same bookkeeping explains de-embedding, removing the effect of the connectors and lines that sit between a network analyzer and the device it's measuring, without which no microwave measurement could be trusted.
:::

::: play
- The input reflection of a two-port with real S-parameters ($S_{12} = S_{21}$) terminated by a load of reflection coefficient $\Gamma_L$: $\Gamma_\text{in} = S_{11} + \frac{S_{12}S_{21}\Gamma_L}{1 - S_{22}\Gamma_L}$.
- With $\Gamma_L$ = 0 (matched) the input sees just $S_{11}$. Any mismatch at the output shows up at the input, scaled by how much the network transmits, $S_{21}S_{12}$.
- Set $S_{21}$ near zero (an isolator or a well-isolated amplifier) and the input no longer cares what the output sees.
:::
:::

```sim plot
view: graph
x: g = -1..1
y: r = -1..1
slider: a = -0.5..0.5 = 0.2
slider: b = 0..1 = 0.9
slider: c = -0.5..0.5 = 0.3
plot: a + b^2*g/(1 - c*g) | samples: 300 | label: Γ_in
plot: a | dashed | color: ch3 | label: S₁₁ alone
```

::: predict
## Two identical 3 dB attenuators, each with |S₁₁| = |S₂₂| = 0.1, are cascaded. Is the total loss exactly 6 dB?

- [ ] Yes, losses in dB always add
- [x] Almost: the reflections between them change it by a few hundredths of a dB
- [ ] No, it's 3 dB
- [ ] No, it's 12 dB

::: reveal
Losses add in dB only if the stages are perfectly matched to each other. Here waves bounce between the two attenuators: the cascade's transmission is $\frac{S_{21}^aS_{21}^b}{1 - S_{22}^aS_{11}^b}$. With reflections of 0.1 the denominator is between 0.99 and 1.01 depending on their phases, so the total is 6 dB ± 0.09 dB. With poorly matched stages, such mismatch ripple can reach decibels.
:::
:::

::: nameit
## Signal flow graphs

Each port contributes two nodes, the incident wave $a_n$ and reflected wave $b_n$. A two-port is four branches: $S_{11}$ from $a_1$ to $b_1$, $S_{21}$ from $a_1$ to $b_2$, and so on. A load adds a branch $\Gamma_L$ from $b_2$ back to $a_2$; a source adds $\Gamma_S$. **Mason's rule** gives any ratio of node values as a sum over paths, each times the factors from loops it doesn't touch, divided by $1 - \sum(\text{loops}) + \sum(\text{non-touching pairs}) - \dots$.

## Results to know

- Terminated two-port:

$$\Gamma_\text{in} = S_{11} + \frac{S_{12}S_{21}\Gamma_L}{1 - S_{22}\Gamma_L}, \qquad \Gamma_\text{out} = S_{22} + \frac{S_{12}S_{21}\Gamma_S}{1 - S_{11}\Gamma_S}$$

- Cascade of two two-ports (with their S-parameters): $S_{21} = \frac{S_{21}^aS_{21}^b}{1 - S_{22}^aS_{11}^b}$.
- **Mismatch loss**: a load with reflection Γ absorbs $1 - |\Gamma|^2$ of the incident power, $-10\log(1 - |\Gamma|^2)$ dB less.

## De-embedding

A device under test sits between fixtures (connectors, lines, launches). If the fixtures are known, their effect can be removed:

- a lossless line of electrical length θ in front of port 1 adds $-2\theta$ to the phase of $S_{11}$, which is simply subtracted;
- in general, converting each part to transmission (T) parameters, which cascade by multiplication like ABCD, lets the fixtures' matrices be inverted and peeled off;
- network analyzers do this with calibration standards (lesson 45), measuring known shorts, opens, loads and lines to find the error terms of their own connections.
:::

::: example
## A two-port has S₁₁ = 0.2, S₂₁ = S₁₂ = 0.9 and S₂₂ = 0.3 (all real). With a load of Γ_L = 0.5, what's the input reflection, and how much power does the input reject?

::: solution
1. **Input reflection.**
   $$\begin{aligned} \Gamma_\text{in} &= 0.2 + \frac{0.81 \times 0.5}{1 - 0.15} \\ &= 0.2 + 0.476 \\ &= 0.676 \end{aligned}$$
2. **Reflected power.**
   $$\begin{aligned} |\Gamma_\text{in}|^2 &= 0.676^2 \\ &= 0.458 \end{aligned}$$
   so the input reflects 46% of the incident power.
3. **Mismatch loss.**
   $$\begin{aligned} \text{ML} &= -10\log(1 - 0.458) \\ &= 2.66\ \text{dB} \end{aligned}$$
4. **Where it comes from.** The network itself is well matched (S₁₁ = 0.2): the output mismatch shows through.

**Answer:** $\Gamma_\text{in}$ = 0.676, so the input rejects 46% of the incident power, a mismatch loss of 2.66 dB.
:::
:::

::: example
## Two 3 dB attenuators (S₂₁ = 0.707) are cascaded with S₂₂ᵃ = S₁₁ᵇ = 0.1 and their reflections in phase. What's the total transmission?

::: solution
1. **Cascade transmission.** With the reflections in phase,
   $$\begin{aligned} S_{21} &= \frac{0.707 \times 0.707}{1 - 0.01} \\ &= 0.505 \end{aligned}$$
2. **Loss.** That's a loss of 5.93 dB instead of 6.02 dB: the bouncing waves add 0.09 dB.
3. **Opposite phase.** If the reflections were opposite in phase, the denominator would be 1.01 and the loss 6.11 dB.
4. **What the range means.** That range is the mismatch uncertainty engineers budget for.

**Answer:** $S_{21}$ = 0.505, a loss of 5.93 dB (6.11 dB if the reflections were opposite in phase).
:::
:::

::: example
## A source with |Γ_S| = 0.2 drives a load with |Γ_L| = 0.3 through a matched, lossless connection whose phase isn't known. How uncertain is the delivered power?

::: solution
1. **The bouncing wave.** It adds to the incident wave with a factor $1/(1 - \Gamma_S\Gamma_L)$, whose magnitude lies between
   $$\frac{1}{1 + 0.06} \quad\text{and}\quad \frac{1}{1 - 0.06}$$
2. **In power.** Around the value computed with the phase ignored, the power lies between
   $$\begin{aligned} -20\log_{10}1.06 &= -0.51\ \text{dB} \\ -20\log_{10}0.94 &= +0.54\ \text{dB} \end{aligned}$$
3. **Why it matters.** This **mismatch uncertainty** often dominates the error budget of a power measurement, which is why sensors and sources are specified for low VSWR.

**Answer:** the delivered power is uncertain by −0.51 to +0.54 dB around the value computed with the phase ignored.
:::
:::

::: check
given: a = 0.1 | 0.3; b = 0.7 | 0.95; c = 0.2 | 0.5; g = -0.4 | 0.3 | 0.7
answer: a + b^2*g/(1 - c*g)
tolerance: 0.5%

## A reciprocal two-port has S₁₁ = {a}, S₂₁ = S₁₂ = {b} and S₂₂ = {c} (real). With a load reflection of {g}, what's Γ_in?

::: right
Right. $S_{11} + \frac{S_{12}S_{21}\Gamma_L}{1 - S_{22}\Gamma_L}$ = {answer}.
:::

::: misses
- [a + b^2*g] Include the multiple reflections: divide by $1 - S_{22}\Gamma_L$.
- [a] The load's reflection reaches the input through the network.
- [any] Not yet. Sum all paths from $a_1$ to $b_1$.
:::
:::

::: check
given: a = 0.6 | 0.8 | 0.9; b = 0.5 | 0.9; r = 0.2 | 0.3; s = 0.15 | 0.25
answer: a*b/(1 - r*s)
tolerance: 0.5%

## Two two-ports with S₂₁ of {a} and {b} are cascaded; the first's S₂₂ is {r} and the second's S₁₁ is {s} (real, in phase). What's the cascade's S₂₁?

::: right
Right. $\frac{S_{21}^aS_{21}^b}{1 - S_{22}^aS_{11}^b}$ = {answer}.
:::

::: misses
- [a*b] Waves bouncing between the stages add to the transmission.
- [any] Not yet. Include the loop between the two stages.
:::
:::

::: check
given: g = 0.1 | 0.33 | 0.5 | 0.7
answer: -10*log(1 - g^2)
unit: dB
tolerance: 0.05

## A load has |Γ| = {g}. What's its mismatch loss?

::: right
Right. $-10\log(1 - |\Gamma|^2)$ = {answer} dB.
:::

::: misses
- [-20*log(g)] That's the return loss; mismatch loss is the power not absorbed.
- [-20*log(1 - g)] The absorbed fraction is $1 - |\Gamma|^2$.
- [any] Not yet. Power absorbed is $1 - |\Gamma|^2$ of the incident.
:::
:::

::: check
given: a = 0.1 | 0.4; b = 0.8 | 0.95; c = 0.3 | 0.6; g = 0.2 | -0.5
answer: c + b^2*g/(1 - a*g)
tolerance: 0.5%

## The same kind of two-port, S₁₁ = {a}, S₂₁ = S₁₂ = {b}, S₂₂ = {c}, is driven from a source with Γ_S = {g}. What's Γ_out?

::: right
Right. $S_{22} + \frac{S_{12}S_{21}\Gamma_S}{1 - S_{11}\Gamma_S}$ = {answer}.
:::

::: misses
- [a + b^2*g/(1 - c*g)] That's Γ_in; at the output swap the roles of the ports.
- [any] Not yet. The output's view mirrors the input's.
:::
:::

::: check
given: p = 30 | 100 | 160; t = 20 | 55
answer: p + 2*t
unit: °
tolerance: 0.2

## A measured S₁₁ has a phase of {p}° at a plane {t}° (electrical) of lossless line in front of the device. What's the device's own S₁₁ phase (unreduced)?

::: right
Right. Add back $2\theta$: {answer}°.
:::

::: misses
- [p - 2*t] The line delayed the wave twice; undoing it adds phase back.
- [p + t] The wave crosses the line twice.
- [any] Not yet. De-embedding removes the line's round-trip delay.
:::
:::

::: check
given: a = 0.5 | 0.7; r = 0.1 | 0.2; s = 0.1 | 0.25
answer: 20*log(a*a/(1 - r*s)) - 20*log(a*a/(1 + r*s))
unit: dB
tolerance: 0.02

## Two stages with S₂₁ = {a} each have reflections {r} and {s} facing each other, of unknown phase. What's the spread between best and worst total transmission?

::: right
Right. From $1/(1 - rs)$ to $1/(1 + rs)$: {answer} dB.
:::

::: misses
- [any] Not yet. Compare the in-phase and out-of-phase denominators.
:::
:::

::: check
kind: parts
given: s = 0.05 | 0.1 | 0.2; l = 0.1 | 0.3 | 0.5

## A source with |Γ_S| = {s} feeds a load with |Γ_L| = {l} through a lossless connection of unknown phase.

::: part
answer: -20*log(1 - s*l)
unit: dB
tolerance: 0.5%

### By how much can the delivered power exceed the value that ignores their interaction?

::: misses
- [-10*log(1 - s*l)] The factor applies to the wave's amplitude; square it.
- [any] $-20\log_{10}(1 - |\Gamma_S||\Gamma_L|)$.
:::
:::

::: part
answer: 20*log(1 + s*l)
unit: dB
tolerance: 0.5%

### By how much can it fall short?

::: misses
- [any] $20\log_{10}(1 + |\Gamma_S||\Gamma_L|)$.
:::
:::
:::

::: check
kind: derivation
vars: a = -0.5..0.5, b = 0.5..1, c = -0.5..0.5, g = -0.9..0.9, h = -0.9..0.9

## A reciprocal two-port has real S₁₁ = a, S₂₁ = S₁₂ = b and S₂₂ = c; the load reflects g and the source h.

::: step
answer: a + b^2*g/(1 - c*g)

### What is Γ_in?
:::

::: step
answer: c + b^2*h/(1 - a*h)

### What is Γ_out?
:::

::: step
answer: 1 - (a + b^2*g/(1 - c*g))^2

### What fraction of the incident power enters port 1?
:::

::: right
Right. The load's reflection travels back through the network, and the denominator counts every round trip between the load and port 2.
:::
:::

::: explain
## Why does a mismatch at an amplifier's output show up at its input?

::: model
Any wave the amplifier sends out of its output that meets a mismatched load is partly reflected back into the output port. Unless the amplifier is perfectly isolated, some of that returning wave passes backward through it, through $S_{12}$, and emerges from the input, adding to the input's own reflection. Part of it also reflects off the output port again and makes another round trip, so the total is a geometric series of bounces, $S_{12}S_{21}\Gamma_L$ divided by $1 - S_{22}\Gamma_L$. The input match therefore depends on the load, and the output match on the source, which is why amplifiers are designed with both ends together and why isolators are added where a stage must be shielded from what follows.
:::
:::

::: practice

::: check
given: a = 0.15 | 0.35; b = 0.75 | 0.9; c = 0.25 | 0.45; g = 0.4 | -0.3
answer: a + b^2*g/(1 - c*g)
tolerance: 0.5%

## Γ_in: S₁₁ {a}, S₂₁ = S₁₂ = {b}, S₂₂ {c}, Γ_L {g}?

::: misses
- [any] $S_{11} + S_{12}S_{21}\Gamma_L/(1 - S_{22}\Gamma_L)$.
:::
:::

::: check
given: g = 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7
answer: -10*log(1 - g^2)
unit: dB
tolerance: 0.05

## Mismatch loss at |Γ| = {g}?

::: misses
- [any] $-10\log(1 - |\Gamma|^2)$.
:::
:::

::: check
given: a = 0.7 | 0.85; b = 0.6 | 0.9; r = 0.15 | 0.3; s = 0.1 | 0.25
answer: a*b/(1 - r*s)
tolerance: 0.5%

## Cascade S₂₁: {a}, {b}, facing reflections {r} and {s}?

::: misses
- [any] $S_{21}^aS_{21}^b/(1 - S_{22}^aS_{11}^b)$.
:::
:::
:::
