Skip to main content

IEEE 802.1BA AVB: the first TSN profile

· 7 min read
PhD candidate, LyRIDS (ECE) × CEDRIC (Cnam)

The TSN posts so far describe tools. A real network does not use every tool: it uses the subset that its application needs, configured in a particular way. IEEE 802.1 writes such subsets down as profiles. Audio Video Bridging (AVB), specified in IEEE 802.1BA, was the first.

Audio and video: residential, professional A/V, automotive infotainmentsynchronous playback, no drops beside best effort, plug and playrequirementsIEEE 802.1BA: Audio Video Bridging (AVB) Systemsplus IEEE 1722 (transport) and IEEE 1722.1 (discovery and control)selects features, options and defaultsPriority (802.1Q)gPTP (802.1AS)CBS (Qav)SRP (Qat)TAS (Qbv)Preemption (Qbu)CQF (Qch)ATS (Qcr)PSFP (Qci)FRER (CB)Config (Qcc)Security (AE, AR)
Figure 1. The AVB profile between its application and the TSN toolbox. Highlighted: the base standards AVB is built on. AVB also needs two transport and control standards from outside IEEE 802.1.Source: own drawing, after D. Pannell, An Introduction to AVB, IEEE SA TSN webinar, June 2022, slides 24 and 30.
Abbreviations used in this post (7)
AbbreviationStands forMeaning
AVBAudio Video BridgingThe predecessor of TSN: gPTP, the credit-based shaper and stream reservation, combined for audio and video (profile: IEEE 802.1BA).
gPTPgeneralized Precision Time ProtocolThe profile of PTP defined by IEEE 802.1AS, in which every bridge takes part in time distribution.
IECInternational Electrotechnical CommissionThe international standards body for electrical and electronic technologies; co-owner of IEC/IEEE 60802.
IEEEInstitute of Electrical and Electronics EngineersThe professional association whose Standards Association publishes the IEEE 802 LAN/MAN standards.
PCPPriority Code PointThe 3-bit priority field of the 802.1Q tag (priorities 0 to 7).
SRPStream Reservation ProtocolIEEE 802.1Qat: distributed admission control in which talkers advertise streams and listeners subscribe, reserving resources hop by hop.
TSNTime-Sensitive NetworkingThe set of IEEE 802.1 standards that give Ethernet bounded latency, time synchronisation and high reliability.

1. What a profile is​

IEEE 802.1 writes two kinds of standards [1][2]:

  • base standards and their amendments define features and protocols for many use cases, so they contain required functions ("shall") and optional ones ("may");
  • profiles serve one use case. A profile selects features, options, configurations, defaults, protocols and procedures from the base standards.

A profile can make an optional function mandatory, but it cannot make a required function optional, and it cannot define new features or protocols. When a profile finds a gap, the group starts an amendment to the base standard instead [1][2]. The TSN profiles are 802.1BA (AVB), 802.1CM (fronthaul), IEC/IEEE 60802 (industrial automation) and 802.1DG (automotive), with a profile for service provider networks (802.1DF) also in progress [2].

2. Where AVB came from​

AVB started as an IEEE 802.3 study group called "Residential Ethernet", aiming at low-cost, plug-and-play, low-latency audio and video transport. The work moved to IEEE 802.1, where the AVB task group was formed [1]. That group later became the TSN task group, when it was clear that more use cases needed the same tools [1][3].

A home with an Ethernet AVB backbone connecting computers, speakers, displays and an audio/video server in each room
Figure 2. The residential vision of AVB: an Ethernet AVB backbone connecting the audio, video and computing devices of every room.Source: D. Pannell, “An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile,” IEEE SA TSN webinar series, June 2022, slide 10; cropped, otherwise unchanged.

Three markets were targeted: residential, professional audio and video, and automotive [1]. For a network of 7 hops (6 bridge spans) on Fast Ethernet, the goals were [1]:

GoalTarget
Synchronous playbackWithin 1 µs between any two nodes
Class A ("real-time")2 ms from source to destination, so that a musician hears the playback of their own performance in real time; all links Ethernet
Class B ("playback")50 ms, for example for wireless speakers; up to two Wi-Fi hops allowed
CoexistenceNo drops for AVB flows while they share the wires with best-effort traffic

Larger networks degrade these targets gracefully, and faster links reduce latency or allow more hops [1].

An automotive infotainment network: a central unit connected to displays, cameras and media players around the car
Figure 3. The automotive infotainment target: a central unit connected to displays, cameras and media players around the car.Source: D. Pannell, “An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile,” IEEE SA TSN webinar series, June 2022, slide 12; cropped, otherwise unchanged.

3. How AVB meets its goals​

Synchronised playback​

