Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of...

32
V1.06 | 2016-07-04 Moving Forward: Tool Supported Development for Automotive Ethernet in Time Sensitive Networks Ethernet@Automotive webinar series

Transcript of Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of...

Page 1: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

V1.06 | 2016-07-04

Moving Forward: Tool Supported Development for Automotive Ethernet in Time Sensitive Networks

Ethernet@Automotive webinar series

Page 2: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

2

u Introduction 3

Recap: Physical layers, network topology & protocols 5

TSN / AVB in a nutshell 8

Analysis, simulation & media processing concept 14

In Practice: Tool demonstration 27

Summary and outlook 29

Agenda

Page 3: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

3

Application area

Introduction

1

2

3

4

5

6

7

Ethernet PHY

(IEEE 100Base-T1, IEEE 100Base-TX, IEEE 1000Base-T)

IEEE Ethernet MAC + VLAN

IPv4/IPv6

TCP/UDP

SOME/IP DoIP

AVB / TSN

XCP

Service

Control/Discovery

Diagnostics and

Flash Update

Measurement and

Calibration

Audio/Video

Time Sync

ISO 15118

Part 3

Smart Charging

ISO 15118

Part 1 + 2

Page 4: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

4

Introduction 3

u Recap: Physical layers, network topology & protocols 5

TSN / AVB in a nutshell 8

Analysis, simulation & media processing concept 14

In Practice: Tool demonstration 27

Summary and outlook 29

Agenda

Page 5: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

5

Network Characteristics

Recap: Physical layers, network topology & protocols

S

R

R

S

R

R

R

S R

S

R

S

R

CAN (FD)

u Bus

u Broadcast

FlexRay

u Active Star

u Broadcast

Ethernet

u Fully switched network(point-to-point)

u Unicast

u Multicast and broadcast

Page 6: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

6

AVB/TSN: Audio Video Bridging / Time Sensitive Networking

Recap: Physical layers, network topology & protocols

u Application area:

> Time synchronous data transmission

> Assured worst case latency for data transmission

> Priority controlled data transmission

u Needs Ethernet Frames or VLAN Frames:

> Various Ethernet Types: e.g. 0x88F7 (gPTP)

u Standards surrounding AVB:

> IEEE 802.1AS: Timing and synchronization

> IEEE 802.1Qav/Qat: Forwarding and queuing, stream reservation (QoS)

> IEEE 1722: Audio/Video Transport Protocol1

2

3

4

5

6

7

Ethernet PHY

Ethernet MAC +

VLAN

AVB / TSN

Audio/Video

Time Sync

Page 7: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

7

Introduction 3

Recap: Physical layers, network topology & protocols 5

u TSN / AVB in a nutshell 8

Analysis, simulation & media processing concept 14

In Practice: Tool demonstration 27

Summary and outlook 29

Agenda

Page 8: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

8

Basic Message Layout

TSN / AVB in a nutshell

u TPID – Tag Protocol Identifier; fix value of 0x8100 (Ethertype for VLAN)

u TCI – Tag Control Identifier> PCP – Priority Code Point (large value represents high priority)

> CFI – Canonical Format Indicator

> VID – VLAN Identifier

Preamble FCSDestination

AddressPTP, BMCA, SRPUntagged Eth. Frame:

Bytes: 8 46 46 … 1500

SourceAddress

6

Type

2

Preamble FCSDestination

AddressAVTPTagged Eth. Frame:

Bytes: 8 46 42 … 1500

SourceAddress

6

(Type)

TPID

2 2

Type

2

VIDPCP CFIVLAN-Tag:

Bits:1216 1

TPID

3

TCI

Page 9: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

9

Audio Video Bridging - AVB

TSN / AVB in a nutshell

Transport of audio and video streams

u Through standard Ethernetnetwork technology

u With simple cabling

u Fast and in real-time

u Well synchronized witha global time andprioritized comparedto other streamsand/or frames

Right

Left

Front Rear

Front

Left

Right

Rear

Endpoint

HeadUnit

Bri

dge

t = 0

Page 10: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

10

Why AVB?

