Professional Documents
Culture Documents
The session
layer describes the organization of data in a packet. Bellow this in Transport layer data packet is transformed
into a TCP packet if the communication is reliable and into UDP if not. In the network layer, the packet is
extended with information about the source and target IP addresses and other network layer fields. Below this
is the data link layer which extends packets with Medium Access Control (MAC) addresses and other link layer
fields. Finally, in the physical layer, a packet is sent over 100/1000Base-T1 ethernet. An opposite sequence is
applied when receiving packets.
Physical layer
RX[V ] = Bus status[V ] − T X[V ] (1) Physical Coding Sublayer (PCS) is part of the physical layer
(PHY). The PCS is responsible for the preparation of data between the Medium Access Control
(MAC) sublayer of Microcontroller Unit (MCU) and Physical Medium Attachment (PMA)
sublayer. For communication between these sublayers is used Media-Independent Interface
(MII) (see Figure 9) [5], [6].
The PCS is responsible for the preparation of data between the
Medium Access Control (MAC) sublayer of the Microcontroller
Unit (MCU) and Physical Medium Attachment (PMA) sublayer.
the MDIO (Management Data Input/Output) pin plays a crucial role in configuring and managing the PHY
(Physical Layer) chip responsible for converting digital data into electrical signals for Ethernet transmission.
Here's a breakdown of its main functions:
MDIO Functionality:
1.PHY Configuration: The MDIO pin serves as a bi-directional communication channel between the
MCU (Microcontroller Unit) of an ECU and the PHY chip.
2.Register Access: Through MDIO, the MCU can read and write from/to various registers within the PHY
chip. This allows configuring essential parameters like:
1. Link speed (10/100/1000 Mbps)
2. Duplex mode (full/half duplex)
3. Auto-negotiation settings
4. Flow control options
5. Media type (copper/fiber)
3.Status Monitoring: The MDIO pin also enables the MCU to read the status registers of the PHY
chip, providing information about:
1. Link status (up/down)
2. Error Statistics
3. Cable connection quality
4. Activity on the Ethernet link
IPV6 vs IPv4 uses 32-bit addresses, limiting it to around 4.3 billion unique addresses. This may seem like a
lot, but with the ever-growing number of devices connecting to the internet (IoT, smartphones, etc.), this pool is
rapidly depleting.
Feature IPv4 IPv6
Session layer In the session layer of the ISO/OSI model data may be composed of PDUs,,
SOME/IP, ViWi, DoIP, or other protocol. In this thesis, it is dealt with data composed of PDUs.
• Unique identification: Without MAC addresses, it would be impossible to distinguish individual
devices on a network, leading to chaos and data confusion.
• Efficient data flow: MAC interfaces prevent collisions and regulate access, ensuring smooth and
efficient communication between devices.
• Security: MAC addresses can be used for basic security measures, like filtering unauthorized devices
from accessing the network.
• Network management: Network administrators can identify and manage specific devices based on
their MAC addresses.
1.Data creation: Application on ECU1 creates data to be sent to ECU2.
2.TCP segment encapsulation: The data is encapsulated in a TCP segment with headers containing:
1. Source and destination IP addresses (identifying ECU1 and ECU2).
2. Source and destination port numbers (identifying applications).
3. Sequence and acknowledgment numbers (for reliable data delivery).
4. Flags and other control information.
3.Ethernet frame encapsulation: The TCP segment is encapsulated in an Ethernet frame with headers containing:
1. Source and destination MAC addresses (identifying network interfaces).
2. EtherType field indicating TCP protocol.
4.Transmission to switch: ECU1 transmits the Ethernet frame to Port 1 of the switch.
5.VLAN processing: The switch examines the frame's VLAN tag (if any) and forwards it only to ports belonging to the
same VLAN as ECU2. This isolates traffic and improves security.
6.Transmission to ECU2: If the frame matches ECU2's VLAN and MAC address, the switch forwards it to the GW
ECU2's MII interface.
7.MII reception: The GW ECU2's MCU receives the frame through the MII interface.
8.Ethernet frame de-encapsulation: The MCU removes the Ethernet frame header.
9.TCP segment de-encapsulation: The MCU removes the TCP segment header.
10.Data delivery: The extracted data is delivered to the application on ECU2.
11.ACK transmission (TCP): ECU2 sends an acknowledgment (ACK) segment back to ECU1, confirming successful
data reception.
MACsec
MACsec Ethernet switch is a type of network switch that supports Media Access Control (MAC)
Security (MACsec), a standardized protocol for encrypting Ethernet traffic at the data link layer
(Layer 2) of the OSI model. This encryption helps to protect sensitive data from unauthorized access
and ensures the integrity of data as it is transmitted across the network.
Receive Frame by
Frame send by MCU Ethernet Switch another ECU
MII
Encrypted frame
Check integrity and
encrypted again to
send it ECU2