Embedded System Architecture
Embedded System Architecture
Without an architecture design it is difficult to determine how the system would behave under a variety of circumstances in the real world. The architecture conveys in some way the critical components in a design and their relationships to each other. Even if the architectural structures are rough and informal, it is still better than nothing.
3
at least one layer (hardware) or all layers (hardware, system software and application software) into which all components fall.
The hardware layer contains all the physical components. The system software layer contains all the software located on the ES. The application software layer contains all the SW being processed by the ES. 4
This model is essentially a layered (modular) model of an ES architecture. It gives visual representation of the main elements and their associated functions.
Networks Architecture in ES
The ES is a networking of internal components and the networks architecture. Good to associate the networking components with a universal networking model, the seven layer OSI reference model. Data originating at the application layer flow downward through all seven layers. Information (header) is appended to the data at each layer (except for the application and physical layers). Data is wrapped with information for other devices to unwrap and process.
Mapping OSI layers Physical Data-link Network Transport Session Presentation Application ES layers Hardware System SW
5 SW Application
TCP/IP layers TCP/IP App layer Transport layer. Internet layer 7 Network access layer
The Wireless Application Protocol (WAP) stack provides five layers of upper layer protocols.
OSI layers Application layer Presentation layer Session layer Transport layer WAP layers WAP Application layer Security layer Session + Transaction layer 8 Transport layer
Bluetooth layers
Transport Protocol Group
The Physical Layer represents all of the networking HW physically located in an embedded device. It defines, manages, and processes, via hardware, the actual voltage representations of 1s and 0s. Physical layer protocols defining the networking hardware of the device are located in the hardware layer of the ES model. Physical layer protocols are classified as either LAN or WAN protocols. They can be further subdivided according to the transmission medium connecting the device to the network (wired or wireless). 10
Includes any software needed to control the hardware. Bridging also occurs at this layer. Data-link layer protocols can be used for (i) LAN, (ii) WAN, or (iiii) both. Can be wired or wireless. Generally, reliant on a specific physical layer. May also be ported to very different mediums. Supports hardware-independent upper-data-link functionality.
11
Networks can be divided into smaller sub-networks, called segments. Devices within a segment communicate via their physical addresses. Devices in different segments communicate through an additional address, called the network address. Conversion between physical addresses and network addresses can occur in the data-link layer protocols (i.e. ARP, RARP etc.)
12 Network layer protocols can also convert between physical and network addresses as well as assign network addresses.
Ensures reliable point-to-point data transmission, by ensuring that: 1. packets are received and transmitted in the correct order 2. transmitted at a reasonable rate 3. packets are not corrupted 4. Provides acknowledgement on receiving 5. Requests retransmission in case of detection of error.
13
1. Presentation layer protocols are usually implemented in networking applications in the application software layer in ES. 2. Data compression/decompression, data encryption/decryption, data protocol/character conversions. 15
1. A device initiates a network connection to another device at the application layer. 2. Application layer protocols are either used directly as network applications by end-users or the protocols are implemented in end-user network applications. 16 3. These applications virtually connect to applications on other devices.