ELEC3506

Formula sheet

Every formula defined across the unit, grouped by module. Use your browser's print dialog for a monochrome copy.

02Physical Layer

Data-to-signal element ratio
r=data elementssignal elementsr = \frac{\text{data elements}}{\text{signal elements}}
r
Bits carried per signal element, dimensionless
Data elements
Count of bits
Signal elements
Count of signal elements used to carry them

r = 1 is one bit per pulse. r below 1 means it takes more than one signal element to carry a bit — the cost the biphase line codes in the next topic pay for a guaranteed transition every interval.

Signals — Bit Rate, Baud Rate and Spectral Efficiency →
Bit rate from signal rate
Bit rate=r×Signal rate\text{Bit rate} = r \times \text{Signal rate}
Bit rate
Data rate, bits per second (bps)
Signal rate
Baud rate, signal elements per second (baud)

Follows directly from the two rate definitions on this page — bits per second equals (bits per signal element) times (signal elements per second). Nyquist's log2(L) term, in the next topic, is this same relationship for the special case where every signal element carries an equal share of L levels.

Signals — Bit Rate, Baud Rate and Spectral Efficiency →
Shannon channel capacity
C=Blog2 ⁣(1+PN)C = B \log_2\!\left(1 + \frac{P}{N}\right)
C
Channel capacity, bits per second
B
Bandwidth, hertz
P
Received signal power
N
Noise power

P/N is a POWER ratio, not decibels. If a question gives you dB, convert first with SNR = 10^(dB/10).

Channel Capacity — Nyquist and Shannon →
Nyquist bit rate
Bit rate=2Blog2(L)\text{Bit rate} = 2B \log_2(L)
B
Bandwidth, hertz
L
Number of distinct signal levels

Assumes a noiseless channel. L must be at least 2 — one level carries no information.

Channel Capacity — Nyquist and Shannon →
Decibels to power ratio
SN=10(dB/10)\frac{S}{N} = 10^{(\mathrm{dB}/10)}
dB
Signal-to-noise ratio in decibels

Ten, not twenty. The 20 log10 form is for amplitude or voltage ratios, not power.

Channel Capacity — Nyquist and Shannon →
PCM bit rate
Bit Rate=Sampling Rate×bits per sample\text{Bit Rate} = \text{Sampling Rate} \times \text{bits per sample}
Bit Rate
bps
Sampling Rate
samples per second
bits per sample
count, fixed by the precision chosen
Modulation and PCM — Riding Bits on a Carrier, and Back →
Bits per baud
r=log2(L)r = \log_2(L)
r
Bits carried per signal element
L
Number of distinguishable signal levels — amplitudes, frequencies or phases, depending on the scheme
Modulation and PCM — Riding Bits on a Carrier, and Back →
Nyquist sampling rate
Sampling Rate2×fmax\text{Sampling Rate} \geq 2 \times f_{\max}
f_{\max}
Highest frequency present in the original analog signal, hertz

This is the condition PCM's sampling step must meet to make accurate reconstruction possible. Telephone voice is taken as topping out at 4000 Hz, which is where the 8000 samples/s figure below comes from.

Modulation and PCM — Riding Bits on a Carrier, and Back →
FDM total bandwidth
Btotal=(n×Bch)+[(n1)×Bguard]B_{\text{total}} = (n \times B_{\text{ch}}) + \left[(n-1) \times B_{\text{guard}}\right]
n
Number of channels multiplexed
B_{\text{ch}}
Bandwidth of one channel, hertz
B_{\text{guard}}
Bandwidth of one guard band, hertz

For n channels there are n-1 guard bands between them — one fewer than the number of channels, because a guard band only sits between two neighbours.

Multiplexing — Sharing One Link Between Many Signals →
TDM input slot duration
Tslot=1RinT_{\text{slot}} = \frac{1}{R_{\text{in}}}
T_{\text{slot}}
Duration of one input slot, seconds
R_{\text{in}}
Input data rate, bps
Multiplexing — Sharing One Link Between Many Signals →
TDM frame duration
Tframe=n×Tout slotT_{\text{frame}} = n \times T_{\text{out slot}}
n
Number of input slots per frame
T_{\text{out slot}}
Duration of one output slot, seconds
Multiplexing — Sharing One Link Between Many Signals →

03Data Link

Code rate
R=knR = \frac{k}{n}
k
Message length in bits
n
Codeword length in bits, message plus redundancy

Lower rate means better protection and lower throughput. It is a direct trade.

