Introduction to Computer Networks

Let’s take a look at a basic network setup. In our lab network, we are going to have a router, switch, three clients and a server. The clients will be running Windows 10, the Server will be running Windows Server 2012 OS.

Our network is a small LAN with a Class C private IPv4 address range, so we’ll use IP addresses starting with 192. We’ll use a subnet mask of, meaning the first three blocks of numbers (192.168.0) will be the network (subnet) and the last block will identify the device (client, server, router etc). This will give us a maximum of 254 devices, which is the maximum number allowed in each block. Remember you can’t allocate 0 or 255 to a device – these two are reserved.

Lets take a look at an example



As a simple example, we have installed a simple web server and its bound to port 80, as we can see from the settings on the screen. This means that a client using a web browser such as internet explorer can connect to the server on port 80 to access the test website.


Software Installed is Windows 10 with Internet Explorer web browser.

On one of our clients on the network, we can open up internet explorer and type in the server’s IP address.

The web browser will by default connect via port 80 since this is the port http uses to connect.

The web server software receives the request, generates the webpage and sends the HTML code back to the browser. The browser then reads the HTML code and renders the page accordingly on the screen to the client.


DNS Servers

Now typing and remembering IP addresses is a pain. It would be far nicer to be able to type in a name such as This is known as a domain name. We can introduce another server onto the network called a DNS server (domain name resolution server). This server contains a list of IP addresses and the corresponding domain name. So in our DNS records we could have

So now all I have to do is enter into the browser and it will query the DNS server with the domain name, and the DNS server will return the IP address. The network will then use the IP address to route the request to the server.

DHCP Servers

Now say we had a few hundred devices and machines on our network. If we did this manually we would have to go around each machine and manually input and IP address. We can introduce another server onto our network called a DHCP (dynamic host configuration protocol).

When a new device is plugged into the network and is configured to use DHCP, it will broadcast a DHCP request to the whole subnet ( The DHCP server will pick an IP address from its pool of addresses in a range, called a lease, and send the packet back to the MAC or hardware address where the request came from. The DHCP client running on the device will then allocate the IP address and any DNS or router settings to the client’s ethernet or wifi card network settings.

As you can see below, the DHCP server has allocated an IP address to the device.has added the IP address of the gateway which is the router the IP address of the machine running the DNS server in this case


The router connects different networks to each other on the internet in order for data to flow between them. The device that connects your home to the internet is an example of a router, it routes data from the devices you connect to your WiFi onto the internet.

Lets take a look at what happens when a device connects…


If we were to increase the size of our example network to many hundreds or even thousands of machines, we would divide the network up into smaller networks called subnets. The subnets are set up on the router.  Here’s a simplified example of our school network.


Each campus has its own subnet and is configured with an interface on the router.  These interfaces are assigned an IP address that is used as the gateway address for each subnet. The router will route data between the subnets and out onto the Internet.

Science Campus Interface:
A workstation or device on this subnet could be

Bio-chemistry Campus Interface:
A workstation or device on this subnet could be

Computing Campus Interface:
A workstation or device on this subnet could be


Return to Computer Networks Resources