Salta al contenuto
Note per Studenti Network Types and Topologies Report

Network Types and Topologies

In questa pagina 4

Network types by extent

Acronym Name Features Examples
BAN Body Area Network confined to the human body; low rate, low-energy devices; wireless channels wearable medical sensors
WLAN Wireless Local Area Network links two or more devices without wires; home, office, small building Wi-Fi
LAN Local Area Network limited extent (a couple of buildings, within about 100 m); usually homogeneous and fast Ethernet, Token Ring (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 Metropolitan Area Network regional scale, i.e. a city
WAN Wide Area Network usually heterogeneous and sometimes slow; spans large distances (continents) the Internet
WSN Wireless Sensor Network small battery-powered nodes; small to large areas (a city); from tens to thousands of nodes environmental sensor networks

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 400400 and 800800 THz (visible light), e.g. self-driving cars or indoor links. In wavelength, λ=c/f\lambda=c/f: 3⋅108/(4⋅1014)=7503\cdot10^{8}/(4\cdot10^{14})=750 nm at 400400 THz and 3⋅108/(8⋅1014)=3753\cdot10^{8}/(8\cdot10^{14})=375 nm at 800800 THz. With ordinary fluorescent lamps about 1010 kbit/s, with LEDs about 500500 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.

Star

A central node is the master, the others are slaves attached to it.

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 nn nodes, n(n−1)2\frac{n(n-1)}{2} physical links are needed (full duplex).

Why: each node has n−1n-1 links, but every link is shared by two nodes, hence the division by 22. With graphs (handshake lemma): the sum of the degrees is n(n−1)n(n-1) and equals twice the number of edges mm, so m=n(n−1)/2m=n(n-1)/2; equivalently it is the number of unordered pairs of nodes, (n2)\binom n2.

Example. n=5n=5: 5⋅4/2=105\cdot4/2=10 links; n=10n=10: 4545; n=100n=100: 49504950. The count grows with the square of nn: a complete mesh is robust but expensive and is used only for few nodes. For comparison, with nn nodes a bus uses one shared medium, a star n−1n-1 links, a ring nn, a mesh n(n−1)/2n(n-1)/2. For n=5n=5: 11, 44, 55, 1010.

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 →\to star; WAN →\to 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

Teoria collegata