Professional Documents
Culture Documents
(IoT)
1
Chapter Three
2
Design Principles for Web Connectivity
Introduction:
3
Communication Protocol
❑ A communications protocol is a set of formal rules describing how to transmit or
exchange data across a network.
❑ It defines the rules and conventions for communication between networked devices and
between systems.
❑ The protocol includes mechanisms for devices or systems to identify and make
connections with each other.
❑ The protocol also includes formatting rules that specify how data is packaged into sent
and received messages.
❑ It is a set of rules for routing and addressing packets of data so that they can travel across
networks and arrive at the correct destination.
❑ Common Internet protocols include TCP/IP (Transmission Control Protocol/Internet
Protocol), UDP/IP (User Datagram Protocol/Internet Protocol), HTTP (HyperText
Transfer Protocol) and FTP (File Transfer Protocol).
4
Path
❑ Path denotes a navigation path between two ends when accessing a resource.
❑It identifies the specific resource in the host that the web client wants to
access.
❑It refers to the exact location of a page, post, file, or other asset.
❑ Path specification can be of URI or URL type.
❑ The structure of URI is hierarchical.
❑ Entity after the sign ‘/’ is a child of the parent before the sign ‘/’.
❑ Example of path: /Register/index/20465/
5
URI and URL
Hyperlink:
❑ Hyperlink refers to a specification of the URL for a resource path, so that
a link can be established between two objects.
Hypertext:
❑ Hypertext means text embedded with hyperlinks.
7
HyperText Transfer Protocol (HTTP)
❑ HTTP means an application layer protocol for use of hypertext as app data
transfer protocol.
❑ Clients and servers use the URLs http://… .
8
HTML and XML
HyperText Markup Language (HTML):
❑ HTML is a language for creating a hypertext which refers to text that
embeds text, images, audio and video, image frames, forms, lists, tables,
navigation links (reference to resources).
❑ Java Script used for dynamic actions.
9
Message Communication Protocols for Connected Devices
❑ A device/node/end-point/client/server sends and receives
message(s).
❑ A communication module includes a protocol handler, message
queue and message cache.
❑ The protocol handler functions during transmission and reception
of messages according to the communication protocols for these
actions.
❑ Message queue forms to keep a message until it is transmitted
towards its destination.
❑ Message cache keeps an incoming message until it is saved into
the module.
10
Message Communication Protocols for Connected Devices
❑ IoT objects and applications use Request/Response and
Publish/Subscribe methods for transfer of messages, resources,
representations, objects and states.
➢ Request/Response (Client/Server):
➢ A request/response message exchange refers to an object
(client) requesting for resource(s) and an object (server)
sending the response(s).
➢ When sending a request, a protocol adds the header words.
11
Message Communication Protocols for Connected Devices
❑ Publish/Subscribe (pubsub):
➢ Publish/subscribe or PubSub message exchanges differ from
request/response.
➢ A service publishes the messages (for example, a weather
information service publishes the messages of weather reports
for the potential receivers).
➢ A group controller publishes the messages (for example,
measured values of ambient light conditions, traffic density or
traffic presence).
12
Message Communication Protocols for Connected Devices
13
End of Chapter 3
14