Networking reference

148 commands, numbers and terms from the 17 lessons, one line each. The right-hand column opens the page that teaches it.

1What a network is

Host / client / serverAny device with an address / the one that asks / the one that answersHosts and addresses
Switch, router, access point, firewallConnects one network / connects networks / adds Wi-Fi / filters trafficNetwork devices
Hub, switch, routerLayer 1 repeats bits, layer 2 forwards frames, layer 3 routes packetsNetwork devices
Collision / broadcast domainSplit by every switch port / by every router portNetwork devices
Unicast, broadcast, multicast, anycastOne receiver, everyone on the link, a subscribed group, the nearest of manyTraffic types

2Cables and connections

Cat 5e / 6 / 6A / 81 Gbps at 100 m / 10 Gbps at 55 m / 10 Gbps at 100 m / 40 Gbps at 30 mCopper cable
T568A / T568BTwo pin orders; the same at both ends makes a straight-through cableCopper cable
1000BASE-TSpeed 1000 Mbps, baseband signalling, T for twisted pairCopper cable
Plenum / riserJacket for air-handling spaces / between floorsCopper cable
Multimode / single-modeShort runs with cheaper optics (OM3 300 m, OM4 400 m at 10G) / 9 µm core, kilometresFibre
LC SC ST MPOFibre connectors: small duplex, square push-pull, bayonet, many fibres in oneFibre
SFP / SFP+ / SFP28 / QSFP281G / 10G / 25G / 100G pluggable modulesTransceivers
PoE 802.3af / at / bt15.4 W / 30 W / 60 to 90 W at the switch portPower over Ethernet
Power budgetThe switch's total PoE; the last device asking may stay darkPower over Ethernet
200,000 km/sLight in fibre: 5 µs per km, 1 ms per 200 km one wayDistance and delay

3The layer model

OSI 7 to 1Application, presentation, session, transport, network, data link, physicalThe layer models
TCP/IP modelApplication, transport, internet, link: four layersThe layer models
Segment, packet, frame, bitsThe name of the data at layers 4, 3, 2 and 1Encapsulation
Ethernet frame14-byte header, 46 to 1,500-byte payload, 4-byte FCSEncapsulation
IPv4 / IPv6 header20 bytes minimum / 40 bytes fixedEncapsulation
TCP / UDP header20 bytes minimum / 8 bytesEncapsulation

4Ethernet and switching

MAC address48-bit address of a network card, six hex pairs; first half identifies the makerMAC addresses and frames
Ethernet frameDestination MAC, source MAC, type, 46 to 1,500 bytes of data, 4-byte checkMAC addresses and frames
MAC address tableLearned from source addresses; entries age out after 300 s by defaultMAC address learning
Forward, filter, floodKnown port, same port, unknown destination or broadcastMAC address learning
Cut-through / store-and-forwardForward after the destination address / check the whole frame firstMAC address learning
Duplex mismatchLink stays up; late collisions on the half side, CRC errors on the full sideDuplex and speed
show interfacesErrors, CRC, collisions, speed and duplex on a Cisco portDuplex and speed
show cdp neighbors / show lldp neighborsWhich device and port is on the other endCDP and LLDP

5IPv4 addresses

OctetOne of the four 8-bit parts of an IPv4 address, written as 0 to 255Binary and octets
/24 = 255.255.255.0Prefix length and mask say the same thingIPv4 addresses and masks
10/8 172.16/12 192.168/16Private ranges (RFC 1918)Special address ranges
127.0.0.0/8 169.254.0.0/16 100.64.0.0/10Loopback, link-local (no DHCP answer), carrier-grade NATSpecial address ranges

6Routing

Default gatewayThe router a host sends to when the destination is not on its own networkThe default gateway
ARPBroadcast "who has 10.0.0.1?"; the owner replies with its MACARP
arp -a / ip neighThe ARP cache on a hostARP
Remote destinationThe host ARPs for its default gateway, not the far hostARP
Routing tableDestination prefix, next hop, outgoing interfaceRouting tables
Per packetCheck, decrement TTL, look up, rewrite the frame, forwardRouting tables
Longest prefix matchA /28 beats a /24 beats a /0 default routeLongest prefix match
show ip routeC connected, L local, S static, O OSPF, D EIGRP, B BGPLongest prefix match
ip route 0.0.0.0 0.0.0.0 203.0.113.1Default routeStatic and floating routes
ip route 10.2.0.0 255.255.0.0 10.0.0.2 250Floating static: distance 250 waits behind a better routeStatic and floating routes
Classic faultsWrong mask, gateway outside the subnet, duplicate addressTroubleshooting addresses
IP vs MAC addressIP stays the same end to end; MAC is rewritten at every routerAddresses at each layer
Port, IP, MACWhich program, which host, which network card on this linkAddresses at each layer

7Subnetting

