Top Banner
V0.1 | 2019-03-13 PREEvision UserDays 2019 SOA and Ethernet Design PREEvision 9.0 (SP1)
40

SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

May 29, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

V0.1 | 2019-03-13

PREEvision UserDays 2019

SOA and Ethernet Design PREEvision 9.0 (SP1)

Page 2: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

2

To my person:> Alexander Mayr

> Product Manager for PREEvision

> AUTOSAR, Communication, SOA + Ethernet, OnlineChecks

> At Vector since 2017

> LinkedIn

Short introduction round (short, max. 10min):> Name, company, background

> Ethernet / SOA use cases, currently - planed

> Knowledge, experience in that field

> Expectations for the workshop

Goals and Focus of the workshop (40min):> Workshop focused on AUTOSAR Classic

> Short theoretical introduction of the process

> Flyover the process based on SOA & Ethernet Explorer

> Providing of links to the knowledgebases

And last but not least: discussion and get together of the PREEvision / Ethernet community (10min)

What are the focus and the expectations

Introduction

Page 3: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

3

Introduction

u SOA / Ethernet workflow

Service Definition

Network Topology Definition

Service Deployment

Ethernet Communication

ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 4: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

4

SOA Design Workflow

SOA / Ethernet workflow

Software/Service Architecture

Service OrientedArchitecture

SWC Instances

AUTOSAR Classic

SW Library

Page 5: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

5

Service Oriented System Design Workflow

SOA / Ethernet workflow

u Service definition and service interface design

u Virtual function bus (derived from service definition)

u Switched topology definition

u Deployment of service provider and service consumer

u Communication design

u VLAN configuration

u Switch configuration

u Socket communication

Page 6: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

6

Introduction

SOA / Ethernet workflow

u Service Definition

Network Topology Definition

Service Deployment

Ethernet Communication

ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 7: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

7

Service Interface and Technology Mapping to AUTOSAR Classic

Service Definition

Application SW Component (Service Provider)

Client Server Interface

Sender Receiver Interface

Client Server Interfacewith GET_ and SET_ operation

Sender Receiver Interfacechange notification

Sender Receiver Interface

1: Fire and Forget Method = Method without return

2: Property = Field = Attribute

Service Interface

Methods

F&F Methods 1

Properties 2

Events

Event Groups

Service Participant

3

Service Participant

2

Service Contract

Service Interface

Method

Fire&Forget Method

Property

Event

ServiceProviderPort

ServiceConsumer

PortTechnologyMapping

AUTOSAR Classic ECU/System

SWC1 SWC3

SWC2

SwitchSerialization/DeserializationEthernet

Service Discovery

TechnologyMapping

Page 8: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

8

Service and SOA Design

Service Definition

u Graphical diagrams to design and understand service oriented architectures

u Service Architecture Diagram

u Service Diagram

u Definition of the Service Interface and derivation of the Software Architecture for AUTOSAR Classic

Page 9: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

9

Overview about the steps in PREEvision (1/2)

Service Definition

SOME/IP Interface deployment:

Service / service interface definition:

Page 10: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

10

Overview about the steps in PREEvision (2/2)

Service Definition

u Create Parameters for Methods

u Define direction

u Assign Application Data Types

Page 11: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

11

Introduction

SOA / Ethernet workflow

Service Definition

u Network Topology Definition

Service Deployment

Ethernet Communication

ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 12: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

12

Network Digramm + Explorer

Network Topology Definition

u Create ECU’s

u Swtich

u BusSystems

u BusConnectors

u P2P-Connections

Helpers:

u Auto allocate BusSystems to Ethernet Cluster

u Create EthernetCluster

u Set Bus- and Connector-Type

Page 13: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

13

Introduction

SOA / Ethernet workflow

Service Definition

Network Topology Definition

u Service Deployment

Ethernet Communication

ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 14: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

14

Technology Mapping / Service Deployment

Service Deployment

Creation of (in library)

u New SWC for each Service role

u Fitting ports types + interfaces

Service Deployment

u Drag+Drop of service roles to ECU’s

Page 15: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

15

Software Architecture

Service Deployment

Helper to connect all fitting software ports together

Software Interface Diagram

Page 16: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

16

Result

Service Deployment

Interface Assignment Diagram

Network Diagram

Page 17: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

17

Introduction

SOA / Ethernet workflow

Service Definition

Network Topology Definition