Every node shares a common time, distributed by gPTP (802.1AS). gPTP is a "ruler", not the media clock. IEEE 1722 carries audio samples or video pixels together with presentation timestamps in gPTP time. Each listener rebuilds its media clock from those timestamps, so all listeners play at the same instant, whatever their distance from the source [1].

A five-hop gPTP sync tree from the grandmaster endpoint through four bridges, with cable delay and residence time at each hop
Figure 4. gPTP over five hops: the grandmaster's time travels through four bridges, and each hop corrects for its cable delay and its residence time.Source: D. Pannell, “An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile,” IEEE SA TSN webinar series, June 2022, slide 15; cropped, with neighbouring slide text, logos or navigation icons blanked.

gPTP finds the best clock source automatically, builds the clock tree, and corrects for frequency errors in software, so cheap crystals suffice. It was modelled at 40 ns timestamp resolution over 7 hops of Fast Ethernet; Gigabit links usually reach 8 ns [1].

No drops while sharing the wire​

Three base standards combine [1]:

  1. Strict priorities. AVB class A and class B traffic use priority code points 3 and 2, mapped to the two highest traffic classes; gPTP travels as network management traffic just below them.
  2. Stream reservation (SRP, 802.1Qat). Congestion causes almost all frame drops on Ethernet. SRP admits AVB streams only up to 75 % of each link and reserves bridge memory for them. A request that does not fit is refused, like a busy signal.
  3. Credit-based shaper (802.1Qav). A 20 Mb/s stream is still sent as back-to-back bursts at link speed. When bursts from several ports overlap on one output, buffers overflow even though the average fits. The shaper spreads each class over time.
AVB priority code points 3 and 2 mapped to traffic classes 8 and 7 with credit-based shapers ahead of a strict priority selector
Figure 5. AVB priorities: PCP 3 (class A) and PCP 2 (class B) are mapped to the two highest traffic classes, each with a credit-based shaper, ahead of a strict priority selector.Source: D. Pannell, “An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile,” IEEE SA TSN webinar series, June 2022, slide 17; cropped, with neighbouring slide text, logos or navigation icons blanked.

Plug and play​

gPTP and SRP configure themselves, but SRP must still be told which talker to connect to which listener. IEEE 1722.1, ATDECC, completes the system with discovery, enumeration, connection management and control of AVB devices [1].

4. The base standards of AVB​

The TSN components at the time of AVB: 802.1AS, IEEE 1722, the credit-based shaper, SRP and IEEE 1722.1
Figure 6. The TSN toolbox as it stood when AVB was completed: synchronisation, latency and resource management were covered; high availability and ultra reliability were not yet.Source: D. Pannell, “An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile,” IEEE SA TSN webinar series, June 2022, slide 30; cropped, otherwise unchanged.
StandardRole in AVB
IEEE 802.1ASTiming and synchronisation (gPTP)
IEEE 802.1QavCredit-based shaper
IEEE 802.1QatStream Reservation Protocol
IEEE 1722Audio Video Transport Protocol (not an 802.1 standard, but necessary)
IEEE 1722.1Discovery, enumeration, connection management and control (needed for plug and play)

The profile itself, IEEE 802.1BA, was first published in 2011 and revised as 802.1BA-2021 [1][4].

5. What came after​

The webinar on AVB lists how the tools grew after the profile [1]:

  • Redundancy: for time in 802.1AS-2020, and for streams in 802.1CB.
  • Engineered networks: 802.1AS-2020 was extended for networks that are designed rather than plug-and-play.
  • Configured reservations: 802.1Qcc allows reservations stored in configuration, without running the reservation protocol.
  • Policing and security: 802.1Qci adds policing, and 802.1 security standards have been enhanced.
  • Transport and control: IEEE 1722-2016 adds control formats, and IEEE 1722.1-2021 updates discovery and control.

For analysis, the AVB targets are early examples of the kind of guarantee this series formalises. The 2 ms class A bound is a worst case over a fixed hop count. Network calculus for TSN shapers shows how such a bound is derived for the credit-based shaper.

References​

  1. D. Pannell, "An Introduction to AVB (Audio Video Bridging), the 1st TSN Profile," IEEE SA TSN webinar series, June 2022, slides 9–30. Slides
  2. D. Pannell, "Status & Content of the IEEE TSN Auto Profile," IEEE Ethernet & IP @ Automotive Technology Day, September 2020, slide 5. Slides
  3. J. Farkas, "Introduction to IEEE 802.1: Focus on the Time-Sensitive Networking Task Group," 15 May 2017, slides 23–24. Slides
  4. IEEE, IEEE 802.1BA, Audio Video Bridging (AVB) Systems. IEEE SA, IEEE 802.1 page