Network Types and Topologies
In questa pagina 4
Network types by extent
Transmission medium
- Air (radio channel, wireless): radio waves, microwaves, satellites, infrared. Suffers noise, interference and collisions.
- Optical fibre: clean signals, low power and high speed (Gbit/s).
- Copper cable: cheaper interfaces but limited speed; bidirectional.
- VLC (Visible Light Communication): frequencies between and THz (visible light), e.g. self-driving cars or indoor links. In wavelength, : nm at THz and nm at THz. With ordinary fluorescent lamps about kbit/s, with LEDs about Mbit/s.
Topologies
The topology is the way nodes are connected. The physical topology (how cables are laid) differs from the logical one (how data really flow).
Bus
All nodes attach to a common medium.
- Signals can collide: someone must decide who uses the bus (MAC protocols, Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →).
- Naturally supports broadcast: one transmits, everybody listens.
- The common medium is the bottleneck (it must be shared).
- The failure of a node does not stop the network; the failure of the medium does.
- Example: old Ethernet 10BASE2 and 10BASE5.
Star
A central node is the master, the others are slaves attached to it.
- Slaves communicate through the master; arbitration is easy (the master decides).
- It does not scale: the master is the bottleneck. Fine for small networks or when predictable performance is needed.
- Failure of the master stops the whole network.
- Examples: modern Ethernet (hub or switch in the centre, Network Devices - Hub, Switch and RouterDevices that interconnect networks differ by the highest layer of the stack they read. Hub (layer 1): a repeater, regenerates the signal and sends it out of all ports, all stations share the capacity. Bridge and switch (layer 2): read the MAC address and forward only to the right port, learning the table (FDB) from source addresses. Router (layer 3): reads the IP address and joins independent networks (internetwork). Switches and bridges isolate traffic and are plug and play; the router gives optimal routing but must be configured.Network Devices - Hub, Switch and Router →), DSL.
Ring
Nodes sit on a ring; each receives from its predecessor and sends to its successor; repeaters are present on every link. Access must be arbitrated: messages are forwarded by every node and access is regulated by tokens (Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →). The token avoids collisions and prevents a node from taking all the resources, because it expires. Used in industrial and optical networks, later abandoned; the failure of one terminal stops the network.
Mesh
Nodes follow a connectivity graph: every node has a dedicated point-to-point link to every other node.
Formula (links in a complete mesh). With nodes, physical links are needed (full duplex).
Why: each node has links, but every link is shared by two nodes, hence the division by . With graphs (handshake lemma): the sum of the degrees is and equals twice the number of edges , so ; equivalently it is the number of unordered pairs of nodes, .
Example. : links; : ; : . The count grows with the square of : a complete mesh is robust but expensive and is used only for few nodes. For comparison, with nodes a bus uses one shared medium, a star links, a ring , a mesh . For : , , , .
Grafico interattivo: Number of links versus number of nodes n: the star grows linearly (n - 1), the complete mesh with the square (n(n - 1)/2); for n = 5 they are 4 and 10, for n = 10 they are 9 and 45
Advantages of a mesh: no collisions on a shared medium, little forwarding trouble, robust and private/secure network.
Choosing a topology
It depends on:
- type of network (LAN star; WAN mesh or tree);
- reliability (mesh against bus);
- scalability;
- protocol used (shared medium or not);
- physical medium (copper, fibre, ...).
For the devices that build these links see Network Devices - Hub, Switch and RouterDevices that interconnect networks differ by the highest layer of the stack they read. Hub (layer 1): a repeater, regenerates the signal and sends it out of all ports, all stations share the capacity. Bridge and switch (layer 2): read the MAC address and forward only to the right port, learning the table (FDB) from source addresses. Router (layer 3): reads the IP address and joins independent networks (internetwork). Switches and bridges isolate traffic and are plug and play; the router gives optimal routing but must be configured.Network Devices - Hub, Switch and Router →; for how packets cross the nodes, Circuit Switching and Packet SwitchingA switching node can connect input to output in three ways. Circuit switching sets up a dedicated physical connection first (telephone network), delivery time T = 3N t_p + N t_s + M/R. Datagram packet switching splits the message into K packets with a header, each routed independently with store-and-forward, T = N t_p + (N+K-1)(M/K+H)/R, with optimal K = sqrt((N-1)M/H). Virtual circuit has three phases (setup, data, teardown): a dedicated logical connection without dedicated resources, with a local identifier that changes at each hop.Circuit Switching and Packet Switching →.
Versione ripasso
- By extent. BAN (inside the human body, wearable sensors); WLAN (Wi-Fi at home or office); LAN (one or two buildings, within about 100 m, homogeneous and fast: LAN - Ethernet and Wi-FiA LAN covers a limited area and is defined by the IEEE 802.x family (802.3 Ethernet, 802.11 Wi-Fi), which splits the link layer into LLC and MAC. Ethernet is connectionless, with no flow control and no ACK; it uses 1-persistent CSMA/CD; the frame is 64 to 1518 bytes (6-byte addresses, type/length, data 46-1500, 4-byte CRC) and the 64 B minimum comes from t_F >= 2 tau_p. From 10 Mbit/s on coax up to 10 Gbit/s on fibre, with full-duplex switches removing collisions. Wi-Fi (802.11) uses CSMA/CA, has BSS (with access point) and ad hoc modes, EBSS with a distribution system, adapts its bitrate to the SNR, and has hidden and exposed terminal problems, partly solved by RTS/CTS and NAV.LAN - Ethernet and Wi-Fi →); MAN (a city); WAN (continents, heterogeneous, possibly slow: the Internet); WSN (battery nodes, tens to thousands).
- Media. Air (noise, collisions), fibre (Gbit/s), copper (cheap, slow), VLC (LED about 500 Mbit/s).
- Topology. How nodes are connected; physical (cables) is not always the logical one (how data circulate).
- Bus. Common medium: collisions (needs a MAC protocol), natural broadcast; failure of the medium stops the network. Example: 10BASE2.
- Star. Slaves go through the master, which arbitrates easily but is the bottleneck: does not scale, its failure stops everything. Examples: Ethernet with hub or switch (Network Devices - Hub, Switch and RouterDevices that interconnect networks differ by the highest layer of the stack they read. Hub (layer 1): a repeater, regenerates the signal and sends it out of all ports, all stations share the capacity. Bridge and switch (layer 2): read the MAC address and forward only to the right port, learning the table (FDB) from source addresses. Router (layer 3): reads the IP address and joins independent networks (internetwork). Switches and bridges isolate traffic and are plug and play; the router gives optimal routing but must be configured.Network Devices - Hub, Switch and Router →), DSL.
- Ring. Each node receives from its predecessor and forwards to its successor; access is regulated by a token with an expiry. Failure of a node stops the network.
- Mesh. A dedicated point-to-point link between every pair. With nodes, links (full duplex): each node has links, each shared by two nodes. Examples: ; ; . Robust and collision-free but expensive.
- Choice. LAN as a star, WAN as mesh or tree; reliability, scalability, protocol and medium matter.
- Typical mistakes: counting links instead of ; thinking a star survives the failure of its centre; confusing physical and logical topology.