Keywords

1 Introduction

Networking as we know it today has been started in the late 1960s and early 1970s. From then, the evolution of network achieved a great height starting from LAN, WAN, cellular network, WLAN to VAN, Adhoc Network, Mobile network, Wireless Sensor Network. There are lot more communication technologies which are added in the queue. Now we are in the era of Internet of Things where any object in the world can act smart according to its purpose on which it has been made and make that object to collect information and transform to the other side of the network through internet. The thought of IoT is simple, the requirement of IoT is not restricted to the frontier and it becomes obligatory in day-to-day living and changes the whole prototype of heritage technology [1]. The object is embedded with the network interface and enables them to communicate with the users. Each object is identified through its unique identification number or IP address. Prior to the IoT era the user can obtain their information only through service provider but now they can obtain the information from any object which is provided with computing and internet facility. The architecture of IoT should be properly designed so that the IoT application will function efficiently. Long-Term Evolution (LTE), ZigBee, Wi-Fi, Z-wave, and Bluetooth are the protocols through which the communication is being accomplished among IoT devices. IoT devices are heterogeneous in nature. Each and every device in an IoT application has their own procedure and rules. The process, services, and hardware everything is predetermined according to its requirement of its respective application. The infrastructure of the IoT environment is fixed in panorama. Further modification of the process or replacement of any device’s function related to the application will not be performed easily since, this will influence the complete network infrastructure.

It also requires dynamic updation of the network and it has to be done as quick as possible without spending the amount of cost. To conquer this challenge, the design of the programmable network has been initiated which is named as software-defined network (SDN). Software-defined network (SDN) is a next invention of Internet technology which split the functionality of data plane and control plane [2]. The function of control plane is taken away and is placed in a centralized location by means of the server called controller. SDN is a promising technology that meets the demand of IoT as it needs to communicate with different network which is the heterogeneity in nature [3]. SDN also provides central control across the network. As every research stated in their article [3,4,5], the functionality of the control plane and forwarding plane decoupled in the SDN process. By having central control, SDN helps to automate the network configuration process in an efficient manner. SDN architecture is a layered architecture which includes application layer, control plane layer, and data plane layer. It also includes two interfaces called northbound interface (NI) and southbound interface (SI) through which the layers are communicated. NI is responsible for providing an interaction between application plane and control plane, whereas SI is responsible for providing interaction between the data plane and control plane.

Designing SDN to the IoT applications will be useful thought which make the network configuration process easy. In this paper, we developed the IoT infrastructure for garbage collection and also proposed a SDN architecture for the IoT application which helps to get better performance of data promoting to the processing center in a well-organized manner. In this proposed model, the cloud-based architecture is integrated into the networks along with various software and sensors. The objective of this paper is to propose SDN architecture for smart IoT trash bin to simplify the process of data transferring and to propose a solution for garbage collection system across the city.

The organization of the paper comprises Sect. 16.2 where various related works pertaining to IoT and SDN are discussed. Sections 16.3 and 16.4 have the proposed SDN architecture for smart trash can and proposed IoT-based smart trash can system, respectively. Section 16.5 narrates about the implementation details, and the conclusion is given in Sect. 16.6.

2 Related Works

These days, every human activities are knowingly or unknowingly updated in the internet, for example, their account details, travel details, and medicine details. Many applications are built up based on IoT requirement of industry or human which compose an object to labor cleverly by adding the flavor of Internet and computing facilities. Figure 16.1 shows the various fields where the IoT plays a major role and involves everyday individual’s living actions that are notified by the IoT devices. Zeinab and Elmustafa presented the diverse IoT applications which eloquent each day of human life will be enhanced and linked with internet through IoT application [6]. Shyam et al. developed the model for waste collection system using IoT infrastructure [7]. In this model the data has been collected and forwarded using internet and also some kind of intelligent algorithms. This model is the dynamic in nature where the collected data are transmitted through internet and using an optimized algorithm the forwarded data are processed.

Fig. 16.1
figure 1

IoT application

A novel SDN architecture was introduced which comprises a component named RSU cloud which includes the features of traditional RSU (Road Side Unit), micro scale datacenters, and SDN Controller [4]. Sibylle Schaller and Hood concussed on the SDN architecture, pointed out that the ONF (Open Networking Foundation) architecture working group was the pioneer of the SDN architecture [5]. Samaresh Bera et al. recognized that the conventional networks such as WAN and enterprise network does not have the services which offer support to millions of devices to monitor the surroundings, gather data according to its application, and transmit the collected data to the processing center via internet [8].

