0% found this document useful (0 votes)
33 views15 pages

5 DCCN Lab

Uploaded by

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

5 DCCN Lab

Uploaded by

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

FATIMA JINNAH WOMEN UNIVERSITY

Department Of Computer Science

Data Communication and Computer Networks (Lab)


Lab # 5
Lab Duration 3-hrs / week.

Majid Shafique
Lab Engineer
Computer Science Dept
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

Lab 05
Summary

Items Description
Course Title Computer Networks
Lab Title Activation of services in LAN environment and Protocol Data Unit
Duration 3 Hours
Operating System /Tool/Language Packet Tracer
Objective To activate services provided by Server in LAN environment and to
work on PDU and PDU List Window Usage

SERVICES In LAN ENVIRONMENT


File Transfer Protocol (FTP) is a standard network protocol used to transfer files from
one host to another host over a TCP-based network, such as the Internet. FTP is built on client-
server architecture and uses separate control and data connections between the client and the
server. FTP users may authenticate themselves using a clear-text sign-in protocol, normally in
the form of a username and password, but can connect anonymously if the server is configured to
allow it. For secure transmission that hides (encrypts) the username and password, and encrypts
the content, FTP is often secured with SSL/TLS ("FTPS"). SSH File Transfer Protocol ("SFTP")
is sometimes also used instead, but is technologically different. The first FTP client applications
were command-line applications developed before operating systems had graphical user
interfaces, and are still shipped with most Windows, UNIX, and Linux operating systems.
Dozens of FTP clients and automation utilities have since been developed for desktops, servers,
mobile devices, and hardware, and FTP has been incorporated into hundreds of productivity
applications, such as Web page editors.
The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed,
collaborative, hypermedia information systems. HTTP is the foundation of data communication
for the World Wide Web. Hypertext is structured text that uses logical links (hyperlinks)
between nodes containing text. HTTP is the protocol to exchange or transfer hypertext. The
standards development of HTTP was coordinated by the Internet Engineering Task Force (IETF)
and the World Wide Web Consortium (W3C), culminating in the publication of a series
of Requests for Comments (RFCs), most notably RFC 2616 (June 1999), which defines
HTTP/1.1, the version of HTTP in common use.
In a layered system, Protocol Data Unit (PDU) is a unit of data which is specified in a protocol of
a given layer and which consists of protocol-control information and possibly user data of that
layer. For example: Bridge PDU or iSCSI PDU
LAB TASK
Task 1
Open Packet tracer-> desktop.
2. Select Switch option.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

3. Select generic Switch and drag n drop onto the work space.

4. Select End Device Option.

5. Select Generic device and drop it on the work space.

6. Select Server from End Device option.

7. Select connection option.

8. Select Copper Straight-Through cable.


FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

9. Left click on any 1 end station select->Fast Ethernet0/1.

10. Connect end station and server with Switch. The green dots show that connection is working
fine.

11. Double left click on any end station and select Desktop option.

12. Select IP configuration option.


FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

13. Verify the assignment of the IP address by placing cursor on any end device.

14. Double left click on server open config tab. Select HTTP services and make sure the service
is on by clicking on ON option.

15. Select FTP services and make sure the service is on by clicking on ON option.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

Create a new user by typing user name and password in respective fields.

16. Select any permission i.e read, write etc by selecting the respective check box.

17. Add the new user to the list by clicking the plus button.

18. On the end station access the web browser from the desktop tab.

19. In the URL enter the IP address of the server the default Cisco packet tracer page opens.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

20. Open the command prompt-> write FTP Server IP addresses. It would prompt with user
name.

21. Provide valid user name and password as created in step

15. FTP mode will be turned on.


22. Use quit command to turn it off.

Task 2
1. Start creating a network by first selecting the End Devices. Add a Generic PC and a Generic
Server to the workspace.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

2. Click on the PC. While paying attention to the link lights, turn the power on, off, and on
again.

3. Try all three ways to learn about the devices. First, mouse over the devices to see basic
configuration information about them.

Second, click on each device with the Select tool to show the device configuration window,
which provides several ways to configure the device.

Third, use the Inspect tool to view the tables the network device will build as it learns about
the network around it. In this example, open the ARP table. Since the devices have not been
configured yet, the ARP tables are empty. Always remember to close the windows after
viewing them or they will clutter the workspace.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

4. Open the PC configuration window and change the settings using the Config tab. Change the
display name to Client and set the DNS server to 192.168.0.105.

Under Interface, click FastEthernet and set the IP address as 192.168.0.110. Packet Tracer
automatically calculates other parameters. Make sure that the Port Status box is checked. For
future reference, note that other Ethernet interface settings, such as bandwidth, duplex, MAC
address, and subnet mask can be modified using this window.

5. Go to the Desktop Tab and click on IP Configuration. Notice that the IP address, subnet
mask and DNS server can be changed here as well.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

6. Open the Server configuration window and go to the Config tab. Change the display name to
Web Server. Click FastEthernet and set the IP address as 192.168.0.105. Make sure that the
Port Status is also on. Click DNS and set the domain name as www.firstlab.com. Set the IP
address as 192.168.0.105 and click Add. Finally, check to make sure that the service for DNS
is on.

7. Reposition the network devices by dragging them to a new location.

Add a network description by using the “i” button on the upper right corner.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

Then add some text labels within the Logical Workspace by using the Place Note tool.

8. Load a background grid using the Set Tiled Background button.

9. Save your work using the File > Save As option and create a meaningful filename.

Sending Simple Test Messages in Real time Mode

1. Start by opening the file saved in the last section.


2. Use the Add Simple PDU tool to send a simple one-time ping message, called an echo
request, to the server. The server responds with an echo reply because all devices have
properly configured IP address settings.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

3. Scroll up and down the User Created Packet Window to see the different capabilities of this
ping message, including an indication that the ping was successful.
4. Toggle the PDU List Window to see a larger display of this message.

One or more of these messages can be saved as a scenario. Scenario 0 is displayed when
starting. Label this first scenario with an “i” note. Different scenarios allow the use of the
same topology for experiments with different groupings of user created packets.

5. Click New to create a new scenario. New scenarios will initially be blank
6. Add two packets using the Simple PDU tool, a PDU from the PC to the Server and a
different PDU from the Server to the PC. Then add an “i” note describing the scenario, to
complete Scenario 1.

7. Several scenarios can be saved with a single network. Alternate between Scenario 0 and 1.
8. Now, remove Scenario 0 using the Delete button.
9. Scenario 1 is now visible. Go to the last column in the User Created Packet Window and
double-click (delete) to remove a PDU.
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science
FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

10. Delete the whole scenario. Notice that the scenario list went back to the default Scenario 0.

Make a network of 44 computers and assign them the ip address using the dhcp service

1. Place all the stations to the workstation .


connect half computers to a switch and other half to an other switch
now connect the second switch to the server

Double click on the server and in the desktop tab open ip configuration
Set ip and subnet mask

Go to config tab-> services -> dhcp


FATIMA JINNAH WOMEN UNIVERSITY
Department Of Computer Science

Enter ip address and subnet mask .


And press add .
Double click every computer and go to desktop-> ip cofigration -> dhcp

The ip address of the computer will set automatically

Repeat for each computer

You might also like