Network devices and keeping them running

8 min 4 sections 5 practice questions 5 sources citedISC2 objective 4.2

A network is built from a few kinds of box: repeaters, hubs, bridges, switches, routers and gateways. They differ in how much of each message they read before passing it on. Each one has to be set up safely, powered without a break and replaced before its maker stops fixing it. No background is assumed. A security professional needs this to know which device can enforce a rule and when ageing equipment becomes a risk.

By the end of this unit you will be able to:

  • Tell apart a repeater, hub, bridge, switch, router and gateway by the layer each works at
  • Explain collision domains and broadcast domains, and name the device that divides each
  • List the steps that harden a network device
  • Explain what dual power supplies, a UPS and a generator each do
  • Tell apart warranty, support and end of support, and choose what to do when support ends

The switch in the linen cupboard

An illustrative example

A small hotel's reception desk, card machines, door locks and guest Wi-Fi all pass through one network switch kept in a linen cupboard. It has run for nine years without attention.

One evening a short power cut restarts it. The switch takes eleven minutes to come back, and for that time no guest can check in or open a door. The night manager then finds that nobody knows its password. A label on the front still shows the one the maker set.

What three separate weaknesses are there in how this one device is run?

What each device reads before it passes data on

Devices are named by the highest layer of the OSI model they read. is the signal on the cable. is delivery inside one local network by hardware address, also called the MAC address. is delivery between networks by IP address. is the application's own data.

Repeater
Receives a weak signal on one port and sends it out of the other at full strength. It reads nothing. It exists to extend distance. Layer 1.
Hub
A repeater with many ports. Whatever arrives on one port is sent out of all the others, so every connected device sees every message. Layer 1, and obsolete.
Bridge
Joins two parts of a local network. It reads the destination hardware address and passes a frame across only when the destination is on the other side. Layer 2.
Switch
A bridge with many ports. It learns which hardware address is on which port and sends each frame out of that one port only. Layer 2. A layer 3 switch can also route.
Router
Joins separate networks. It reads the destination IP address and chooses the next hop from its routing table. Layer 3.
Gateway
Joins networks that use different protocols and translates between them. It can work as high as layer 7. An email gateway is one example.
The front of a network switch with a row of numbered sockets, each holding the plug of one network cable. Blue, grey, red, yellow and green cables hang down in a tangle, and small green lights glow between them.

A switch is a box of numbered ports, each taking the cable of one device, and it sends each frame out of the one port it is meant for.

  1. 1Switch. Learns which hardware address is on which port.
  2. 2Port. One socket for one device's cable.
  3. 3Network cable. Carries the signal between the switch and one device.

Photograph: EthernetSwitch by Raysonho @ Open Grid Scheduler / Grid Engine, CC0 1.0. Cropped and resized.

Each device reads up to one layer of a message

Each device reads up to one layer of a messageFour OSI layers stacked, with a gap for layers 4 to 6. Beside them, four bars rise from layer 1: repeater and hub to layer 1, switch and bridge to layer 2, router to layer 3 and gateway to layer 7.Layer 7: applicationthe application's dataLayer 3: networkdelivery by IP addressLayer 2: data linkby MAC addressLayer 1: physicalthe signal on the cableRepeaterand hubSwitch,bridgewirelessaccesspoints tooRouternext hopby IPaddressGatewaytranslatesbetweenprotocolsEach device reads up to one layer of a messageFour OSI layers stacked, with a gap for layers 4 to 6. Beside them, four bars rise from layer 1: repeater and hub to layer 1, switch and bridge to layer 2, router to layer 3 and gateway to layer 7.Layer 7: applicationthe application's dataLayer 3: networkdelivery by IP addressLayer 2: data linkby MAC addressLayer 1: physicalthe signal on the cableRepeaterand hubSwitch,bridgewirelessaccesspoints tooRouternext hopby IPaddressGatewaytranslatesbetweenprotocols
Read this figure as text

