← Kỹ sư mạng← Network Engineer
Kỹ sư mạngNetwork Engineer19 Th7, 2026Jul 19, 202618 phút đọc15 min read

Giới thiệu & Cách mạng hoạt độngIntroduction & How Networks Work

Thuộc bộ kiến thức Network Engineer Roadmap.

Tổng quan

Một network (mạng máy tính) là tập hợp các thiết bị trao đổi dữ liệu qua các đường truyền dùng chung theo những quy tắc thống nhất (protocol). Network là thứ biến các máy đơn lẻ thành một hệ thống hữu ích khi kết hợp: cho phép một chiếc laptop nói chuyện với một web server ở nửa kia địa cầu, cho phép các microservice trong data center gọi lẫn nhau, và cho phép điện thoại xem video qua đường cellular.

Note này là nền tảng cho phần còn lại của Network Engineer roadmap. Nó trả lời ba câu hỏi thực tế:

  1. Về mặt cấu trúc, network gồm những gì? — các node, link và vai trò cấu thành mọi network.
  2. Internet là gì, và điều gì thực sự xảy ra khi bạn tải một trang web? — hành trình end-to-end từ lúc gõ URL đến khi thấy pixel trên màn hình, đi qua ISP, IP, DNS, TCP, TLS và HTTP.
  3. Network engineer làm gì, và nên học lĩnh vực này thế nào? — vai trò, tư duy, và cách xây dựng mental model bền vững thay vì học thuộc lòng.

Toàn bộ nội dung ở đây cố ý giữ ở mức tổng quan và mang tính kết nối. Các tầng sâu hơn có topic riêng: mô hình OSI/TCP-IP ở ./03-network-models-and-layers.md, và performance (bandwidth/latency/throughput/QoS) ở ./13-traffic-management-and-qos.md.

Kiến thức nền tảng

Network được tạo thành từ đâu

Mọi network, từ hai chiếc laptop chia sẻ file cho tới internet toàn cầu, đều được dựng từ cùng một nhúm thành phần cơ bản.

Thuật ngữÝ nghĩaVí dụ
NodeBất kỳ thiết bị nào tham gia network (có thể gửi, nhận, hoặc chuyển tiếp dữ liệu)Laptop, điện thoại, server, router, switch, máy in
HostMột node là điểm cuối — nơi khởi tạo hoặc tiêu thụ dữ liệu, thay vì chỉ chuyển tiếpLaptop của bạn, một web server
LinkKết nối (môi trường truyền) giữa hai nodeCáp Ethernet, sóng Wi-Fi, cáp quang, cellular
ClientHost yêu cầu một dịch vụTrình duyệt của bạn yêu cầu một trang
ServerHost cung cấp dịch vụ và trả lời các yêu cầuMột HTTP server, một database
RouterNode chuyển tiếp packet giữa các network khác nhau dựa trên IP addressRouter ở nhà, core router của ISP
SwitchNode chuyển tiếp frame trong một network cục bộ dựa trên MAC addressSwitch trong tủ đấu dây văn phòng

Có hai cặp vai trò cần làm rõ vì chúng hay gây nhầm lẫn nhất:

Network topology (cách các node kết nối)

Topology mô tả hình dạng của các kết nối. Physical topology là cách đi dây thực tế; logical topology là cách dữ liệu thực sự chảy.

TopologyHình dạngĐánh đổi
StarMọi node nối vào một switch/hub trung tâmĐơn giản, dễ quản lý; thiết bị trung tâm là single point of failure. Phổ biến nhất trong văn phòng.
MeshNode nối tới nhiều node khácRất bền (nhiều đường đi); đi dây tốn kém. Lõi internet là một partial mesh.
BusMọi node dùng chung một cáp backboneRẻ, cũ; đứt một chỗ là hỏng tất cả. Hầu như đã lỗi thời.
RingMỗi node nối với hai node hàng xóm tạo thành vòngDễ dự đoán; đứt một chỗ có thể chia đôi vòng (khắc phục bằng dual ring). Dùng trong một số network metro/cáp quang.

Phạm vi network (theo kích thước)

