Cables, light, and radio
A message between two devices crosses one of three things. A copper cable carries electricity. A thin glass fiber carries light. Radio waves cross the air, and Wi-Fi is radio.
How fast, and how far
Speed is counted in Short for binary digit: a single 0 or 1. It is the smallest piece of data, and everything a link carries is made of bits. a second. Network speeds are large, so they are usually counted in gigabits. One gigabit a second, written 1 Gbit/s, is a billion bits a second. People shorten it to 1G. Switches show 10G, 25G, and 100G the same way.
A signal gets weaker the farther it goes, and electricity in copper also picks up noise. Past some distance, the device at the other end can no longer read the signal. So every kind of link has a limit.
The copper cable
Most people call it a "LAN cable". Its real name is A cable of thin copper wires twisted together in pairs. A LAN cable has four pairs and reaches up to 100 meters. UTP, unshielded twisted pair, is the common kind with no metal shield. cable. It has four pairs of thin copper wires inside one jacket, and each pair is twisted around itself. The twists keep the pairs from disturbing each other. The common kind has no metal shield around the pairs, so it is also called UTP, for unshielded twisted pair.
At each end is a clear plastic plug with eight metal contacts and a small clip, called The plastic plug with eight contacts at each end of a LAN cable, and the square socket it clicks into. Its proper name is 8P8C, but everyone says RJ45.. The socket on a laptop, on a home router, or on an office switch is an RJ45 socket.
LAN cables are sold in categories, written "Cat" and a number. A higher category is made more carefully and carries more:
| Category | 1 Gbit/s | 10 Gbit/s |
|---|---|---|
| Cat5e | up to 100 m | not promised |
| Cat6 | up to 100 m | up to 55 m |
| Cat6a | up to 100 m | up to 100 m |
No LAN cable reaches more than 100 meters, from the switch to the device. If a desk is farther than that from the switch, the building needs another switch closer to the desk.
Fiber: light in glass
A A cable with a thread of glass inside, thinner than a hair, that carries pulses of light. It reaches much farther than copper, and electrical noise does not disturb it. cable carries light instead of electricity. A laser or a small light at one end blinks very fast, and the other end reads the blinks as bits. Light in glass loses very little strength and picks up no electrical noise. So fiber reaches much farther than copper, from hundreds of meters to many kilometers. With the right equipment, it crosses countries and oceans. The thin cable from your internet provider into your home is often a fiber.
There are two kinds:
- Multimode fiber has a wider core, and light bounces along it on many paths. It is for short runs inside a room or a building, up to a few hundred meters.
- Single-mode fiber has a very narrow core, so light travels along one path and each pulse keeps its shape. It is for long runs, such as between two buildings or two cities.
A fiber link usually uses two fibers, one for each direction. Their plug is a small square plug called A small plug for fiber, usually two side by side, one for each direction. It is the usual fiber plug on switches and optics..
Optic modules and cages
A switch cannot take a fiber directly. It needs a part that turns its electrical signal into light, and back. That part is a small metal module called an A small module that slides into a cage on a switch or router. It turns the electrical signal into light on a fiber, and back. Also called a transceiver., or a transceiver, because it both sends and receives. The optic slides into an empty slot on the switch, called a An empty slot on a switch or router that takes an optic or a DAC. Its shape decides which modules fit.. The fiber's LC plug goes into the front of the optic.
Cages and modules come in families. All of them are named after Small form-factor pluggable: the family of small cages and modules for 1 to 25 Gbit/s. SFP carries 1 Gbit/s, SFP+ 10 Gbit/s, and SFP28 25 Gbit/s, and all three are the same size., short for small form-factor pluggable:
| Name | Speed | Size |
|---|---|---|
| SFP | 1 Gbit/s | small |
| SFP+ | 10 Gbit/s | the same size as SFP |
| SFP28 | 25 Gbit/s | the same size as SFP |
| QSFP+ | 40 Gbit/s | wider: Q is for quad, four |
| QSFP28 | 100 Gbit/s | wider, the same size as QSFP+ |
Older equipment may have XFP, an earlier and larger module for 10 Gbit/s.
Three rules decide whether a link works:
- The module must fit the cage. Most cages also take the slower module of their own size, which then runs at its own speed.
- Both ends must match. An optic works only with the same kind of optic at the far end, on the right kind of fiber.
- The run must be within the optic's reach. Each optic is made for a distance, such as 300 meters on multimode or 10 kilometers on single-mode.
For a link of a few meters, to the next device in the same A tall metal frame that holds switches and servers stacked on top of each other., there is a simpler part: a Direct attach cable: a short copper cable with a module built onto each end. It plugs into two cages in place of two optics and a fiber, for a link inside one rack., short for direct attach cable. It is a copper cable with a module built onto each end, so it goes straight into two cages. It reaches about 5 to 7 meters, depending on its speed.
Some switches have only RJ45 ports, like the small switch in a home router. Some have only cages, like many in a data center. An office switch often has both. It has RJ45 ports for the desks, and a few cages for a fast link to the next switch.
Try each one in a port it fits, and in one it does not.
How far each one goes
3 m at 1 Gbit/s: 5 of 8 work.
- WorksCat5e LAN cable. Reaches 100 m at 1 Gbit/s, enough for 3 m.
- WorksCat6 LAN cable. Reaches 100 m at 1 Gbit/s, enough for 3 m.
- WorksCat6a LAN cable. Reaches 100 m at 1 Gbit/s, enough for 3 m.
- Not at this speedDAC. At 1 Gbit/s, the ports are usually RJ45, so a LAN cable does this job.
- WorksMultimode fiber. Reaches 550 m at 1 Gbit/s, enough for 3 m.
- WorksSingle-mode, 10 km optics. Reaches 10 km at 1 Gbit/s, enough for 3 m.
- CarefulSingle-mode, 40 km optics. It reaches. But a 40 km optic sends light so strong that, over a short run, it can overload the far end. A small part called an attenuator can dim it. A 10 km optic is simpler here.
- CarefulWi-Fi. Newer Wi-Fi is rated above 1 Gbit/s, but that is the best case. Every device on the access point shares it, taking turns. Expect less, and less again through a wall.
The multimode reaches are for newer, better multimode fiber. Older fiber reaches less. The 40 km optics at 1 Gbit/s are made by many makers, but are not part of the Ethernet standard.
The pattern to remember:
- Copper for the last 100 meters to a desk.
- Multimode fiber inside a building.
- Single-mode fiber for anything farther.
- A DAC inside a rack.
Wired and wireless standards
All the cables, plugs, and optics in this lesson follow one standard, called The standard for wired networks: the cables and plugs, the signals on them, the speeds, and how each message is laid out. Almost every wired network uses it.. It says what each kind of cable must carry, what the signals look like, and how a message is laid out. So a switch from one maker and a laptop from another understand each other. That is why the RJ45 socket on a laptop is often called its Ethernet port.
The standard for networks over radio. It carries the same messages as Ethernet, so an access point can pass them between radio and cable. is a different standard, made to work with Ethernet. It carries the same messages over radio. An access point passes them between the radio and its cable to the switch. Radio is different from a cable in three ways:- It is shared. Every device near an access point uses the same radio channel. Only one device can send at a time, so they take turns. On a cable, each device has its own way to the switch.
- It is slower. The speed printed on the box is the best case. Walls, distance, and other networks nearby bring it down.
- It is short. One access point reaches about 20 meters indoors, and less through walls. So offices put several access points on the ceiling, each with its own cable.
The largest piece a link carries
A device cuts a long message into small pieces, called packets, as the next lesson shows. Each link has a limit on how big one piece can be, called its Maximum transmission unit: the largest single piece of data a link carries, in bytes. On ordinary Ethernet it is 1,500 bytes., short for maximum transmission unit.
On ordinary Ethernet, the MTU is 1,500 Eight bits together. One byte holds a number from 0 to 255, or one letter of plain English text.. One letter of plain text takes one byte, so that is about 1,500 letters.
Inside data centers, the links between a network's own switches and servers often carry larger pieces, of about 9,000 bytes. These are called jumbo frames. Fewer, larger pieces mean less work for the same message. Both ends of a link must agree on the size. Links to the internet stay at 1,500.