Bounded Channel Access on 10BASE-T1S: PLCA versus CSMA/CD¶
Goals¶
Automotive and industrial networks are beginning to replace CAN and similar fieldbuses with 10BASE-T1S, a 10 Mbps Ethernet that connects a few dozen nodes to one unshielded twisted pair. Carrying ordinary Ethernet frames all the way out to the sensor and actuator edge removes a protocol translation from the vehicle or the machine. It also inherits Ethernet’s original problem: on a shared wire, arbitration by collision produces random waiting times with no upper limit. A control loop cannot be designed against a delay that has no worst case.
Physical Layer Collision Avoidance (PLCA) is what the standard adds to fix this, and it makes three promises. A frame never waits longer than one rotation of the channel, and that time can be computed in advance. No frame is ever discarded for losing an arbitration. Every station gets the same number of turns as every other.
This showcase takes those three promises one at a time and measures each one on a 10BASE-T1S segment, against the scheme PLCA replaces: plain Carrier Sense Multiple Access with Collision Detection (CSMA/CD), running on the same wire, with the same hardware and the same traffic, switched by a single configuration line.
masterHow PLCA Hands Out the Channel¶
10BASE-T1S (IEEE 802.3cg-2019) is the short-reach 10 Mb/s single-pair Ethernet physical layer (PHY). Do not confuse it with 10BASE-T1L, its long-reach, point-to-point sibling. In multidrop mode, the nodes share one twisted pair, a bus that the standard calls a mixing segment. The standard requires the PHY to support at least 8 nodes on a mixing segment of at least 25 m. These are minimums the PHY must meet, not limits on a deployment.
PLCA rotates a single transmit opportunity through the node IDs in a fixed order. Node 0 — often called the PLCA coordinator — sends a short beacon signal to start each cycle, and every node then counts opportunities in step with every other. A node with a frame ready transmits when the count reaches its own ID; a node with nothing to send yields after a few microseconds. The Ethernet MAC itself is unchanged. PLCA is a thin sublayer below it that holds the MAC back until the node’s turn arrives.
The clearest way to see this is to watch every station on the segment at once. In the run below, all eight edge nodes are handed a frame at the same instant, 100 µs into the run — the worst thing that can happen to a shared wire. Each row is one station, and the colour says what that station is putting on the wire:
The eight frames go out one after another in node-ID order, each taking about 68 µs, with no overlap anywhere in the picture. Nothing negotiates and nothing retries; the order was fixed before the traffic existed.
One detail in that figure is worth pausing on, because it is the whole point
of the mechanism. node[0] sends last, not first. Its own opportunity ran
from 97.6 µs to 100.8 µs, and its frame only arrived at 100.0 µs — a node has
to be ready when its opportunity opens, and this one was 2.4 µs late. It gets
no second chance within the cycle: it waits for the next beacon and transmits
at 572.5 µs, one full rotation after the frame appeared. That wait is the
price of the guarantee, and it is exactly what the guarantee bounds.
Now the same eight frames, at the same instant, on the same wire, with the PLCA sublayer removed:
All eight stations start transmitting at 100.00 µs, detect each other 10 ns later, and jam. They back off by random amounts and collide again at 112.8, 164.0, 176.8, 324.1 and 397.6 µs. PLCA had all eight frames delivered 540 µs after they appeared; in that same span CSMA/CD delivers three, at 189.7, 256.9 and 330.4 µs. No station did anything wrong; the scheme simply has no notion of whose turn it is.
Because the whole mechanism rests on every station counting the same cycle, PLCA is all-or-nothing per segment. A station without the sublayer transmits whenever the medium looks idle, which means inside somebody else’s transmit opportunity, so it does not merely degrade the rotation — it breaks it. Every node on a mixing segment must run PLCA, with the same node count configured. Mixing PLCA and non-PLCA Ethernet is done by putting a switch between them, not by sharing a wire.
Underneath, each node keeps a counter, curID, holding the ID whose turn it
currently is. Watching that counter is how you confirm the nodes really are in
step:
This window is an idle stretch of the same run, so every opportunity is
yielded and the counter simply climbs. The controller’s curve and node[0]’s
lie exactly on top of each other, which is what “in step” means: only
nanoseconds of propagation separate them. Each staircase runs past the last ID
to 9, and node 0 answers that by sending the next beacon, which resets every
counter to 0. The lower panel expands one such wrap; the beacon it shades
measures 2.0 µs.
Two numbers from this figure are used later: an opportunity that a node yields costs 3.2 µs, and a cycle in which nobody transmits takes 30.8 µs. Idle nodes cost microseconds, not frame times, which is why a mostly-quiet segment still rotates quickly.
The Model and What You Can Vary¶
The network is one mixing segment: N edge nodes and one zonal controller. In a
real design the controller bridges this segment to the vehicle backbone; that
side is not modeled here. All nodes are EthernetPlcaHost — a host whose
applications exchange raw Ethernet frames through an interface that has a PLCA
sublayer. The pair itself is a chain of WireJunction modules connected
by EthernetMultidropLink cables, with 1 m of trunk between neighbours
and 10 cm stubs down to the nodes, spacing that real harnesses use.
N counts the edge nodes. The controller is PLCA node 0 and edge node i is
PLCA node i+1, so a cycle has N+1 opportunities. The network file assigns
the two mandatory PLCA parameters accordingly, and lays out the trunk and the
stubs:
network MultidropNetwork
{
parameters:
int numNodes;
submodules:
controller: <> like IEthernetNetworkNode {
parameters:
eth[*].plca.plca_node_count = default(parent.numNodes + 1);
eth[*].plca.local_nodeID = default(0);
@display("p=150,150;i=device/card");
}
node[numNodes]: <> like IEthernetNetworkNode {
parameters:
eth[*].plca.plca_node_count = default(parent.numNodes + 1);
eth[*].plca.local_nodeID = default(this.index + 1);
@display("p=300,300,row,100;i=device/card");
}
j[numNodes]: WireJunction {
parameters:
@display("p=300,150,row,100");
}
connections:
controller.ethg++ <--> EthernetMultidropLink { length = 100cm; } <--> j[0].port++;
for i=0..numNodes-1 {
j[i].port++ <--> EthernetMultidropLink { length = 100cm; } <--> j[i + 1].port++ if i < numNodes - 1;
j[i].port++ <--> EthernetMultidropLink { length = 10cm; } <--> node[i].ethg++;
}
}
The two PLCA parameters are the only ones a mixing segment really forces you
to get right, and the network file derives both from numNodes so they
cannot drift apart: every station gets the same plca_node_count of N+1,
and local_nodeID is 0 on the controller and this.index + 1 on the edge
nodes. Both are default(...), so a configuration can still override them
for a station.
Everything the rest of this page measures is one of five knobs:
Knob |
Set by |
Values used here |
|---|---|---|
Arbitration scheme |
|
PLCA, or removed (CSMA/CD) |
Node count N |
|
8, 16, 40 |
Frame size |
|
46 B and 1500 B payload |
Offered load |
|
30%, 50%, 70%, 85% |
Bursting |
|
0, i.e. off |
The interface stack¶
EthernetPlcaHost is a StandardHost with the IP layers switched off
and its interfaces set to EthernetPlcaInterface. That interface is a
plain stack of four submodules — queue, mac, plca, phy — wired
in that order down to the wire, so the PLCA sublayer sits between an unmodified
EthernetCsmaMac and the EthernetCsmaPhy.
That layout is what makes the comparison a one-line change. The plca
submodule is declared like IProtocolLayer, which means setting its
typename to the empty string omits it altogether and connects the MAC
straight to the PHY. Nothing else moves: the same MAC, PHY, queue and cable
run on both sides of every comparison on this page. Opening the interface in
both configurations shows the whole difference:
[Config PlcaBase]
abstract = true
*.*.eth[*].plca.max_bc = 0
[Config CsmaCdBase]
abstract = true
**.plca.typename = ""
Those two sections are abstract, so they cannot be run on their own; every
real configuration extends one of them. max_bc = 0 in the PLCA base turns
off bursting — sending several frames in one opportunity — because bursting
changes the bound arithmetic derived below. That is the module default, though
the in-tree example configurations enable it.
The traffic¶
Each edge node sends fixed-size frames to the controller at a steady rate, and
the controller answers each node. Because there is no IP stack, the
applications speak raw Ethernet: an EthernetSourceApp is a packet
source plus a socket, an EthernetSinkApp is a socket plus a sink, and
*.*.ethernet.hasSocketSupport = true is what gives the host the socket
layer they bind to.
*.node[*].numApps = 2
*.node[*].app[0].typename = "EthernetSourceApp"
*.node[*].app[0].io.interface = "eth0"
*.node[*].app[0].io.remoteAddress = "controller"
*.node[*].app[0].source.packetLength = 46B
*.node[*].app[1].typename = "EthernetSinkApp"
*.node[*].app[1].io.interface = "eth0"
*.node[*].app[1].io.steal = true
*.node[*].app[1].io.localAddress = "node[" + string(ancestorIndex(2)) + "]"
*.controller.app[0].typename = "EthernetSinkApp"
*.controller.app[0].io.interface = "eth0"
*.controller.app[0].io.steal = true
*.controller.app[0].io.localAddress = "controller"
*.controller.app[0].io.remoteAddress = ""
*.controller.app[*].typename = "EthernetSourceApp"
*.controller.app[*].io.interface = "eth0"
*.controller.app[*].io.remoteAddress = "node[" + string(ancestorIndex(1) - 1) + "]"
*.controller.app[*].source.packetLength = 46B
Three details in that block are worth decoding. Addresses are built from the
module’s own position with ancestorIndex: on an edge node,
ancestorIndex(2) walks up from the io submodule past app[1] to the
node’s own index, so each sink binds to its own address; on the controller,
ancestorIndex(1) - 1 turns source app[k] into a stream aimed at
node[k-1], which is why the controller needs 1 + N applications — one
sink plus one source per edge node. And io.steal = true matters because
this is a bus: every station receives every frame, and a stealing socket
consumes the ones addressed to it instead of passing them on.
A 46-byte payload plus 18 bytes of header and frame check sequence is a 64-byte frame, the smallest Ethernet allows. In the latency configurations each production interval is jittered by ±10% and each node starts at a random offset, so the nodes drift out of phase. Offered load L counts wire occupancy in both directions, which gives these per-node periods at N=8:
Offered load L |
30% |
50% |
70% |
85% |
|---|---|---|---|---|
Period per node |
2.267 ms |
1.360 ms |
971 µs |
800 µs |
Behind that table, 68 µs is one fully busy 64-byte transmit opportunity and the factor 1.25 accounts for the uplink plus the quarter-volume downlink. The top loads match the aggregate regime Ford bench-tested for 10BASE-T1S node counts; real designs sit well below them.
Sweeping the knobs¶
The load grid and the node counts are iteration variables, so one
configuration expands into a run for every combination, and repeat gives
each combination several seeds. seed-set = ${repetition} in [General]
is what makes those seeds actually differ — without it every repetition would
replay the same random numbers:
[Config PlcaLatency]
extends = PlcaBase
sim-time-limit = 2s
repeat = 3
*.numNodes = ${N=8,16}
*.controller.numApps = 1 + ${N}
*.node[*].app[0].source.productionInterval = uniform(0.9, 1.1) * 1.25 * ${N} * 68us * 100 / ${load=30,50,70,85}
*.node[*].app[0].source.initialProductionOffset = uniform(0s, 1.25 * ${N} * 68us * 100 / ${load})
*.controller.app[*].source.productionInterval = uniform(0.9, 1.1) * 4 * 1.25 * ${N} * 68us * 100 / ${load}
*.controller.app[*].source.initialProductionOffset = uniform(0s, 4 * 1.25 * ${N} * 68us * 100 / ${load})
*.*.eth[*].plca.packetPendingDelay:vector.vector-recording = true
*.*.eth[*].mac.packetPendingDelay:vector.vector-recording = true
[Config CsmaCdLatency]
extends = CsmaCdBase
sim-time-limit = 2s
repeat = 10
*.numNodes = 8
*.controller.numApps = 9
*.node[*].app[0].source.productionInterval = uniform(0.9, 1.1) * 1.25 * 8 * 68us * 100 / ${load=30,50,70,85}
*.node[*].app[0].source.initialProductionOffset = uniform(0s, 1.25 * 8 * 68us * 100 / ${load})
*.controller.app[*].source.productionInterval = uniform(0.9, 1.1) * 4 * 1.25 * 8 * 68us * 100 / ${load}
*.controller.app[*].source.initialProductionOffset = uniform(0s, 4 * 1.25 * 8 * 68us * 100 / ${load})
*.*.eth[*].mac.packetPendingDelay:vector.vector-recording = true
PlcaLatency therefore expands to 2 node counts × 4 loads × 3 repetitions =
24 runs, and CsmaCdLatency to 4 loads × 10 repetitions = 40. The two sides
differ deliberately: PLCA is near-deterministic and its repetitions differ only
in traffic jitter, while CSMA/CD’s random backoff needs more seeds before its
tail shows up at all.
What gets recorded¶
[General] sets **.vector-recording = false and each configuration then
switches back on only the vectors it needs. This is worth copying: vector
recording on every signal of a 41-node segment produces enormous files, and
the scalar and histogram recording that most of the results here come from is
unaffected by the switch.
The access latency plotted below is packetPendingDelay, recorded at
eth[*].plca on the PLCA runs and at eth[*].mac on the CSMA/CD runs,
which have no sublayer beneath the MAC. Its count also serves as the
per-station count of successful transmissions behind the goodput chart.
Discards come from mac.packetDropRetryLimitReached and
queue.droppedPacketsQueueOverflow. The two cycle configurations record
everything, which is where plca.curID for the rotation figure and
phy.transmittedSignalType for the ownership figures come from; the
utilization configurations additionally record phy.busUsed with a
+timeavg mode, which measures how much of the time the wire carries data.
The configurations¶
Seven runnable configurations turn those knobs, in matched pairs wherever the page compares the two schemes:
Configuration |
Runs |
What it sets |
What it produces here |
|---|---|---|---|
|
1 |
N=8, 30% load, 2 ms, PLCA |
PLCA ownership figure, rotation |
|
1 |
the same without PLCA |
CSMA/CD ownership figure |
|
24 |
N=8,16 × load grid × 3 |
Promise 1, both charts |
|
40 |
N=8 × load grid × 10 |
Promise 1 and 2, CSMA/CD side |
|
1 |
N=40, downlink halved |
the 40-node point |
|
2 |
N=8 saturated, 1500 B and 46 B |
Promise 3, PLCA side |
|
20 |
the same without PLCA, 10 seeds |
Promise 3, CSMA/CD side |
Three further sections — PlcaBase, CsmaCdBase and
CycleAnatomyBase — are abstract and exist only to be extended.
Promise 1: The Longest Wait Can Be Computed¶
The reason a rotation can be turned into a deadline is that every part of a cycle has a fixed cost. A busy opportunity costs the frame on the wire — preamble, frame and end-of-stream delimiter, 584 bit times at 64 B — plus one 96-bit interpacket gap, giving 680 bit times, or 68 µs. It does not also pay the opportunity timer, because the sender’s COMMIT stops the other nodes’ timers. An idle opportunity costs the 32 bit-time opportunity timer, the 3.2 µs seen in the rotation figure. The beacon costs 20 bit times.
The worst case for a node is one fully busy cycle, in which every other node transmits before its turn comes round. At N=8 with 64-byte frames that is 20 + 9 × 680 = 6140 bit times:
bound(N) = 68 µs × (N+1) + 2 µs = 68·N + 70 µs
bound(8) = 614 µs
This is the number a segment is designed against. At N=8, every node is guaranteed a turn at least every 0.61 ms, so a 10 ms control loop fits with more than 15× margin. The bound scales with the largest frame any node on the segment may send, so it must be budgeted for that frame rather than the typical one: at 1518 B the same eight-node segment guarantees only 11.1 ms.
Whether the real worst case stays under that line is the first thing to measure. Access latency here is the time from a frame’s first transmission attempt until the transmission that succeeds begins:
The legend names the two vantage points described above. That they differ does
not bias the comparison: on the PLCA runs the sublayer and the MAC reported the
same maximum in all 25 runs — the 24 of PlcaLatency plus Scale40Plca.
The vertical axis is logarithmic, and the dashed line is the 614 µs bound. The PLCA maximum climbs toward that line as load rises — 228–296 µs at 30% load, 484–488 µs at 85% — and never crosses it. At the top of the grid it is using 79% of its own worst case.
CSMA/CD is already at 1.3–4.2 ms at 30% load and 9–43 ms at 50%. Past its stability limit the maxima diverge, reaching a few hundred milliseconds within the 2 s run, and they keep growing the longer you watch, because what is being measured there is the delay of a queue that never drains. There is no number to design against, at any load.
The bound grows linearly with the node count, so sizing a segment is arithmetic. Three node counts, measured against the same formula:
Measured maxima are 488 µs at N=8, 837 µs at N=16 and 1232 µs at N=40, against bounds of 614 µs, 1.158 ms and 2.79 ms. Forty nodes is the envelope that ODVA and shipping transceivers specify for in-cabinet use, and it sits at only 44% of its bound: with 41 stations drifting out of phase, a fully busy rotation stops being reachable in practice. The bound is a guarantee, not an operating point.
Two practical notes. With bursting off the controller can serve only one downlink frame per cycle, so downlink-heavy zones need sizing with that in mind; the 40-node configuration halves its downlink for that reason, which puts it at about 76.5% offered load rather than the grid’s 85%. The bound comparison is unaffected, because the bound does not depend on load. Second, node counts beyond about 8 are an electrical qualification exercise on real cabling — node spacing, stub capacitance — and this model covers the protocol, not the analog limits.
Promise 2: Nothing Is Dropped¶
A bounded wait is only half of a guarantee. The other half is that the frame is still there at the end of it.
CSMA/CD gives up. A station that keeps losing arbitration retries with an exponentially growing random backoff, and after 16 attempts the standard tells it to discard the frame, having spent up to about 366 ms trying. Those discards are visible in the load sweep: none at all at 30% and 50% load, then 3–10 frames per 2 s run at 70% and 20–33 at 85%. They are annotated on the access-latency chart rather than plotted in it, because a frame that never transmits has no access latency to record — which also means those curves are censored, and the frames missing from them are precisely the worst ones.
PLCA has no equivalent failure mode. A station that finds the medium busy is not competing with anyone; it is waiting for a turn that is already coming. Across every PLCA run on this page — every load, every node count, saturation included — not one frame was discarded for losing arbitration, because there is no arbitration to lose.
That promise is about arbitration, and it is worth being exact about what it does not cover. If an application offers more than 10 Mbps, the interface queue overflows no matter which scheme is running underneath. In the saturation runs below, both sides shed almost exactly the same number of frames that way (154 312 under PLCA, 154 251 under CSMA/CD). PLCA guarantees that a frame which reaches the wire is never thrown away for losing a race; it cannot invent bandwidth that is not there.
One statistic in these runs is easy to misread: the MAC still reports collisions on the PLCA runs. Those are local signals that pace the MAC from below. Nothing collides on the wire.
Promise 3: Every Station Gets an Equal Share¶
The third promise only becomes visible when the wire is full, so both protocols are given more traffic than they can carry, using maximum-size frames.
The totals are nearly identical: PLCA delivers 9.744 Mbps of application goodput, CSMA/CD 9.56–9.59 Mbps, about 98% of it. Saturated Ethernet keeps its aggregate throughput, which has been known since Boggs, Mogul and Kent measured it in 1988. The aggregate is not where these two differ. The difference is in who gets to send:
The blue bars are level. PLCA’s stations differ by at most one frame — 180 against 181 — and that single frame is only the 2 s window cutting mid-cycle; the mechanism grants exactly one opportunity per node per cycle.
The orange bars are not level. Under contention CSMA/CD’s losses concentrate on unlucky stations through the capture effect: in this seed the luckiest station sends 2.5× what the unluckiest does, and across the ten seeds that ratio ranges from 1.6× to 6.7×. On top of the uneven shares, 75–81 frames per run hit the retry limit and were discarded; the PLCA side discarded none.
Note also that on the PLCA side the controller’s bar is the same height as any single node’s, even though it offers eight times the traffic. With bursting off it gets one opportunity per cycle like everyone else — the downlink limit described under Promise 1.
Fairness of this kind is per transmit opportunity, not per byte. Stations receive equal frame counts, which is equal wire time only if they send equal-size frames. One turn spent on a 1518-byte frame occupies 12312 bit times of the cycle against 680 for a 64-byte one, so a station sending maximum-size frames takes about 18× the wire time of a 64-byte neighbour on the same segment.
What the Model Leaves Out¶
The model covers the PLCA protocol rather than a complete 10BASE-T1S product, and leaves the following out:
Loss of node 0 and the resynchronization that follows are not modeled; beacons always arrive.
There is no noise and there are no reception errors: frames are lost only to collisions (CSMA/CD) or queue overflow.
Real constrained nodes often reach the PHY over a serial host interface that can cap their rate below wire speed; hosts here send at wire speed.
Bursting is off and multiple node IDs per station are not modeled. These are the product knobs for favouring one node; every configuration here grants one opportunity per node per cycle.
Sources: omnetpp.ini,
MultidropNetwork.ned
Try It Yourself¶
If you already have INET and OMNeT++ installed, start the IDE by typing
omnetpp, import the INET project, then navigate to the
inet/showcases/ethernet/tenbaset1s folder in the Project Explorer. There,
you can view and edit the showcase files, run simulations, and analyze results.
Otherwise, there is an easy way to install INET and OMNeT++ using opp_env, and run the simulation interactively:
$ opp_env run inet-master --init -w inet-workspace --install --build-modes=release --chdir \
-c 'cd inet-master/showcases/ethernet/tenbaset1s && inet'
This command creates an inet-workspace directory, installs the appropriate
versions of INET and OMNeT++ within it, and launches the inet command in the
showcase directory for interactive simulation.
Alternatively, for a more hands-on experience, you can first set up the workspace and then open an interactive shell:
$ opp_env install --init -w inet-workspace --build-modes=release inet-master
$ cd inet-workspace
$ opp_env shell
Inside the shell, start the IDE by typing omnetpp, import the INET project,
then start exploring.
Discussion¶
Use this page in the GitHub issue tracker for commenting on this showcase.