Data Communication and Computer Networks Lab Manual
Data Communication and Computer Networks Lab Manual
Data Communication and Computer Networks Lab Manual
School of Computing
Prepared By
Haileyesus Amssaya
Reviewed By
Berihun Hadis
December 2014
0
BAHIR DAR UNIVERSITY
BAHIR DAR INSTITUTE OF TECHNOLOGY
School of Computing
I have certified and approved the Data Communication and Computer Networks laboratory
manual prepared by Haileyesus Amssaya. As I have reviewed and commented the manual, it
carries out the objectives, completes practical part of the course and fulfills the standard of the
1
Contents
1. Session 1: Networking Tools ............................................................................................................ 1
1.1. Crimping tool ........................................................................................................................... 1
1.2. RJ-45 ........................................................................................................................................ 2
1.3. RJ-11 ........................................................................................................................................ 2
1.4. NIC ........................................................................................................................................... 2
1.5. Cable tester.............................................................................................................................. 3
2. Session 2: Cabling methods.............................................................................................................. 4
2.1. Types of Network Cables .......................................................................................................... 4
2.2. Color Code Standards............................................................................................................... 4
3. Session 3: Straight through cabling .................................................................................................. 6
4. Session 4: Crossover Cabling ............................................................................................................ 6
5. Session 5: Peer – to – Peer workgroup Network Configuration......................................................... 7
5.1. Definition of Peer to peer networking ...................................................................................... 7
5.2. Configuring computer and workgroup name ............................................................................ 7
5.3. Configuring LAN card.............................................................................................................. 10
5.4. Configuring IP address............................................................................................................ 12
6. Session 6: Sharing Resources in Network group Configuration ....................................................... 15
6.1. Sharing file and folder in workgroup network ......................................................................... 16
6.2. Sharing printer in workgroup network.................................................................................... 20
6.3. Sharing a printer .................................................................................................................... 21
7. Session 7: Dial UP Internet Connection and Configuration.............................................................. 25
7.1. Configuring Dial up Internet connection ................................................................................. 25
7.2. Sharing the dial up connections .............................................................................................. 27
8. Session 8: Installing windows XP by using virtualization ................................................................. 28
8.1. Definition of virtualization...................................................................................................... 28
8.2. Installing and Starting Oracle Virtual box ................................................................................ 29
8.3. Installing windows XP using virtualization ............................................................................. 29
9. Session 9: Windows Net Meeting Configuration I ........................................................................... 33
I
9.1. Configuring windows Net Meeting ......................................................................................... 33
9.2. How to configure Net meeting ............................................................................................... 33
9.3. How to make a call ................................................................................................................. 35
9.4. How to start chatting ............................................................................................................. 36
9.5. Finding IP Address of Client Computer ................................................................................... 37
9.6. Remote Desktop Sharing ........................................................................................................ 37
9.7. Transferring Files.................................................................................................................... 38
10. Session 10: Remote Desktop Connection (RDC) .......................................................................... 39
10.1. How to configure Remote Desktop Connection .................................................................. 39
10.2. Accessing RDC .................................................................................................................... 40
10.3. Firewall settings ................................................................................................................. 43
11. Session 11: Design Network Topology and simulation ............................................................... 44
11.1. Installing Cisco packet tracer .............................................................................................. 44
11.2. Identifying Cisco Packet Tracer Network Devices ................................................................ 44
11.3. Configuring DHCP server .................................................................................................... 45
11.4. Configuring DNS Server ...................................................................................................... 49
11.5. Configuring HTTP server ..................................................................................................... 50
12. Session 12: Installing Server 2008 Using Virtualization .............................................................. 52
12.1. Installing server 2008 using oracle virtual machine ............................................................. 52
12.2. Assigning Static IP Address for the Server ........................................................................... 52
12.3. Installing DNS server .......................................................................................................... 53
12.4. Checking whether the IP address is the same as DNS or not ............................................... 53
12.5. Installing DHCP Server ........................................................................................................ 54
12.6. Configuring DHCP server .................................................................................................... 54
12.7. Installing FTP Server ........................................................................................................... 56
12.8. Configuring and Accessing ftp server from client computer ................................................ 57
13. Session 13: Active Directory Installation and configuration ........................................................ 58
13.1. How to install active directory user and computer .............................................................. 59
13.2. Connecting client to server using Domain Control .............................................................. 66
14. Conclusion................................................................................................................................. 70
15. Reference:.................................................................................................................................. 71
II
1. Session 1: Networking Tools
A crimping tool is a tool designed to crimp or connect a connector to the end of a cable. For
example, network cables and phone cables are created using a crimping tool to connect the RJ-45
and RJ-11 connectors to the end of the cable. The crimper in picture below is capable of
crimping a RJ-11 (6-Pin) and RJ-45 (8-Pin) connectors and also includes a wire cutter near the
handles that can be used to cut phone or CAT5 cable.
To use this crimping tool, each wire is first placed into the connector. Once all the wires are in
the jack, the connectors with wires are placed into the crimping tool, and the handles are
squeezed together. Crimping makes the plastic connector puncture and hold each of the wires,
which prevents the wires from falling out and for data to be transmitted from the connector to
each of the wires.
1
1.2. RJ-45
Short for Registered Jack-45, RJ-45 is an 8-pin connection used for Ethernet network adapters.
The picture below shows is RJ-45 connector separated from the cable. This connector is most
commonly connected to the end of Cat5 cable, which is connected between a computer network
card and a network device such as a network router.
1.3. RJ-11
More commonly known as a modem port, phone connector, phone jack or phone line, the RJ-11
is short for Registered Jack-11 and is a four or six wire connection primarily used for telephones
and computer modem connectors in the United States. The picture is an example image of what
the RJ-11 phone cable and connection looks like. Although this cable can be used to connect
your modem to the Internet it should not be confused with the RJ-45 connector, which is used
with your network card.
1.4. NIC
Short for Network Interface Card, a NIC is also commonly referred to as an Ethernet card and network
adapter and is an expansion card that enables a computer to connect to a network such as a home network
or the Internet using an Ethernet cable with a RJ-45 connector. The picture below is an example of a SMC
EZ Card 10/100 PCI network card, a network card commonly found in most desktop computers today that
do not already have an onboard network on their motherboard.
2
1.5. Cable tester
A cable tester is a device that is used to test the strength and connectivity of a particular type of cable or
other wired assemblies. There are a number of different types of cable testers, each able to test a specific
type of cable or wire (some may be able to test different types of cables or wires). The cable tester can test
whether a cable or wire is set up properly, connected to the appropriate source points, and if the
communication strength between the source and destination is strong enough to serve its intended
purpose. The picture below is an example of a cable tester.
3
2. Session 2: Cabling methods
Once you have the necessary equipment needed to create your own network cables you need to
determine the network cable you want to create. There are two major network cables: a straight
through cable and a crossover cable.
The twisted-pair cables consist of four twisted wires, each color coded; one a solid color and the
other a stripped color. As seen below, most network cables consist of a green, blue, orange, and
brown pair of cables.
There are two cable standards T568A and T568B, each twisted-pair must be broken apart to
create the layout as shown above. If you want to create a straight through cable both ends of the
cable should be identical and should match the T568A example shown above. If you want to
create a crossover cable one end of the cable should match T568A and the other should match
T568B.
Once you have separated the ends of the cable to match one of the above examples place the
cables into the RJ-45 connector and then use the crimping tool to attach the connector. Do these
steps for each side of the cable. Once both ends of the cable have been completed connect the
cable to make sure it is working.
Let's start with simple pin-out diagrams of the two types of UTP Ethernet cables and watch how
committees can make a can of worms out of them. Here are the diagrams:
4
Note that the TX (transmitter) pins are connected to corresponding RX (receiver) pins, plus to
plus and minus to minus. Crossover cable used to connect units with identical interfaces. If you
use a straight-through cable, one of the two units must, in effect, perform the cross-over function.
If we apply the 568A color code and show all eight wires, our pin-out looks like this:
Note that pins 4, 5, 7, and 8 and the blue and brown pairs are not used in either standard. Quite
contrary to what you may read elsewhere, these pins and wires are not used or required to
implement 100BASE-TX duplexing they are just plain wasted.
However, the actual cables are not physically that simple. In the diagrams, the orange pair of
wires is not adjacent. The blue pair is upside-down. The right ends match RJ-45 jacks and the
left ends do not. If, for example, we invert the left side of the 568A "straight"-thru cable to
match a 568A jack--put one 180° twist in the entire cable from end-to-end--and twist together
and rearrange the appropriate pairs, we get the following can-of-worms:
5
This further emphasizes, I hope, the importance of the word "twist" in making network cables
which will work. You cannot use a flat-untwisted telephone cable for a network cable.
Furthermore, you must use a pair of twisted wires to connect a set of transmitter pins to their
corresponding receiver pins. You cannot use a wire from one pair and another wire from a
different pair.
Keeping the above principles in mind, we can simplify the diagram for a 568A straight-thru
cable by untwisting the wires, except the 180° twist in the entire cable, and bending the ends
upward. Likewise, if we exchange the green and orange pairs in the 568A diagram we will get a
simplified diagram for a 568B straight-thru cable. If we cross the green and orange pairs in the
568A diagram we will arrive at a simplified diagram for a crossover cable. All three are shown
below.
Straight through cable (T568A) is a network cable that connects a computer to a network device. It
connects a computer to a network hub, network switch, and network routers.
Exercise: Prepare and test the Straight through cable whether it is properly working or not.
Exercise: Prepare and test the crossover cable whether it is properly working or not.
6
5. Session 5: Peer – to – Peer workgroup Network Configuration
5.1. Definition of Peer to peer networking
Peer-to-peer (P2P) computing or networking is a distributed application architecture that
partitions tasks or workloads between peers. Peers are equally privileged, equipotent participants
in the application. They are said to form a peer-to-peer network of nodes.
Peers make a portion of their resources, such as processing power, disk storage or network
bandwidth, directly available to other network participants, without the need for central
coordination by servers or stable hosts.
Workgroup networking is the most essentials part of computer networking. For setting up the
network in real life environment consider the following approach before taking any final
decision on workgroup network: In this article we would configure IP address and Run Set up a
home or small office Network Wizard.
7
Next click on Advanced System Settings menu and on Computer Name menu.
8
If you want to change the name of Computer and workgroup click change button.
Follow this guideline while choosing name for computer and workgroup
Computer name should be unique in a workgroup.
Workgroup name should be same for all computers.
Workgroup name may be up to 15 characters long and may contain any alphanumeric
(a-z and 0-9) characters, as well as special characters except for; " < > * + = \ |?
Computer name can be up to 15 characters long and have the same naming
restrictions as workgroup. In addition, the computer name cannot be the same as the
workgroup name.
Enter a new computer name in the Computer Name field and new workgroup name in
Workgroup field and click OK.
You will be prompted to restart your computer to complete the name change. Click
ok to restart your computer.
9
5.3. Configuring LAN card
First check LAN card driver
Right Click on Computer icon ==> properties ==> Device manager ==> Network Adaptors ==>
Check here
Situation:- Showing network adapters as shown in the figure below
o Installed and working properly
10
Situation:- Showing with Red Cross
o Description:- Either cable is unplugged or LAN card is disabled
o Solution: - My network places ==> properties ==> local area connection ==>
right click ==> Enable (Follow only if LAN card is disabled) Check whether
network cable is plugged or not.
Situation:-Not Showing network adapters
o Description: - LAN card is not detected yet (Check for physical installation)
o Solution: - Open the cabinet and check for physical detection
o Check Bios ==> Onboard LAN Option should be enable
11
o Solution:-There is no need to on firewall unless you are connecting with
Internet. Turn off the firewall.
1. Right click on the network notification icon on the task bar and click on “open network and
sharing center”. The following dialog box will be presented:
12
3. Right click on the Local Area Connection open properties then the following window will be
displayed.
13
4. Double click on the Internet Protocol Version 4 (TCP/IPv4) then the following window will
be displayed.
5. Use the following IP address or choose the IP address you have been assigned by your
company to configure IP address, Subnet mask and Default Gateway for four computers
connected together by one switch and star topology.
1. Check whether all computers are properly connected or not by using ping command.
2. Share a file or folder between all computers.
14
6. Session 6: Sharing Resources in Network group Configuration
Sharing files, folder devices, and printers in peer to peer workgroup network by using Simple
File Sharing on Windows 7. To activate resource sharing status On Windows 7 do the following
steps.
1. Right-click on network notification icon on the task bar and click on open Network and
Sharing Center.
2. Next click on the Change advanced sharing settings menu, then the following window will be
displayed. Turn on all the network and sharing options as shown below.
15
6.1. Sharing file and folder in workgroup network
1. Right click on the file or folder which you want to share and click on properties: the
following window will be displayed.
16
3. Click on the share button and choose everyone option from the drop down list button.
5. Click on share button then the following window will be displayed next click on done button.
17
Accessing the shared folder:
Click on start menu => click on Run command => Type \\hostname or IP address of the
computer
Then click Ok button you will get your shared file as shown below.
18
Double click on the folder Users then the shared file will be opened.
19
6.2. Sharing printer in workgroup network
Local printer is the printer that is attached with system directly. Network printer is the printer
that is attached with other system and use local printer via network.
Installing Local printer, Local printer is required before you share it on network. To install local
printer with system:
1. Click Start ==> devices and printers
2. If you did not see any printer here, it means system has not detected the printer yet. You need
to install it manually.
3. Click on add a printer
20
6. Select the manufacturer and model of your printer. If you have printer driver CD then use
have disk options
7. Give any name to your printer for example Office Printer, Lab Printer, anything that is close
to your specification
8. If you want to print test page then choose Yes otherwise select No
9. Click on Finish to complete the Wizard
10. Before sharing on network it is best practice to test the printer. Do some printing.
21
The printer Properties window is opened. Depending on the printer model and its drivers, you
will see different tabs and options. Go to the Sharing tab, which is common to all printers.
22
Here you can share the printer with the entire network. Check the box which says "Share this
printer". Then, you can edit the share name of the printer.
To access the shared printer on the client side open the Devices and Printers panel and click on
Add printer menu.
23
Next clock on Add a network, wireless or Bluetooth Printer option then the client computer will
search the network printer as shown below.
Finally select the network printer and click next and complete the steps.
24
7. Session 7: Dial UP Internet Connection and Configuration
Dial up internet connection is a form of Internet access that uses the facilities of the public
switched telephone network (PSTN) to establish a dialled connection to an Internet service
provider (ISP) via telephone lines. The user's computer or router uses an attached modem to
encode and decode Internet Protocol packets and control information into and from analogue
audio frequency signals, respectively. Dial-up internet is sometimes used where Broadband
internet access is not available; primarily in rural or remote areas. We have seen Workgroup
configuring and sharing folders and printers in our previous article. Sharing Internet connection
is the next logical step in getting everybody online. If you have installed an Internet gateway,
chances are that you are already online. Windows XP Internet Connection Sharing allows your
computer to function as an Internet gateway. In this article we would use window XP as internet
gateway.
25
3. Click on set up a new connection or network option
26
Next enter Dail-up phone number, user name and password, these options are only given by
Internet Service Provider. In Ethiopia Ethiopian telecommunication agency is Internet Service
Provider.
27
8. Session 8: Installing windows XP by using virtualization
28
8.2. Installing and Starting Oracle Virtual box
Download the oracle virtual box set up from the Internet. Install like any ordinary software
installation by following installation wizard. Finally start the oracle virtual machine. The
following window will be displayed.
29
Step 2: write the name of the OS on the name option.
Step 3: Click next buttons and allocate the base memory size.
Step 4: click next and check create new hard disk as shown in the figure below.
30
Step 6: click next and check dynamically allocated as shown below.
Step 7: click next two times and check summary as shown below.
Step 7: click create button two times and then new virtual machine is created as shown below.
31
Step 7: click newly created virtual machine and then click start button on the virtual machine
window as shown below.
Step 8: Insert XP operating system CD or ISO file and follow all steps till the XP is installed on
the machine.
32
9. Session 9: Windows Net Meeting Configuration I
Microsoft NetMeeting is a nice in built feature of XP. It’s allowing you to share files and
desktop. You could also use it for chat, video conferencing. You have to configure Net Meeting
before you could use it.
33
5. Click off "Log on to directory server when NetMeeting starts", then click Next
6. Select the network connection you are using, and then click Next (On campus, select Local
Area Network) as shown below.
34
9. In Audio Tuning Wizard window, adjust the speaker or headphone volume and click Next.
10. When finished adjusting settings, click Finish.
NetMeeting setup is now complete. An icon will be displayed on the desktop. (During startup, if
Windows XP Firewall attempts to block NetMeeting, click Unblock.) The NetMeeting main
window is displayed as figure shown below.
35
Receiving a call
When another person is calling you NetMeeting will display the following screen:
Exercise:
1. Create and share a file or a folder.
2. Share a program with another system.
36
9.5. Finding IP Address of Client Computer
Connections in NetMeeting are done through IP addresses. You need to know your IP Address.
To find out your IP Address:
Click on Start button, select Run
Type cmd command and click OK
In the window that appears, type ipconfig and press the Enter key
Your IP Address will be displayed in the window (eg. 192.168.1.5) (Write down your
IP Address)
37
9.7. Transferring Files
Files can also be transferred in the background while a NetMeeting conference is going on or can
be sent either to an individual or a group. To transfer a file:
Click the Transfer Files button.
Click the Add File button.
Select the desired files.
Choose the people you wish to send the file to (if you wish to send the file to everyone in the
meeting, click All).
Click Send All button to transfer the files.
38
10. Session 10: Remote Desktop Connection (RDC)
RDP remote desktop protocol is a nice feature of windows 7. RDP allow you to share the
desktop. With RDP you could access desktop from any computers. You need to enable it before
use. To enable it follow these steps: You need to enable it before use.
39
Finally press ok and click on apply button
40
Click ok button then you will get the following authentication message
41
Click on ok button
42
Now let us check the IP address of the remote Desktop (RDC)
43
11. Session 11: Design Network Topology and simulation
Cisco Packet Tracer is a powerful network simulation program that allows students to
experiment with network behaviour and ask “what if” questions. As an integral part of the
Networking Academy comprehensive learning experience, Packet Tracer provides simulation,
visualization, authoring, assessment, and collaboration capabilities and facilitates the teaching
and learning of complex technology concepts.
Packet Tracer supplements physical equipment in the classroom by allowing students to create a
network with an almost unlimited number of devices, encouraging practice, discovery, and
troubleshooting. The simulation-based learning environment helps students develop 21st century
skills such as decision making, creative and critical thinking, and problem solving. Packet Tracer
complements the Networking Academy curricula, allowing instructors to easily teach and
demonstrate complex technical concepts and networking systems design. The Packet Tracer
software is freely available on the web for users.
First download Cisco Packet Tracer version 5.3 or 6.2 from the Internet and Install on your
system.
44
Exercise:
In the DHCP service configuration, you can set up a DHCP server with many different IP
address pools. To add a DHCP pool, enter the Pool Name, Default Gateway, DNS Server
address, Starting IP address to lease, Subnet Mask, and the Maximum number of Users, then
click Add. If you want to make changes to an existing DHCP pool, select the pool from the list
and edit the fields you want to make changes to, and then click Save. If you want to remove a
DHCP IP address pool from the server, select the pool from the list and click Remove.
1. First we must to drag and drop the network components like switch, server and client in
to design area.
45
2. And make a connection based on the standard
46
5. Exit from the IP configuration go to the config tab then you will get the following
47
6. Click on the DHCP tab
48
11.4. Configuring DNS Server
In the DNS service configuration, you can set up a DNS server to translate domain names with
different types of resource records, which are basic data elements in the Domain Name System.
Packet Tracer currently supports four different types of resource records: Address (A), Canonical
Name (CNAME), SOA (Start of Authority), and NS (Name Server). An Address (A) record is the
most common type of resource record where its core functionality is to map a hostname to an IPv4
address. A CNAME record is used to specify that a domain name is an alias of another, canonical
domain name. An SOA record is used to specify authoritative information about a DNS zone,
including the primary name server, the email of the domain administrator, and several timers
relating to refreshing the zone. An NS record is used to delegate a DNS zone to use a given
authoritative name server.
To add a resource record, enter the Name of the resource record, select a Type of resource record,
and then enter all required fields pertaining to the resource record such as Address for A Record,
Host Name for CNAME, or Server Name for NS Record and then click Add. To modify an
existing resource record, select the resource record from the list, edit the fields you want to change,
and then click Save when you are done. If you want to remove a resource record, just select the
resource record from the list and click Remove.
49
11.5. Configuring HTTP server
In the HTTP service configuration, you can edit the included HTML pages such as index.html,
helloworld.html, and image.html using the following supported HTML tags:
Additionally, you can also add or remove HTML files from the server. When a PC accesses an
HTML page on the server using the Web Browser, the HTML page will load in the Web
Browser.
After we configured it to access the http from web browser, write the host name in URL like this
http:// www.network.com at the client web browser.
Exercise:
50
1. Assume that you are asked to design a network for two labs by using Cisco packet tracer
and to simulate it. The requirements for the network is:-
A. 2 switch
B. One server
C. 30 clients
D. in each lab having 15 clients and one server is placed in one of the lab
E. IP address of the server is 192.168.1.30
F. Subnet mask =255..255.255.0
G. Default get way = 192.168.1.30
2. Based on the above information try to configure the
A. DHCP server
B. HTTP server
C. DNS server named as www.practice.com
51
12. Session 12: Installing Server 2008 Using Virtualization
52
12.3. Installing DNS server
To install any server first click Roles then click Add Rolls
53
12.5. Installing DHCP Server
The Dynamic Host Configuration Protocol (DHCP) allows a system to connect to a network in
order to be assigned the necessary addressing information for communication on that network.
To install DHCP server the same procedure as DNS server installation
54
How DHCP server assigns an automatic IP address to Clients?
55
12.7. Installing FTP Server
The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer
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 clear 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 protects 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.
56
12.8. Configuring and Accessing ftp server from client computer
To configure ftp server install file service rolls and web server iis
Write ftp://IP address of the computer or host name in web browser url like this.
ftp://10.1.208.98 you get the following file.
Exercise:
1. Crete authenticated ftp server (Authenticated means private file secure and then you will be
asked to enter user name and password to access the ftp server).
57
13. Session 13: Active Directory Installation and configuration
58
13.1. How to install active directory user and computer
1. First type Server manager on search option and then click on newly found Server
manager
2. Click on Roles menu and then click on Add roles button
59
60
61
62
63
How to create user account
64
65
13.2. Connecting client to server using Domain Control
66
67
68
69
14. Conclusion
This laboratory manual provides students with hands on training regarding network cabling,
network design, troubleshooting, modeling and evaluation of computer networks. In this course
students are going to experiment in a real test bed networking environment, and learn about
network design and troubleshooting topics and tools such as network address, address resolution
protocol, basic troubleshooting tools and commands such as: ping, ipconfig, traceroute, and
nslookup etc. Students will also be introduced to the network modeling and simulation and will
have the opportunity to build some simple networking models using the tool and perform
simulation that will help them evaluate their design approaches and expected network
performance. Finally this manual can be rebuilt by instructors who are delivering this course
based on newly emerging operating systems and simulating tools.
70
15. Reference:
1. Data Communication and Networking, Behrouz A.Forouzan, Fourth Edition.
2. www.cisco.com
3. www.youtube.com
4. Data and Computer Communications, William Stallings, Fifth Edition.
71