Module 2
Module 2
Module- 2
Design Principles of Connected Devices
2.1 INTRODUCTION
• When data is transferred from a sensor, the functional units create a stack for data communication to
an application or service.
• Data stack denotes the data received after the actions at various in-between layers (or levels or
domains). Layers in Open Systems Interconnection (OSI) model are Application, Presentation, Session,
Transport, Network, Data-link and Physical.
• Layer refers to a stage during a set of actions at which the action is taken as per a specific protocol or
method, and then the result passes to the next layer until the set of actions complete. A layer may consist
of various sublayers.
• Level refers to a stage from the lowest to the highest. For example, acquiring device data and actions
that may be considered at the lowest level and actions in business processes at the highest level.
• Domain refers to a set of software, layers or levels having specific applications and capabilities.
• Gateway refers to software for connecting two application layers, one at the sender and the other at the
receiver.
• A gateway may be of different types.
➢ A communication gateway at device and gateway domain has capabilities as protocol-conversion
during communication between two ends when each end uses distinct protocols.
➢ An Internet gateway may have capabilities besides protocol conversion, transcoding data, device
management and data-enrichment before the data communicate over the Internet.
• Packet means packaged data-stack which routes over the network. Packet size limit is according to the
protocol.
➢ For example, IPv4 packet size limit is 216 B.
• Protocol Data Unit (PDU) is a unit of data which is specified in a protocol of a given layer which
transfers from one layer to another. For example,
➢ PDU is bit which transfers from physical layer;
➢ frame from data-link layer
➢ packet from network layer
➢ segment from transport layer
➢ text from application and other layers
• Maximum Transmission Unit (MTU) is the largest size frame or packet or segment specified in octets
that can be sent in a packet or frame-based network such as the Internet.
➢ For example, consider transfers of a segment from the transport layer using the Transmission
Control Protocol (TCP) to the network layer.
➢ The MTU determines the maximum size of each data stack in any transfer to the network layer.
➢ The network layer determines the maximum size of each frame in any transfer to the data-link layer
and then uses MTU of the data-link layer.
• Star network denotes the number of nodes interacting with a coordinator or master node.
• Mesh network denotes the number of nodes that may interconnect with each other.
• End-point device or node denotes the one that provides connectivity to a coordinator or router
• Coordinator denotes the one that connects to a number of end-points as well as routers in a star topology
and forwards the data stack from one attached end point/router to another.
• Master refers to the one who initiates the pairing with the devices in a star topology network.
• Slave means one that pairs with a master, uses the clock signals from master for synchronisation and
uses address assigned by the master at the beginning.
• Router refers to a device or node capable of storing paths to each destination to which it has logical
links. The router sends the data stack according to the available path or paths at a receiving instance.
• ISM band means Industrial, Scientific and Medical (ISM) radio frequency (RF) bands.
➢ 915 MHz for North America.
➢ 868 MHz for Europe.
➢ 433 MHz band for Asia.
• Application means software for specific tasks, such as streetlight monitoring or control
• Service means service software, for example, report generation or chart visualisation service.
• Process means a software component, which processes the input and generates the output; for example,
after analysing the data or acquiring the data. An operating system controls a process, memory for the
process and other parameters of the process.
Fig 1: Seven-layer generalised OSI model (on left) and IETF six layer modified OSI model for IoT/ M2M (in the
middle), and similarity with the conceptual framework Equation (on right) for IoT applications and services
Layer 6: New applications and services are present at the application layer.
Layer 5: Application-support layer 5 uses protocols, such as CoAP. IoT applications and services commonly
use them for network communication. The CoAP protocol at the layer is used for the request/response
interactions between the client and server at the network. Similarly, the application-support layer may include
processes for data managing, acquiring, organising and analysing which are mostly used by applications and
services.
Layer 2: The dataadaptation layer includes a gateway. The gateway enables communication between the
devices network and the web.
Dept. ECE, DSCE 3
Design Principles of Connected Devices
Layer 1: A physical IoT/M2M device hardware may integrate a wireless transceiver using a communication
protocol as well as a data-link protocol for linking the data stacks of Layer1 and Layer2.
Fig 2: ITU-T reference model RM1, its correspondence with six layers of modified OSI and a comparison with seven
levels suggested in CISCO IoT reference model RM2
A comparison of ITU-T RM1 with the six-layer OSI model can be made as follows:
• RM1 device layer capabilities are similar to data-adaptation and physical cum datalink layers.
• RM1 network layer capabilities are similar to transport and network layers.
• RM1 upper two-layer capabilities are similar to top two layers.
A comparison with the CISCO IoT reference model (RM2) can be made as follows:
• RM1 L4 capabilities are similar to RM2 collaborations and processes, and application top two levels.
• RM1 L3 capabilities are similar to RM2 three middle-level functions of data abstraction, accumulation,
analysis and transformation.
• RM1 L2 layer capabilities are similar to RM2 functions at connectivity level.
• RM1 L1 device layer capabilities are similar to RM2 functions at physical devices level.
Figure 3: ETSI M2M domain architecture and its high-level capabilities, and its correspondences with six layers of
modified OSI and four layers of ITU-T reference model
Figure 4: Connected devices 1st to ith connected to the local network and gateway using the WPAN or
LPWAN network protocols.
Physical cum data-link layer in the model consists of a local area network/personal area network. A local
network of IoT or M2M device deploys one of the two types of technologies— wireless or wired
communication technologies.
Figure 4 shows number of devices present in an IoT or M2M devices network and the local area network of
devices. The connectivity between the devices (left-hand side) is by using RF, Bluetooth Smart Energy,
ZigBee IP, ZigBee NAN (neighbourhood area network), NFC or 6LoWPAN or mobile. Tens of bytes
communicate at an instance between the device and local devices network.
RFID
• Radio Frequency Identification (RFID) is an automatic identification method.
• RFIDs use the Internet.
• RFID usage is, therefore, in remote storage and retrieval of data is done at the RFID tags.
• An RFID device functions as a tag or label, which may be placed on an object.
i. The object can then be tracked for the movements.
ii. The object may be a parcel, person, bird or an animal.
• IoT applications of RFID are in business processes, such as parcels tracking and inventory control,
sales log-ins and supply-chain management.
Bluetooth BR/EDR and Bluetooth Low Energy
• Bluetooth devices follow IEEE 802.15.1 standard protocol for L1 (physical cum data-link layer).
• BT devices form a WPAN devices network.
• Two types of modes for the devices are
➢ Bluetooth BR/EDR (Basic Rate 1 Mbps/Enhanced Data Rate 2 Mbps and 3 Mbps)
Figure 5: ZigBee end point, coordinator, router, ZigBee IP router nodes forming the star, mesh and IP networks of
ZigBee sensors, end devices, and ZigBee router devices which interconnect to Internet IPv4, IPv6 and cellular
network
Figure 2.5 shows:
• Three end devices, two routers, one sensor node connected to coordinator ZigBee devices forming a
star network.
• One end device, two routers and one coordinator forming a mesh network.
• Mesh network router connects to an AP/gateway, which in turn connects to a cellular network.
• Coordinator of mesh network connects to ZigBee IP border router, which enables local ZigBee
networks’ connectivity to the Internet.
Wi-Fi
• Wi-Fi is an interface technology that uses IEEE 802.11 protocol and enables the Wireless Local Area
Networks (WLANs) using the Internet.
• Wi-Fi devices connect enterprises, universities and offices through home AP/public hotspots.
• Automobiles, instruments, home networking, sensors, actuators, industrial device nodes, computers,
tablets, mobiles, printers and many devices have Wi-Fi interface. They network using a Wi-Fi network.
• The issues of Wi-Fi interfaces, APs and routers are higher power consumption, interference and
performance degradation.
Wi-Fi interfaces connect within themselves or to an AP or wireless router using Wi-Fi PCMCIA or PCI card
or built-in circuit cards and through the following:
• Wi-Fi interfaces connect within themselves or to an AP or wireless router using Wi-Fi PCMCIA or
PCI card or built-in circuit cards and through the following:
• Base station (BS) or AP
• A WLAN transceiver or BS can connect one or many wireless devices simultaneously to the Internet.
• Peer-to-peer nodes without access point: Client devices within Independent Basic Service Set (IBSS)
network can communicate directly with each other. It enables fast and easy setting of an 802.11
network.
• Peer to multipoint nodes with Basic Service Sets (BSSs) using one in-between AP point or distributed
BSSs connect through multiple APs.
• Connectivity range of each BSS depends on the range of wireless bridges and antennae used and
environmental conditions.
• Each BSS is a Service Set Identifier (SSID).
Fig 6 shows
• Sensor nodes connected to BT with Wi-Fi adaptation, 802.11 interfaces in a WLAN network 1
(WLAN1).
• Tablets, Wi-Fi, computers also connect in WLAN 1 though an AP.
• AP1 connects to a broadband router 1 and to the IP4 network 2.
• WLAN1 and WLAN2 function as BSS.
• WLAN 2 also consists of AP2, Wi-Fi router and other Wi-Fi enabled interfaces.
• Wi-Fi router connects to multiple Wi-Fi nodes as well as to a broadband router 2.
• Broadband routers 1 and 2 connect using wires, to IP4 networks and web objects for IoT apps, services
and processes.
Figure 6: Three WLAN networks for sensor device nodes, mobiles, tablets, laptops, computer and Internet
connectivity of WLAN networks with the IP4 networks (Dashed lines show wireless connectivity and solid lines show
wired connectivity)
The Wi-Fi interfaces, access points, routers features are as follows:
• Generally used are the
➢ 2.4 GHz IEEE 802.11b adapters
➢ 5 GHz (802.11a or 802.11g)
➢ 802.11n or other 802.11 series protocols.
• A phone, generally, provisions for number of sensors also; for example, acceleration, GPS and
proximity.
Wireless USB
• Wireless USB is a wireless extension of USB 2.0 and it operates at ultra-wide band (UWB) 5.1 GHz
to 10.6 GHz frequencies.
• It is for short-range personal area network (high speed 480 Mbps 3 m or 110 Mbps 10 m channel).
• FCC recommends a host wire adapter (HWA) and a device wire adapter (DWA), which provides
wireless USB solution.
• Wireless USB also supports dual-role devices (DRDs).
• A device can be a USB device as well as limited capability host.
• The communication gateway enables the devices to communicate and network with the web.
• The communication gateway uses message transport protocols and web communication protocols for
the Internet.
• The gateway includes two functions viz. data management and consolidation, and connected device
management.
Figure 7: IoT or M2M gateway consisting of data enrichment and consolidation, device management and
communication frameworks at the adaptation layer
1. Data Management and Consolidation Gateway
• Gateway includes the provisions for one or more of the following functions: transcoding and data
management.
• Following are data management and consolidation functions:
➢ Transcoding
➢ Privacy, security
➢ Integration
➢ Compaction and fusion
Transcoding
• Transcoding means data adaptation, conversion and change of protocol, format or code using software.
• The gateway renders the web response and messages in formats and representations required and
acceptable at an IoT device.
• For example, use of transcoding enables the message request characters to be in ASCII format at the
device and in Unicode at the server. It also enables the use of XML format database at the device,
while the server has a DB2, Oracle or any other database.
• Transcoding involves formats, data and code conversion from one end to another when the multimedia
data is transferred from a server to the mobile TV, Internet TV, VoIP phone or smartphone as the client
devices.
• Transcoding applications also involve filtering, compression or decompression.
Privacy
• Data such as patient medical data, data for supplying goods in a company from and to different
locations, and changes in inventories, may need privacy and protection from conscious or unconscious
transfer to untrustworthy destinations using the Internet.
• Privacy is an aspect of data management and must be remembered while designing an application.
• Following are the components of the privacy model:
➢ Devices and applications identity-management
➢ Authentication
➢ Authorisation
➢ Trust
➢ Reputation
Secure Data Access
• Access to data needs to be secure. The design ensures the authentication of a request for data and
authorisation for accessing a response or service.
• It may also include auditing of requests and accesses of the responses for accountability in future.
• End-to-end security is another aspect while implies using a security protocol at each layer, physical,
logical link and transport layers during communication at both ends in a network.
Data Gathering and Enrichment
• IoT/M2M applications involve actions such as data-gathering (acquisition), validation, storage,
processing, reminiscence (retention) and analysis.
• Data gathering refers to data acquisition from the devices/devices network.
Four modes of gathering data are:
• Polling refers to the data sought from a device by addressing the device; for example, waste container
filling information in a waste management system.
• Event-based gathering refers to the data sought from the device on an event.
➢ for example, when the device reaches near an access point or a card reaches near the card reader
or an initial data exchange for the setup of peer-to-peer or master-slave connection of BT device
using NFC
• Scheduled interval refers to the data sought from a device at select intervals.
➢ for example, data for ambient light condition in Internet of streetlights
• Continuous monitoring refers to the data sought from a device continuously
➢ for example, data for traffic presence in a particular street ambient light condition in Internet of
streetlights
• Data enrichment refers to adding value, security and usability of the data.
Data Dissemination
Following are the three steps for data enrichment before the data disseminates to the network.
• Aggregation refers to the process of joining together present and previously received data frames after
removing redundant or duplicate data.
• Compaction means making information short without changing the meaning or context; for example,
transmitting only the incremental data so that the information sent is short.
• Fusion means formatting the information received in parts through various data frames and several
types of data (or data from several sources), removing redundancy in the received data and presenting
the formatted information created from the information parts.
➢ Data fusion is used in cases when the individual records are not required and/or are not retrievable
later.
Energy Dissipation in Data Dissemination
• Energy consumption for data dissemination is an important consideration in many devices in WPANs
and in wireless sensor nodes (WSNs).
• This is due to limited battery life.
• Energy is consumed when performing computations and transmissions.
• Higher the data rate, the greater will be the energy consumed.
• Higher is RF used, the greater will be the energy consumed.
• Higher the gathering interval, the lower will be the energy consumed.
• Energy efficient computations can be done by using concepts of data aggregation, compaction and
fusion. Lesser the data bytes communication, greater the acquisition intervals, and lower the data rate
for data transfer, lesser the energy dissipation.
Data Source and Data Destination
• ID: Each device and each device resource is assigned an ID for specifying the data of source and a
separate ID for data destination.
• Address: Header fields add the destination address (for example, 48-bit MAC address at Link layer,
32-bit IPv4 address at IP network and 128-bit IPv6 address at IPv6 network) and may also add the port
(for example, port 80 for HTTP application).
Data Characteristics, Formats and Structures
• Data characteristics can be in terms of
➢ temporal data (dependent on the time),
➢ spatial data (dependent on location),
➢ real-time data (generated continuously and acquired continuously at the same pace),
➢ real-world data (from physical world for example, traffic or streetlight, ambient condition),
➢ proprietary data (copy right data reserved for distribution to authorized enterprises) and big data
(unstructured voluminous data).
• Data received from the devices, formats before transmission onto Internet. The format can be in XML,
JSON and TLV (Section 3.1.3). A file can be MIME type for Internet
• Structure implies the ways for arranging the data bytes in sequences with size limit = PDU for a layer.
2. Device-management Gateway
• Device Management means provisioning for the device ID or address which is distinct from other
resources, device activating, configuring (managing device parameters and settings), registering,
deregistering, attaching and detaching.
• Open Mobile Alliance (OMA)-DM and several standards are used for device management.
Dept. ECE, DSCE 18
Design Principles of Connected Devices
• OMA-DM model suggests the use of a DM server which interacts with devices through a gateway in
case of IoT/M2M applications.
• Gateway functions for device management are:
➢ Does forwarding function when the DM server and device can interact without reformatting or
structuring
➢ Does protocol conversion when the device and DM server use distinct protocols
➢ Does proxy function in case an intermediate pre-fetch is required in a lossy environment or
network environment needs.