SMART HOME USING CISCO PACKET TRACER
Report submitted to the SASTRA Deemed to be University
as the requirement for the course
CSE302: COMPUTER NETWORKS
Submitted by
Thathireddy Venkata Anusha Reddy
(Reg. No.: 122004268,ECE)
February 2021
SCHOOL OF ELECTRICAL AND
ELECTRONICS ENGINEERING
THANJAVUR, TAMIL NADU, INDIA – 613 401
Bonafide Certificate
This is to certify that the report titled “Project Based Work Title (SMART HOME USING
CISCO PACKET TRACER)” submitted as a requirement for the course, CSE302:
COMPUTER NETWORKS for B.Tech. is a bonafide record of the work done by Shri/Ms.
Thathireddy Venkata Anusha Reddy(Reg. No.122004268,B-Tech ECE) during the academic
year 2020-21, in the School of Electrical and Electronics engineering.
Project Based Work Viva voce held on ________________
Examiner 1 Examiner 2
ABSTRACT :
In the fast growing world , technology is growing much faster , so as houses are getting
automated . Main objective of this is to develop a home automation system . Generally
switches are located at different places in the house , it is becoming difficult for the user
(elderly people) to go near the switch board to operate it. For physically handicapped people
also it becomes most difficult to operate when ever other person is not available .
This project work says that system integrity is done by connecting devices wirelessly
through blue tooth module of mobile phone . GUI application on mobile phone sends on/off
commands to the loads ( lights , fans , air conditioners , T.V , doors , security cameras …….)
This project is done by using Cisco packet tracing tool . It is a cross platform visual
simulation tool that allows users to create network topologies and imitate modern computer
networks . By this we can create a local area network and make devices connected . Here
information is send in the form of packets . This tool helps us to build small and large networks .
TABLE OF CONTENTS
TITLE PAGE NO.
Bonafide Certificate………………………………………………………………………………………….
Abstract…………………………………………………………………………………………………………….
List of figures…………………………………………………………………………………………………….
List of tables……………………………………………………………………………………………………..
Chapter 1- Indroduction to project
Chapter 2-Cisco Packet Tracer
2.1 Introduction………………………………………………………………………………………………..
2.2 Build a simple network in logical topology workspace………………………………..
2.3 Configure network devices………………………………………………………………………….
2.4 Verifying connectivity………………………………………………………………………………….
Chapter 3-Smart Home
3.1 Home Gateway…………………………………………………………………………………………..
3.2 Smart devices…………………………………………………………………………………………….
3.3 Smart phone/Computer……………………………………………………………………………..
3.4 Flowchart…………………………………………………………………………………………………..
3.5 Developments…………………………………………………………………………………………..
Chapter 4-Implementation and results …………………………………………………………
Chapter 5-Future works………………………………………………………………………………..
5.1 Merits and Demerits…………………………………………………………………………………
Chapter 6-Conclusion…………………………………………………………………………………..
References…………………………………………………………………………………………………..
LIST OF FIGURES:
FIGURE NO. TITLE PAGE NO.
1.1 Internet of things
2.1.0 Topology of cisco
connection
2.2.0 Change in display name
2.3.0 Adding of Networks
2.3.1 Configuring of IP address
2.3.2 Configuring router
2.3.3 Port status
2.4.0 Verifying connectivity
2.4.1 Working of topology
2.4.2(a) Simulation panel
2.4.2(b) Simulation panel
3.1.0 Home Gateway internet
and Ethernet port
3.2.1 Wireless connection of
devices
3.2.2 Display name is changed
3.2.3 IOT server connected to
home gateway
3.2.4 Network adaptor changed
to wireless
3.3.0 SSID setup
3.3.1 IOT Monitor
3.3.2(a) Operating system
3.3.2(b) Operating system
3.5.0 Topology of smart home
3.5.1 IOT server device
connections
4.1.0 Performance when al
devices are on
4.1.1 Performance when all
devices are off
4.1.3 Functioning of devices
when smoke is present and
motion detector is on
4.1.4 Functioning of devices
when smoke is absent and
motion detector is off
LIST OF TABLES:
TABLE NO TITLE PAGE NO.
2.1 Addressing table
4.1 Status description table
I. INTRODUCTION :
In the era of technology development , technology has become a need that is often used
in daily life of today’s society . In this case the need of home technology is increasing wide to
make a smart home. Generally controlling of devices is done through on/off of switch . But in
this smart home technology we make use of smart device to control the devices.
Already some smart home development has been done in which only one household
device can be monitored or controlled and the transmission media is still done through SMS
gateway and Bluetooth [1-2] , so we can’t maximize the controlling of devices .
Smart home is an application, that is combination of both technology and services at home
with specific functions. Smart home aims at the safety, comfort and efficiency of the
inhabitants. In smart home system usually consists of monitoring tools, control devices and
automatically there are several devices that can be accessed using a computer and a smart
phone connected to the internet.
IOT refers to a system of interrelated and interconnected objects that are able to collect and
transfer data over a wireless network without human intervention. Machine to Machine
communication helps you to maintain transparency in the process. IOT innovation usage made
a change in new developments in the fields of industry and horticulture.
Fig:1.1 Internet of things
The Internet of things was first presented by pioneer Kevin Aston in the time of 1999 to
characterize that the items in the physical globe can be utilized to associate with web utilizing
of the sensors. Emergence of IOT is major development in the world of internet. It is expected
that billions of physical things will be equipped with various types of sensors connected to the
internet through network.
IOT is often referred to as a physical cyber system or network of networks with a large
number of electronic devices and sensors connected to the internet. The present internet of
things (IOT) has the capacity to depict various gadgets and sensors to interface with the web.
IOT enables items and clients to speak with one another with the help of IP address.
2. CISCO PACKET TRACER :
2.1 INTRODUCTION:
Smart home is a living home that comprise of the shrewd items to improve the
every home action without the contribution of client such as checking home condition. It is
possible by using different sensors (Temperature, Humidity, Sound, Smoke etc..).
To execute smart home using Cisco packet tracer first we have to
understand how does this tool works. It is a simulation tool and information is send from one
device to another in the form of packets. These packets reaches the destination by selecting the
the best paths. This path selection by packets depends on RIP. These packets traces the path
depending on the IP address provided to the devices with respect to router and switch of
respective Local Area Network (LAN).
TOPOLOGY:
Fig 2.1.0 Topology of cisco connection
Addressing table:
Device interface IP address Subnet mask Default Gateway
Pc0 Ethernet0 DHCP 192.168.1.2
Pc2 Ethernet0 DHCP 192.168.2.2
Pc5 Ethernet0 DHCP 192.168.3.2
Router0 LAN 192.168.1.1 255.255.255.0
Router1 LAN 192.168.2.1 255.255.255.0
Router2 LAN 192.168.3.1 255.255.255.0
Table 2.1 Addressing table
Steps to be followed are:
2.2 Build a simple network in the logical topology work space
Step 1:
Launch packet tracer on your pc.
Step 2:
Build the topology as shown in fig
a. Add network devices to the workspace.
b. Change display names of the network devices.
Fig 2.2.0 Change in display name
Name of device will be given according to design of tool, so we have to change the name
of the device according to our understanding. To change name of device we have to
change the display name which is present in config tab. In the above name is changed as
router1.
c. Add physical cabling between devices on the network.
2.3 : Configure the network devices
Step 1: Configure the router
a. Create a wireless network on the router.
i) Click on wireless router.
ii) Click on Config.
iii) Select RIP in routing.
iv) Add all the network IP’s that are connected to the router.
v) Click on the fast Ethernet 0/0 in the interface.
vi) Give the respective IP address and subnet mask.
vii) Click the port status ON.
viii) Change the network name (SSID) as Home network as shown in the figure.
Fig: 2.3.0 adding all the networks
All IP address of the devices that are connected to the router are added.
Fig: 2.3.1 configuring with IP address
IP address of the respective router is given and the subnet mask of the class that the IP address
belongs to.
Here IP address first octet is 192. So it’s range belongs to class c. So subnet mask is
255.255.255.0
Similarly configure all the routers.
b) Connect PC with the router.
I. Click on the PC.
II. Click on the config tab.
III. Click on fast Ethernet 0/0.
IV. Click on the static mode.
V. Give the IP address of pc along with subnet mask of respective IP class.
VI. Go to ip config in the desktop and
Fig 2.3.2 configuring router.
Similarly all pc’s are connected to router through configuration.
c) Configure the switch.
I. Click on the switch.
II. Click on the switching tab.
III. Select fast ethernet 0/1.
IV. Click on the port status on.
V. Change the display name as already discussed.
Fig: 2.3.3 port status
Perform similar process for all the switches.
2.4: Verifying connectivity
Refresh the ipv4 settings on the pc
i. Verify weather the pc is receiving ipv4 configuration information from DHCP.
ii. Click on pc .
iii. Click on desktop tab
iv. Click on command prompt icon.
v. Issue the command ipconfig and check the connectivity.
Similarly check the connectivity of all the pc’s.
Fig: 2.4.0 verifying connectivity
I. Now save the file and start simulation
II. Select the message packet and drop it on the sourse pc and destination pc and check for
the path it traces.
Packet always select the best path to travel. This depends on the RIP algorithm. Packet
selects the path that has less traffic and less cost to travel.
Now let us check it’s tracing path
Case 1:
When all the three routers are connect to each other in the topology mentioned
above.
The message packet can reach the destination through two paths.
i. Pc0>>>>switch0>>>>router0>>>>router1>>>>router2>>>>switch2>>
>>pc5
ii. Pc0>>>>switch0>>>>router0>>>>router2>>>>switch2>>>>pc5
Fig 2.4.1 working of topology
Fig 2.4.2 (a) Simulation panel Fig 2.4.3( b) Simulation panel
Fig:2.4.2(a) shows the simulation panel of travel of packet from pc0 to pc5.
Fig:2.4.2(b) shows the simulation panel acknowledgement of the packet.
From the fig 2.4.2(a) and fig :2.4.2(b) it is clear that path traced by message packet from pc1 to
pc5 is
Pc0>>>>>switch 0>>>>>router0>>>>>router2>>>>>switch2>>>>>pc5.
So it is considered as the best path for the packet to reach destination.
By using this concept of configuring and tracing earned above we can create smart home
design.
3. SMART HOME
METHODOLOGY:
Smart home development is done by using network or a wireless home gateway computer.
Various smart objects which are used for home automation such as fans, windows, television,
cams, air conditioner, taps and various sensors are connected to home gateway. This home
gateway is used for controlling the objects and sensors, which provides programming
environment for controlling objects that are connected and provide control mechanisms
through the registration of the home gateway smart devices.
3.1 HOME GATEWAY:
The IOT things can register directly with the IOE service on a Home Gateway or network
database. The Home Gateway offers 4 Ethernet ports and a wireless contact point on
channel 6 equipped with the SSID “Home Gateway”. It is possible to configure WEP/
WAP-PSK/WAP2 companies to wireless links are safe for connections. Fig --- shows the
7 IOE things connected to home gateway and mobile.
The Home Gateway is connected via the WAN Ethernet port on internet. A Home
Gateway and a web interface is easy to manage the IOE system. The internal IP address
of the Home Gateway is 192.168.25.10, but it can be too reached via its IP address in
front of the internet.
Fig 3.1.0 : Home Gateway internet and Ethernet port
3.2 SMART DEVICES:
a. Select the smart devices that are need to be automated.
b. Change the automated display name of the device
i. Click on the device.
ii. Click on the config.
iii. Change display name.
c. Connect all the smart devices to the Home Gateway.
i. Click on device.
ii. Click on the config.
iii. Select the home gateway in IOT server block.
iv. Click on advanced on the right bottom.
v. Go to I/O config and change the network adaptor configuration to
PT-IOT-NM-1W .
Step 5 is done to connect the deices wirelessly to home gateway.
TOPOLOGY 1:
Fig 3.2.1 Wireless connection of devices.
Fig3.2.2 Display name is changed.
Fig 3.2.3 IOT server connected to Home Gateway
Fig 3.2.4 Network adaptor is changed to wireless as said in point (c – v)
3.3 SMART PHONE/ COMPUTER:
This smart phone or computer is used to access these smart devices. Smart phone is
connected to home gateway .
i. Click on smart phone.
ii. Go to conig.
iii. Click on wireless0.
iv. Change the SSID of smart phone with SSID name of Home Gateway.
Then it is connected to the gateway.
Fig 3.3.0 SSID setup.
Now to monitor the devices through smart phone
1. Click on smart phone.
2. Go to desktop.
3. Click on the IOE monitor.
4. Enter the IP address of the home gateway and enter user name and password.
5. You can see all the device icons and their operations to be performed.
Fig 3.3.1 IOT Monitor
Fig 3.3.2 (a) operating system Fig 3.3.2(b) operating system
1. Fan icon has 3 buttons that changes the status of the fan.
They are off, low and high.
2. Cam has on, off button that captures image when cam is on.
3. Door can be locked and unlocked by clicking the icons on the door button.
4. Windows can be closed and opened.
5. Brightness of light can be change according by clicking the icons.
6. Humidifier humidifies the room if it is given command.
3.4 FLOWCHART:
START
ADD THE COMPONENTS
CONNECT HOME GATEWAY
CONFIGURE COMPONENTS
AND GATEWAY
NO
CHECK FOR
COMPONEN RECONFIGURE
T
YES
CONFIGURE THE MOBILEPHONE
ADD AN END USER
STOP
3.5 DEVELOPMENTS:
From the above we can understand that we can use smart phone to operate the devices. That is
we operate the fan according to the climatic conditions we feel. Opening and closing of
windows according to wind. On and off the vent fan when smoke is present in kitchen and so
on. In all the above cases there is need of human knowledge and presence. To overcome this
problem of human presence we can make this smart hoe system much more automated by
giving certain conditions to these devices to operate.
We can consider some situations like
I. We can connect mobile to a temperature sensor and give conditions according to rotate
a fan.
II. We can connect smoke detector to windows by providing conditions and automatically
windows opens and closes according to the level of smoke.
III. We can automate Air Conditioner by connecting to temperature sensor by providing
temperature conditions and so on….
Let us see such cases
TOPOLOGY 2:
Fig: 3.5.0 Topology of smart home
The two cases we considered are
I. Automation of door by detecting smoke.
II. On and off of webcam by detecting motion.
Connections are made as discussed earlier. Now let u see the conditions
Fig:3.5.1 IOT server – device conditions
The design is provided with four conditions as shown in the fig
I. Window opens as smoke level>=10
II. Window closes as smoke level<10
III. Cam will on and captures image if motion detector is on
IV. Cam will go off as motion detector is off
As this is wired connection we can connect only a minimum of devices to gateway as the
gateway has only 4 Ethernet connection. So we can go for wireless connection to connect more
devices.
4. IMPEMENTATION AND RESULTS:
I. For the topology 1 in the figure by clicking the buttons provided we operate the
devices.
We will see the differences in the below two images.
Fig: 4.1.0 performance of devices when all the devices are on
Fig: 4.1.1 performance of devices when all the switches are off
TABULATION:
DEVICE STATUS ON phase indication OFF phase indication
Fan Double encircles ---------------
Light Glowing Not glowing
Web cam Red black
Door Red Green
Window Open Close
Humidifier Red ---------------
Tabel :4.1 Status description table
II. For topology 2 connections are made by providing certain conditions so they work
accordingly.
1. When we increase smoke level door opens and door closes as the smoke is
reduced. Smoke is emitted from car as shown above figure.
2. Web cam will go on when motion detector is on and cam will go off when the
motion detector is off.
Let us see
Fig; 4.1.3 functioning of devices when smoke is present and motion detector is on
Fig: 4.1.4 Functioning of devices when there is no smoke and motion detector is off.
5. FUTURE WORK
Now-a-days everything is interlinked with IOT Technology. As years passes everything is getting
automated. In future humans can be replaced by improving this smart connectivity. It can be
developed in a way such that smart devices detect the moment of people and make work of
devices accordingly. This project will have greater potential in market.
5.1 MERITS AND DEMERITS:
MERITS DEMERITS
Human need will be reduced Costly
Increases security Difficult to setup
Saves time Security threat occurs
Flexibility Dependent on intenet
6.CONCLUSION:
Hence smart home is designed and implemented using cisco packet tracer tool which makes
home automated and reduces the human presence every where and this will be more useful to
disabled people.
7 REFERENCES:
“Dawn of a new smart home era: launch of the QIVICON platform”,
http://www.telekom.com/media/consumer- products/199500, Sep 05, 2013
Dmitry Vavilov, Alexey Melezhik, Ivan Platonov, “Smart Home User’s Behavior Prediction”, ICCE-
Berlin 2013, Sep. 8-11
Catalyst 6500 Call Home Configuration Guide
- http://www.cisco.com/en/US/products/hw/switches/ps708/products_configuration_guide_book0918
6a00801609ea.html