Error Detection — Parity, LRC and CRC →
Burst error detection limit
detects all bursts<(nk)+1 bits\text{detects all bursts} < (n-k) + 1 \text{ bits}
n-k
Number of redundancy bits added
Error Detection — Parity, LRC and CRC →
CRC encoding
T(x)=[M(x)xnk]+R(x)T(x) = \left[M(x) \cdot x^{n-k}\right] + R(x)
M(x)
The message as a polynomial
x^{n-k}
Shift left by the number of redundancy bits, appending zeros
R(x)
The remainder after dividing by the generator g(x)

The generator has length (n-k)+1 and is known to both sender and receiver.

Error Detection — Parity, LRC and CRC →
Minimum Hamming distance — detection and correction
dmins+1 (detect s errors),dmin2t+1 (correct t errors)d_{\min} \geq s+1 \ \text{(detect } s \text{ errors)}, \qquad d_{\min} \geq 2t+1 \ \text{(correct } t \text{ errors)}
d_min
The minimum Hamming distance of the code — the smallest number of bit positions in which any two valid codewords differ
s
Number of errors the code is guaranteed to detect
t
Number of errors the code is guaranteed to correct

Standard result in coding theory. Lecture 3 does not derive this — it is included because Hamming-distance questions are still fair game in the exam.

Error Correction — Forward Error Correction and Hamming Codes →

04MAC and LANs

Minimum frame time
Tfr2TpT_{fr} \geq 2 T_p
T_{fr}
Frame transmission time, seconds
T_p
Maximum one-way propagation time across the collision domain, seconds

This is the whole reason Ethernet has a minimum frame size. A frame shorter than 2Tp could finish transmitting before a collision at the far end gets back to tell the sender about it.

CSMA/CD and the Ethernet Frame →
Binary exponential backoff
wait=K×512 bit times,K{0,1,,2m1}\text{wait} = K \times 512 \text{ bit times}, \quad K \in \{0, 1, \ldots, 2^m - 1\}
m
Number of collisions this frame has suffered so far
K
Randomly chosen backoff multiplier, redrawn after every collision

The range doubles with each collision until it caps at m = 10 (K up to 1023), and the station gives up after 16 attempts. Both cap numbers are standard IEEE 802.3, not lecture content — see the note on the page.

CSMA/CD and the Ethernet Frame →
Collision domain length, theoretical
d=v×Tpd = v \times T_p
d
Maximum distance between the two furthest stations, metres
v
Propagation speed in the medium, metres per second
T_p
Maximum one-way propagation time, seconds

Propagation-delay-only figure. The real limit for 10 Mbps Ethernet is under half of this — see the collision domain section.

CSMA/CD and the Ethernet Frame →

05Network Layer

Header length in bytes
header bytes=HLEN×4\text{header bytes} = \text{HLEN} \times 4
HLEN
Header Length field, counted in 4-byte (32-bit) words

HLEN = 5, the minimum with no options, gives 5 x 4 = 20 bytes, exactly the fixed part.

The IPv4 Datagram →
IPv4 address space
2324295 million addresses2^{32} \approx 4295 \text{ million addresses}

Lecture 5's own figure: about 4295 million addresses total, of which about 3706 million are described as usable.

Classful Addressing →
Network address
netid=IP address    subnet mask\text{netid} = \text{IP address} \;\wedge\; \text{subnet mask}
\wedge
Bitwise logical AND, applied bit by bit across all 32 bits

This single operation is what a router performs on every packet it forwards.

CIDR and Subnetting →
Usable hosts per subnet
hosts=2x2\text{hosts} = 2^{x} - 2
x
Number of host bits, that is 32 minus the prefix length

The minus 2 removes the network address and the broadcast address. It does NOT apply to /31 or /32.

CIDR and Subnetting →
Number of subnets from borrowed bits
subnets=2b\text{subnets} = 2^{b}
b
Number of bits borrowed from the host portion
CIDR and Subnetting →
Fragment byte position
byte position=Fragmentation Offset×8\text{byte position} = \text{Fragmentation Offset} \times 8
Fragmentation Offset
Value stored in the 13-bit offset field, counted in 8-byte units

The field never stores a byte count directly. Always multiply the field's value by 8 to get the real position in the original datagram.

Fragmentation →
IPv6 address space
21282^{128}

Compare against IPv4's 2^32. The jump is not "a bit more room" — it is enough that address exhaustion stops being a design constraint at all.

IPv6 →