Professional Documents
Culture Documents
IoT Viva Soln
IoT Viva Soln
IoT Viva Soln
MQTT Protocol :
- stands for message queue telemetry transport
-in MQTT client server comm. Client connects to the server and publishes message to topics
available on the server.
- MQTT is used in applications and devices where resources are limited and have low
bandwidth
-is ideal for huge network of small devices and sensors that need to be monitored or
controlled.
2. QoS levels :
-The Quality of Service (QoS) level is an agreement between the sender of a message and
the receiver of a message that defines the guarantee of delivery for a specific message.
- There are 3 QoS levels in MQTT: At most once (0) At least once (1) Exactly once (2)
-level 0-
QOS 0 – Once
This
mode.is the fastest method and requires only 1 message. It is also the most unreliable transfer
Once
queue.the message has been sent by the client it is deleted from the outbound message
QoS level 1-
This level guarantees that the message will be delivered at least once, but may be delivered
more than once.
If it receives an acknowledgement then it notifies the client app, and deletes the message
from the outbound queue..
3. If the sender doesn’t receive an acknowledgement ( PUBREC) it will resend the message
with the DUP flag set.
5. When the receiver receives the PUBREL message it can now forward the message onto
any subscribers.
7. If the sender doesn’t receive the PUBCOMP message it will resend the PUBREL message.
8. When the sender receives the PUBCOMP the process is complete and it can delete the
message from the outbound queue
MQTT has pretty short specification. There are only CONNECT, PUBLISH, SUBSCRIBE,
UNSUBSCRIBE and DISCONNECT types that are significant for developers. Whereas HTTP
specifications are much longer.
MQTT has a very short message header and the smallest packet message size of 2 bytes.
MQTT Protocol is easy of use. It is essential when response time, throughput, lower battery
and bandwidth usage are on the first place for future solutions.
HTTP is worthy and extendable. But MQTT is more suitable when it is referred to IoT
development.
4. REST VS SOAP
SOAP stands for Simple Object Access Protocol whereas REST stands for Representational
State Transfer.
SOAP uses service interfaces to expose its functionality to client applications while REST uses
Uniform Service locators to access to the components on the hardware device.
SOAP needs more bandwidth for its usage whereas REST doesn’t need much bandwidth.
SOAP only works with XML formats whereas REST work with plain text, XML, HTML and
JSON.
SOAP cannot make use of REST whereas REST can make use of SOAP.
5. Coap Protocol
Used for M2M comm. Where applications are meant for small embedded devices, controlled
environment, etc
It uses client server communication using UDP based communication by default and
occasionally with TCP.
Coap works with HTTP to provide basic support of the web. Hence, proxies can be used to
access the Coap resources via HTTP
Request response manages the comm. Channel while messaging module manages
duplication and reliability of msgs.
6. How to select an appropriate protocol for an IOT application.
*Nahi mila
Rest is stateless - each request receives its own response and it is not related with any other
reply or request.Each request must describe its requirement in the request itself as no data
from previous context is available.
XMPP is designed to be extensible. In other words, it has been designed to grow and
accommodate changes.
The ‘messaging’ part of XMPP is the ‘piece’ you see; the Instant Message (IM) sent
between clients. XMPP has been designed to send all messages in real-time using a
very efficient push mechanism.
The presence indicator tells the servers that you are online / offline / busy. In
technical terms, presence determines the state of an XMPP entity; in layman terms,
whether you are there and ready to receive messages or not.
MQTT does not define a message format; with XMPP you can define message format
and get structures data from devices.
XMPP creates a device identity also called a Jabber ID. In MQTT, identities are created and
managed separately in broker implementations.
MQTT has different levels of quality of service. This flexibility is not available in XMPP.
MQTT deployments become difficult to manage with the increase in number of devices while
XMPP scales very easily.
When it comes to M2M Communications, MQTT is better than XMPP.
11.Characteristics of IOT
Ma’am ne iska 5-6 pages ka answer diya tha with diagrams. So I skipped it.
13. What is IOT gateway
16.What are websockets? give applications, features and when to use websockets
HTTP is media independent: It means, any type of data can be sent by HTTP as long
as both the client and the server know how to handle the data content. It is
required for the client as well as the server to specify the content type using
appropriate MIME-type.
An API for a website is code that allows two software programs to communicate with each
other. The API spells out the proper way for a developer to write a program requesting
services from an operating system or other application.
A RESTful API -- also referred to as a RESTful web service or REST API -- is based on
representational state transfer (REST), an architectural style and approach to
communications often used in web services development.
A RESTful API breaks down a transaction to create a series of small modules. Each module
addresses a particular underlying part of the transaction. This modularity provides
developers with a lot of flexibility, but it can be challenging for developers to design their
REST API from scratch. Currently, several companies provide models for developers to use;
the models provided by Amazon S3, Cloud Data Management Interface (CDMI)
and OpenStack Swift are the most popular.
A RESTful API uses existing HTTP methodologies defined by the RFC 2616 protocol. They use
GET to retrieve a resource; PUT to change the state of or update a resource, which can be
an object, file or block; POST to create that resource; and DELETE to remove it.
The development of wireless sensor networks was motivated by military applications such as
battlefield surveillance; today such networks are used in many industrial and consumer
applications, such as industrial process monitoring and control, machine health monitoring,
and so on. Some applications include :
Area monitoring
Health care monitoring
Environmental/Earth sensing
1 Air pollution monitoring
2 Forest fire detection
3 Landslide detection
4 Water quality monitoring
5 Natural disaster prevention
Industrial monitoring
1 Machine health monitoring
2 Data logging
3 Water/waste water monitoring
4 Structural health monitoring
1.Request-Response Model
Request-response model is communication model in which the client sends requests to the
server and the server responds to the requests. When the server receives a request, it
decides how to respond, fetches the data, retrieves resource representation, prepares the
response, and then sends the response to the client. Request-response is a stateless
communication model and each request-response pair is independent of others.
2.Publish-Subscribe Model
Publish-Subscribe is a communication model that involves publishers, brokers and
consumers. Publishers are the source of data. Publishers send the data to the topics which
are managed by the broker. Publishers are not aware of the consumers. Consumers
subscribe to the topics which are managed by the broker. When the broker receive data for
a topic from the publisher, it sends the data to all the subscribed consumers.
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. Producers do not need to be aware of the
consumers. Queues help in decoupling the messaging between the Producers and
Consumers. Queues also act as a buffer which helps in situations when there is a mismatch
between the rate at which the producers push data and the rate rate at which the consumer
pull data.
4.Exclusive Pair Model
Exclusive Pair is a bidirectional, fully duplex communication model that uses a persistent
connection between the client and server. Connection is setup it remains open until the
client sends a request to close the connection. Client and server can send messages to each
other after connection setup. Exclusive pair is stateful communication model and the server
is aware of all the open connections.
30.Classes of IPV6
31.Explain 6LOWPAN
32.RFID and it’s applications in IOT
Radio frequency identification system (RFID) is an automatic technology and aids machines
or computers to identify objects, record metadata or control individual target through radio
waves. Connecting RFID reader to the terminal of Internet, the readers can identify, track
and monitor the objects attached with tags globally, automatically, and in real time, if
needed. This is the so-called Internet of Things (IoT). RFID is often seen as a prerequisite for
the IoT.
Applications :
RFID has been implemented in different ways by different manufacturers; global standards
are still being worked on. It should be noted that some RFID devices are never meant to
leave their network (as in the case of RFID tags used for inventory control within a
company). This can cause problems for companies.
Since RFID systems make use of the electromagnetic spectrum (like WiFi networks or
cellphones), they are relatively easy to jam using energy at the right frequency. Although this
would only be an inconvenience for consumers in stores (longer waits at the checkout), it
could be disastrous in other environments where RFID is increasingly used, like hospitals or
in the military in the field.
Tag collision occurs when many tags are present in a small area; but since the read time is
very fast, it is easier for vendors to develop systems that ensure that tags respond one at a
time.
The contents of an RFID tag can be read after the item leaves the supply chain
RFID tags with unique serial numbers could be linked to an individual credit card number
Participatory sensing (PS), an emerging sensing paradigm through organizing people and
their mobile devices as sensors, is regarded as a promising solution to solve large-scale
urban issues.
PS has been implemented in many applications such as transportation, environmental
monitoring, public health, etc. These applications are of high relevance for smart cities.
Smart cities rely on the infrastructures established by government and industrial agencies to
sense urban dynamics.
PS can complement these infrastructures by involving "human sensors" and obtaining
insights into people's activities. In this paper, the key features and challenges of PS are
surveyed. A prototype PS platform is designed for efficient collection and management of
smartphone sensing and survey data.
35.Industrial IOT
The Industrial Internet of Things or IIoT is defined as “machines, computers and people
enabling intelligent industrial operations using advanced data analytics for transformational
business outcomes”.
Industrial IoT that initially mainly referred to an industrial framework whereby a large
number of devices or machines are connected and synchronized through the use of software
tools and third platform technologies in a machine-to-machine and Internet of
Things context.Such systems will increasingly be able to intelligently respond and even
change their course of action based on the information received through the feedback loops
established within the framework.
To summarize, here are some of the key benefits of IIoT in an industry context
Improved and intelligent connectivity between devices or machines
Increased efficiency
Cost savings
Time savings
Enhanced industrial safety
36.Automative IOT
The advent of IoT in automotive industry has opened new avenues for carmakers and buyers all across
the world. With usage at both industrial and commercial level, IoT in automotive sector has become a
prominent hotspot for variegated multi-purpose applications. From connected cars to automated
transport systems, the applications of Internet of Things have made a deep dent in the global
automotive market.
1. Fleet Management:
The implementation of IoT in automotive sector has brought in a huge development in the
field of fleet management. Trucks nowadays are integrated with weight measurement,
location tracking, and several other sensors.The volume of sensory data gathered from a
large fleet of such trucks is stored into a cloud application. This data is then processed
through different analytics features and conceptualized into a visual format. A fleet operator
can easily go through this information to monitor different parameters associated with its
fleet
2. Connected Cars:
Connected cars facilitate fast transmission of data and increase drivers’ response time
through enhanced vehicle communication.The idea of connected cars is not new. In fact,
according to an estimation by Gartner, there will be more than 250 million connected cars in
the world by the end of the year 2020. These cars are connected over an IoT network.
37.Sources of Data in the PS process & phases PS for IOT applications and sensors