0% found this document useful (0 votes)
43 views7 pages

INP Exp-10-1

Uploaded by

Harshit Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views7 pages

INP Exp-10-1

Uploaded by

Harshit Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

A.Y.

2024-2025
NAME – Pratik Gupta Subject Incharge – Ms.Usha Gupta
BRANCH - IOT Subject- INP
ROLL NO – 11 Sem-V
Experiment No.- 10

Aim: Setting up an HTTP Web Server and Client in Cisco Packet Tracer

Practical 1. Understand the basics of the HTTP Protocol.


Learning 2. Set up an HTTP Server and Client on Cisco Packet Tracer.
Objectives: 3. Simulate and monitor HTTP communication between devices.
4. Know the application of HTTP in web-based IoT systems..
Hardware and Cisco packet Tracer
Software
Requirement:
Theory: The HTTP (HyperText Transfer Protocol) is a client-server communication
protocol widely used on the web for transmitting data. It operates over the
TCP/IP suite, where the client sends requests (such as GET, POST) to a server,
and the server responds with the requested resource or an error code. HTTP is
stateless, meaning each request is independent and doesn't retain information
from previous exchanges. It is the foundation for web browsers to fetch web
pages, multimedia, and API data. In the context of IoT, HTTP allows devices to
communicate via web-based services for data exchange.
In IoT systems, HTTP is useful for transferring sensor data, controlling devices
remotely, or interacting with cloud services. Devices like sensors or actuators
can act as servers, providing data to clients (such as computers or smartphones)
on demand. However, compared to other IoT protocols like MQTT, HTTP tends
to be heavier due to its statelessness and larger headers, making it more suitable
for applications where bandwidth and latency are not major constraints.
Components:
● Router: Directs network traffic between different networks based on
IP addresses.
● Switch: Interconnects devices within the same network, allowing
communication between them.
● IoT Thing: Smart devices that can send or receive HTTP requests
and communicate with web servers.
● PC: Used for configuring the HTTP server and monitoring
communications.

Procedure: Step 1: Design the Network Topology


1. Add a Router and place it in the workspace. The router will manage
network traffic.
2. Add a Switch to the workspace. This will connect all devices in the same
local network.
3. Add a PC to act as the HTTP Client.
4. Add an IoT Thing to act as the HTTP Server.
Step 2: Configuring Interconnection of Devices
1. Connect Router to Switch using a straight-through cable.
2. Connect the PC to the Switch using another straight-through cable.
3. Connect the IoT Thing (HTTP Server) to the Switch with a
straight-through cable.
Step 3: Configure the Router
1. Select the router and go to the Config tab.
2. Assign an IP address and subnet mask for the router’s interface
connected to the switch. This allows devices on the network to
communicate through the router.

Step 4: Configure the PC (HTTP Client)


1. On the PC, navigate to the Desktop tab and choose IP Configuration.
2. Assign a static IP address for the PC, matching the subnet of the router.
This allows the PC to communicate with the other devices.
Step 5: Configure the IoT Thing (HTTP Server)
1. Click on the IoT Thing.
2. Go to the Config or Programming tab, and select the HTTP service.
3. Ensure the IoT Thing is set up to act as an HTTP server by enabling the
service and assigning an IP address to the device.
4. The server will respond to incoming HTTP requests from the client.
Step 6: Configure elements in services as per the requirement

Click on edit and change content as you want

For eg: I’ve changed the code and inserted our name
Step 7: HTTP Client Configuration (PC)
1. On the PC, open the Web Browser application under the Desktop tab.
2. Enter the IP address of the IoT Thing (HTTP Server) in the address bar
and send an HTTP GET request to the server.
3. The server should respond with a webpage or other data if the
configuration is correct.

When we insert URL of Server in Web Browser of PC we get


Result:

When I insert http://190.100.10.40/helloworld.html in URL it shows


us the output which we’ve inserted in helloworld.html file
Same for copyrights.html and image.html

Practical
Outcomes: After performing the practical, the learner is able to: Marked

I. Configure HTTP Server and Client in Cisco √
Packet Tracer. √
II. Set up and configure network devices to support
HTTP-based IoT communications. √
III. Simulate and demonstrate the flow of HTTP
messages between devices, visualizing how
clients request data from servers and how servers
respond. √
IV.  Understand the role of HTTP in web-based
IoT systems and its applications for remote
device control and data exchange.

You might also like