Physical Design & Logical Design
Physical Design & Logical Design
Internet of Things
SLIDESMANIA.COM
Learning outcome
01 02 03
Describe how the Discuss the Discuss the
IoT works and their physical design logical design by
relation with 4 and the protocols looking at various
components of IoT. involved in communication
communication of models and API’s
all devices.
SLIDESMANIA.COM
2
Photo by ThisisEngineering RAEng on Unsplash
3
contents
Physical design logical design
theoretical on how is our device work
connection oriented
connectionless
5
How iot works
IoT aims to
connect
multiple
devices at a
time to the
internet and
here, the
interaction
with other
components
will occurs.
SLIDESMANIA.COM
6
Basic components of iot
1. Sensors/Devices
2. Connectivity/Gateways/Internet
3. Platform/Cloud/Processing Unit/Web Server
4. User Interface/Applications
SLIDESMANIA.COM
7
Interaction between the components in iot system
This is the final stage. This stage is in direct contact with
the user and it gives the output that users see on their screen.
Every IoT device has a different interface as each device has a
different task or purpose to accomplish.
IoT devices have sensors embedded into them. These sensors are
capable of sensing their surroundings. The devices store the
information in some form of data. These devices include appliances
such as mobile phones, fire alarms, soil moisture sensors, smart
light and so on.
8
Let’s relate with this
example…
SLIDESMANIA.COM
9
Smart farm – interaction example
3
1
Smart farms have devices IoT able to process the
and sensors which are data into information on
able to detect changes how much pesticide a
from farm environment certain crop requires and it
and collect all kinds of tracks livestock growth and
real time data related to movement. It alerts you
the crops. This when the sheep's are ready
information includes soil for lambing during spring, it
texture, moisture balance, alerts you on what seasonal
pesticide levels, water crops to grow, it tracks
levels and livestock your soil and water levels
wellness. and so on.
4
All this generated
2
information enables farmers
The collected data from to track the health of
all the devices and livestock and plants and to
sensors is then ensure positive growth. The
transmitted via the farmer can also send
internet for storing and instructions through a
SLIDESMANIA.COM
11
physical design of iot
WHAT
WHO LANGUAGE/
COMMUNICATE? STANDARD THEY
USE TO
COMMUNICATE?
Things/Devices and Protocols are used to
protocols that used to established communication
build an IoT system. All between the Node devices
these things/Devices are and server over the
called Node Devices and internet.
every device has a unique
identity that performs
remote sensing, actuating,
and monitoring work
SLIDESMANIA.COM
12
physical design-things
The "Things" in loT usually refers to IoT devices which have
unique identities and can perform remote sensing, actuating and
monitoring capabilities. IoT devices can exchange data with other
connected devices and applications (directly or indirectly), or
collect data from other devices and process the data either
locally or send the data to centralized servers or cloud-based
application back-ends for processing the data, or perform some
tasks locally and other tasks within the IoT infrastructure.
13
physical design-things ILLUSTRATION
14
GENERIC BLOCK DIAGRAM OF THINGS/DEVICES
An IoT device may consist of several hardware
interfaces for connections to other devices, both
wired and wireless. These include
(i) 1/0 interfaces for sensors,
(ii) interfaces for Internet connectivity,
(iii) memory and storage interfaces and
(iv) audio/video interfaces.
15
use of interfaces in the GENERIC block diagram
Connectivity Processor Audio/Video Input/Output Memory
Interfaces interface Interfaces
A processor like The interface that slot
Devices like USB a CPU and other An interface like To giving input the flash memory. It is
host and units are used to HDMI and RCA and output signals an electronic non-
ETHERNET are process the data. devices is used to sensors, and volatile computer
memory storage that
used for these data are to record audio actuators we use can be electrically
connectivity further used to and videos in a things like UART, erased and
between the improve the system. SPI, CAN, etc. reprogrammed. to
store the data
devices and decision quality . generated from an IoT
server. of an IoT system. device.
WHEN THERE’S AN
INTERACTION BETWEEN
THINGS, MEANS THAT THEY
ACTUALLY COMMUNICATE.
17
iot
FRENCH?
18
That is why we need to know
the PROTOCOLS USED IN IOT!!!
The same situation when
you need to follow certain
protocols when you enter
my palace!
19
physical design-iot protocols
The Open Systems Interconnection (OSI) model is the foundation of Internet communications, including for devices
connected to the Internet of Things. TCP/IP, or the Internet Protocol suite, underpins the internet, and includes
only four layers, merging some of the OSI model layers which provides a simplified concrete implementation of
these layers in the OSI model.
Protocols are used to establish communication between a node device and server over the internet. IoT protocols
help send commands and data between a network of devices controlled by sensors or other physical attributes
like motion, temperature, or vibration.
Network/Internet
Physical/Data Link
20
physical design-iot protocols
Internet of Things (IoT) devices communicate is dozens of different
ways, using hundreds of different protocols. That's because how
they communicate depends on what they are, where they are, what
other devices and systems they need to talk to, and what they have
to say. There’s no single best protocol, which is essentially the
common "language" used to route messages from one IoT device to
another. The right choice always depends on the application’s
specific needs.
21
22
Link layer protocols connection oriented
Link layer protocols covers on how a device is physically connected to a network via wired or wireless connectionless oriented
mechanisms (e.g., copper wire, coaxial cable, or a radio wave) ,as well as how devices are uniquely
identified. Hosts on the same link exchange data packets using link layer protocols. Link layer determines
how the packets are coded and signaled by the hardware device over the medium.
24
network layer protocols
Responsible for logical addressing and how to deliver packets of information
between source and destination endpoints, particularly between different networks..
Network layer performs the host addressing, packet routing and helps to maintain
connection between IoT devices and router.
IPv4 : IPv6 :
Internet Protocol version 4 Internet Protocol version 6 6LoWPAN
(IP address) (IP address)
IPv4 is 32-bit addressing IPv6 addresses its nodes with This protocol connects the IPv6
scheme used as TCP/IP host 128-bit wide address providing with 802.11 and IoT devices. It
addressing mechanism. IP plenty of address space for works with low-power devices
addressing enables every host future to be used on entire within a wide area network, which
on the TCP/IP network to be planet or beyond. is why it is especially important
uniquely identifiable. for connected devices with a
IPv6 provides new feature of limited data processing capacity.
IPv4 provides hierarchical IPv6 mobility. Mobile IPv6
addressing scheme which equipped machines can roam 6LoWPAN can communicate with
enables it to divide the around without the need of 802.15.4 devices as well as other
network into sub-networks, changing their IP addresses. types of devices on an IP network
each with well-defined number link like WiFi.
of hosts . 25
26
TRANSPORT layer protocols
Transport layer protects data within the whole network and secures its movement
back and forth. This layer provides functions such as error control, segmentation, flow
control and congestion control.
Transmission
Control Protocol is User Datagram
the major protocol Protocol is a
for connecting IoT communications
devices through protocol designed
the Internet. The for the
protocol breaks establishment of
large data sets low-latency and
into small chunks loss-tolerant
to increase the connections
speed of data between
exchange. applications on the
internet.
27
28
APPLICATION layer protocols
The application layer focuses on
establishing a connection between user interface and IoT device.
30
What is logical design?
❑ The logical design of IoT is is the actual design of how its
components (computers, sensors, and actuators) should
be arranged to complete a particular function. It doesn’t
go into the depth of describing how each component will
be built with low-level programming specifics.
31
Iot functional block
These functional blocks consist of devices that handle the communication between the server and the host, enable
monitoring control functions, manage the data transfer, secure the IoT system using authentication and different
functions, and provide an interface for controlling and monitoring various terms.
MANAGEMENT : SECURITY :
this block secures the IoT system
This blocks provides and by providing functions such
various functions to as authentication , authorization,
govern the IoT system. message and content integrity,
and data security.
DEVICE :
SLIDESMANIA.COM
Close example:
The client sends When the server receives a request, it HTTP request to the web server
requests to the
SLIDESMANIA.COM
Example:
IoT devices act as
client. Cloud act as
server or local
SLIDESMANIA.COM
server serves as
server.
34
Iot COMMUNICATION MODEL 2 :
publish-subscribe model
Publish-Subscribe is a communication model that involves publishers, brokers and consumers.
IOT example
With smart devices, we need a reliable
Consumer
and efficient way to gather and
distribute information. A control node
or server can publish updates that will
be automatically delivered to all the
subscribed IoT devices.
Other example:
On the website, there are times that
we subscribed to their newsletters
using our email address. These email
addresses are managed by some third-
Publishers are the source of When the broker receive Consumers subscribe party services and when a new article
data. Publishers send the data for a topic from the to the topics which are is published on the website it is
SLIDESMANIA.COM
data to the topics which are publisher, it sends the managed by the broker directly sent to the broker and then
data to all the subscribed the broker sends these new data or
managed by the broker. posts to all the subscribers.
Publishers are not aware of consumers.
the consumers. 35
36
SLIDESMANIA.COM
Iot COMMUNICATION MODEL 3 :
push-pull model
Push-Pull is a communication model in which the data producers push the data to queues
and the consumers Pull the data from the Queues
Example:
When we visit a
blog, we saw a
number of posts
that are published
in a queue and
according to our
requirements, we
Queues help in decoupling the messaging click on a post and
Producers/Publisher Consumers
do not need to be between the Producers and Consumers. pull data.
start reading it.
aware of the Queues also act as a buffer which helps in
SLIDESMANIA.COM
Example:
MIRC
Yahoo Messenger
Online banking
Connection is setup Client and server can send messages to Client and server
it remains open until each other after connection setup. can send
the client sends a messages to each
SLIDESMANIA.COM
38
Iot COMMUNICATION api S- Application
Programming
Interface
What is API ?
(Application programming interface)
• is an interface used by programs to
access an application
• It enables a program to send
commands to another program and
receive replies from the app.
• IoT APIs are the interface points
between an IoT device and the
Internet and/or other network
components.
API
39
Api S 1 : REST-based (HTTP) Communication API S
● Representational state transfer (REST)
is a set of architectural principles by
which you can design Web services
the Web APIs that focus on the
system's resources and how resource Connection
states are addressed and transferred. lifecycle
40
Client-server Stateless Cache-able
●The clients should not be ●The session state is kept entirely on ●This property defines whether the
concerned with the storage of data the client. Does not require the server response to any request can be cached or
which is a concern of the server. to retain the information about the not. If a response can be cached, then a
Similarly the server should not be state client cache is granted the right to reuse
concerned about the user interface, that response data for subsequent matching
which is concern of the client. requests..
Separation allows client and server .
to be developed and updated
independently.
●A layered system defines the ●This specifies that the technique of ●The constraint is optional. Most of the
boundaries of the components communication between a client and a time, you’ll send the static resource
within each specific layer. For server must be uniform throughout the representations in XML or JSON format. But if
example, A client is unable to tell communication period. you need to, you are free to return
whether it is connected to the end executable code to support a component of
server or an intermediate node. your application.
.
. Rest/HTTP
architectural
SLIDESMANIA.COM
constraint 41
ApiS 2 : websocket-based Communication API
• Websocket APIs enable bi-directional and
duplex communication between customers
and servers. Unlike REST, there is no need to
set up a connection every now and then to
send messages between a client and a
server.
42
43
/REST
SLIDESMANIA.COM
activity
● Perform a group of 3 members.
❖ Definition
❖ Communication diagram & explanation
❖ Messaging pattern
❖ Constraint
SLIDESMANIA.COM
44
45
SLIDESMANIA.COM
Thank you!
46
47
How this technology works?
RFID
ZIGBEE
Z-WAVE
gsm
SLIDESMANIA.COM
48