SubnetA smaller network cut from a block by lengthening the mask; one more bit halves the blockBorrowing a bit
Usable hosts2^(32 − prefix) − 2; a /24 has 254Subnetting
/25 /26 /27 /28 /29 /30126, 62, 30, 14, 6, 2 hostsSubnetting
/31Point-to-point link: two addresses, no broadcastSubnetting
Block size2 to the power of the host bits, or 256 minus the mask octet; subnets start at its multiplesA worked example
Block size256 minus the mask's interesting octet; subnets start at its multiplesA worked example
VLSMAssign the largest subnet first, then the next, with no overlapVLSM
SummarisationContiguous, aligned blocks: four /24s from .0 become one /22Route summarisation

8IPv6

128 bitsEight groups of four hex digitsThe IPv6 address space
ShorteningDrop leading zeros; replace one longest run of zero groups with ::Writing IPv6 addresses
/64The standard subnet: 64 bits network, 64 bits interfacePrefix and interface ID
2000::/3 fc00::/7 fe80::/10 ff00::/8Global, unique local, link-local, multicastPrefix and interface ID
::1 / 2001:db8::/32Loopback / documentationPrefix and interface ID
SLAACRouter advertises the prefix; the host makes its own addressSLAAC
NDP messagesICMPv6 133 RS, 134 RA, 135 NS, 136 NA, 137 redirectSLAAC
Modified EUI-64Insert FFFE in the middle of the MAC and flip the seventh bitSLAAC
Dual stack, tunnels, NAT64Run both; carry v6 over v4; translate at the edgeIPv4 to IPv6 transition

9TCP and UDP

5-tupleProtocol, source IP, source port, destination IP, destination portPorts
Port ranges0 to 1023 well known, 1024 to 49151 registered, 49152 to 65535 dynamicPorts
SYN, SYN-ACK, ACKThree-way handshake: one round trip before dataHandshake
FIN, TIME-WAITEach side closes; the closer waits 2 × MSLHandshake
Sequence numbersCount bytes, so the receiver asks for exactly what is missingReliability
MSS1,460 bytes on standard Ethernet: 1,500 MTU minus 40Reliability
Throughput ceilingWindow ÷ round-trip timeReliability
Slow start, fast retransmitDouble each round trip; resend after three duplicate ACKs, halve the windowReliability
UDP8-byte header, no handshake, no resend: DNS, VoIP, games, QUICUDP
Voice budget150 ms one way; G.711 is 64 kbps in 20 ms packetsUDP
DSCP EF 46 / AF41 34Voice / interactive video markingsUDP

10DNS, DHCP and NAT

DNS lookupStub asks resolver; resolver asks root, TLD, then the authoritative serverDNS
A AAAA CNAME MX NS PTR TXT SRVIPv4, IPv6, alias, mail, name server, reverse, text, serviceDNS
dig example.com MX / nslookupAsk DNS directlyDNS
DoT 853 / DoH 443 / DNSSECEncrypted DNS / signed answersDNS
DHCP DORADiscover, offer, request, acknowledge; UDP 67 server, 68 clientDHCP
T1 / T2Renew at 50% of the lease, rebind at 87.5%DHCP
ip helper-addressRelay DHCP broadcasts to a server on another subnetDHCP
PAT (NAT overload)Many private hosts share one public address by portNAT and PAT
Inside local / inside globalThe private address / the public address it becomesNAT and PAT
ip nat inside source list 1 interface g0/0 overloadConfigure PAT on a Cisco routerNAT and PAT
NTP UDP 123Stratum 1 is next to a reference clock; 16 means unsynchronisedNTP
22 SSH, 25 SMTP, 53 DNS, 80/443 HTTP(S), 3389 RDPPorts to know by heartPorts
587 / 993 / 995Mail submission / IMAPS / POP3SPorts
SNMPv3, SSH, HTTPSManage devices only over encrypted channels; not Telnet or SNMPv1/2cDevice management

11VLANs and spanning tree

VLANOne broadcast domain per VLAN on the same switchVLANs
Normal / extended VLANs1 to 1005 / 1006 to 4094VLANs
switchport mode access switchport access vlan 10Put a port in one VLANVLANs
802.1Q tag4 bytes: TPID 0x8100, priority, DEI, 12-bit VLAN ID802.1Q trunks
Native VLANUntagged on the trunk; must match at both ends802.1Q trunks
switchport trunk allowed vlan 10,20Limit which VLANs a trunk carries802.1Q trunks
Router on a stick / SVISubinterfaces on one link / a routed VLAN interface on a layer 3 switchInter-VLAN routing
interface vlan 10 ip address …Create an SVIInter-VLAN routing
STP timersHello 2 s, max age 20 s, forward delay 15 s; RSTP converges in about a secondSpanning tree
Root bridgeLowest bridge ID: priority (default 32768) then MACSpanning tree
PortFast, BPDU guardEdge ports go live at once; shut a port that hears a switchSpanning tree
LACP active/passive, PAgP desirable/autoTwo passives or two autos never form a channelEtherChannel