Địa chỉ public và private

Không phải thiết bị nào cũng có địa chỉ duy nhất toàn cầu. Các dải private IP (RFC 1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) được tái sử dụng trong vô số network nhà và văn phòng. Router thực hiện NAT (Network Address Translation) để nhiều host private cùng chia sẻ một public IP khi đi ra internet.

# Xem private IP và các interface của bạn (Linux)
ip addr show
# hoặc xem route/gateway kiểu cổ điển
ip route show          # default via 192.168.1.1 dev wlan0 ...

# Tìm public IP mà internet thực sự thấy về bạn
curl -s https://ifconfig.me

Khái niệm chính

Internet là gì

Internet không phải một network — nó là một network của các network: hàng chục nghìn network vận hành độc lập (gọi là Autonomous System, mỗi cái có một ASN) đồng ý kết nối và định tuyến traffic cho nhau. Không có chủ sở hữu trung tâm; nó hoạt động được vì mọi bên đều nói chung các protocol lõi (IP, TCP, UDP, DNS, BGP) và thống nhất cách trao đổi traffic.

ISP và các tier. Việc truy cập internet được phân thành các tầng (tier):

TierVai trò
Tier 1Nhà cung cấp backbone toàn cầu, tới được mọi network khác mà không phải trả tiền transit cho ai; họ peer với nhau miễn phí.
Tier 2ISP khu vực/quốc gia, peer ở nơi có thể nhưng mua transit từ Tier 1 để với tới phần còn lại của thế giới.
Tier 3ISP “last-mile” cục bộ, bán truy cập cho hộ gia đình và doanh nghiệp, và mua transit từ tuyến trên.

Peering và transit. Hai network peer khi chúng trao đổi traffic của nhau trực tiếp (thường miễn phí, tại một Internet Exchange Point / IXP). Một network mua transit khi trả tiền cho một nhà cung cấp lớn hơn để chuyển traffic của mình tới phần còn lại của internet. BGP (Border Gateway Protocol) là protocol các network dùng để quảng bá những dải IP mà chúng có thể với tới, nhờ đó packet tìm được đường đi xuyên suốt cả hệ thống.

IP address — hệ thống bưu chính của internet

Mọi host truy cập được trên internet đều có một IP address. Router dùng nó để chuyển tiếp packet từng chặng (hop) hướng về đích.

IPv4IPv6
Kích thước32-bit128-bit
Ví dụ93.184.216.342606:2800:220:1:248:1893:25c8:1946
Số lượng địa chỉ~4,3 tỷ (đã cạn)~3,4×10³⁸ (gần như vô hạn)
Ký hiệuThập phân có dấu chấmHex ngăn cách bằng dấu hai chấm

Các địa chỉ được gom thành subnet bằng ký hiệu CIDR (ví dụ 192.168.1.0/24 = 256 địa chỉ). Phần /24độ dài prefix: bao nhiêu bit đầu xác định network so với host. Subnetting sẽ được đào sâu ở một topic sau; ý chính bây giờ là router ra quyết định dựa trên network prefix, không phải từng host riêng lẻ.

Packet và packet switching

Dữ liệu không truyền đi dưới dạng một dòng liên tục trên đường truyền. Nó được cắt thành các packet — những đơn vị nhỏ, tự chứa, mỗi cái mang một mẩu dữ liệu cộng với các header ghi địa chỉ nguồn/đích và thông tin điều khiển.

Packet switching và circuit switching:

Circuit switchingPacket switching
Mô hìnhDành riêng một đường end-to-end cho cả phiênDữ liệu chia thành packet, mỗi packet định tuyến độc lập
Ví dụ kinh điểnMạng điện thoại cũ (PSTN)Internet
Dùng tài nguyênGiữ chỗ bandwidth ngay cả khi rảnh → lãng phíDùng chung link, statistical multiplexing → hiệu quả
Độ bềnĐứt bất kỳ link nào trên đường là đứt cả circuitPacket đi vòng qua chỗ hỏng
Thứ tự/mất góiĐảm bảo thứ tự, không mất (khi đã thiết lập)Packet có thể đến sai thứ tự, trùng, hoặc mất — tầng trên xử lý