TSN / AVB in a nutshell

Significant increase of Audio/Video applications

u Camera devices (rear view, front view, side view)

u Virtual surround view, accident avoidance, pre-crash preparation

u Infotainment

Significant increase for control data as well

u Fast backbone needed

u Consideration of time-data relation required

Guarantees for Quality of Service (QoS) required

u Fast-Ethernet (Full-Duplex)

u No message priority consideration

u Latency not defined

u vs. AVB (Full-Duplex with Bandwidth Reservation)

u Time synchronization

u Bandwidth reservation

u Worst-case latency presetting

Page 11: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

11

Best Master Clock Algorithm (BMCA)

TSN / AVB in a nutshell

Time-Synchronization Spanning Tree

The result of all BMCA measures is the "Time-Synchronization Spanning Tree" with

u well defined port roles

u well defined priority

u well defined position

Source: IEEE 802.1AS

Page 12: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

12

Audio Video Transport Protocol (AVTP)

TSN / AVB in a nutshell

u AVTP delivers the data stream from one Endpoint to another by carrying:

u Stream and control data

u Sequence number

u Presentation time

u Validation flags

u Sub-protocols

u Sub-protocol data

u Support of several A/V formats

u Presentation time synchronizes Talker and Listener

Page 13: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

13

Introduction 3

Recap: Physical layers, network topology & protocols 5

TSN / AVB in a nutshell 8

u Analysis, simulation & media processing concept 14

In Practice: Tool demonstration 27

Summary and outlook 29

Agenda

Page 14: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

14

Trace Window

Analysis, simulation & media processing concept

Page 15: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

15

u Simulation of Stream Talker

u Provides media data> Direct access to media source files (audio, video*) to simplify streaming

u Protocol handling (e.g. gPTP, AVTP, …)

u AVTP> Support various media protocol formats (AAF, CVF, …)

> Clock Reference Format

u Quality of Service> Support Forwarding and Queueing of Time Sensitive Streams (FQTSS)

u Simulation of Stream Listener

u Counterpart to talker > Enable communication (e.g. when SRP is used)

u Protocol handling (gPTP, AVTP)

u Register to stream(s) > Easy access to media data and protocol information

AVB IL

Analysis, simulation & media processing concept

Page 16: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

16

u Simulation of Clock Master

u Best Master Clock Selection Algorithm (BMCA)

u Support IEEE 802.1AS> Clock synchronization for phase and frequency

u gPTP> Precise gPTP time due to interface hardware time stamps

> gPTP is equal to CANoe simulation time

u Simulation of Clock Slave

u Precise gPTP time due to interface hardware time stamps

u Stream Reservation Protocol*

* Not used in automotive profile (defined by AVnu Alliance)

AVB IL

Analysis, simulation & media processing concept

Page 17: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

17

AVB IL

Analysis, simulation & media processing concept

Page 18: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

18

AVB IL

Analysis, simulation & media processing concept

CAPL - Talker

Protocol Unit

(AVB IL)

Media Reader

(AVB IL)

Buffer

(samples)

Generation ofmedia samples

(user code)

Eth

ern

et

CAPL - Listener

Protocol Unit

(AVB IL)Buffer

(samples)

Processing ofmedia samples

(user code)

Media Writer

(AVB IL)

Media

File

Media

File

or

or

Page 19: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

19

AVB IL – Time Synchronization

Analysis, simulation & media processing concept

CANoe Simulation

DUT

TV Receiver

gPTP base Network Clock

Ethernet Interface

VN5610

Page 20: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

20

VN56xx

AVB IL – AVTP Timing

Analysis, simulation & media processing concept

CAPL - Talker

Protocol Unit

(AVB IL)

MAC

Buffer

(samples)

EthernetPHY

VN56xx

PHY

MAC

CAPL - Listener

Protocol Unit

(AVB IL)

Buffer

(samples)

Max. Transit Time

IEEE Definition

“Jack to Jack” or “Application to Application” latency is out of scope of AVTP

u Max. Transit Time Class A Network < 2 ms

u Max. Transit Time Class B Network < 50 ms