Service Deployment

u Ethernet Communication

ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 18: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

18

MAC, VLAN and IP definition

Ethernet Communication

Create VLAN:

Assign VLAN’s, define MAC and IP addresses (helper metrics):

Page 19: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

19

Network- / Application-Endpoints, Sockets

Ethernet Communication

u Drop existing Socket Address or create new one (multicast Socket Address)

u Assign existing TP

u Drag + Drop existing Network Endpoints

u Set IP Address (if necessary)

Multicast Socket Addresses:

Page 20: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

20

Introduction

SOA / Ethernet workflow

Service Definition

Network Topology Definition

Service Deployment

Ethernet Communication

u ECU communication

Conclusion

SOA / Ethernet workflow

Agenda

Page 21: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

21

Signal Router

ECU communication

u The Signal Router finds a path through the network for each required information exchange.

u The Signal Router creates:

u Signals and PDUs with their Transmissions.

u An initial Communication structure (Coupling Elements with Coupling Ports and VLAN Memberships), if it does not exist.

u Socket Addresses, Application Endpoints, Network Endpoints, Consumed and Provided Service Instances.

u An initial Switch Configuration, if it does not exist (it respects existing Switch Configurations).

Page 22: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

22

Socket Connections

ECU communication

u The Server socket refers to a [socket connection bundle] which contains many [socket connections] to client sockets.

u Each socket connection then contains the included PDU Transmissions.

u A table action propagates the IDs from the service definition down to PDU transmissions.

u The second editor displays the content of a bundle (for multicast events).

Page 23: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

23

Data Serialization

ECU communication

u Data serialization tracks the signals caused by the service interface.

u The transformer holds information on byte order or constraints.

Page 24: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

24

End to End Protection and Transformation

Comforable Design Explorer

Support for SOME/IP, E2E and generic transformer

Detailed attributes for eachkind of transformer

Build up reusabletransformer chains

Assigning transformer chainsto signals or signal groups

ECU communication

Page 25: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

25

Introduction

SOA / Ethernet workflow

Service Definition

Network Topology Definition

Service Deployment

Ethernet Communication

ECU communication

u Conclusion

SOA / Ethernet workflow

Agenda

Page 26: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

26

What we skipped in this workshop

u SysML

u Service Discovery

u Switch Configuration

u Transport Protocol and Diagnostics communication

u Global Time Synchronization

u AUTOSAR Adaptive

What’s next

Conclusion

Page 27: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

27

Knowledgebase:

u PREEvision + Automotive Ethernet:

https://www.vector.com/de/de/produkte/produkte-a-z/software/preevision/automotive-ethernet-design/

u Webinars: Service Oriented Architectures & Ethernet, detailed recording:

https://www.vector.com/de/de/events/global-de-en/webinar-recordings/2018/preevision-automotive-ethernet-design/

u Dedicated PREEvision Ethernet Training:

https://www.vector.com/de/de/know-how/training/

Knowledgebase

Conclusion

Discussion / Questions

Page 28: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

28 © 2019. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V0.1 | 2019-03-13

Author:Mayr, AlexanderVector Germany

For more information about Vectorand our products please visit

www.vector.com

Page 29: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

29

Automotive OSI Layer Model – Application Areas

1

2

3

4

5

6

7

Ethernet PHY

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

IEEE Ethernet MAC + VLAN

IPv4/IPv6

TCP/UDP

SOME/IP Signal/PDU DoIP

Service-oriented

Communication

Signal-oriented

Communication

Diagnostics and

Flash Update

Measurement and

Calibration

AVB / TSN

XCP

Audio/Video

Time Sync

Page 30: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

30

Hilfsprotokolle

1

2

3

4

5

6

7

Ethernet PHY

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

IEEE Ethernet MAC + VLAN

IPv4/IPv6

UDP

DHCP

ICMP

ARP NDP

Dynamic Host

Configuration Protocol

Internet Control

Message Protocol

Address

Resolution Protocol

Neighbor

Discovery Protocol

Page 31: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

31

The complete Vector AUTOSAR Tool Chain

Basic Software (BSW)

RTE

Application Software Development

PREEvision

DaVinci Developer

SWC Design

vVIRTUALtarget pro

SWC Execution and Test

ECU SW Integration

DaVinci Configurator Pro

vVIRTUALtarget basic

BSW/RTE Configuration