12Dynamic routing and OSPF

Link-state / distance-vectorShare a map (OSPF, IS-IS) / share directions (RIP, EIGRP)Dynamic routing
OSPF costReference bandwidth ÷ interface bandwidth; lowest total winsOSPF cost
OSPF hello / dead10 s / 40 s on broadcast links; must match to become neighboursConvergence
224.0.0.5 / 224.0.0.6All OSPF routers / designated routersConvergence
DR electionHighest priority, then highest router IDConvergence
Administrative distanceConnected 0, static 1, eBGP 20, EIGRP 90, OSPF 110, RIP 120, iBGP 200Administrative distance
BGPRoutes between autonomous systems, chosen by policy; about a million IPv4 prefixesBGP
HSRP / VRRP / GLBPCisco active-standby / open standard / Cisco load sharingFirst-hop redundancy
VRRP virtual MAC`00-00-5E-00-01-{VRID}`First-hop redundancy

13Wireless networks

Channels 1, 6, 11The only three non-overlapping 2.4 GHz channels2.4 GHz channels
5 GHz / 6 GHz25 / 59 20-MHz channels in the US; DFS on some 5 GHz channels2.4 GHz channels
Free-space path loss20 log10(d km) + 20 log10(f MHz) + 32.44 dBSignal
Wi-Fi 4 / 5 / 6 / 6E / 7802.11n / ac / ax / ax at 6 GHz / beWi-Fi standards
SSID / BSSIDThe network's name / one access point radio's MACSSID and roaming
WPA3 Personal / EnterpriseSAE password exchange / 802.1X, a key per userWireless security
CAPWAP UDP 5246 / 5247Controller to lightweight AP: control / dataControllers
−67 dBm, 25 dB SNRTargets for voice-grade Wi-FiSite survey
Site surveyOverlap cells 15 to 20%, never on the same channelSite survey

14Network security

ACL rulesTop to bottom, first match wins, implicit deny at the endACLs
Standard / extended ACL1 to 99, source only, near the destination / 100 to 199, near the sourceACLs
Wildcard maskInverse of the subnet mask: 0.0.0.255 matches a /24ACLs
Stateful firewallAllows replies to conversations it saw startFirewalls
IPsec ESP 50, IKE UDP 500, NAT-T UDP 4500Site-to-site VPN protocols and portsVPNs
802.1XSupplicant, authenticator (switch), authentication server (RADIUS)Access control
RADIUS UDP 1812/1813 / TACACS+ TCP 49Network logins / device admin with per-command authorisationAccess control
DHCP snooping, DAI, port securityStop rogue DHCP, ARP spoofing and MAC floodingLayer 2 security
switchport port-security maximum 2Allow at most two MAC addresses on a portLayer 2 security
Zero trustNever trust by network location; check every requestThreats

15Network design and the cloud

Access, distribution, coreThe three campus tiers; small sites collapse the top twoCampus design
Spine-leafEvery leaf connects to every spine: any server is two hops from any otherData centre fabric
VXLANLayer 2 over UDP 4789, 24-bit ID (16 million segments), 50 bytes of overheadData centre fabric
Load balancer / CDNSpread requests across servers / serve content near the userScaling services
SDNControl plane in a controller; devices forwardSDN
REST verbsGET read, POST create, PUT replace, PATCH change, DELETE removeSDN
AnsibleAgentless over SSH, YAML playbooks, 5 hosts at a time by defaultAutomation
SD-WANPicks the best link per application, right nowSD-WAN
VPCSubnets, route tables, internet and NAT gateways; AWS keeps 5 addresses per subnetCloud networks
Security group / network ACLStateful, on the instance / stateless, on the subnetCloud networks
VPC peeringNot transitive; use a transit gateway for many VPCsCloud networks

16Troubleshooting

Seven stepsIdentify, theory, test, plan, implement, verify, documentMethod
Bottom up, top down, dividePing splits the problem in halfLayers
ping / traceroute ( tracert )Reachability / each hop, by raising TTL from 1Ping and traceroute
! . UCisco ping: reply, timeout, unreachablePing and traceroute
CRC errors / late collisionsCabling or interference / duplex mismatchInterface counters
tcpdump -i eth0 port 53Capture what really crossed the wirePacket capture
Syslog severities 0 to 7Emergency, alert, critical, error, warning, notice, info, debugLogs and monitoring
SNMP, NetFlow/IPFIXDevice counters / who talked to whom, how muchLogs and monitoring
Toner, cable tester, Wi-Fi analyserFind, test and see the mediumSymptoms

NeuroqAI · Networking · neuroqai.com/courses/networking/reference/