Module 5
Module 5
Smart and Connected Cities-An IoT Strategy for Smarter Cities-Vertical IoT Needsfor
Smarter Cities, Global vs. Siloed Strategies-Smart City IoT Architecture-StreetLayer,
City Layer, Data Center Layer, Services Layer- Smart City Security Architecture - Smart
City Use-Case Examples — Street lighting, smart parking, smart traffic and air pollution
monitoring
Introduction:
• International organizations are making a number of efforts towards ensuring that IoT
design must ensure trust, data security and privacy.
• Trust in IoT context means dependability, accuracy, quality of data from multiple
sources for the intended applications and services.
• An organization, Open Trust Alliance established IoT Trustworthy Group (ITWG) for
recognizing the priority from the onset of product development and addressing
holistically.
• Security is important. For example, consider the ATM messages. They should
communicate on Internet securely. A smart city security is also important. The city deploys
smart health, public safety, transport, and deploys IoT and smart home applications and
services.
• Privacy is important. The video clips communicate on the Internet in a smart home
securityapplication.
• Message is a string that represents data or client-request or server-response which
communicates between sender and receiver objects.
• Hash
o Hash refers to a collection or bundle which gives an irreversible result after
many operations on data and the operations are just one way.
o {For example, when wheat crop is ripe and cut, hashing process separates out the
grains which are used for consumptionand the resultant waste is discarded. When data such as
user ID and password needs secret communication for the purpose of authentication,
then it is communicated after a set of standard operations on the usage of an
algorithm, called secure hash algorithm.}
o The algorithm generates a fixed size, say, 128, or 256-bit value using a secret key.
Only the hash value communicates. Receiver-end retrieves the hash value, and
compares that with stored hash value. If both are equal then the sender message is
authenticated.
• Digest is a process which gives the irreversible result involving many operations. A
standard algorithm called MD5 (Message Digest 5) is also used for digest, similar to the
hash value. Receiver-end stores the digest value expected to be obtained after the MD5
operations, and compares that with received value. If both are equal then the sender message
is authenticated.
• Encryption is a process of generating new data using a secret key known only to a receiver.
Before sending the encrypted data, the sender and receiver, both identify each other and
know the key that will be used by them. The encryption uses a 128, 192 or 256- bit key for
encrypting the data.
• Decryption is a process which retrieves the data from the encrypted data.
• Use Case
o Use case means a list of event steps or actions which define the interactions
between two ends, in which one is playing the role and other is the system.
o The steps accomplish a task or goal or mission. One end is called actor in
Unified Modelling Language (UML), while other end is the system.
o Use Case is a software engineering term.
o For example, an API is playing the role of obtaining inputs (events) and
generation of outputs which interact with the system such as a web server or
web API or service or web application using a callback () function as per
the output. Use cases define the required behaviour of software under
development. Use cases describe the details of usages of software and its normal
behaviour.
• Misuse Case
o Misuse case can be understood as reverse sense of Use case.
o Misuse case defines the behaviour which is not required from the software under
development.
o A Misuse case defines the behaviour which should not happen. This in turn
specifies the threats also.
o Misuse case gives information and renders help in identifying the requirement
of new Use cases for prevention of attack and find out what should not happen.
• Layer means a stage during a set of actions at which the action is taken as per the
specific protocol or method and then the result passes to the next layer until the set of
actions completes. A design using the layers’ model enables representation of a set of
systematic actions which are followed sequentially for accomplishing a task.
• Firewall is a software interface, which interconnects networks with differing trusts, and
is immune to penetration and provides perimeter defence. It functions as a choke point
for controlling and monitoring. It does auditing and provides controlled accesses. It
allows only authorised traffic and imposes restrictions on network services. It can raise
alarms for abnormal behaviours.
Q) Explain the requirements of privacy and security, vulnerabilities from threats and
threat analysis in IoT
Privacy
• Message privacy means that the message should not reach into the hands of the
unrelated entities.
• When data or messages communicate from the things (device platforms), those are
meant only for the applications or services and for targeted goals only.
• Privacy also means no interference or disturbance from other.
• Consider an example of messages from embedded devices in an automobile using the
Internet to an automobile service centre. Privacy means the messages reach only the
centre and used only by the services of the centre. Another automobile company on
whose hands the data falls may face serious business consequences.
• IoT necessarily need privacy policy.
• A privacy policy needs to determine that ‘how much of the IoT devices data and which
data need absolute privacy and which need limited privacy’.
• Company authorities need the support for accessing the data which may be private for
individuals.
• The authorities also need to respect the individual customer needs of privacy and
understand that privacy is a legitimate human need. Privacy policy vendors should take
privacy seriously. They must respect their customers enough to understand that the
privacy is a legitimate human need.
Vulnerabilities of IoT
Security Requirements
• IoT reference architecture means a guide for one or more concrete architects. IoT
reference architecture is a set of three architectural views—functional, information, and
deployment and operational.
• Security is one of the functional groups (FG) of the functional view. FG for security
consists of security functions between the application and device.
• Security FG contains five sets of functions which are required for ensuring
security and privacy. Large number of devices, applications and services
communicate in IoT. Five functional components (FCs) of security are defined in IoT
reference architecture.
• Following are five functional components (FCs):
• Identity management (IdM)
• Authentications
• Authorisation
• Key exchange and management
• Trust and reputation
Threat Analysis
• A threat-analysis tool first generates the threats and analyses a system for threat(s).
• Threat analysis means uncovering the security design flaws after specifying the stride
category, data flow diagram, elements between that the interactions occurring during
the stride, and processes which are activated for analysis.
• Stride means a regular or steady course, pace or striding means, passing over or across
in one long step (set of statements when considering a threat to a software component).
• Stride means taking a long step for dainty little steps.
• Figure 10.2 shows an example of tool usage for threat analysis during a web service
interaction between the application and web.
Security Tomography
• Network tomography refers to the study of vulnerabilities and security aspects for
network monitoring in a complex system, such as WSNs, RFIDs or IoT networks and
allocating resources and ensuring network reliability and security.
• The security tomography means finding attack vulnerable sections/subsections from the
observations for behaviours using a finite number of objects or threats in a complex set
of subsystems.
• Figure 10.4 shows a layered attacker model and possible attacks on the layers
• Following are the suggested solutions for mitigating the attacks on the layers (OSI
modified six layers IoT Architecture).
• VLAN refers to a group of end stations with a common set of requirements, independent
of a physical location. VLANs have the same attributes as a physical LAN but allow
you to group end stations even if they are not located physically on the same LAN
segment.
• LWM2M OMA (Lightweight M2M open mobile Alliance) specification for device
gateway to the Internet has provisions for MAS for security, root key data store, and
devices and data authentication.
• Use of temper resistant router, use of packet filtering and controlling routing messages
and packets data between layers 3 and 4 through a firewall reduces the risks.
• Port scanning method is a solution which identifies the vulnerable port. A solution is
the opening of network ports and configuring effectively the firewall, and locking down
ports only to those required.
• Another solution is DTLS between layers 5 and 4. The DTLS has provisions for three
types of security services, viz. integrity, authentication and confidentiality. A solution
is included SASL (Simple Authentication and Security Layer) for security when using
the XMPP protocol.
• Above layer 4, we are looking primarily at application-level attacks which are results
of poor coding practices. Assume an attacker injects the SQL input to extract data from
the database (e.g. SELECT * from USERS). When the application fails to validate the
injection, the query extracts the data.
• Web applications/services can use HTTPS communication link. The features of S-
HTTP (Secure HTTP) are as follows:
o Application-level security (HTTP specific)
o Content privacy domain header
o Allows use of digital signatures and encryption, various encryption options
o Server-client negotiations
o Cryptographic scheme is a property assigned for the link
o Specific algorithm is the value assigned
o Direction specification is done, one-way or two-way security
• Source of message needs to specify an identity (ID) when sending the messages.
• The receiver can thus know that from where the messages have been received. Number
of ways exist for specifying identity (ID).
• The messages can be from several sensors, actuators and platforms and those may be
for several applications and services. ID management and establishment for IoT are
therefore basic requirements.
• A MAC address can specify identity of a computing device platform.
• However, the platform may connect several sensors and actuators. An application layer
may consist of number of applications and services.
• An URI (Universal Resource Identifier) can be used on the Internet. Many devices
however do not use the URI. An Object Identifier (OID) in IoT can have the following
identifiers:
• Types of things (for example, streetlight, vehicle, ATM, WSN, RFID)
• Class identifier, since it refers to a class (or type, or category) of things; for example,
make and model
• Instance identifier; for example, VIN (Vehicle identity number) for vehicles
Access Control
• Three Functional Components (FCs) in a security Functional Group (FG) for ensuring
security and privacy are:
o Authentications
o Authorisation
o Key exchange and management
Authentication
o ID establishment and authentication are essential elements of access control.
o A hash function or MD5 gives the irreversible result after many operations on
that and the operations are just one way.
o The algorithm generates a fixed size, say, 128 or 256-bit hash or digest value
using authentication data and secret key.
o Only the hash or digest value communicates. The receiver-end receives the
value, and compares that with a stored value. If both are equal then the sender
is authenticated.
o Hash function characteristic features are pre-image resistance, hash function
should not alter, before or after communication and should be as per the
previous image (original message), second pre-image resistance: hash function
should not be altered by an in between entity (called eavesdropper), should
remain the same as one for the previous image (original message) should be
collision-resistance and should not be the same for any form of altered message.
Authorisation
• An access control server and data communication gateway can be centrally used to
control accesses between application/service and IoT devices. The server central
control can be on a cloud server. Each device can access the server and communicate
data to another server.
• Key of sender messages needs to be known to receiver for accessing the received data.
• Key of respondent of messages needs to be known to sender for accessing the responses.
• The keys, therefore, need to be exchanged before the communication of authentication
code, authorisation commands and encrypted messages.
• Since each application/service component and device data application or service may
need unique and distinct keys, an FC provisions for the functions of key management
and exchanges.
Message-Integrity
• An important aspect of system design is message integrity (data integrity), which means
the message remains unaltered.
• The encrypted data after decrypting should be identical to one before encryption.
Message integrity check involves the following steps:
o Hash function or digest algorithm calculates 128 or 192 or 256 Hash value h0,
taking the message M0 and K as inputs
o Appends the h0 along with the message
o Communicate or store h0
Integrity Check
• It means data is signed and the signature put at the source cannot be denied. Digital
signature is a method which ensures non-repudiation.
• The service provides proof of the message’s origin as well as its integrity.
• A digital certificate asserts the origin using a public key infrastructure. A digital
signature is certified by a trusted digital certifying service [trusted third party (TTP)
service].
• TTP protects the private (secret) key and issues the certificate that a message was sent
using this specific private (secret) key of source incase the private key is lost and used
by some other source of message. Only the TTP is permitted to be the repository for
public key certificates.
• Example gives the steps for signing, issue of digital certificates to a signed message and
verification of a signed message.
Message-Availability
This fragmented approach is not scalable, efficient, or economically viable, and it does not
benefit from cross-functional sharing of data and services.
Cities need to begin with a solution that can extend systems across vendors, technologies,
and data types, and they should approach their infrastructure investment with a horizontal
solution that addresses their issues cohesively.
City issues are typically large-scale. They require collection of large amounts of diverse data
sets in real time. For instance, managing traffic flows and congestion in a city involves
understanding patterns of traffic in real time. This means that data from traffic sensors, traffic
cameras, parking sensors, and more has to be collected and analyzed in real time so that
decision making can be optimized around signal timing, rerouting, and so on.
A variety of sensors are used at the street layer for a variety of smart city use cases. Here is a
short representative list:
■ A magnetic sensor can detect a parking event by analyzing changes in the surrounding
magnetic field when a heavy metal object, such as a car or a truck, comes close to it (or on
top of it).
■ A lighting controller can dim and brighten a light based on a combination of time-based
and ambient conditions.
■ Video cameras combined with video analytics can detect vehicles, faces, and traffic
conditions for various traffic and security use cases.
■ An air quality sensor can detect and measure gas and particulate matter concentrations to
give a hyper-localized perspective on pollution in a given area.
■ Device counters give an estimate of the number of devices in the area, which provides a
rough idea of the number of vehicles moving or parked in a street or a public parking area,
of pedestrians on a sidewalk, or even of birds in public parks or on public monuments—
for cities where bird control has become an issue.
For each type of data to collect, there are a variety of solutions and possible approaches.
The choice of sensor technology depends on the exact nature of the problem, the accuracy and
cost trade-offs appropriate for it, and any installation limitations posed by the physical
environment. Another consideration is the requirement to interact with other IoT systems in
the same physical space.
One of the key aspects to consider when choosing a sensing device is its lifetime maintenance
costs. Some sensors are mounted on city infrastructure, such as light poles. These sensors can
benefit from the power, and possibly the network connectivity, of their mounting location.
Another key aspect to consider when choosing the right technology for a smart city is edge
analytics. The many sensors and their data must be managed through the network in a way that
securely processes data with minimal delay—and often in real time.
Finally, for sensor characteristics, storage is a key consideration that depends on the method,
location, and length of time the data has to be archived. Data collection and storage also have
an important impact on privacy.
Regardless of the type of system chosen, sensor data is transported and processed by the IoT
system. Although IoT systems use common APIs and normalized language in the cloud, they
may use different network protocols.
Another issue that network planning must take into account is the required level of agnosticism
of smart city networks. LoRaWAN is growing as a major protocol for smart city sensors, across
multiple verticals. LoRaWAN is well adapted to the type of ranges required in an urban
environment and the types of data exchanges that most smart city sensors need.
City Layer
This layer aggregates all data collected by sensors and the end-node network into a single
transport network.
The city layer may appear to be a simple transport layer between the edge devices and the data
center or the Internet. However, one key consideration of the city layer is that it needs to
transport multiple types of protocols, for multiple types of IoT applications. Figure below
shows a Street Layer Resiliency.
The key technology in creating any comprehensive smart solution with services is the cloud.
With a cloud infrastructure, data is not stored in a data center owned directly or indirectly by
city authorities.
The cloud model is the chief means of delivering storage, virtualization, adaptability, and
the analytics know-how that city governments require for the technological mashup and
synergy of information embodied in a smart city.
Figure below shows the vision of utilizing the cloud in smart solutions for cities. The cloud
provides a scalable, secure, and reliable data processing engine that can handle the immense
amount of data passing through it.
Figure: The Role of the Cloud for Smart City Applications
Smart city issues require not just efficient use of infrastructure, which the cloud helps enable,
they also require new data processing and management models. For example, cloud services
allow for Software as a Service (SaaS) models that create cyclical returns on investment.
Services Layer
The true value of ICT connectivity comes from the services that the measured data can provide
to different users operating within a city. Smart city applications can provide value to and
visibility for a variety of user types, including city operators, citizens, and law enforcement.
The collected data should be visualized according to the specific needs of each consumer of
that data and the particular user experience requirements and individual use cases.
For example, parking data indicating which spots are and aren‘t currently occupied can drive a
citizen parking app with a map of available spots, as well as an enforcement officer‘s
understanding of the state (utilization and payment) of the public parking space, while at the
same time helping the city operator‘s perspective on parking problem areas in the city at any
given time.
In this regard, light-emitting diode (LED) technology leads the transition from traditional street
lighting to smart street lighting:
■ LEDs require less energy to produce more light than legacy lights, and they have a much
longer life span and a longer maintenance cycle.
■ A leading lighting company estimates that a complete switch to LED technology can
reduce individual light bills by up to 70%.
■ LEDs are well suited to smart solution use cases. For example, LED color or light intensity
can be adapted to site requirements.
The gateway relays instructions from the application to the lights and stores the local lights‘
events for the application‘s consumption. The controller and LED lights use the cloud to
connect to the smart city‘s infrastructure, as shown in Figure below.
Technology innovations are happening all the time, making the holistic ICT connectivity
architecture even more important. For example, new detection technologies rely on sensing
the radio emissions (Bluetooth and others) coming from a vehicle. The adoption of such new
technologies implies that the communication architecture is open enough to accommodate
the needs of these new systems.
Combining these technologies in innovative ways also expands the possibilities of the services
IoT systems can deliver; this certainly holds true for smart parking.
Regardless of the technology used, parking sensors are typically event-driven objects. A
sensor detects an event and identifies it based on time or analysis. The event is transmitted
through the device‘s communication protocol to an access point or gateway, which forwards
the event data through the city layer.
The following are some potential user experiences for these three user types:
■ City operators: These users might want a high-level map of parking in the city to maintain
perspective on the city‘s ongoing parking situation. They would also need information on
historical parking data patterns to understand congestion and pain points in order to be able
to effectively influence urban planning.
■ Parking enforcement officers: These users might require real-time updates on parking
changes in a certain area to be able to take immediate action on enforcement activities,
such as issuing tickets or sending warnings to citizens whose time is nearing expiration.
■ Citizens: These users might want an application with a map (such as a built-in parking
app in their car) showing available parking spots, reservation capabilities, and online
payment. Their focus would be on minimizing the time to get a parking spot and avoiding
parking tickets. The application could warn when parking duration limits approach,
allowing the driver to move the vehicle before the timer expires or pay a parking timer
extension fee without having to go back to the vehicle.
Other types of sensors that are part of traffic control solutions include Bluetooth vehicle
counters, real-time speed and vehicle counters, and lighting control systems. These sensors
provide a real-time perspective while also offering data collection services for historical data
trending and correlation purposes.
Smart Traffic Applications
Traffic applications can be enabled to take immediate action with other sensors to manage
traffic and to reduce pain points. Historical data can be used to develop more efficient urban
planning to reduce the amount of traffic a city experiences.
A well-known remedy for stop-and-go traffic is to regulate the standard flow speed based on
car density. As density increases, car speed is forced down to avoid the wave effect.
An application that measures traffic density in real time can take action by regulating the street
light cycle duration to control the number of cars added to the flow of the main routes, thus
limiting or suppressing the wave effect.
Information can also be shared with drivers.
Understanding a city‘s real-time traffic patterns and being able to effectively mitigate traffic
issues can drive tremendous value for a city.
Connected Environment
As of 2017, 50% of the world‘s population has settled on less than 2% of the earth‘s surface
area. Such densely populated closed spaces can see spikes in dangerous gas molecules at
any given moment. More than 90% of the world‘s urban population breathes in
air with pollutant levels that are much higher than the recommended thresholds, and one out
of every eight deaths worldwide is a result of polluted air.
To fully address the air quality issues in the short term and the long term, a smart city
would need to understand air quality on a hyper-localized, real-time, distributed basis at any
given moment. To get those measurements, smart cities need to invest in the following:
■ Open-data platforms that provide current air quality measurements from existing air quality
monitoring stations.
■ Sensors that provide similar accuracy to the air quality stations but are available at much
lower prices.
■ Actionable insights and triggers to improve air quality through cross-domain actions.
■ Visualization of environmental data for consumers and maintenance of historical air
quality data records to track emissions over time.
As shown in Figure, at the street layer there are a variety of multivendor sensor offerings, using
a variety of communication protocols. Connected environment sensors might measure
different gases, depending on a city‘s particular air quality issues, and may include weather
and noise sensors. These sensors may be located in a variety of urban fixtures, such as in street
lights,
as explained earlier. They may also be embedded in the ground or in other structures or smart
city infrastructure. Even mobile sources of information can be included through connected
wearables that citizens might choose to purchase and carry with them to understand the air
quality around them at any given moment. Crowdsourcing may make this information available
to the global system.
Independent and standalone sensors typically use wireless technologies. In dense urban
environments, ZigBee and Wi-Fi are common. However, Wi-Fi is not very well adapted for
networks where reports are sporadic because Wi-Fi requires an 802.11 connection to be
maintained, which consumes battery resources.