Virtual Integration

Application Software Verification

CANoe & VT System

vVIRTUALtarget pro

SWC Verification in Virtual Environment

SWC Verification within Real ECU

AUTOSAR ECU/System

AUTOSAR ECU/System

AUTOSAR ECU

System Design

PREEvision

CANdelaStudio

Architecture and Communication Design

Diagnostics Design

SWC1 SWC3

SWC2

SWC1 SWC3

SWC2

SWC1 SWC2ECU SW Verification

CANoe.AMD

ECU Monitoring and Debugging

System Verification

CANape

ECU Calibration

CANoe & CANoe.DiVa

Verification of Network Communication and Diagnostic Behavior

Page 32: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

32

Manifest

Software/Service Architecture

Implementation of Services

SOA / Ethernet workflow

Service OrientedArchitecture

SWC Instances

AUTOSAR Adaptive

SW Library

AUTOSAR Adaptive

Import

Export

1 2

3b

SWC Instances

AUTOSAR Classic

AUTOSAR Classic

Import

Export

3a

ManifestManifest

Page 33: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

33

SoA and Ethernet Modeling Overview (AUTOSAR adaptive)

Will not be covered, but easier to understand after this training.

Page 34: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

34

Service Aspects

Provider Consumer

Service with roles

“Service Provider” and

“Service Consumer”

Service Interface

Service

Service Usage

Service Interface

Methods

Properties

F&F Methods

Events

Event Groups

Parameters

Data Type

Direction

ID

ID

ID

ID

ID

Page 35: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

35

Technology Mapping of Services

AUTOSAR Adaptive ECU/System

SWC1 SWC3

SWC2Service Provider

Service Consumer

SwitchSerialization/DeserializationEthernet

Service Discovery

TechnologyMapping

TechnologyMapping

Service Participant

3

Service Participant

2

Service Contract

Service Interface

Method

Fire&Forget Method

Property

Event

ServiceProviderPort

ServiceConsumer

PortTechnologyMapping

Receiver,Sender,Server,Client Ports

AUTOSAR Classic ECU/System

SWC1 SWC3

SWC2

SwitchSerialization/DeserializationEthernet

Service Discovery

Sender,Receiver,Client,Server Ports

TechnologyMapping

Page 36: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

36

Socket based communication in IP networks

u Communication end-point instance is called “network socket”

u Datagram socket (UDP)> Connectionless (datagram)

u Stream Socket (TCP)> Connection oriented (session)

> Connection setup, connection teardown

u Addressing over 4-tuple

{Source IP Address: Source Port, Destination IP Address: Destination Port}

u Addresses may be fixed or change dynamically during runtime

u Depending on socket type, transmitted information and also connections can be changed dynamically during runtime

u On this level no semantical or syntactical information about the payload is assumed

L5:Session

L3:IP

L4:TP

UDP socket

UDP TCP

Port 22

DA

Port 23

SA

Socket instance

TCPsocket

Page 37: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

37

u An Ethernet socket is defined by the following aspects

u IP Address

u Transport Protocol

u Port (Port Number is an attribute of the TP)

u Sockets provide the Application Endpoint

u Sockets can be unicast or multicast, depending on their TP (and IP)

Ethernet Socket

unicast

multicast

IP Address (on Network Endpoint)

Page 38: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

38

F2F1

ST1

ST1.1

ST1.2

ST1.3

Signal Router on Ethernet

u The Signal Router finds a path through the network for each required information exchange.

u It synthesizes communication artefacts.

u It can be started from…

u the context menu of Software Compositions or ports.

u from the Service Provider Roles in both Editors of the Service Deployment Category (uses latest settings; run from context menu to adjust settings).

Page 39: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

39

Global Time Synchronization

u Relevant Artifacts

u Global Time Domain> And Sub Domains

u Time Master (TM)

u Time Gateway (TG)> Connecting

> Master Domain to

> Sub Domain

u Time Slave (TS)

Global Time Domain

Page 40: SOA and Ethernet Design PREEvision 9.0 SP3 · 2 To my person: > Alexander Mayr > Product Manager for PREEvision > AUTOSAR, Communication, SOA + Ethernet, OnlineChecks > At Vector

40

Focus SysML – PREEvision as SysML-Tool for Automotive E/E Engineering

PREEvision inbuilt logical and physical

layer modelling

Available in PREEvision 9.0