Upload
others
View
10
Download
3
Embed Size (px)
Citation preview
V0.1 | 2019-03-13
PREEvision UserDays 2019
SOA and Ethernet Design PREEvision 9.0 (SP1)
2
To my person:> Alexander Mayr
> Product Manager for PREEvision
> AUTOSAR, Communication, SOA + Ethernet, OnlineChecks
> At Vector since 2017
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
3
Introduction
u SOA / Ethernet workflow
Service Definition
Network Topology Definition
Service Deployment
Ethernet Communication
ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
4
SOA Design Workflow
SOA / Ethernet workflow
Software/Service Architecture
Service OrientedArchitecture
SWC Instances
AUTOSAR Classic
SW Library
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
6
Introduction
SOA / Ethernet workflow
u Service Definition
Network Topology Definition
Service Deployment
Ethernet Communication
ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
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
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
9
Overview about the steps in PREEvision (1/2)
Service Definition
SOME/IP Interface deployment:
Service / service interface definition:
10
Overview about the steps in PREEvision (2/2)
Service Definition
u Create Parameters for Methods
u Define direction
u Assign Application Data Types
11
Introduction
SOA / Ethernet workflow
Service Definition
u Network Topology Definition
Service Deployment
Ethernet Communication
ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
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
13
Introduction
SOA / Ethernet workflow
Service Definition
Network Topology Definition
u Service Deployment
Ethernet Communication
ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
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
15
Software Architecture
Service Deployment
Helper to connect all fitting software ports together
Software Interface Diagram
16
Result
Service Deployment
Interface Assignment Diagram
Network Diagram
17
Introduction
SOA / Ethernet workflow
Service Definition
Network Topology Definition
Service Deployment
u Ethernet Communication
ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
18
MAC, VLAN and IP definition
Ethernet Communication
Create VLAN:
Assign VLAN’s, define MAC and IP addresses (helper metrics):
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:
20
Introduction
SOA / Ethernet workflow
Service Definition
Network Topology Definition
Service Deployment
Ethernet Communication
u ECU communication
Conclusion
SOA / Ethernet workflow
Agenda
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).
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).
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.
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
25
Introduction
SOA / Ethernet workflow
Service Definition
Network Topology Definition
Service Deployment
Ethernet Communication
ECU communication
u Conclusion
SOA / Ethernet workflow
Agenda
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
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
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
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
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
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
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
33
SoA and Ethernet Modeling Overview (AUTOSAR adaptive)
Will not be covered, but easier to understand after this training.
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
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
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
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)
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).
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
40
Focus SysML – PREEvision as SysML-Tool for Automotive E/E Engineering
PREEvision inbuilt logical and physical
layer modelling
Available in PREEvision 9.0