Packet switching là lý do internet vừa bền vừa tiết kiệm: nhiều cuộc hội thoại dùng chung link, và nếu một router hay sợi cáp chết, BGP cùng các routing table sẽ lái packet vòng qua chỗ hỏng.

Encapsulation (ý tưởng ở mức tổng quan)

Khi dữ liệu đi xuống stack ở phía gửi, mỗi tầng bọc nó bằng header của riêng mình (đôi khi cả trailer). Việc lồng nhau này gọi là encapsulation. Ở phía nhận, mỗi tầng gỡ header của mình (decapsulation) khi đi lên.

Đóng gói dữ liệu qua từng tầng
  1. 01Dữ liệu Applicationví dụ một HTTP request
  2. + TCP header (thêm port, sequence number)
    02Segment
  3. + IP header (thêm IP nguồn/đích)
    03Packet
  4. + Ethernet header+trailer (thêm MAC address, checksum)
    04Frame
  5. 05bit trên đường truyền

Mỗi tầng chỉ “nói chuyện” với tầng tương ứng của nó ở host bên kia, và không quan tâm các tầng dưới mang dữ liệu đi thế nào. Mô hình phân tầng này là chủ đề của ./03-network-models-and-layers.md.

End-to-end: điều gì xảy ra khi bạn tải một trang web

Đây là mental model giá trị nhất trong networking. Giả sử bạn gõ https://example.com rồi nhấn Enter.

1. Phân tích URL. Trình duyệt tách URL thành scheme (https), host (example.com) và path (/). HTTPS ngầm định port 443.

2. DNS resolution — tên → IP. Trình duyệt cần IP address của example.com. Nó kiểm tra các cache (trình duyệt, OS, resolver cục bộ), rồi một recursive resolver (thường của ISP hoặc 1.1.1.1/8.8.8.8) đi qua cây phân cấp DNS: root server → TLD server .com → authoritative nameserver của example.com, nơi trả về IP.

# Xem một lượt DNS lookup phân giải tên thành địa chỉ
dig example.com +short
# 93.184.216.34

# Xem đường recursive đầy đủ và chi tiết record
dig example.com

# Truy vết ủy quyền (delegation) từ root xuống (root → .com → authoritative)
dig +trace example.com

3. Định tuyến tới server. Đã biết IP đích, host của bạn dựng các packet. Nó so sánh IP đích với subnet của chính mình: nếu là cục bộ thì gửi thẳng; nếu không (ở đây thì không) thì gửi tới default gateway (router của bạn). Từ đó mỗi router tra routing table của mình và chuyển tiếp packet hướng về đích, từng hop một, xuyên qua các ISP và backbone của internet.

# Xem từng hop router giữa bạn và đích
traceroute example.com          # Linux/macOS
# hoặc kiểm soát nhiều hơn:
traceroute -I example.com       # dùng ICMP echo thay vì UDP

# Kiểm tra nhanh khả năng tới được + round-trip time
ping example.com
# 64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.3 ms

4. TCP handshake — thiết lập kết nối tin cậy. Trước khi có bất kỳ dữ liệu HTTP nào, TCP thực hiện three-way handshake với server trên port 443:

TCP three-way handshake
TCP three-way handshake

Bây giờ cả hai phía đã có một kênh byte-stream tin cậy, đúng thứ tự. (Với một số loại traffic như DNS hay video, người ta dùng UDP — không kết nối, không handshake, không đảm bảo giao gói, nhưng overhead thấp hơn.)

5. TLS handshake — thiết lập mã hóa. Vì đây là HTTPS, TLS thương lượng bên trên TCP: client và server thống nhất một cipher, server trình certificate (chứng minh nó đúng là example.com, được ký bởi một CA đáng tin cậy), rồi hai bên dẫn xuất ra các session key chung. Sau bước này, mọi thứ đều được mã hóa.

6. HTTP request/response. Cuối cùng trình duyệt gửi một HTTP request qua kênh đã mã hóa và server trả lời:

# Xem toàn bộ quá trình: DNS, TCP connect, TLS handshake, HTTP request + response header
curl -v https://example.com
# * Connected to example.com (93.184.216.34) port 443
# * TLS handshake, ... TLSv1.3
# > GET / HTTP/2
# > Host: example.com
# < HTTP/2 200
# < content-type: text/html; charset=UTF-8

7. Render. Trình duyệt phân tích HTML nhận về, phát hiện cần thêm CSS, JS, ảnh — và lặp lại bước 2–6 (thường tái sử dụng kết nối và DNS đã cache) cho từng tài nguyên bổ sung, rồi vẽ trang.

Mỗi bước trong số đó đều là một chỗ có thể hỏng, và chẩn đoán được bước nào hỏng (DNS? routing? TCP? TLS? hay chính app?) là cơm bữa của một network engineer.

Vai trò của network engineer

Một network engineer thiết kế, xây dựng, vận hành, bảo mật và troubleshoot các network mà mọi thứ khác chạy trên đó. Phạm vi trải từ LAN của campus/văn phòng, tới fabric của data center, tới network ISP/WAN, tới cloud networking (VPC, load balancer, VPN).

Trách nhiệm hằng ngày điển hình:

Tư duy và kỹ năng:

Cơ bản về performance: bandwidth, latency, throughput

Ba thuật ngữ hay bị nhầm lẫn; xử lý sâu hơn (cùng QoS) nằm ở ./13-traffic-management-and-qos.md.

Thuật ngữĐịnh nghĩaẨn dụ (một cái ống nước)Đơn vị
BandwidthDung lượng tối đa của một link — lượng dữ liệu có thể chảy mỗi giâyĐường kính của ốngbps, Mbps, Gbps
ThroughputTốc độ dữ liệu thực tế đạt được trong thực tếLượng nước thực sự đang chảybps, Mbps, Gbps
LatencyThời gian một packet đi từ nguồn → đíchMột giọt nước mất bao lâu để đi hết ốngms

Vài trực giác quan trọng:

# Latency / RTT
ping -c 5 example.com

# Ước lượng thô dung lượng/throughput một chiều giữa hai host bạn kiểm soát
iperf3 -c <server-ip>          # chạy `iperf3 -s` ở phía server trước

Best Practices

Cho việc học lĩnh vực này

Cho việc thực hành networking

Tài liệu tham khảo

Part of the Network Engineer Roadmap knowledge base.

Overview

A computer network is a set of computing devices that exchange data over shared communication links according to agreed-upon rules (protocols). Networks are what turn isolated machines into something useful together: they let a laptop talk to a web server on the other side of the planet, let microservices in a data center call each other, and let a phone stream video over a cellular link.

This note is the foundation for the rest of the Network Engineer roadmap. It answers three practical questions:

  1. What is a network, structurally? — the nodes, links, and roles that make up any network.
  2. What is the internet, and what actually happens when you load a web page? — an end-to-end walk from typing a URL to pixels on screen, touching ISPs, IP, DNS, TCP, TLS, and HTTP.
  3. What does a network engineer do, and how should you learn this field? — the role, the mindset, and how to build durable mental models instead of memorizing facts.

Everything here is intentionally high-level and connective. Deeper layers get their own topics: the OSI/TCP-IP models in ./03-network-models-and-layers.md, and performance (bandwidth/latency/throughput/QoS) in ./13-traffic-management-and-qos.md.

Fundamentals

What a network is made of

Every network, from two laptops sharing files to the global internet, is built from the same handful of primitives.

TermMeaningExample
NodeAny device that participates in the network (can send, receive, or forward data)Laptop, phone, server, router, switch, printer
HostA node that is an endpoint — it originates or consumes data, rather than just forwarding itYour laptop, a web server
LinkThe connection (medium) between two nodesEthernet cable, Wi-Fi radio, fiber, cellular
ClientA host that requests a serviceYour browser requesting a page
ServerA host that provides a service and answers requestsAn HTTP server, a database
RouterA node that forwards packets between different networks based on IP addressesYour home router, an ISP core router
SwitchA node that forwards frames within a single local network based on MAC addressesThe switch in an office wiring closet

