Introduction To Embedded Systems: Branden Ghena
Introduction To Embedded Systems: Branden Ghena
Embedded Systems
Branden Ghena
UC Berkeley
EECS 149/249A
Fall 2017
Chapter X: Networking
Networking and Communications
Goal of lecture
• Want you to be aware of communication options and
choices
Outline
• Communications model
• Wired networks
• Wireless networks
• Busses
• Shared physical medium
• MAC protocol dominates
• Star networks
• Private medium
• MAC protocol is less important
• Routing protocols become important
• Buffers in routers
Is radio a bus?
EECS 149/249A, UC Berkeley: 6
Medium Access Controls
Example: IP
• Buffering Reliability
• Buffer overflow can cause packet drops.
• Priorities QoS
• Which packet queued for a port to send first?
Includes:
• maintaining connections across
computers
• deciding what messages to send
• data compression and encryption
UART
I2C
SPI
UART
• Slow. No shared bus.
I2C
• Slow. Master-initiated communication. Short distance.
SPI
• Master-initiated communication. Lots of pins.
EECS 149/249A, UC Berkeley: 18
Ethernet
Before 2012,
called AVB:
Audio-Video
Bridging.
Developed to
solve this
problem:
Broadcasting van.
Photo by Gael Mace,
licensed under creative
commons attribution 3.0
EECS 149/249A, UC Berkeley: 21
TSN: Time-Sensitive Networks (aka AVB)
(Priority-based routing over Ethernet with reservations)
Image by
Michael Johas
Teener,
licensed
under creative
commons
attribution
share-alike
3.0
Part of IEEE
802.1
(Ethernet)
family of
standards.
23 UC Berkeley: 23
EECS 149/249A,
Enabler: Precision Time Protocols (PTP)
(IEEE 1588 and 802.1AS on Ethernet)
Press Release October 1, 2007
It is becoming
routine for physical
network interfaces
(PHY) to provide
hardware support for
PTPs.
2. Estimate error
𝑅𝑇𝑇
𝑡2 = 𝑡1 +
2
𝑅𝑇𝑇
𝑒ǁ = 𝑡2 + 𝑒 − (𝑡1 + )
2
Star
Mesh
Coordinator
End device
Router / End device
End devices capable of
routing and/or
coordinating are called
peer-to-peer devices.
Cluster Tree
IEEE 802.15.4e