Ict Notes
Ict Notes
1 Networks
4.1.1 Common network devices and terms
We will begin this section by defining four important terms you will often come
across in this chapter:
» network interface card (NIC)
» media access control (MAC) address » internet protocol (IP) address
» data packet.
Network interface card (NIC)
A network interface card (NIC) is needed to allow a device to connect to a network.
An NIC turns binary data into an electrical signal that allows access to a network.
The NIC is usually integrated into the motherboard on most modern computers.
Each NIC is given a unique hardwired (or hard-coded) media access control (MAC)
address at the manufacturing stage. When installed in a device, this uniquely
identifies that device.
Wireless network interface cards (WNICs) are the same as NICs in that they are used
to connect devices to the internet or other networks. However, they use wireless
connectivity, utilising an antenna to communicate with networks via microwaves.
They would normally plug into the USB port or be part of an internal integrated
circuit.
76
4.1 Networks
Switches
Switches are ‘intelligent’ versions of hubs. As with hubs, they connect a number of
devices together to form a LAN. However, unlike a hub, a switch stores the MAC
addresses of all devices on the network. Each port on the switch connected to a
device will have
a matching MAC address (called a look-up table).
Using the look-up table, a switch matches the MAC address of an incoming
data packet arriving at one of its ports, and directs it to the correct device.
None of the other devices will see this data packet. Thus, if a data packet arrives
at port 2, and the MAC address in the data packet is a4-00-22-b2-24-11, then the
switch will connect the data packet to port 4 only.
data packet sent to one of the switch ports
Consequently, switches are more secure than hubs (because only the intended device
is sent the data) and do not waste bandwidth (because network traffic is reduced).
In conclusion, hubs and switches are used to exchange data within their own local
area networks. They are unable to exchange data with outside networks (such as the
internet). To exchange data outside their own LAN, a device needs to be able to
read an IP address. Therefore, we need another device to allow communication with
external networks.
In summary:
» both a hub and a switch are used to connect devices in a LAN
» both hubs and switches use data packets
» hubs send data packets to every device on the network; whereas switches
send data packets to a specific device only
79
4.1.2 Routers
Routers are used to route data packets from one network to another network, based
on IP addresses. It can do this because each router has its own IP address. Routers
are used to join a LAN to the internet.
Figure 4.6 Use of a bridge to connect two LANs together
Unlike routers, bridges cannot communicate with other external networks, such
computer
computer
computer
server
LAN
HUB/SWITCH
ROUTER
When a data packet is received at one of its ports, the router inspects the IP
address and determines whether the data packet is meant for its own network or for
another, external network. If the data packet is meant for its own network, then
the data packet is routed to the local switch or hub. Otherwise, the data packet is
transmitted to a different router (and therefore to an external network).
Routers know where to send data packets by consulting a routing table (stored on
the router’s RAM). The routing table will contain information about the
▲ Figure 4.7 Router
internet
▲ Figure 4.8 Router used to connect a LAN to the internet
80