Two roles are worth clarifying because they cause the most confusion:

Network topologies (how nodes connect)

The topology describes the shape of the connections. Physical topology is the literal cabling; logical topology is how data actually flows.

TopologyShapeTrade-off
StarEvery node connects to a central switch/hubSimple, easy to manage; central device is a single point of failure. Most common in offices.
MeshNodes connect to many other nodesHighly resilient (many paths); expensive to cable. The internet’s core is a partial mesh.
BusAll nodes share one backbone cableCheap, legacy; one cable fault breaks everything. Largely obsolete.
RingEach node connects to two neighbors forming a loopPredictable; a break can split the ring (mitigated by dual rings). Used in some metro/fiber networks.

Network scope (by size)

Public vs private addressing

Not every device has a globally unique address. Private IP ranges (RFC 1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are reused inside countless home and office networks. A router performs NAT (Network Address Translation) to let many private hosts share one public IP toward the internet.

# See your own private IP and interfaces (Linux)
ip addr show
# or the classic route/gateway view
ip route show          # default via 192.168.1.1 dev wlan0 ...

# Find the public IP the internet actually sees for you
curl -s https://ifconfig.me

Key Concepts

What the internet is

The internet is not one network — it is a network of networks: tens of thousands of independently operated networks (called Autonomous Systems, each with an ASN) that agree to interconnect and route each other’s traffic. There is no central owner; it works because everyone speaks the same core protocols (IP, TCP, UDP, DNS, BGP) and agrees on how to exchange traffic.

ISPs and tiers. Access to the internet is layered into tiers:

TierRole
Tier 1Global backbone providers that reach every other network without paying anyone for transit; they peer with each other for free.
Tier 2Regional/national ISPs that peer where they can but buy transit from Tier 1 to reach the rest of the world.
Tier 3Local “last-mile” ISPs that sell access to homes and businesses and buy transit upstream.

Peering vs transit. Two networks peer when they exchange each other’s traffic directly (often free, at an Internet Exchange Point / IXP). A network buys transit when it pays a larger provider to carry its traffic to the rest of the internet. BGP (Border Gateway Protocol) is the protocol these networks use to advertise which IP ranges they can reach, so packets can find a path across the whole system.

IP addresses — the internet’s postal system

Every host reachable on the internet has an IP address. Routers use it to forward packets hop by hop toward the destination.

IPv4IPv6
Size32-bit128-bit
Example93.184.216.342606:2800:220:1:248:1893:25c8:1946
Address count~4.3 billion (exhausted)~3.4×10³⁸ (effectively unlimited)
NotationDotted decimalColon-separated hex

Addresses are grouped into subnets using CIDR notation (e.g. 192.168.1.0/24 = 256 addresses). The /24 is the prefix length: how many leading bits identify the network vs the host. Subnetting is covered deeply in a later topic; the key idea now is that routers make decisions based on the network prefix, not individual hosts.

Packets and packet switching

Data does not travel as one continuous stream over the wire. It is chopped into packets — small, self-contained units each carrying a chunk of data plus headers with source/destination addresses and control info.

Packet switching vs circuit switching:

Circuit switchingPacket switching
ModelA dedicated end-to-end path is reserved for the whole sessionData split into packets, each routed independently
Classic exampleOld telephone network (PSTN)The internet
Resource useReserved bandwidth even when idle → wastefulShared links, statistical multiplexing → efficient
ResilienceCircuit fails if any link on the path failsPackets reroute around failures
Ordering/lossGuaranteed order, no loss (once set up)Packets may arrive out of order, duplicated, or lost — higher layers fix it

Packet switching is why the internet is resilient and cost-effective: many conversations share the same links, and if a router or cable dies, BGP and routing tables steer packets around the damage.

Encapsulation (the high-level idea)

As data moves down the stack on the sender, each layer wraps it in its own header (and sometimes trailer). This nesting is encapsulation. On the receiver, each layer strips its header off (decapsulation) on the way up.

Encapsulation down the stack
  1. 01Application datae.g. an HTTP request
  2. + TCP header (adds ports, sequence numbers)
    02Segment
  3. + IP header (adds source/dest IP)
    03Packet
  4. + Ethernet header+trailer (adds MAC addresses, checksum)
    04Frame
  5. 05bits on the wire

Each layer only “talks to” its peer layer on the other host and doesn’t care how the layers below carry it. This layered model is the subject of ./03-network-models-and-layers.md.

End-to-end: what happens when you load a web page

This is the single most valuable mental model in networking. Suppose you type https://example.com and hit Enter.

1. URL parsing. The browser splits the URL into scheme (https), host (example.com), and path (/). HTTPS implies default port 443.

2. DNS resolution — name → IP. The browser needs the IP address for example.com. It checks caches (browser, OS, local resolver), then a recursive resolver (often your ISP’s or 1.1.1.1/8.8.8.8) walks the DNS hierarchy: root servers → .com TLD servers → example.com’s authoritative nameserver, which returns the IP.

# Watch a DNS lookup resolve a name to an address
dig example.com +short
# 93.184.216.34

# See the full recursive path and record details
dig example.com

# Trace the delegation from the root down (root → .com → authoritative)
dig +trace example.com

3. Routing to the server. With the destination IP known, your host builds packets. It compares the destination to its own subnet: if it’s local, send directly; if not (it isn’t), send to the default gateway (your router). From there each router consults its routing table and forwards the packet toward the destination, hop by hop, across ISPs and the internet backbone.

# See every router hop between you and the destination
traceroute example.com          # Linux/macOS
# or, with more control:
traceroute -I example.com       # use ICMP echo instead of UDP

# Quick reachability + round-trip time check
ping example.com
# 64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.3 ms

4. TCP handshake — establish a reliable connection. Before any HTTP data, TCP performs a three-way handshake with the server on port 443:

TCP three-way handshake
TCP three-way handshake

Now both sides have a reliable, ordered, byte-stream channel. (For some traffic like DNS or video, UDP is used instead — connectionless, no handshake, no delivery guarantees, but lower overhead.)

5. TLS handshake — establish encryption. Because this is HTTPS, TLS negotiates on top of TCP: the client and server agree on a cipher, the server presents its certificate (proving it really is example.com, signed by a trusted CA), and they derive shared session keys. After this, everything is encrypted.

6. HTTP request/response. Finally the browser sends an HTTP request over the encrypted channel and the server responds:

# See the whole thing: DNS, TCP connect, TLS handshake, HTTP request + response headers
curl -v https://example.com
# * Connected to example.com (93.184.216.34) port 443
# * TLS handshake, ... TLSv1.3
# > GET / HTTP/2
# > Host: example.com
# < HTTP/2 200
# < content-type: text/html; charset=UTF-8

7. Render. The browser parses the returned HTML, discovers it needs CSS, JS, images — and repeats steps 2–6 (often reusing the connection and cached DNS) for each additional resource, then paints the page.

Every one of those steps is a place things can break, and diagnosing which step failed (DNS? routing? TCP? TLS? the app itself?) is the daily bread of a network engineer.

The role of a network engineer

A network engineer designs, builds, operates, secures, and troubleshoots the networks that everything else runs on. The scope ranges from campus/office LANs, to data-center fabrics, to ISP/WAN networks, to cloud networking (VPCs, load balancers, VPNs).

Typical daily responsibilities:

Mindset and skills:

Performance basics: bandwidth, latency, throughput

Three often-confused terms; deeper treatment (plus QoS) is in ./13-traffic-management-and-qos.md.

TermDefinitionAnalogy (a pipe)Units
BandwidthMaximum capacity of a link — how much could flow per secondThe pipe’s diameterbps, Mbps, Gbps
ThroughputThe actual data rate achieved in practiceWater actually flowingbps, Mbps, Gbps
LatencyTime for one packet to travel source → destinationHow long a drop takes to traverse the pipems

Key intuitions:

# Latency / RTT
ping -c 5 example.com

# Rough one-way capacity/throughput between two hosts you control
iperf3 -c <server-ip>          # run `iperf3 -s` on the server first

Best Practices

For learning the field

For practicing networking

References