Devices are named by the highest layer of the OSI model they read. The four layers that matter here are stacked from layer 1 at the bottom to layer 7 at the top, and each device is a bar rising from layer 1 to the highest layer it reads.

  1. Layer 1, physical, is the signal on the cable. A repeater receives a weak signal and sends it on at full strength, and a hub is a repeater with many ports that sends whatever arrives out of all the others. They read nothing beyond the signal.
  2. Layer 2, data link, is delivery inside one local network by hardware address, also called the MAC address. A bridge, a switch and a wireless access point read this far: a switch sends each frame out of the one port where its hardware address lives.
  3. Layer 3, network, is delivery between networks by IP address. A router reads this far and chooses the next hop from its routing table.
  4. Layers 4 to 6 are left out of the drawing.
  5. Layer 7, application, is the application's own data. A gateway joins networks that use different protocols and translates between them, and can work as high as layer 7. An email gateway is one example.

A wireless access point is a layer 2 device as well: it bridges radio devices onto the wired network. The phrase default gateway on a computer is a historical name for its nearest router.

Three workers in a post room

The first shouts every parcel's arrival to the whole office and lets people come for their own: a hub. The second reads the desk number and walks the parcel to that desk: a switch. The third reads the town on the label and puts the parcel on the right van: a router.

Collision domains and broadcast domains

A collision happens when two devices that share one wire send at the same moment and the two signals destroy each other. A collision domain is a set of devices whose signals can collide. A hub puts all its ports in one collision domain. A switch gives every port its own, which is one reason switches replaced hubs.

A broadcast is a frame addressed to every device on the local network. A broadcast domain is the set of devices that receive one another's broadcasts. A switch passes broadcasts to all its ports. A router does not pass them on, so each side of a router is a separate broadcast domain.

Devices by layer, and what each one divides
DeviceLayerForwards usingCollision domainsBroadcast domains
Repeater1Nothing: repeats the signalOneOne
Hub1Nothing: repeats to every portOneOne
Bridge2Hardware (MAC) addressOne on each sideOne
Switch2Hardware (MAC) addressOne for each portOne
Router3IP addressOne for each portOne for each port
GatewayUp to 7Application dataSeparates themSeparates them

The security meaning follows from the table. On a hub, any device can read all the traffic. A switch sends a frame only where it is addressed. A router is the first device that sits between networks, so it is the first place traffic can be filtered by address.

Hubs repeat. Switches forward by hardware address and split collision domains. Routers forward by IP address and split broadcast domains.

Hardening a network device

A switch or router is itself a computer, with an operating system, user accounts and services. Whoever controls it controls the traffic that passes through it. As delivered, it is set up for convenience. Hardening means removing what the device does not need and securing what remains.

  • Change every default password, and remove accounts that are not needed.
  • Switch off services that are not used, and disable network ports that nothing is plugged into.
  • Replace management protocols that send passwords unencrypted. Use Secure Shell (SSH) in place of Telnet and HTTPS in place of HTTP. Use version 3 of the Simple Network Management Protocol (SNMP) in place of versions 1 and 2c.
  • Allow management only from a separate management network, known as out-of-band management.
  • Sign administrators in through a central server with their own named accounts and a second proof of identity.
  • Keep the firmware, which is the software built into the device, up to date with the maker's .
  • Back up the configuration, store the copy offline and protect it, because it holds passwords and the layout of the network.
  • Send the device's logs to a central server, and lock the room or cabinet it sits in.

Keeping it running: power, warranty and support

A device without power is a network outage, so power is supplied more than one way.

Redundant power supplies
Two power units in one device, each fed from a separate circuit. If one unit or circuit fails, the other carries the load.
Uninterruptible power supply (UPS)
Batteries that take over the instant mains power fails. They last minutes: long enough to start a generator or to shut systems down in good order.
Generator
An engine that makes electricity from fuel for hours or days. It takes time to start, so it cannot cover the first seconds of a power cut.
Power over Ethernet (PoE)
The switch sends electrical power down the network cable to telephones, cameras and wireless access points. If the switch loses power, so do they.

Common misconception

“A site with a generator does not need a UPS.”

A generator takes time to start. The UPS carries the load across that gap. The two do different jobs, and a site that must not stop has both.

Equipment also has to be mended and, in the end, replaced. A warranty is the maker's promise to repair or replace faulty hardware for a stated period. A support contract buys software updates, security patches, expert help and replacement parts. Its service level agreement (SLA) states the measurable promises, such as a failed part replaced within four hours. Spares kept on site cover devices whose failure cannot wait for a delivery.

Two averages guide these choices. Mean time between failures (MTBF) is how long a device runs, on average, between one failure and the next. Mean time to repair (MTTR) is how long it takes, on average, to put a failure right.