Page 21: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

21

AVB IL – AVTP Audio Packetization (FQTSS)

Analysis, simulation & media processing concept

Talker

Listener

Sample Clock

Ethernet

Presentation TimestampsL1

Audio Samples

Recovered Sample Clock

Presentation Time Offset

Min. 50 ms (Class B)Min. 2 ms (Class A)

Talker TimestampsT1 T2 T3

L2 L3

Page 22: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

22

Media Stream Control for Panels

Audio / Video

Analysis, simulation & media processing concept

Stream ID configurableCustomizable layout

Page 23: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

23

u 2 x RJ45 for IEEE802.3 (100BASE-TX and 1000BASE-T) physical layer

u 1 x D-Sub9 for 2 Channel BroadR-Reach

u 1 x USB2.0 (connection to PC)

u 2 x Binder (Hw-Sync + ext. Power)

u D-Sub9 for 2 Channel CAN/CAN-FD

u 1 x RJ45 (reserved)

Ethernet Interface VN5610

Analysis, simulation & media processing concept

Page 24: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

24

u New member of the Ethernet interface family

u Supported starting CANalyzer / CANoe 9.0 SP3

u 16 Ethernet channels for efficient network access (12 x BR; 4 X IEEE)

u TAP and switch capabilities

u One I/O port for DoIP activation line trigger

u Seamless integration into tool chain

u Two high speed CAN/CAN-FD channels

u USB3.0 (connection to PC)

Ethernet Interface VN5640

Analysis, simulation & media processing concept

Page 25: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

25

u Repetition rate ±20µs

u Guaranteed repetition rate ±50µs

Expected AVTP timing with hardware supported transmission

Analysis, simulation & media processing concept

Page 26: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

26

Introduction 3

Recap: Physical layers, network topology & protocols 5

TSN / AVB in a nutshell 8

Analysis, simulation & media processing concept 14

u In Practice: Tool demonstration 27

Summary and outlook 29

Agenda

Page 27: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

27

In Practice: Tool demonstration

Page 28: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

28

Introduction 3

Recap: Physical layers, network topology & protocols 5

TSN / AVB in a nutshell 8

Analysis, simulation & media processing concept 14

In Practice: Tool demonstration 27

u Summary and outlook 29

Agenda

Page 29: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

29

Summary

Summary and outlook

GM

S

SM

SSYNC

STREAM

SYNC

STREAM

SYNC

STREAM

T

L

Bridge

• AVB / TSN provides mechanisms for the synchronization of networkparticipants for reliable, low-latency media transmission.

• „Lip-sync“ is achieved

• A common time base is shared amongst all network components

Page 30: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

30

Summary

Summary and outlook

• A well defined protocol set is described to fulfil the requirements

• Mature PC tools & hardware for analysis & simulation purposes areavailable

1

2

3

4

5

6

7

Ethernet PHY

(IEEE 100Base-T1, IEEE 100Base-TX, IEEE 1000Base-T)

IEEE Ethernet MAC + VLAN

IPv4/IPv6

TCP/UDP

SOME/IP DoIP

AVB / TSN

XCP

Service

Control/Discovery

Diagnostics and

Flash Update

Measurement and

Calibration

Audio/Video

Time Sync

ISO 15118

Part 3

Smart Charging

ISO 15118

Part 1 + 2

Page 31: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

31

CANoe/CANalyzer.Ethernet

Summary and outlook

u CANoe/CANalyzer Demo including Ethernet:

> Measuring, analyzing, simulation, testing of Ethernet and IP based communication

> Free demo version:

www.vector.com/vi_downloadcenter_de.html

Products: CANoe, Categories: Demos

CANoe/CANalyzer.Ethernet

Page 32: Ethernet@Automotive webinar series...10 Why AVB? TSN / AVB in a nutshell Significant increase of Audio/Video applications u Camera devices (rear view, front view, side view) u Virtual

32 © 2016. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V1.06 | 2016-07-04

Author:Pfeifer, PatrickVector Informatik GmbH

For more information about Vectorand our products please visit

www.vector.com