Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Alessio Lama - Development and testing of a safety network protocol

46 views

Published on

The progress in the industrial automation, automotive, biomedical and avionic sectors requires the use of safety network protocols that in some cases have to satisfy real time constrains. In this talk we will discuss about facing the major issues of the network, which tools to use to test and analyze the protocol and we will understand the usefulness of integrating PTP and PRP modules in our communication.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Alessio Lama - Development and testing of a safety network protocol

  1. 1. Development and Testing of Safety Network Protocol Alessio Lama alessio.lama@yahoo.it Linkedin 4 December 2018
  2. 2. Applications ● Automotive ● Industrial automation ● Biomedical ● Avionic ● Interactions with safety MCU ● Real-Time systems
  3. 3. Issues ● Access Denial ● Repetition ● Loss ● Corruption ● Timeout ● Hacking ● Interface disconnection ● Nondeterministic network ● Net driver bugs
  4. 4. Access Denial ● Network Topology ● A VLAN is any broadcast domain that is partitioned and isolated in a computer network at the data link layer. # ip link add link eth0 name eth0.8 type vlan id 8 ● Limited access # iptables -A INPUT -i eth1 -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT
  5. 5. Polling Protocol ● Unique ID request ● Sequence number ● Signature ● Timestamp ● …...
  6. 6. Corruption ● CRC detecting random errors and it’s much easier to implement on embedded hardware. ● SHA or MD5 are used for security check and it’s not recommended for real-time systems.
  7. 7. Interface disconnection ● Periodic supervision packet ● Realignment sequence number
  8. 8. Timeout ● Master device uses a timer callback to report the timeout response error. ● Check timestamp frame value (PTP)
  9. 9. Encryption / Codification High Data Rate AES128-CBC Low Data Rate AES256-CBC Bit Masking 1 10 0 0 01 1 ID: 200 RPM_engine[0:2] ID: 400 RPM_engine[3:7]
  10. 10. Tools : Wireshark Wireshark is a free and open source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education.
  11. 11. Wireshark : Filter and dissector https://wiki.wireshark.org/Lua/Examples
  12. 12. Wireshark : Filter and dissector https://wiki.wireshark.org/Lua/Examples
  13. 13. Tools : Scapy Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more.
  14. 14. Tools : Scapy Adding new protocols Show packet
  15. 15. Test : TTCN-3 TTCN-3 (Testing and Test Control Notation version 3) is a strongly typed testing language used in conformance testing of communicating systems. TTCN-3 has its own data types and can be combined with ASN.1, IDL and XML type definitions
  16. 16. Test : TTCN-3
  17. 17. PTP PTP hardware (if supported) and software timestamping to synchronize the clocks of the devices.
  18. 18. linuxptp Check Driver Support Configuration File
  19. 19. PRP Parallel Redundancy Protocol is a network protocol standard for Ethernet that provides seamless failover against failure of any network component. This redundancy is invisible to the application. http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_HSR_PRP
  20. 20. PRP PRP nodes have two ports and are attached to two separated networks of similar topology. PRP can be implemented entirely in software, i.e. integrated in the network driver. DropWindow size depends on the timing.
  21. 21. Development and Testing of Safety Network Protocol Alessio Lama alessio.lama@yahoo.it Linkedin 4 December 2018

×