Makers announce an end of support date for every product. After it, no security fixes are issued, so a flaw found the next day stays open for good. The device is replaced before that date. Where that is impossible, it is isolated and support is bought elsewhere, with management accepting the .

Three promises that are easy to confuse
TermWhat it coversWhat it does not cover
WarrantyRepair or replacement of faulty hardwareSecurity fixes for the software
Support contractPatches, help and parts while the product is supportedAnything after the date
Service level agreementHow fast the supplier must respond or replaceWhether a fix exists at all

A question, worked through

An insurer's core router carries all traffic between its offices. The hardware warranty has two years left. The maker has announced that software support for the model ends in four months. The router works well and the budget is tight, so the operations manager proposes keeping it until the warranty runs out. The security manager is asked for advice.

What is the BEST advice?

  1. Keep it until the warranty ends, since faults are still covered
  2. Plan its replacement before the date on which support ends
  3. Keep it and buy a second unit to hold on site as a spare
  4. Keep it and add a second power supply on a separate circuit
Decide on your answer, then open the reasoning
  1. The question asks what to do about a device that is close to its end of support. The deciding fact is that security fixes stop in four months.
  2. Rule out d: a second power supply reduces the risk of a power failure. It does nothing about a flaw that will never be patched.
  3. Rule out c: a spare of the same model has the same software, and so the same flaws with no fix.
  4. Between a and b: option a treats the warranty as if it were support. A warranty repairs broken hardware. It does not supply security patches.
  5. Option b deals with the real risk before it arrives. If replacement in time proves impossible, the fallback is to isolate the router and have management accept the risk.

Answer: B. Plan its replacement before the date on which support ends

Choosing between good answers

A question asks which device separates broadcast domains
choose the router. If it asks about collision domains, choose the switch.
Equipment is under warranty and past its end of support
treat it as unsupported. Replace it, or isolate it and have management accept the risk. The warranty does not supply security fixes.
An answer offers either a UPS or a generator for a site that must not stop
look for the option with both. The UPS covers the first minutes and the generator covers the hours.
A device is managed with Telnet, HTTP or SNMP version 1 or 2c
choose the encrypted replacement: SSH, HTTPS or SNMP version 3.

Try it

Send a request across one switch and watch it deliver the frame by hardware address, with no router involved.

Loading the preview.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

Match each network device to how it handles the data it passes on.

Choose the match for each entry. Every match has to be right.

What to remember

  • Repeaters and hubs work at layer 1, bridges and switches at layer 2, routers at layer 3 and gateways up to layer 7.
  • A switch gives each port its own collision domain. A router separates broadcast domains.
  • Hardening removes defaults, unused services and unencrypted management, and keeps firmware patched.
  • A UPS bridges the first minutes of a power cut. A generator supplies power for hours or days.
  • A warranty covers faulty hardware. Support supplies patches. After end of support there are no more fixes.

Say it from memory

  1. What keeps network infrastructure running, and how do warranty, support and end of support differ?

    Power is made redundant: dual power supplies on separate circuits, a UPS for the first minutes and a generator for long outages. A warranty repairs or replaces faulty hardware. A support contract supplies patches, help and parts under an SLA. After the end of support date no fixes are issued, so the device is replaced or isolated before then.

    Read this part again

  2. At which layer does each work, and what does each read: hub, bridge or switch, router and gateway?

    A hub works at layer 1, reads nothing and repeats to every port. A bridge or switch works at layer 2 and reads the destination hardware address. A router works at layer 3 and reads the destination IP address. A gateway translates between protocols and can work as high as layer 7.

    Read this part again

  3. Which devices split collision domains and which split broadcast domains?

    A hub puts all its ports in one collision domain. A switch gives every port its own collision domain but passes broadcasts to all ports, so it keeps one broadcast domain. A router does not pass broadcasts on, so each of its ports is a separate collision domain and a separate broadcast domain.

    Read this part again

  4. Which management protocols replace Telnet, HTTP and SNMP versions 1 and 2c when a network device is hardened?

    Secure Shell (SSH) replaces Telnet, HTTPS replaces HTTP, and SNMP version 3 replaces versions 1 and 2c. Management is allowed only from a separate management network, known as out-of-band management.

    Read this part again

Sources