From point A to point B
Point A: you use the network every day, but you do not know what happens between your device and the server that answers. Point B: by the end of this chapter you will identify each device and its layer, read a diagram, explain how a piece of data travels, and recognize the protocols and links that make it possible.
It is the foundation of the whole CCNA. It covers exam topics 1.1 to 1.5 and 1.13 of v1.1, which weighs 20% of the total.
- Hub, switch and router: what each one does
- Copper, fiber and air; straight-through, crossover and console cables
- Topologies, LANs and WANs, and the three-tier model
- OSI, TCP/IP and encapsulation
- TCP and UDP: ports, connection, ACK and window
- Ethernet: standards, MAC addresses and frames
- WAN technologies: DEMARC, DSL, cable, Metro Ethernet and the SOHO router
Devices: hub, switch and router
Pick each device for what your network needs: performance, stability, security, connectivity and room to grow. The three you must master work at different layers.
Collision and broadcast domains. Diagram: The House of Routing.
The hub
It is a layer 1 device. It receives bits and repeats them out of every port, without looking at addresses.
All hosts share the same bandwidth and form one collision domain and one broadcast domain. The more hosts you add, the worse it performs. Almost nobody installs one today.
The switch
It is a layer 2 device: it decides by MAC address. A multilayer switch (MLS) also understands IP addresses.
It keeps a MAC address table that links each MAC to its port. Traffic goes only where it should, and every port is its own collision domain.
- Learns: it records the source MAC of each frame and the port it arrived on.
- Forwards: if it knows the destination MAC, it sends the frame out of that port only.
- Floods: if it does not, or the frame is a broadcast, it sends it out of every port except the ingress one.
- Ages out: it deletes entries that go unused for a while.
By its place in the network, a Cisco switch plays one of these roles:
| Role | What it does | Typical features |
|---|---|---|
| Access | Connects hosts to the network | VLANs, PoE, QoS, port security, Fast or Gigabit Ethernet |
| Distribution | Takes traffic from access and sends it to the core | Layer 3, redundancy, ACLs, security policies, 10 Gigabit |
| Core | Forms the backbone and moves the most traffic | Layer 3, very high speed, redundant components |
The router
It is a layer 3 device. It connects different network segments, each with its own IP network or subnet, and bridges LAN and WAN.
When a packet arrives, the router checks its routing table, finds the destination network and forwards the packet out the right interface. It does not need to know every host: the network is enough.
Each interface is a separate collision domain and broadcast domain. That is why a router stops broadcasts and a switch, without VLANs, does not.
| Device | Layer | Decides by | Collision domains | Broadcast domains |
|---|---|---|---|---|
| Hub | 1 | Nothing: repeats bits | 1 in total | 1 |
| Switch | 2 | Destination MAC | 1 per port | 1 (no VLANs) |
| Router | 3 | Destination network (IP) | 1 per interface | 1 per interface |
For your notes. Explain in your own words the difference between a collision domain and a broadcast domain. If you cannot do it in two sentences, reread the table.
Media and cables
Devices connect over three kinds of medium: copper, optical fiber and wireless. To choose, compare five factors:
- Cost.
- Maximum link length.
- Bandwidth offered.
- Ease of installation.
- Electromagnetic interference (EMI): copper suffers from it; fiber does not.
Fiber can be single-mode, for long distances, or multimode, for short runs inside a building or campus.
UTP copper cables
| Cable | When to use it | Examples |
|---|---|---|
| Straight-through | Between different types of device | PC to switch, switch to router |
| Crossover | Between the same type of device | Switch to switch, hub to hub, PC to PC, router to router, PC to router |
| Rollover (console) | Managing a device through its console port | PC by DB-9 or USB to RJ-45 console |
The rule behind the cable lives in the pins. PC NICs, routers, access points and printers transmit on pins 1 and 2 and receive on 3 and 6. Hubs and switches do the opposite.
A straight-through cable respects the transmit and receive rule: same standard on both ends. Diagram: The House of Routing.
The TIA/EIA T568A and T568B standards define the color order on the RJ-45 connector. A straight-through cable uses the same standard on both ends; in the figure, T568B. A crossover cable uses T568A on one end and T568B on the other.
| Pin | T568A | T568B |
|---|---|---|
| 1 | White/green | White/orange |
| 2 | Green | Orange |
| 3 | White/orange | White/green |
| 4 | Blue | Blue |
| 5 | White/blue | White/blue |
| 6 | Orange | Green |
| 7 | White/brown | White/brown |
| 8 | Brown | Brown |
Crossover: T568A on one side and T568B on the other, with the original colors. Diagram: The House of Routing.
In the crossover cable, the orange and green pairs swap places. So what one device transmits on pins 1 and 2 reaches the other on pins 3 and 6, where it receives. Use it between like devices, such as switch to switch or PC to PC.
For your notes. Draw from memory pins 1, 2, 3 and 6 of a PC and of a switch. From that you can work out the cable for any case.
Physical and logical topologies
The physical topology describes where devices sit and how they connect. The logical topology describes how data moves across that network.
Topologies describe how devices connect. Diagram: The House of Routing.
| Topology | What it looks like | Weak or strong point |
|---|---|---|
| Bus | One shared cable | A single break takes everything down |
| Ring | Each device joins two neighbors | One failure affects the ring |
| Star | Everyone connects to a central point | The most common; the center is critical |
| Extended star | Stars joined at their centers | Grows easily |
| Mesh | Links between many or all nodes | Very redundant, more expensive |
| Hierarchical | Stars in tiers, like a tree | Basis of campus design |
Ethernet was born as a bus: every host hung off one coaxial cable and the signal reached them all. With UTP cable and the hub it became a physical star but kept a logical bus: traffic is broadcast and CSMA/CD is needed to contain collisions.
With a switch, the star is still physical and each link is point to point, so collisions disappear.
For your notes. For each topology, note a real example you know: your home, your office or a data center.
LANs and WANs
A LAN (Local Area Network) connects devices in a limited area: a home, an office or a building. It includes computers, NICs, switches, routers, DHCP and DNS servers, and usually runs Ethernet.
A WAN (Wide Area Network) joins LANs that are far apart. It uses routers, WAN cables, the ISP network and telecom infrastructure. A set of interconnected networks is an internetwork, and the Internet is the largest one.
A WAN joins distant LANs. Diagram: The House of Routing.
Common WAN access technologies include DSL, the cable modem, the analog modem and the VPN. The first three are physical media. The VPN is different: it builds an encrypted tunnel over the Internet, which is why it joins branches at very low cost.
For your notes. Write three examples of a LAN and three of a WAN from your daily life. Mark where the router between them is.
The three-tier hierarchical model
Cisco uses reference models to design networks. The most important one for the CCNA is the three-tier hierarchical model. It is a logical model: it defines the roles each device plays according to its place.
Each tier has a role; one device can fill two. Diagram: The House of Routing.
- Access: gives hosts entry. Access switches, wireless access points and, sometimes, a firewall live here.
- Distribution: applies security policies and links access to the core.
- Core: moves data at top speed. It applies no policies and connects no end devices; it only links to distribution.
Because it is a logical model, one device can play two roles. In a small network, distribution switches often act as the core too: this is the two-tier design, or collapsed core.
A home router is the smallest case. Its switch block and Wi-Fi act as access. Its MAC filters, ACLs, URL filtering and port forwarding act as distribution.
For your notes. Sketch the network at your home or office and label which device plays each role: access, distribution, core.
The OSI and TCP/IP models
ISO published the OSI reference model in 1984. It describes how devices from different vendors communicate and exchange data, and splits that work into seven layers.
A layered model cuts complexity, enables modular engineering, standardizes interfaces and helps interoperability and new product development.
Seven layers against four, and the name of each PDU. Diagram: The House of Routing.
| OSI layer | What it does |
|---|---|
| 7 · Application | Interface between the network and software |
| 6 · Presentation | Data format and organization |
| 5 · Session | Manages the dialogue between applications |
| 4 · Transport | End-to-end services: flow control, error recovery, segmentation, connection setup and teardown |
| 3 · Network | Logical addressing and path selection |
| 2 · Data link | Builds frames, detects errors and sets when to use the medium |
| 1 · Physical | Electrical, optical and cabling characteristics for sending bits |
The TCP/IP model pursues the same goal with four layers: application (user data), transport (communication between devices), Internet (best path through the network) and network access (hardware and medium).
Troubleshooting with the model
- Bottom-up: you start at the physical layer. It is the method for connectivity problems.
- Top-down: you start at the application. Use it when you think a program is at fault.
- Divide and conquer: you document the symptoms, guess a layer and start there. You can move up or down based on what you find.
For your notes. Memorize the seven layers with a phrase of your own. Then recite them from 1 to 7 and from 7 to 1.
TCP and UDP
Both are transport protocols. TCP is connection-oriented and reliable. UDP opens no connection and leaves error recovery to other layers.
| TCP | UDP | |
|---|---|---|
| Connection | Yes: three-step setup | No |
| Reliability | Yes: SEQ, ACK and retransmission | No |
| Flow control | Yes: window | No |
| Data order | Reorders data | Does not reorder |
| Header | 20 bytes minimum | 8 bytes |
| Used for | Web, email, file transfer, SSH | Voice, video, DNS, DHCP, SNMP |
Multiplexing with ports
It is the only function TCP and UDP share. The receiving host uses the destination port number to hand the data to the right application.
| Port | Protocol | Application |
|---|---|---|
| 20 / 21 | TCP | FTP (data / control) |
| 22 | TCP | SSH |
| 23 | TCP | Telnet |
| 25 | TCP | SMTP |
| 53 | TCP and UDP | DNS |
| 67 / 68 | UDP | DHCP (server / client) |
| 69 | UDP | TFTP |
| 80 | TCP | HTTP |
| 110 | TCP | POP3 |
| 123 | UDP | NTP |
| 161 | UDP | SNMP |
| 443 | TCP | HTTPS (HTTP over TLS) |
| 514 | UDP | Syslog |
| 16384–32767 | UDP | RTP: real-time voice and video |
Ports 0 to 1023 are well known, 1024 to 49151 are registered and 49152 to 65535 are dynamic: your device uses them as source ports.
Opening and closing the connection
TCP opens with a three-way handshake and closes with a four-message sequence that uses the FIN flag.
Three steps to open, four to close. Diagram: The House of Routing.
Reliability: SEQ and ACK
The Sequence and Acknowledgment fields number every byte. The ACK does not confirm what arrived: it states the next byte the receiver expects. If a segment is missing, the receiver keeps asking for that byte until it arrives.
The ACK is the next byte the receiver expects. Diagram: The House of Routing.
Flow control: the window
Windowing negotiates how many bytes the sender may send before it gets an ACK. The size goes in the Window field and changes during the connection. Without window scaling, the maximum is 65,535 bytes.
Finally, TCP segments data when sending and orders it when receiving, so it arrives in the same byte order it left.
For your notes. Make a flashcard with three columns: port, protocol and application. Review it tomorrow and the day after, not again today.
Data encapsulation
Each TCP/IP layer adds its own information on the way down. It is a five-step process that ends in bits on the medium.
Each layer adds its own information on the way down. Diagram: The House of Routing.
- Data: the application produces the message.
- Segment: transport adds the TCP or UDP header, with the ports.
- Packet: the Internet layer adds the IP header, with source and destination addresses.
- Frame: the data link layer adds a header with the MACs and a trailer for error checking.
- Bits: the physical layer turns them into signals.
The receiver walks the path backwards, de-encapsulating, and each layer reads only its own part. Only the data link layer adds two fields, a header and a trailer.
For your notes. Draw the five steps without looking and label which address or number travels in each header.
Ethernet: standards, addresses and frames
Ethernet is the most widespread LAN technology. It is defined in the IEEE 802.3 standard and works at the physical and data link layers. At the data link layer it splits into two sublayers:
- LLC (IEEE 802.2): says which upper-layer protocol rides inside the frame.
- MAC (IEEE 802.3): encapsulates the data, adds MAC addressing and error detection, and controls access to the medium.
CSMA/CD and duplex
With a hub, hosts share the medium and use CSMA/CD: they listen before sending and, if two send at once, they detect the collision, wait a random time and try again.
CSMA/CD only works in half-duplex, when the NIC sends or receives. In full-duplex, with a switch, it sends and receives at once, there are no collisions and the mechanism switches off.
Common standards
| Speed | Name | IEEE name | Standard | Medium | Distance |
|---|---|---|---|---|---|
| 10 Mbps | Ethernet | 10BASE-T | 802.3 | Copper | 100 m |
| 100 Mbps | Fast Ethernet | 100BASE-TX | 802.3u | Copper | 100 m |
| 1 Gbps | Gigabit Ethernet | 1000BASE-T | 802.3ab | Copper | 100 m |
| 1 Gbps | Gigabit Ethernet | 1000BASE-SX | 802.3z | Multimode fiber | 550 m |
| 1 Gbps | Gigabit Ethernet | 1000BASE-LX | 802.3z | Single-mode fiber | 5 km |
| 10 Gbps | 10 Gigabit Ethernet | 10GBASE-T | 802.3an | Copper | 100 m |
Benefits of using switches
A switch shrinks collision domains and removes them when a host plugs straight into a port. It does not share bandwidth the way a hub does and it allows full-duplex.
Addresses and frames
Ethernet delivers by the NIC's MAC address. It has 48 bits: 24 for the OUI, which the IEEE assigns to the vendor, and 24 that the vendor assigns. There are three kinds of destination:
- Unicast: one device.
- Multicast: a group. In IPv4 the MAC starts with
0100.5E. - Broadcast: every device on the LAN, with the MAC
FFFF.FFFF.FFFF.
Frame fields and the anatomy of a MAC. Diagram: The House of Routing.
The frame format has evolved. The common one is Ethernet II, whose Type field names the upper-layer protocol, such as 0x0800 for IPv4. The 802.3 variant uses that field for length and relies on LLC to identify the protocol. A frame is 64 to 1518 bytes, not counting the preamble.
When the interface misbehaves
Topic 1.4 asks you to recognize interface and cable problems. Look in the output of show interfaces:
Switch# show interfaces GigabitEthernet0/1
GigabitEthernet0/1 is up, line protocol is up
Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
...
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 output errors, 0 collisions, 0 late collision
| Symptom | Likely cause |
|---|---|
| CRC and frame errors climbing | Damaged cable, loose connector or interference |
| Late collisions | Duplex mismatch or a cable that is too long |
| Different speed or duplex at each end | Failed autonegotiation or inconsistent manual settings |
For your notes. Write down the five most important frame fields and the size of each. It is a classic question.
WAN technologies
A WAN technology sets rules for layer 1 and layer 2. The physical layer fixes cables, connectors, speeds and the names of the points where responsibility passes between the provider and you.
Parts of a classic link
The DEMARC marks where your responsibility ends. Diagram: The House of Routing.
- DEMARC: the demarcation point. It is not a device or a cable: it is the boundary between the customer's responsibility and the Telco's.
- CPE: the equipment on the customer side (Customer Premises Equipment).
- CSU/DSU: converts the signal between the provider network and your router. It can be a separate box or a router module.
- DTE: normally your router. It receives the clock.
- DCE: normally the CSU/DSU. It supplies the clock through the clock rate.
- Telco: the service provider. The stretch to its switch is the local loop.
Serial cables join the router to the CSU/DSU: EIA/TIA-232, EIA/TIA-449, V.35, X.21 and EIA-530. On the router the connector is a DB-60. The DTE side uses the male connector and the DCE side the female one.
Speeds and names
| Name | Speed | Made of |
|---|---|---|
| DS0 | 64 kbps | One voice channel (PCM) |
| DS1 or T1 | 1.544 Mbps | 24 DS0 |
| DS3 or T3 | 44.736 Mbps | 28 DS1 |
| E1 | 2.048 Mbps | 32 channels of 64 kbps |
| E3 | 34.368 Mbps | 16 E1 |
| J1 (Japan) | 1.544 Mbps | 24 DS0 |
At layer 2, the encapsulation protocols for serial links are HDLC and PPP.
From the telephone to fiber
- PSTN: the public switched telephone network. Each voice channel is a 64 kbps DS0. The stretch between the Telco switch and your site is the local loop.
- Analog modem: modulates and demodulates the signal over the phone line. It is a switched circuit, tops out at 56 kbps and ties up the line: you cannot talk while it is in use.
- DSL: uses the same local loop for voice and data at once, and the connection is always on. It can be symmetric or asymmetric and ends at a DSLAM. The farther you are from the exchange and the worse the cable, the lower the speed.
- Cable: delivers TV, Internet and phone over coax. It is asymmetric. It does not slow down with distance, but it does when many neighbors share the segment.
- Metro Ethernet: ISPs use Ethernet as a WAN to join branches with VLANs or overlay services such as VPLS and MPLS L3VPN.
| Metro Ethernet service | Topology |
|---|---|
| E-Line | Point to point |
| E-LAN | Full mesh: everyone sees everyone |
| E-Tree | Hub and spoke or point to multipoint |
The SOHO router
In homes and small offices, one box acts as router, switch and access point. Its basic jobs are to hand out private IPs by DHCP, learn routes and translate addresses with PAT.
From home to the Internet with one public IP. Diagram: The House of Routing.
For your notes. Tell someone out loud how your phone reaches the Internet from your home. If you get stuck, review the SOHO router.
What you take away
- A hub repeats bits (layer 1); a switch forwards by MAC (layer 2); a router forwards by destination network (layer 3).
- A switch learns, forwards, floods and ages out entries. A router separates broadcast domains.
- Straight-through between unlike devices, crossover between like ones, rollover for the console. Auto-MDIX handles it on modern gear.
- Access, distribution and core are roles, not boxes: one device can fill two.
- OSI has seven layers; TCP/IP has four. PDUs: segment, packet, frame and bits.
- TCP is reliable (3 steps, SEQ/ACK, window); UDP is fast and connectionless. Both multiplex with ports.
- Only the data link layer adds a header and a trailer. A MAC is 48 bits and the Ethernet II frame carries an EtherType.
- On the WAN, the DEMARC splits customer from provider; the DCE supplies the clock; the SOHO router combines DHCP and PAT.
In the next chapter you go deeper into switching: how a switch decides, how you get in to manage it securely and how you look after its IOS and configuration.
Slides
These slides support the guided class: watch them here, full screen, or download the PDF for your notes. Part 1 goes with session 1, Part 2 with session 2 and Part 3 with session 3.
Class videos
The videos are in Spanish. The translation of the videos is in development.
Each part of the chapter has its own video. Tap a card and the video opens right here, over the page; use the Close button or the Esc key to go back to where you were. Use them alongside the slides of the same part.
- Chapter 1 · Part 1Hub, switch and routerWatch video
- Chapter 1 · Part 2LAN, WAN, physical topologies and Ethernet standardsWatch video
- Chapter 1 · Part 3SOHO networks and network connection componentsWatch video
- Chapter 1 · Part 4The OSI reference modelWatch video
- Chapter 1 · Part 5The TCP/IP modelWatch video
- Chapter 1 · Part 6TCP and UDPWatch video
- Chapter 1 · Part 7TCP 3-way and 4-way communicationWatch video
- Chapter 1 · Part 8Ethernet technology standardsWatch video
- Chapter 1 · Part 9Cabling and data transmission fundamentalsWatch video
- Chapter 1 · Part 10LAN and WAN connectivity standards and connectorsWatch video
When you play a video, it loads from YouTube (no cookies until you open it). See the full playlist on YouTube.
Packet Tracer labs
The labs are in Spanish. The translation of the labs is in development.
Download each lab's files and open them with Cisco Packet Tracer. Tap the name to see the two downloads.
Lab 1Console and hostname
Connect the console cable, open the device's command line and give it a name. It is your first contact with the CLI.
Lab 2Network connection and simulation mode
Connect the devices of a network and watch in simulation mode how each packet travels.
Lab 3End-to-end data flow and HTTP connection
Follow the data from one host to another and check an HTTP connection, layer by layer.
Chapter assessment
There are 100 single-choice questions, split into 10 tabs of 10. Each tab mixes every topic in the chapter and rises in level: questions 1 to 3 are low difficulty, 4 to 8 are medium and 9 to 10 are high.
We do not save your answers. They run in your browser and, if you close or reload the page, you start from zero. Getting it wrong here is the cheapest way to learn.
Additional resources
These links lead to official sites outside this portal. Use them to practice, go deeper and confirm what you learned.
To study and practice
- Cisco U.: Implementing and Administering Cisco Solutions (CCNA) learning pathu.cisco.com
- Cisco Learning Network: community, forums and study resourceslearningnetwork.cisco.com
- Cisco Packet Tracer at Networking Academynetacad.com
- Using Packet Tracer for CCNA studylearningnetwork.cisco.com
Exam and certification
- Official CCNA 200-301 v1.1 exam topics (PDF)learningcontent.cisco.com
- Official CCNA certification pagecisco.com
Standards and references
- RFC 9293: Transmission Control Protocol (TCP)rfc-editor.org
- RFC 768: User Datagram Protocol (UDP)rfc-editor.org
- IANA service name and port number registryiana.org
- IEEE 802.3 Ethernet Working Groupieee802.org
Source and credits. Chapter built from Jesús Espinoza's “Networking Fundamentals” notes (parts 1 to 5), paraphrased and aligned with the official CCNA 200-301 v1.1 exam topics. Text drafted with AI assistance; original diagrams by The House of Routing. Technical details were checked against IEEE and IETF standards and official Cisco documentation.