Sahoo et al. branded some restrictions in conventional networks as follows: espousing latest protocols in an existing network is very complicated; sustaining hardware from diverse dealer is not feasible due to the closed nature of operating system; and setting up the network infrastructure is costly [2]. SDON (Software-Defined Optical Network) is used for adding optical communication [9]. Sathishkumar et al. developed the IoT-based smart alert system for garbage clearance [10]. The level of garbage bin is monitored based on which the alert signal is given to web server. Then instantaneous cleaning of dustbin will be conceded out with proper verification. The ultrasonic sensor was used to identify the level of garbage bin. Harika et al. implemented the smart garbage system which is an expensive one as it requires many modules along with the Arduino micro controller like GSM module, GPS module, WIFI module, etc. [11].

3 Proposed SDN Architecture

In this section we describe the SDN architecture for smart trash can using IoT. The proposed architecture is given in Fig. 16.2. The main components are SDN Controller, Open Flow, Data line and forward line, Truck and Trash can. The functionality of each component in described in Table 16.1.

Fig. 16.2
figure 2

SDN architecture for smart trash can

Table 16.1 SDN architecture components

The benefits of this approach are: first, centralized management; due to this, the same truck can collect more than one trash can if they are located on the way to another trash can. Hence the time and fuel is reduced. Second, direct programmable capability, for finding shortest path, the algorithm can be changed easily based on its requirements. Third, scope for improvement is always possible without affecting the network infrastructure.

4 Proposed Smart Trash Can System

The population of metropolitan city or the urban cities is diversely spread out with some areas highly populated while others have comparatively less population. This makes the process of garbage collection to be a hectic task to the corporation people. Overflowing dustbins causes insanitary circumstance for the people and produces awful aroma around the atmosphere. This will affect the health of the human who live around the place. The current scenario for garbage collection is a very static solution for a very dynamic problem because the amount of trash we produce is not always the same. Hence we have proposed efficient way of collecting garbage’s and provide the shortest path to enable the truck driver to reach the location quickly. The workflow of the smart trash can is discussed in this section. HC SR04 ultrasonic sensor and Raspberry Pi are attached to the trash can to measure the trash level. It sends the measured data as a MQTT (Message Queue Telemetry Transport) request through AWS IoT gateway. The Lambda rules are executed and values are updated in DynamoDB table. Then SMS is sent to client application using Amazon Simple Notification Service. The shortest path is calculated and Google map API (Application Programming Interface) shows the shortest path. The various components used in the proposed system is given in Table 16.2. Figure 16.3 shows the overall working of Smart Trash Can system.

Table 16.2 Proposed system components and its purpose
Fig. 16.3
figure 3

Working process of smart trash can system

The advantages of the proposed smart trash can system are the level of the dustbin is updated then and then, the dustbin will be deployed according to the requirement of the people, cost reduction and resource optimization and improves environment quality.

5 Implementation and Results

The application is designed for android platforms. The trash level is stored in AWS cloud. The user can monitor the trash level of all trash cans across the city just by using the app and truck driver can find the shortest path using the app. Figure 16.4 shows the user interface in client application. It has two tabs, one to monitor the trash level in different trash can and the figure shows the shortest path to the truck driver so that the filled trash can can be easily emptied.

Fig. 16.4
figure 4

User interface

On clicking the first tab, trash level in different trash cans is shown. With the available details truck driver can also predict when a particular trash can will get filled. The trash can level is shown in Fig. 16.5; the values represent the amount of trash filled in terms of percentage. Figure 16.6 shows the implementation of shortest path algorithm and shows the optimized path to the user. Figure 16.6 shows the optimized path to the truck driver. Shortest path has been calculated using Dynamic Source Routing (DSR) [18]. Here the route is formed on- demand. The current location of the driver and the location of the filled trash can are given as input.

Fig. 16.5
figure 5

Trash level in all trash cans

Fig. 16.6
figure 6

Shortest path to reach the trash can

The algorithm finds the shortest path between the truck and filled trash can. The driver can also get to know if there is any other trash can that needs to be collected while reaching the destination. This can be achieved by accessing the client app. The shortest path is displayed with the help of Google app The Google Maps Directions API (2015) [17, 19].

Figure 16.7 shows the organization of database. The trash level changes dynamically in the database. Table 16.3 shows the main salient features of proposed work.

Fig. 16.7
figure 7

Database structure

Table 16.3 Salient feature of proposed work

6 Conclusion

The novel Software-Defined Networking architecture is proposed for IoT-based smart trash can. A live tracking of trash can is monitored through android app. The app can also be used by the truck driver to identify the trash can and provide the shortest route to reach the trash can as soon as possible. The proposed SDN architecture will help to get better performance of the smart trash can system. IoT-based smart trash can helps the government in solving the critical task of maintaining the health and hygiene of citizens of nation. The proposed solution is cost effective and it is easily deployable and accurate. When deployed in large amounts the garbage collection system can reach higher levels of automation.