Jaringan Komputer

Akmal
networking tcp-ip protocol infrastructure

Jaringan komputer adalah sistem yang menghubungkan dua atau lebih perangkat komputasi untuk berbagi sumber daya dan berkomunikasi. Cheatsheet ini mencakup konsep fundamental hingga topik lanjutan dalam jaringan komputer.


1. Dasar-Dasar Jaringan

1.1 Definisi dan Komponen

Jaringan Komputer adalah kumpulan perangkat yang terhubung untuk berbagi data dan sumber daya.

Komponen Utama:

KomponenFungsi
End DevicesKomputer, smartphone, server, IoT devices
Intermediary DevicesRouter, switch, hub, access point, firewall
Network MediaKabel (twisted pair, coaxial, fiber optic), wireless
Network Interface Card (NIC)Hardware untuk koneksi jaringan

1.2 Klasifikasi Jaringan Berdasarkan Cakupan

Klasifikasi Jaringan Berdasarkan Cakupan

📱
PAN 1-10 meter Bluetooth, USB
🏢
LAN 100m - 1km Office, School
🏙️
MAN 1-50 km City, Metro
🌍
WAN > 50 km Internet, Global
Kecil Besar
TipeJangkauanContoh
PAN (Personal Area Network)1-10 meterBluetooth, USB
LAN (Local Area Network)100m - 1kmJaringan kantor, sekolah
MAN (Metropolitan Area Network)1-50 kmJaringan antar gedung dalam satu kota
WAN (Wide Area Network)> 50 kmInternet, jaringan perusahaan multinasional

1.3 Topologi Jaringan

Topologi Jaringan

BUS
Semua terhubung ke satu kabel utama
RING
Data mengalir dalam lingkaran
STAR
Semua terhubung ke hub/switch pusat
MESH
Setiap node terhubung ke semua node
TREE
Struktur hierarkis seperti pohon
HYBRID
Kombinasi berbagai topologi
TopologiKelebihanKekurangan
BusMurah, sederhanaSingle point of failure, collision
RingEqual access, predictableSatu node rusak = jaringan down
StarMudah troubleshoot, scalableHub/switch = critical point
MeshRedundansi tinggi, reliableMahal, kompleks
TreeHierarkis, scalableRoot failure = total failure

2. Model OSI (Open Systems Interconnection)

Model OSI adalah kerangka konseptual untuk memahami komunikasi jaringan dalam 7 lapisan (layer).

Model OSI 7 Layer

7 Application Data HTTP, FTP, SMTP, DNS
6 Presentation Data SSL/TLS, JPEG, MPEG
5 Session Data NetBIOS, RPC, PPTP
4 Transport Segment TCP, UDP, SCTP
3 Network Packet IP, ICMP, ARP, OSPF
2 Data Link Frame Ethernet, PPP, Wi-Fi
1 Physical Bits Cables, Hubs, NICs
Upper Layers (Host)
Lower Layers (Media)

2.1 Detail Setiap Layer (Bottom-Up: Physical → Application)

Pendekatan Bottom-Up: Penjelasan dimulai dari layer paling bawah (Physical) menuju ke atas (Application), mengikuti alur bagaimana data diterima dan diproses naik ke aplikasi.


Layer 1: Physical Layer — “The Foundation”

Definisi: Layer paling dasar yang bertanggung jawab untuk transmisi dan penerimaan bit mentah (0 dan 1) melalui media fisik. Layer ini mendefinisikan karakteristik electrical, mechanical, procedural, dan functional untuk mengaktifkan, memelihara, dan menonaktifkan koneksi fisik.

Analogi: Seperti jalan raya dan kendaraan pengangkut — layer ini adalah infrastruktur fisik tempat data “berkendara”.

Fungsi Utama:

  1. Bit Transmission & Reception: Mengkonversi data digital ke sinyal dan sebaliknya
  2. Physical Topology Definition: Menentukan layout koneksi (bus, star, ring, mesh)
  3. Transmission Mode: Simplex, half-duplex, atau full-duplex
  4. Signal Encoding: Line coding untuk representasi bit
  5. Bit Synchronization: Sinkronisasi clock antara sender dan receiver
  6. Physical Medium Specification: Jenis kabel, konektor, frekuensi wireless

Media Transmisi:

KategoriTipeKecepatanJarak MaxKarakteristik
Copper - UTPCat5e1 Gbps100mMurah, rentan EMI
Copper - UTPCat610 Gbps55m (10G)Lebih baik dari Cat5e
Copper - UTPCat6a10 Gbps100mShielded, data center
Copper - CoaxialRG-6Variable500m+TV kabel, tahan interferensi
Fiber - SMFSingle-mode100+ Gbps100 kmLong distance, mahal
Fiber - MMFMulti-mode10-100 Gbps300m-2kmData center, lebih murah
WirelessWi-Fi 69.6 Gbps~30m indoorFleksibel, shared medium

Konektor Umum:

KonektorMediaPenggunaan
RJ-45UTP/STPEthernet LAN
RJ-11UTPTelepon
BNCCoaxialLegacy Ethernet, CCTV
F-TypeCoaxialTV kabel
SCFiberData center (square, push-pull)
LCFiberHigh-density (small form factor)
STFiberLegacy (bayonet twist)
MT-RJFiberDual fiber, compact

Signaling & Encoding:

SchemeDeskripsiPenggunaan
NRZ (Non-Return to Zero)High voltage = 1, Low = 0Serial communication
ManchesterTransisi di tengah setiap bit period10BASE-T Ethernet
4B/5B4 bit data → 5 bit code100BASE-TX
8B/10B8 bit data → 10 bit codeGigabit Ethernet, Fibre Channel
PAM-44 level amplitude400G Ethernet

Spesifikasi yang Didefinisikan:

  • Electrical: Voltage levels, impedance, signal timing
  • Mechanical: Connector dimensions, pin layouts, cable specifications
  • Procedural: Sequence untuk transmisi dan penerimaan bit
  • Functional: Fungsi setiap pin/wire dalam konektor

Device yang Beroperasi:

DeviceFungsi
HubRepeater multi-port, broadcast ke semua port
RepeaterMemperkuat sinyal untuk jarak lebih jauh
ModemModulator/Demodulator, konversi digital ↔ analog
Network CablesMedia transmisi copper/fiber
TransceiverTransmitter + Receiver, konversi sinyal
Patch PanelCentralized cable management

Standar Penting:

  • IEEE 802.3 — Ethernet physical layer
  • IEEE 802.11 — Wireless LAN physical layer
  • TIA/EIA-568 — Cabling standards (T568A, T568B)
  • ITU-T G.652 — Single-mode fiber specifications

PDU (Protocol Data Unit): Bits

Troubleshooting Layer 1:

  • Cek lampu link pada NIC dan switch
  • Periksa kabel (kink, damage, wrong type)
  • Test kabel dengan cable tester
  • Verifikasi koneksi konektor
  • Cek jarak kabel tidak melebihi batas

Definisi: Layer yang bertanggung jawab untuk transfer data yang reliable antara dua node yang terhubung langsung (directly connected). Layer ini membungkus paket dari layer 3 menjadi frame dan menangani akses ke media fisik.

Analogi: Seperti pengantar paket lokal yang mengurus pengiriman dari rumah ke rumah dalam satu kompleks — mengenal alamat fisik (MAC) setiap rumah.

Fungsi Utama:

  1. Framing: Membungkus paket menjadi frame dengan header dan trailer
  2. Physical Addressing: Menggunakan MAC address untuk identifikasi node
  3. Error Detection: CRC (Cyclic Redundancy Check) di trailer frame
  4. Flow Control: Mengatur kecepatan transmisi agar receiver tidak overflow
  5. Media Access Control: Mengatur bagaimana node mengakses shared medium
  6. Link Management: Establish, maintain, terminate link antar node

Sub-Layer IEEE:

Sub-LayerStandarFungsi
LLC (Logical Link Control)IEEE 802.2Multiplexing protokol layer 3, flow control, error notification
MAC (Media Access Control)IEEE 802.3/802.11Physical addressing, frame delimiting, media access

MAC Address (Media Access Control Address):

        OUI (Vendor)          NIC Specific
     ┌───────────────┐     ┌───────────────┐
     │  AA:BB:CC     │  :  │  DD:EE:FF     │
     └───────────────┘     └───────────────┘
        24 bits                 24 bits
              Total: 48 bits (6 bytes)

Karakteristik MAC Address:

  • Panjang 48-bit, ditulis dalam hexadecimal
  • Format: AA:BB:CC:DD:EE:FF atau AA-BB-CC-DD-EE-FF
  • OUI (3 byte pertama): Organizationally Unique Identifier — menunjukkan vendor/manufacturer
  • NIC-specific (3 byte terakhir): Unik untuk setiap NIC dari vendor tersebut
  • Burned-In Address (BIA): Tertanam permanen di ROM NIC
  • Dapat di-override dengan software (MAC spoofing)

MAC Address Khusus:

AddressNamaFungsi
FF:FF:FF:FF:FF:FFBroadcastDikirim ke semua node dalam segment
01:xx:xx:xx:xx:xxMulticastDikirim ke grup node tertentu
00:00:00:00:00:00UnspecifiedPlaceholder saat MAC belum diketahui

Ethernet Frame Format (IEEE 802.3):

┌──────────┬──────────┬──────┬─────────────────────────┬─────┐
│ Dest MAC │ Src MAC  │ Type │        Payload          │ FCS │
│ (6 bytes)│ (6 bytes)│(2 B) │    (46-1500 bytes)      │(4 B)│
└──────────┴──────────┴──────┴─────────────────────────┴─────┘
                              │← MTU: 1500 bytes →│

Media Access Methods:

MethodMekanismePenggunaan
CSMA/CDCarrier Sense, transmit, detect collision, backoff, retryHalf-duplex Ethernet
CSMA/CACarrier Sense, RTS/CTS, wait, transmitWireless (802.11)
Token PassingNode harus memiliki token untuk transmitToken Ring (legacy)

CSMA/CD Algorithm (Ethernet):

  1. Carrier Sense: Dengarkan apakah medium sibuk
  2. Multiple Access: Jika idle, mulai transmit
  3. Collision Detection: Jika collision terdeteksi:
    • Kirim jam signal
    • Tunggu random backoff time (exponential backoff)
    • Retry (maksimal 16 kali)

Protokol dan Standar:

StandarNamaKecepatanMedia
IEEE 802.3Ethernet10 Mbps - 400 GbpsCopper/Fiber
IEEE 802.11Wi-Fi11 Mbps - 9.6 GbpsWireless
IEEE 802.1QVLAN Tagging-Ethernet
IEEE 802.1DSpanning Tree-Ethernet
PPPPoint-to-Point ProtocolVariableSerial
HDLCHigh-Level Data Link ControlVariableSerial

Switching Methods:

MethodDeskripsiLatencyError Check
Store-and-ForwardTerima seluruh frame, cek CRC, forwardTinggiYa
Cut-ThroughBaca dest MAC, forward immediatelyRendahTidak
Fragment-FreeBaca 64 bytes pertama, forwardMediumPartial

Device yang Beroperasi:

DeviceFungsiCollision DomainBroadcast Domain
SwitchForward frame berdasarkan MAC tablePer port1 (atau per VLAN)
BridgeConnect 2 segment, filter by MACPer segment1
NICInterface node ke network--
Wireless APBridge antara wired dan wireless--

MAC Address Table (CAM Table):

  • Switch mempelajari MAC address dari source address pada incoming frame
  • Menyimpan mapping: MAC Address → Port
  • Digunakan untuk forwarding decision
  • Entries memiliki aging time (default 300 detik)

PDU (Protocol Data Unit): Frame

Troubleshooting Layer 2:

  • Cek MAC address table pada switch
  • Verifikasi VLAN configuration
  • Periksa duplex mismatch (half vs full)
  • Monitor collision dan CRC errors
  • Cek STP status untuk loop issues

Layer 3: Network Layer — “The GPS Navigator”

Definisi: Layer yang bertanggung jawab untuk pengalamatan logical dan routing paket data melewati berbagai jaringan yang berbeda. Layer ini menentukan “jalur terbaik” dari source ke destination melewati multiple hops.

Analogi: Seperti GPS yang menentukan rute perjalanan dari kota A ke kota B, melewati berbagai persimpangan dan jalan tol — layer ini menentukan jalur optimal untuk paket data.

Fungsi Utama:

  1. Logical Addressing: Memberikan alamat IP yang hierarkis dan routable
  2. Routing: Menentukan jalur terbaik berdasarkan routing protocol
  3. Packet Forwarding: Meneruskan paket ke next-hop router
  4. Fragmentation & Reassembly: Memecah paket besar jika melebihi MTU
  5. Error Reporting: ICMP untuk notifikasi masalah
  6. Quality of Service (QoS): Prioritisasi traffic tertentu

IPv4 Packet Header:

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤
│Version│  IHL  │    DSCP   │ECN│         Total Length          │
├───────┴───────┼───────────┴───┼───────────────────────────────┤
│         Identification        │Flags│     Fragment Offset     │
├───────────────┼───────────────┼─────┴─────────────────────────┤
│      TTL      │   Protocol    │        Header Checksum        │
├───────────────┴───────────────┴───────────────────────────────┤
│                       Source IP Address                       │
├───────────────────────────────────────────────────────────────┤
│                    Destination IP Address                     │
├───────────────────────────────────────────────────────────────┤
│                    Options (if IHL > 5)                       │
└───────────────────────────────────────────────────────────────┘

Field Penting IPv4 Header:

FieldSizeDeskripsi
Version4 bitsVersi IP (4 untuk IPv4)
IHL4 bitsHeader length dalam 32-bit words
DSCP/ToS8 bitsQuality of Service marking
Total Length16 bitsTotal ukuran paket (max 65,535 bytes)
TTL8 bitsMax hops sebelum discarded (default 64/128/255)
Protocol8 bitsProtocol layer atas (TCP=6, UDP=17, ICMP=1)
Source/Dest IP32 bits eachAlamat pengirim dan penerima

Protokol Layer 3:

ProtokolTipeFungsi
IP (IPv4/IPv6)CorePengalamatan dan routing dasar
ICMPUtilityError reporting, diagnostik (ping, traceroute)
ICMPv6UtilityICMP untuk IPv6 + Neighbor Discovery
ARPResolutionIP → MAC address resolution
RARPResolutionMAC → IP (legacy, digantikan DHCP)
IGMPMulticastMulticast group management

Routing Protocols:

ProtokolTipeAlgoritmaMetricUse Case
RIPIGP, Distance VectorBellman-FordHop count (max 15)Small networks
OSPFIGP, Link StateDijkstraCost (bandwidth)Enterprise
IS-ISIGP, Link StateDijkstraConfigurableISP, large enterprise
EIGRPIGP, HybridDUALComposite (BW, delay, etc)Cisco networks
BGPEGP, Path VectorBest PathAS Path, policiesInternet backbone

Konsep Penting:

KonsepDeskripsi
IP AddressAlamat logical 32-bit (IPv4) atau 128-bit (IPv6)
Subnet MaskMembedakan network portion dan host portion
CIDRClassless Inter-Domain Routing (/24, /16, etc)
Default GatewayRouter untuk mencapai network lain
Routing TableDatabase rute dengan destination, mask, next-hop, interface
TTLTime to Live — mencegah infinite loop
MTUMaximum Transmission Unit — ukuran maksimum paket
FragmentationMemecah paket jika lebih besar dari MTU

Proses Routing Decision:

  1. Terima paket, baca destination IP
  2. Bandingkan dengan routing table (longest prefix match)
  3. Tentukan next-hop dan exit interface
  4. Decrement TTL (discard jika = 0)
  5. Forward paket ke next-hop

Device yang Beroperasi:

DeviceFungsi
RouterForward paket antar network berbeda
Layer 3 SwitchSwitch dengan kemampuan routing
FirewallFilter paket berdasarkan rules
Load BalancerDistribute traffic ke multiple server

PDU (Protocol Data Unit): Packet

Troubleshooting Layer 3:

  • ping untuk test connectivity
  • traceroute/tracert untuk trace path
  • show ip route untuk routing table
  • Verifikasi IP address dan subnet mask
  • Cek default gateway configuration
  • Periksa ACL/firewall rules

Layer 4: Transport Layer — “The Reliable Courier”

Definisi: Layer yang menyediakan komunikasi end-to-end antara aplikasi di host yang berbeda. Bertanggung jawab untuk segmentasi data, reliability, flow control, dan multiplexing menggunakan port numbers.

Analogi: Seperti perusahaan kurir yang menjamin paket sampai dengan aman (TCP) atau kurir express yang cepat tapi tidak ada jaminan (UDP).

Fungsi Utama:

  1. Segmentation & Reassembly: Memecah data menjadi segment, menyusun ulang di receiver
  2. Connection Control: Connection-oriented (TCP) atau connectionless (UDP)
  3. Flow Control: Mengatur kecepatan transmisi agar tidak membanjiri receiver
  4. Error Control: Deteksi dan recovery dari error (TCP)
  5. Multiplexing/Demultiplexing: Menggunakan port untuk membedakan aplikasi

TCP vs UDP — Perbandingan Mendalam:

KarakteristikTCPUDP
Full NameTransmission Control ProtocolUser Datagram Protocol
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityGuaranteed delivery, ACK-basedBest-effort, no ACK
OrderingSequence numbers, in-order deliveryNo ordering
Flow ControlSliding windowNone
Congestion ControlYa (slow start, congestion avoidance)None
Error RecoveryRetransmission on timeout/duplicate ACKNone
Header Size20-60 bytes8 bytes
OverheadTinggiRendah
SpeedRelatif lambatCepat
Broadcast/MulticastTidakYa

TCP Header (20-60 bytes):

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
├───────────────────────────────┬───────────────────────────────┤
│          Source Port          │       Destination Port        │
├───────────────────────────────┴───────────────────────────────┤
│                        Sequence Number                        │
├───────────────────────────────────────────────────────────────┤
│                    Acknowledgment Number                      │
├───────┬───────┬─┬─┬─┬─┬─┬─┬───────────────────────────────────┤
│Offset │Reserve│U│A│P│R│S│F│            Window                 │
│       │       │R│C│S│S│Y│I│                                   │
│       │       │G│K│H│T│N│N│                                   │
├───────┴───────┴─┴─┴─┴─┴─┴─┼───────────────────────────────────┤
│          Checksum          │         Urgent Pointer           │
├────────────────────────────┴───────────────────────────────────┤
│                    Options (variable)                         │
└───────────────────────────────────────────────────────────────┘

TCP Flags dan Fungsinya:

FlagNamaFungsi
SYNSynchronizeInisiasi koneksi, sinkronisasi sequence number
ACKAcknowledgeKonfirmasi penerimaan data
FINFinishRequest untuk menutup koneksi
RSTResetAbort koneksi secara paksa
PSHPushKirim data segera ke aplikasi (jangan buffer)
URGUrgentAda data urgent (gunakan urgent pointer)

TCP Three-Way Handshake:

Client                              Server
   │                                   │
   │ ──── SYN (seq=x) ───────────────→ │  1. Client initiates
   │                                   │
   │ ←── SYN-ACK (seq=y, ack=x+1) ──── │  2. Server responds
   │                                   │
   │ ──── ACK (ack=y+1) ─────────────→ │  3. Connection established
   │                                   │
   │ ═══════ DATA TRANSFER ══════════  │

TCP Four-Way Termination:

Client                              Server
   │                                   │
   │ ──── FIN ───────────────────────→ │  1. Client initiates close
   │                                   │
   │ ←──── ACK ───────────────────────│  2. Server acknowledges
   │                                   │
   │ ←──── FIN ───────────────────────│  3. Server closes
   │                                   │
   │ ──── ACK ───────────────────────→ │  4. Client acknowledges
   │                                   │
   TIME_WAIT (2×MSL)               CLOSED

TCP Flow Control — Sliding Window:

  • Receiver mengiklankan window size (buffer available)
  • Sender tidak boleh mengirim lebih dari window size tanpa ACK
  • Window “slides” forward setelah menerima ACK
  • Prevents receiver buffer overflow

TCP Congestion Control:

  • Slow Start: Mulai dengan congestion window kecil, double setiap RTT
  • Congestion Avoidance: Tambah linear setelah threshold
  • Fast Retransmit: Retransmit setelah 3 duplicate ACKs
  • Fast Recovery: Kurangi congestion window, lanjutkan transmisi

UDP Header (8 bytes):

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
├───────────────────────────────┬───────────────────────────────┤
│          Source Port          │       Destination Port        │
├───────────────────────────────┼───────────────────────────────┤
│             Length            │           Checksum            │
└───────────────────────────────┴───────────────────────────────┘

Port Number Ranges:

RangeKategoriDeskripsi
0-1023Well-known PortsReserved untuk sistem dan services standar
1024-49151Registered PortsUntuk aplikasi vendor/user tertentu
49152-65535Dynamic/EphemeralDigunakan client untuk source port

Use Cases:

ProtokolApplicationAlasan
TCPHTTP/HTTPSWebpage harus lengkap dan terurut
TCPFTPFile harus utuh tanpa corruption
TCPSMTP/IMAPEmail harus terkirim lengkap
TCPSSHSession harus reliable
UDPDNSQuery kecil, response cepat penting
UDPVoIPReal-time, sedikit packet loss OK
UDPVideo streamingBuffering handles loss, latency critical
UDPOnline gamingSpeed > reliability
UDPDHCPBroadcast, connectionless

PDU (Protocol Data Unit): Segment (TCP) / Datagram (UDP)

Troubleshooting Layer 4:

  • netstat -an untuk melihat koneksi aktif
  • ss -tulpn untuk listening ports
  • Cek firewall rules untuk port blocking
  • Verify aplikasi listening pada port yang benar
  • Monitor untuk connection timeouts atau resets

Layer 5: Session Layer — “The Meeting Coordinator”

Definisi: Layer yang bertanggung jawab untuk establishing, maintaining, dan terminating sessions (dialog) antara dua end-system. Mengelola sesi komunikasi agar data dapat dipertukarkan secara terorganisir.

Analogi: Seperti koordinator meeting yang menjadwalkan rapat, memastikan semua peserta hadir, mengatur giliran bicara, dan menutup rapat dengan benar.

Fungsi Utama:

  1. Session Establishment: Negosiasi dan setup koneksi antar aplikasi
  2. Session Maintenance: Menjaga session aktif, menangani interruption
  3. Session Termination: Mengakhiri session secara graceful
  4. Dialog Control: Mengatur mode komunikasi (simplex/duplex)
  5. Synchronization: Menambahkan checkpoint untuk recovery
  6. Token Management: Mengontrol akses ke shared resources

Mode Dialog:

ModeDeskripsiContoh
SimplexSatu arah sajaTV broadcast, keyboard input
Half-DuplexDua arah, bergantianWalkie-talkie, CB radio
Full-DuplexDua arah, bersamaanTelepon, video call

Mekanisme Session Layer:

MekanismeFungsiContoh
AuthenticationVerifikasi identitasLogin credentials
AuthorizationVerifikasi hak aksesPermission check
Session RestorationRecovery setelah failureResume download
CheckpointingSave progress periodikDatabase transaction
Activity ManagementSinkronisasi multiple activitiesRPC calls

Protokol dan Teknologi:

Protokol/TeknologiFungsi
NetBIOSNetwork Basic I/O System — session management untuk Windows
RPC (Remote Procedure Call)Memanggil procedure di remote host
PPTPPoint-to-Point Tunneling — VPN sessions
L2TPLayer 2 Tunneling Protocol
NFSNetwork File System — file sharing sessions
SQL SessionsDatabase connection management
SIPSession Initiation Protocol — VoIP sessions
H.323Multimedia conferencing sessions

Session States:

  1. Idle: Tidak ada session
  2. Establishing: Negosiasi dan setup
  3. Established: Session aktif, data dapat ditransfer
  4. Releasing: Proses penutupan
  5. Closed: Session selesai

Contoh Praktis:

  • Web Session: Login → browse pages → logout (session cookie menjaga state)
  • Video Conference: Setup call → communicate → end call
  • File Download: Start → checkpoint → resume if interrupted → complete
  • Database: Connect → query → transaction → disconnect

PDU (Protocol Data Unit): Data

Catatan: Dalam praktik modern (TCP/IP), fungsi session layer sering digabung ke application layer atau ditangani oleh protokol seperti TLS.


Layer 6: Presentation Layer — “The Universal Translator”

Definisi: Layer yang bertanggung jawab untuk translasi, format, dan representasi data. Memastikan data dari application layer di satu sistem dapat dibaca oleh application layer di sistem lain, terlepas dari perbedaan internal representation.

Analogi: Seperti penerjemah di konferensi internasional yang mengkonversi bahasa dan memastikan semua peserta memahami pesan dengan benar.

Fungsi Utama:

  1. Data Translation: Konversi format data antar sistem berbeda
  2. Character Encoding: Transformasi karakter (ASCII ↔ EBCDIC ↔ Unicode)
  3. Data Encryption/Decryption: Keamanan data dalam transit
  4. Data Compression/Decompression: Efisiensi bandwidth
  5. Data Serialization: Mengubah struktur data menjadi byte stream

Proses Utama:

ProsesDeskripsiContoh
TranslationKonversi representasi dataEBCDIC ↔ ASCII
EncodingRepresentasi karakterUTF-8, UTF-16, ISO-8859-1
EncryptionMengamankan dataTLS, AES, RSA
CompressionMengurangi ukurangzip, deflate, LZ77
SerializationStruktur → byte streamJSON, XML, Protocol Buffers

Encryption di Presentation Layer:

ProtokolTipeDeskripsi
SSLSymmetric + AsymmetricSecure Sockets Layer (deprecated)
TLS 1.2/1.3Symmetric + AsymmetricTransport Layer Security (current)
HTTPSTLS over HTTPSecure web browsing

Format Data:

KategoriFormatKarakteristik
TextASCII, UTF-8, UTF-16Character encoding
ImagesJPEG, PNG, GIF, WebPLossy/lossless compression
AudioMP3, AAC, FLAC, WAVCompressed/uncompressed
VideoH.264, H.265, VP9, AV1Codec untuk streaming
DocumentsPDF, DOCX, ODTStructured documents
Data InterchangeJSON, XML, YAMLApplication data
BinaryProtocol Buffers, MessagePackEfficient serialization

Compression Types:

TipeKarakteristikContoh
LosslessData asli dapat di-recover sempurnaZIP, PNG, FLAC
LossyBeberapa data hilang untuk ratio lebih baikJPEG, MP3, H.264

Character Encoding Evolution:

  • ASCII: 7-bit, 128 karakter (English only)
  • Extended ASCII: 8-bit, 256 karakter
  • ISO-8859-1: 8-bit, Western European
  • Unicode: Universal character set
    • UTF-8: Variable length (1-4 bytes), backward compatible dengan ASCII
    • UTF-16: 2 or 4 bytes per character
    • UTF-32: Fixed 4 bytes per character

TLS Handshake Simplified:

Client                              Server
   │                                   │
   │ ──── Client Hello ──────────────→ │  (TLS version, cipher suites)
   │                                   │
   │ ←──── Server Hello ───────────── │  (Chosen cipher, certificate)
   │                                   │
   │ ←──── Certificate ───────────────│  (Server's public key)
   │                                   │
   │ ──── Key Exchange ─────────────→ │  (Pre-master secret)
   │                                   │
   │ ←───→ Finished ←───→             │
   │                                   │
   │ ═════ Encrypted Data ═══════════ │

PDU (Protocol Data Unit): Data

Catatan: Dalam TCP/IP model, presentation layer functions sering diimplementasikan di application layer (contoh: TLS di HTTPS).


Layer 7: Application Layer — “The User Interface”

Definisi: Layer tertinggi yang menyediakan antarmuka langsung antara aplikasi pengguna dan jaringan. Layer ini adalah titik di mana user applications mengakses network services.

Analogi: Seperti resepsionis hotel yang berinteraksi langsung dengan tamu dan menyediakan berbagai layanan — layer ini adalah “wajah” jaringan yang dilihat aplikasi.

Fungsi Utama:

  1. Network Service Access: Menyediakan interface ke network services
  2. Resource Sharing: Akses ke file, printer, dan resources lainnya
  3. Remote Access: Akses ke remote hosts dan applications
  4. Network Management: Monitoring dan management jaringan
  5. Email Services: Sending dan receiving email
  6. Directory Services: Lookup services (DNS, LDAP)

Protokol Utama — Web:

ProtokolPortDeskripsi
HTTP80HyperText Transfer Protocol — web browsing
HTTPS443HTTP Secure — encrypted web
HTTP/2443Multiplexed, binary framing, header compression
HTTP/3443QUIC-based, improved performance
WebSocket80/443Full-duplex communication

HTTP Methods:

MethodIdempotentSafeUse Case
GETYesYesRetrieve resource
POSTNoNoCreate resource, submit data
PUTYesNoReplace entire resource
PATCHNoNoPartial update
DELETEYesNoRemove resource
HEADYesYesGET without body
OPTIONSYesYesGet supported methods

HTTP Status Codes:

RangeCategoryExamples
1xxInformational100 Continue, 101 Switching Protocols
2xxSuccess200 OK, 201 Created, 204 No Content
3xxRedirection301 Moved Permanently, 302 Found, 304 Not Modified
4xxClient Error400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found
5xxServer Error500 Internal Error, 502 Bad Gateway, 503 Service Unavailable

Protokol — Email:

ProtokolPortDirectionDeskripsi
SMTP25/587OutgoingSend email
POP3110/995IncomingDownload & delete from server
IMAP143/993IncomingSync with server, multi-device

Protokol — File Transfer:

ProtokolPortDeskripsi
FTP20/21File Transfer Protocol (data/control)
SFTP22SSH File Transfer Protocol (secure)
FTPS990FTP over SSL/TLS
SCP22Secure Copy Protocol
SMB/CIFS445Windows file sharing
NFS2049UNIX file sharing

Protokol — Remote Access:

ProtokolPortDeskripsi
SSH22Secure Shell — encrypted remote access
Telnet23Unencrypted terminal (deprecated)
RDP3389Remote Desktop Protocol (Windows)
VNC5900+Virtual Network Computing

Protokol — Network Services:

ProtokolPortDeskripsi
DNS53Domain Name System — name resolution
DHCP67/68Dynamic Host Configuration
NTP123Network Time Protocol
SNMP161/162Simple Network Management
LDAP389/636Directory services
Syslog514System logging

DNS Record Types:

TypeDeskripsi
AIPv4 address
AAAAIPv6 address
CNAMECanonical name (alias)
MXMail exchange
NSName server
PTRPointer (reverse lookup)
TXTText record (SPF, DKIM, etc)
SOAStart of Authority
SRVService locator

DHCP Process (DORA):

StepMessageDirectionPurpose
1DiscoverClient → BroadcastFind DHCP server
2OfferServer → ClientOffer IP configuration
3RequestClient → BroadcastAccept offer
4AcknowledgeServer → ClientConfirm assignment

PDU (Protocol Data Unit): Data/Message

Troubleshooting Layer 7:

  • nslookup/dig untuk DNS
  • curl/wget untuk HTTP testing
  • Cek application logs
  • Verify service running dan listening
  • Test dengan protocol-specific tools

2.2 Ringkasan Layer (Bottom-Up)

LayerNamaPDUAddressDeviceFungsi Utama
1PhysicalBits-Hub, RepeaterTransmisi sinyal fisik
2Data LinkFrameMACSwitch, BridgeNode-to-node delivery
3NetworkPacketIPRouterEnd-to-end routing
4TransportSegmentPort-Process-to-process
5SessionData--Session management
6PresentationData--Data format & encryption
7ApplicationData-GatewayNetwork services

Mnemonic (Bottom-Up): Please Do Not Throw Sausage Pizza Away

2.2 Enkapsulasi Data

┌─────────────────────────────────────────────────────────────────────────┐
│                      PROSES ENKAPSULASI                                 │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  SENDER                                          RECEIVER               │
│                                                                         │
│  Layer 7-5    ┌──────────┐                      ┌──────────┐            │
│               │   DATA   │                      │   DATA   │            │
│               └──────────┘                      └──────────┘            │
│                    ↓                                 ↑                  │
│  Layer 4     ┌────┬──────────┐              ┌────┬──────────┐           │
│              │ H4 │   DATA   │              │ H4 │   DATA   │           │
│              └────┴──────────┘  SEGMENT     └────┴──────────┘           │
│                    ↓                                 ↑                  │
│  Layer 3    ┌────┬────┬──────────┐      ┌────┬────┬──────────┐          │
│             │ H3 │ H4 │   DATA   │      │ H3 │ H4 │   DATA   │          │
│             └────┴────┴──────────┘      └────┴────┴──────────┘          │
│                    ↓            PACKET           ↑                      │
│  Layer 2   ┌────┬────┬────┬──────────┬────┐┌────┬────┬────┬──────────┬──┐│
│            │ H2 │ H3 │ H4 │   DATA   │ T2 ││ H2 │ H3 │ H4 │   DATA   │T2││
│            └────┴────┴────┴──────────┴────┘└────┴────┴────┴──────────┴──┘│
│                    ↓            FRAME            ↑                      │
│  Layer 1        101010110101...    →→→    101010110101...               │
│                     BITS                                                │
│                                                                         │
│  H = Header    T = Trailer                                              │
└─────────────────────────────────────────────────────────────────────────┘

3. Model TCP/IP

Model TCP/IP adalah implementasi praktis dari model OSI yang digunakan di internet.

3.1 Perbandingan OSI vs TCP/IP

┌─────────────────────────────────────────────────────────────────────────┐
│                    OSI Model  vs  TCP/IP Model                          │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│      OSI (7 Layer)                    TCP/IP (4 Layer)                  │
│   ┌────────────────┐                ┌────────────────┐                  │
│   │  Application   │ ───┐           │                │                  │
│   ├────────────────┤    ├──────────→│  Application   │                  │
│   │  Presentation  │ ───┤           │                │                  │
│   ├────────────────┤    │           ├────────────────┤                  │
│   │    Session     │ ───┘           │                │                  │
│   ├────────────────┤                ├────────────────┤                  │
│   │   Transport    │ ──────────────→│   Transport    │                  │
│   ├────────────────┤                ├────────────────┤                  │
│   │    Network     │ ──────────────→│    Internet    │                  │
│   ├────────────────┤                ├────────────────┤                  │
│   │   Data Link    │ ───┐           │                │                  │
│   ├────────────────┤    ├──────────→│ Network Access │                  │
│   │    Physical    │ ───┘           │                │                  │
│   └────────────────┘                └────────────────┘                  │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

3.2 Layer TCP/IP

LayerFungsiProtokol
ApplicationInteraksi user, data formattingHTTP, FTP, SMTP, DNS, SSH
TransportEnd-to-end communicationTCP, UDP
InternetLogical addressing, routingIP, ICMP, ARP
Network AccessPhysical transmissionEthernet, Wi-Fi, PPP

4. IP Addressing

4.1 IPv4

Format: 32-bit, ditulis dalam dotted-decimal (4 oktet) Contoh: 192.168.1.100

┌─────────────────────────────────────────────────────────────────────────┐
│                         IPv4 ADDRESS FORMAT                             │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│      Decimal:     192    .    168    .     1     .    100               │
│                    │          │           │           │                 │
│      Binary:   11000000   10101000   00000001   01100100                │
│                └────────────────────────────────────────┘               │
│                           32 bits total                                 │
│                                                                         │
│  Network Portion          │         Host Portion                        │
│  (Identifies network)     │    (Identifies device)                      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

4.2 Kelas IP Address (Classful)

KelasRange Oktet 1Default SubnetNetwork/Host BitsJumlah Host
A1-126255.0.0.0 (/8)8/2416,777,214
B128-191255.255.0.0 (/16)16/1665,534
C192-223255.255.255.0 (/24)24/8254
D224-239Multicast--
E240-255Experimental--

Catatan: 127.x.x.x adalah loopback address (localhost)

4.3 IP Address Khusus

AlamatFungsi
0.0.0.0Default route / this network
127.0.0.1Loopback (localhost)
255.255.255.255Limited broadcast
x.x.x.0Network address
x.x.x.255Broadcast address (untuk /24)

4.4 Private IP Address (RFC 1918)

┌─────────────────────────────────────────────────────────────────────────┐
│                     PRIVATE IP ADDRESS RANGES                           │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   Class A:    10.0.0.0    -    10.255.255.255    (10.0.0.0/8)           │
│               ├───────────────────────────────────────────┤             │
│               1 Network, 16,777,214 Hosts                               │
│                                                                         │
│   Class B:    172.16.0.0  -    172.31.255.255    (172.16.0.0/12)        │
│               ├───────────────────────────────────────────┤             │
│               16 Networks, 1,048,574 Hosts                              │
│                                                                         │
│   Class C:    192.168.0.0 -    192.168.255.255   (192.168.0.0/16)       │
│               ├───────────────────────────────────────────┤             │
│               256 Networks, 65,534 Hosts                                │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

4.5 Subnetting

Subnet Mask menentukan porsi network dan host dari IP address.

CIDR Notation: /prefix menunjukkan jumlah bit network

Rumus Penting:

  • Jumlah Subnet: $2^n$ (n = bit yang dipinjam)
  • Jumlah Host per Subnet: $2^h - 2$ (h = bit host tersisa)
  • Block Size: $256 - \text{nilai oktet subnet}$

Contoh Subnetting: 192.168.1.0/26

192.168.1.0 / 26
1
1
0
0
0
0
0
0
192
1
0
1
0
1
0
0
0
168
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
Network (26 bits)
Host (6 bits)
Subnet Mask
255.255.255.192
Usable Hosts
2⁶ - 2 = 62
Network Address
192.168.1.0
Broadcast
192.168.1.63

Tabel Subnet Mask Umum

CIDRSubnet MaskHost BitsUsable HostsBlock Size
/24255.255.255.08254256
/25255.255.255.1287126128
/26255.255.255.19266264
/27255.255.255.22453032
/28255.255.255.24041416
/29255.255.255.248368
/30255.255.255.252224
/31255.255.255.25410*2
/32255.255.255.255011

*/31 digunakan untuk point-to-point links (RFC 3021)

4.6 IPv6

Format: 128-bit, ditulis dalam hexadecimal (8 grup x 16 bit) Contoh: 2001:0db8:85a3:0000:0000:8a2e:0370:7334

┌─────────────────────────────────────────────────────────────────────────┐
│                         IPv6 ADDRESS FORMAT                             │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   Full:     2001:0db8:85a3:0000:0000:8a2e:0370:7334                     │
│                                                                         │
│   Compressed Rules:                                                     │
│   1. Leading zeros dapat dihilangkan:  0db8 → db8                       │
│   2. Grup 0000 berturut-turut → :: (sekali saja)                        │
│                                                                         │
│   Compressed: 2001:db8:85a3::8a2e:370:7334                              │
│                                                                         │
│   ┌────────────────────────────┬────────────────────────────┐           │
│   │     Network Prefix         │       Interface ID         │           │
│   │        (64 bits)           │        (64 bits)           │           │
│   └────────────────────────────┴────────────────────────────┘           │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Tipe IPv6 Address

TipePrefixDeskripsi
Global Unicast2000::/3Public routable (seperti IPv4 public)
Link-Localfe80::/10Otomatis, hanya untuk local link
Unique Localfc00::/7Private address (seperti 10.x.x.x)
Multicastff00::/8One-to-many communication
Loopback::1Localhost
Unspecified::Seperti 0.0.0.0

IPv4 vs IPv6

AspekIPv4IPv6
Address Size32-bit128-bit
Total Addresses~4.3 billion~340 undecillion
FormatDecimalHexadecimal
HeaderVariable (20-60 bytes)Fixed (40 bytes)
NATRequiredNot needed
IPSecOptionalBuilt-in
BroadcastYesNo (Multicast)

5. Transport Layer Protocols

5.1 TCP (Transmission Control Protocol)

TCP adalah protokol connection-oriented yang menjamin pengiriman data secara reliable dan terurut.

TCP Three-Way Handshake

TCP Three-Way Handshake

💻
Client
🖥️
Server
1
SYN (seq=x)
2
SYN-ACK (seq=y, ack=x+1)
3
ACK (ack=y+1)
  1. SYN Client mengirim request koneksi dengan sequence number
  2. SYN-ACK Server merespons dengan acknowledge dan sequence number sendiri
  3. ACK Client mengonfirmasi, koneksi established

TCP Header (20-60 bytes)

┌─────────────────────────────────────────────────────────────────────────┐
│                          TCP HEADER FORMAT                              │
├─────────────────────────────────────────────────────────────────────────┤
│  0                   1                   2                   3          │
│  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1        │
│ ┌───────────────────────────────┬───────────────────────────────┐       │
│ │       Source Port (16)        │    Destination Port (16)      │       │
│ ├───────────────────────────────┴───────────────────────────────┤       │
│ │                   Sequence Number (32)                        │       │
│ ├───────────────────────────────────────────────────────────────┤       │
│ │                 Acknowledgment Number (32)                    │       │
│ ├────────┬────────┬─────────────┬───────────────────────────────┤       │
│ │Offset  │Reserved│   Flags     │         Window (16)           │       │
│ │  (4)   │  (3)   │    (9)      │                               │       │
│ ├────────┴────────┴─────────────┼───────────────────────────────┤       │
│ │       Checksum (16)           │     Urgent Pointer (16)       │       │
│ ├───────────────────────────────┴───────────────────────────────┤       │
│ │                    Options (if any)                           │       │
│ └───────────────────────────────────────────────────────────────┘       │
│                                                                         │
│  Flags: URG, ACK, PSH, RST, SYN, FIN                                    │
└─────────────────────────────────────────────────────────────────────────┘

TCP Flags

FlagNamaFungsi
SYNSynchronizeInisiasi koneksi
ACKAcknowledgeKonfirmasi penerimaan
FINFinishTerminasi koneksi
RSTResetAbort koneksi
PSHPushKirim data segera ke aplikasi
URGUrgentData urgent

TCP Connection Termination (Four-Way Handshake)

      Client                    Server
         │                         │
         │──── FIN ───────────────→│  1. Client initiates close
         │                         │
         │←─── ACK ────────────────│  2. Server acknowledges
         │                         │
         │←─── FIN ────────────────│  3. Server closes its side
         │                         │
         │──── ACK ───────────────→│  4. Client acknowledges
         │                         │
      CLOSED                    CLOSED

5.2 UDP (User Datagram Protocol)

UDP adalah protokol connectionless yang cepat tapi tidak reliable.

UDP Header (8 bytes)

┌─────────────────────────────────────────────────────────────────────────┐
│                          UDP HEADER FORMAT                              │
├─────────────────────────────────────────────────────────────────────────┤
│  0                   1                   2                   3          │
│  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1        │
│ ┌───────────────────────────────┬───────────────────────────────┐       │
│ │       Source Port (16)        │    Destination Port (16)      │       │
│ ├───────────────────────────────┼───────────────────────────────┤       │
│ │         Length (16)           │        Checksum (16)          │       │
│ └───────────────────────────────┴───────────────────────────────┘       │
│                                                                         │
│  Simple header = Low overhead = Fast transmission                       │
└─────────────────────────────────────────────────────────────────────────┘

Kapan Menggunakan TCP vs UDP

Use CaseTCPUDP
Web browsing (HTTP/HTTPS)
Email (SMTP, IMAP)
File transfer (FTP)
DNS queries
Video streaming
VoIP
Online gaming
DHCP

5.3 Port Numbers

Port adalah endpoint logical untuk komunikasi.

RangeNamaContoh
0-1023Well-known PortsHTTP (80), HTTPS (443), SSH (22)
1024-49151Registered PortsMySQL (3306), PostgreSQL (5432)
49152-65535Dynamic/PrivateClient-side ports

Port Umum yang Wajib Dihapal

PortProtokolLayanan
20, 21TCPFTP (data/control)
22TCPSSH
23TCPTelnet
25TCPSMTP
53TCP/UDPDNS
67, 68UDPDHCP (server/client)
80TCPHTTP
110TCPPOP3
143TCPIMAP
443TCPHTTPS
3389TCPRDP

6. Routing

Routing adalah proses menentukan jalur terbaik untuk mengirim paket dari sumber ke tujuan.

6.1 Konsep Dasar Routing

Konsep Routing Dasar

Network A
10.0.0.0/24
💻
PC1 .10
💻
PC2 .20
📡
Router R1
Network B
20.0.0.0/24
🖥️
PC3 .10
🖥️
PC4 .20
📋 Routing Table R1
Destination Mask Gateway Interface
10.0.0.0 255.255.255.0 Directly Connected eth0
20.0.0.0 255.255.255.0 Directly Connected eth1
0.0.0.0 0.0.0.0 ISP Router eth2

6.2 Tipe Routing

TipeDeskripsiKelebihanKekurangan
Static RoutingDikonfigurasi manualSimple, secure, low overheadTidak scalable, tidak adaptif
Dynamic RoutingOtomatis via protokolScalable, self-healingComplex, overhead lebih tinggi
Default RoutingRoute untuk semua unknown destinationsSimple gateway of last resortTidak optimal

6.3 Routing Protocols

Klasifikasi Routing Protocols

Dynamic Routing Protocols
IGP (Interior Gateway)
RIP
Distance Vector
OSPF
Link State
IS-IS
Link State
EIGRP
Hybrid (Cisco)
EGP (Exterior Gateway)
BGP
Path Vector

Perbandingan Routing Protocols

ProtokolTipeAlgoritmaMetricMax HopsConvergence
RIPDistance VectorBellman-FordHop count15Slow
RIPv2Distance VectorBellman-FordHop count15Slow
OSPFLink StateDijkstraCost (bandwidth)UnlimitedFast
EIGRPHybridDUALComposite255Very Fast
BGPPath VectorBest PathAS Path, policies-Variable

6.4 Administrative Distance

Ketika ada multiple routes ke destination yang sama, Administrative Distance menentukan route mana yang dipilih.

Route SourceAD
Connected0
Static1
EIGRP Summary5
eBGP20
EIGRP90
OSPF110
IS-IS115
RIP120
iBGP200
Unknown255

Semakin kecil AD, semakin trusted route tersebut


7. Network Devices

7.1 Perbandingan Network Devices

┌─────────────────────────────────────────────────────────────────────────┐
│                    NETWORK DEVICES BY OSI LAYER                         │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  Layer 7-4   ┌─────────────────────────────────────────────────────┐    │
│  Application │                    FIREWALL                         │    │
│  to Transport│     Application Gateway, Proxy, Deep Inspection     │    │
│              └─────────────────────────────────────────────────────┘    │
│                                                                         │
│  Layer 3     ┌─────────────────────────────────────────────────────┐    │
│  Network     │                     ROUTER                          │    │
│              │     Routes packets between different networks       │    │
│              │     Uses IP addresses, routing tables              │    │
│              └─────────────────────────────────────────────────────┘    │
│                                                                         │
│  Layer 2     ┌─────────────────────────────────────────────────────┐    │
│  Data Link   │                     SWITCH                          │    │
│              │     Forwards frames within same network             │    │
│              │     Uses MAC addresses, MAC address table          │    │
│              └─────────────────────────────────────────────────────┘    │
│                                                                         │
│  Layer 1     ┌─────────────────────────────────────────────────────┐    │
│  Physical    │               HUB / REPEATER                        │    │
│              │     Repeats signals, no intelligence                │    │
│              │     Broadcasts to all ports                        │    │
│              └─────────────────────────────────────────────────────┘    │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

7.2 Detail Setiap Device

DeviceLayerFungsiCollision DomainBroadcast Domain
Hub1Repeater multi-port1 (shared)1
Bridge2Connect 2 segmentsSeparated1
Switch2Multi-port bridgePer port1
Router3Route antar networkPer portPer port
Gateway7Protocol translationPer portPer port

7.3 Switch vs Hub

         HUB (Layer 1)                    SWITCH (Layer 2)

    ┌───┬───┬───┬───┐                ┌───┬───┬───┬───┐
    │ 1 │ 2 │ 3 │ 4 │                │ 1 │ 2 │ 3 │ 4 │
    └─┬─┴─┬─┴─┬─┴─┬─┘                └─┬─┴─┬─┴─┬─┴─┬─┘
      │   │   │   │                    │   │   │   │
      │   │   │   │                    │   │   │   │
    ┌─┴─┐┌┴──┐┌┴──┐┌┴──┐             ┌─┴─┐┌┴──┐┌┴──┐┌┴──┐
    │PC1││PC2││PC3││PC4│             │PC1││PC2││PC3││PC4│
    └───┘└───┘└───┘└───┘             └───┘└───┘└───┘└───┘

    PC1 → Hub:                        PC1 → Switch:
    Hub broadcasts to ALL ports       Switch forwards ONLY to PC2

    🔴 Collision possible             🟢 No collision
    🔴 Bandwidth shared               🟢 Full bandwidth per port
    🔴 All traffic visible            🟢 Traffic isolated

8. VLAN (Virtual LAN)

VLAN memungkinkan segmentasi logical jaringan tanpa memerlukan hardware terpisah.

8.1 Konsep VLAN

Tanpa VLAN vs Dengan VLAN

❌ Tanpa VLAN
1
2
3
4
5
6
💻 HR
💻 IT
💻 Sales
Semua dalam 1 broadcast domain. Broadcast dari HR sampai ke IT dan Sales.
✅ Dengan VLAN
1
2
3
4
5
6
💻 HR (V10)
💻 IT (V20)
💻 Sales (V30)
Broadcast domain terpisah. Komunikasi antar VLAN butuh router (inter-VLAN routing).
VLAN 10 (HR)
VLAN 20 (IT)
VLAN 30 (Sales)

8.2 Tipe VLAN Port

TipeDeskripsiPenggunaan
Access PortMembawa traffic 1 VLANKoneksi ke end device
Trunk PortMembawa traffic multiple VLANKoneksi antar switch
Native VLANVLAN untuk untagged frames di trunkDefault: VLAN 1

8.3 VLAN Tagging (802.1Q)

┌─────────────────────────────────────────────────────────────────────────┐
│                     802.1Q FRAME FORMAT                                 │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  Standard Ethernet Frame:                                               │
│  ┌─────────┬─────────┬──────┬─────────────────────┬─────┐               │
│  │  Dest   │  Src    │ Type │       Data          │ FCS │               │
│  │  MAC    │  MAC    │      │                     │     │               │
│  └─────────┴─────────┴──────┴─────────────────────┴─────┘               │
│                                                                         │
│  802.1Q Tagged Frame:                                                   │
│  ┌─────────┬─────────┬───────────┬──────┬────────────────┬─────┐        │
│  │  Dest   │  Src    │  802.1Q   │ Type │     Data       │ FCS │        │
│  │  MAC    │  MAC    │   Tag     │      │                │     │        │
│  └─────────┴─────────┴───────────┴──────┴────────────────┴─────┘        │
│                            │                                            │
│                     ┌──────┴──────┐                                     │
│                     │  4 bytes    │                                     │
│                     ├─────────────┤                                     │
│                     │ TPID │ TCI  │                                     │
│                     │0x8100│      │                                     │
│                     ├──────┼──────┤                                     │
│                     │      │PRI│C │   VLAN ID (12 bits)                 │
│                     │      │(3)│F │   = 4096 possible VLANs             │
│                     │      │   │I │                                     │
│                     └──────┴───┴──┘                                     │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

9. Protokol-Protokol Penting

9.1 ARP (Address Resolution Protocol)

Menerjemahkan IP address ke MAC address.

┌─────────────────────────────────────────────────────────────────────────┐
│                          ARP PROCESS                                    │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   PC1 (10.0.0.1)                              PC2 (10.0.0.2)            │
│   MAC: AA:AA:AA                               MAC: BB:BB:BB             │
│                                                                         │
│   1. PC1 wants to send data to 10.0.0.2                                 │
│      "What is the MAC address of 10.0.0.2?"                             │
│                                                                         │
│   ┌────────────────────────────────────────────────────────────┐        │
│   │  ARP Request (BROADCAST)                                   │        │
│   │  Source IP: 10.0.0.1   Source MAC: AA:AA:AA                │        │
│   │  Target IP: 10.0.0.2   Target MAC: FF:FF:FF (broadcast)    │        │
│   └────────────────────────────────────────────────────────────┘        │
│                     ─────────────────────────→                          │
│                                                                         │
│   ┌────────────────────────────────────────────────────────────┐        │
│   │  ARP Reply (UNICAST)                                       │        │
│   │  Source IP: 10.0.0.2   Source MAC: BB:BB:BB                │        │
│   │  Target IP: 10.0.0.1   Target MAC: AA:AA:AA                │        │
│   └────────────────────────────────────────────────────────────┘        │
│                     ←─────────────────────────                          │
│                                                                         │
│   2. PC1 caches MAC in ARP table                                        │
│      Now PC1 can send frames directly to BB:BB:BB                       │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

9.2 DHCP (Dynamic Host Configuration Protocol)

Memberikan IP address dan konfigurasi jaringan secara otomatis.

   Client                                    Server
      │                                         │
      │ ─────── DHCP DISCOVER ─────────────────→│  (broadcast)
      │         "Any DHCP servers out there?"   │
      │                                         │
      │ ←────── DHCP OFFER ─────────────────────│
      │         "Here's an IP: 192.168.1.10"    │
      │                                         │
      │ ─────── DHCP REQUEST ──────────────────→│  (broadcast)
      │         "I'll take 192.168.1.10"        │
      │                                         │
      │ ←────── DHCP ACK ───────────────────────│
      │         "Confirmed. It's yours!"        │
      │                                         │

   Mnemonic: DORA (Discover, Offer, Request, Acknowledge)

DHCP Lease Information:

ParameterContoh
IP Address192.168.1.10
Subnet Mask255.255.255.0
Default Gateway192.168.1.1
DNS Server8.8.8.8
Lease Time86400 seconds

9.3 DNS (Domain Name System)

Menerjemahkan domain name ke IP address.

┌─────────────────────────────────────────────────────────────────────────┐
│                       DNS RESOLUTION PROCESS                            │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   User types: www.example.com                                           │
│                                                                         │
│   ┌────────┐      ┌─────────────┐      ┌───────────────┐                │
│   │ Client │ ──1──│ Local DNS   │ ──2──│   Root DNS    │                │
│   │        │      │  Resolver   │      │   (.)         │                │
│   └────────┘      └──────┬──────┘      └───────────────┘                │
│                          │                    │                         │
│                          │ ←────3─────────────┘                         │
│                          │   "Ask .com TLD"                             │
│                          │                                              │
│                          │       ┌───────────────┐                      │
│                          │ ──4───│   TLD DNS     │                      │
│                          │       │   (.com)      │                      │
│                          │       └───────┬───────┘                      │
│                          │ ←────5────────┘                              │
│                          │   "Ask example.com"                          │
│                          │                                              │
│                          │       ┌───────────────┐                      │
│                          │ ──6───│Authoritative  │                      │
│                          │       │example.com DNS│                      │
│                          │       └───────┬───────┘                      │
│                          │ ←────7────────┘                              │
│   ┌────────┐             │   "93.184.216.34"                            │
│   │ Client │ ←────8──────┘                                              │
│   └────────┘                                                            │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

DNS Record Types

TypeFungsiContoh
AIPv4 addressexample.com → 93.184.216.34
AAAAIPv6 addressexample.com → 2001:db8::1
CNAMEAlias/canonical namewww → example.com
MXMail serverexample.com → mail.example.com
NSName serverexample.com → ns1.example.com
PTRReverse lookup34.216.184.93 → example.com
TXTText recordSPF, DKIM, verification
SOAStart of AuthorityZone information

10. NAT (Network Address Translation)

NAT memungkinkan multiple device di private network menggunakan satu public IP address.

10.1 Tipe NAT

PAT (Port Address Translation) / NAT Overload

💻 192.168.1.10:5001
📱 192.168.1.11:5002
🖥️ 192.168.1.12:5003
📡
NAT Router
Translation Table
🌐
Internet
203.0.113.1
Inside Local Inside Global Outside Global
192.168.1.10:5001 203.0.113.1:40001 8.8.8.8:80
192.168.1.11:5002 203.0.113.1:40002 8.8.8.8:80
192.168.1.12:5003 203.0.113.1:40003 1.1.1.1:443
Tipe NATDeskripsi
Static NAT1 private IP ↔ 1 public IP (one-to-one)
Dynamic NATPool of public IPs, assigned dynamically
PAT/NAT OverloadMany private IPs share 1 public IP (menggunakan port)

10.2 NAT Terminology

TermDeskripsi
Inside LocalPrivate IP di internal network
Inside GlobalPublic IP yang mewakili internal host
Outside LocalPrivate IP dari external host (jarang digunakan)
Outside GlobalPublic IP dari external host

11. Wireless Networking

11.1 IEEE 802.11 Standards

StandardFrequencyMax SpeedRangeYear
802.11a5 GHz54 Mbps~35m1999
802.11b2.4 GHz11 Mbps~100m1999
802.11g2.4 GHz54 Mbps~100m2003
802.11n (Wi-Fi 4)2.4/5 GHz600 Mbps~70m2009
802.11ac (Wi-Fi 5)5 GHz6.93 Gbps~35m2013
802.11ax (Wi-Fi 6)2.4/5/6 GHz9.6 Gbps~35m2019

11.2 Wireless Security

ProtocolSecurity LevelKey LengthNotes
WEP❌ Broken64/128 bitDeprecated, easily cracked
WPA⚠️ WeakTKIPBetter than WEP, still vulnerable
WPA2✅ GoodAES-CCMPStandard for years
WPA3✅ BestSAELatest, most secure

11.3 Wireless Terminology

TermDeskripsi
SSIDService Set Identifier (nama network)
BSSIDMAC address dari access point
ChannelFrequency range untuk komunikasi
APAccess Point
CSMA/CACollision avoidance mechanism

12. Network Security

12.1 Security Threats

┌─────────────────────────────────────────────────────────────────────────┐
│                     COMMON NETWORK ATTACKS                              │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  ┌──────────────────┐    ┌──────────────────┐    ┌──────────────────┐   │
│  │   DoS / DDoS     │    │   Man-in-the-    │    │  Phishing /      │   │
│  │                  │    │     Middle       │    │  Social Eng.     │   │
│  │  Overwhelm with  │    │  Intercept &     │    │  Trick users     │   │
│  │  traffic         │    │  modify traffic  │    │  for credentials │   │
│  └──────────────────┘    └──────────────────┘    └──────────────────┘   │
│                                                                         │
│  ┌──────────────────┐    ┌──────────────────┐    ┌──────────────────┐   │
│  │  ARP Spoofing    │    │  DNS Spoofing    │    │   Port Scan      │   │
│  │                  │    │                  │    │                  │   │
│  │  Fake ARP to     │    │  Redirect to     │    │  Discover open   │   │
│  │  redirect traffic│    │  malicious site  │    │  ports/services  │   │
│  └──────────────────┘    └──────────────────┘    └──────────────────┘   │
│                                                                         │
│  ┌──────────────────┐    ┌──────────────────┐    ┌──────────────────┐   │
│  │  Brute Force     │    │  SQL Injection   │    │   Zero-Day       │   │
│  │                  │    │                  │    │                  │   │
│  │  Try all password│    │  Inject malicious│    │  Exploit unknown │   │
│  │  combinations    │    │  SQL queries     │    │  vulnerabilities │   │
│  └──────────────────┘    └──────────────────┘    └──────────────────┘   │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

12.2 Security Devices & Measures

Device/MeasureFungsi
FirewallFilter traffic berdasarkan rules
IDS (Intrusion Detection)Detect & alert suspicious activity
IPS (Intrusion Prevention)Detect & block attacks
VPNEncrypted tunnel untuk remote access
ACL (Access Control List)Control traffic flow
DMZIsolated zone untuk public servers

12.3 Firewall Types

┌─────────────────────────────────────────────────────────────────────────┐
│                       FIREWALL TYPES                                    │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  ┌─────────────────────────────────────────────────────────────────┐    │
│  │ 1. PACKET FILTER (Stateless)                                    │    │
│  │    - Layer 3-4                                                  │    │
│  │    - Check: Source/Dest IP, Port, Protocol                      │    │
│  │    - Fast but limited                                           │    │
│  └─────────────────────────────────────────────────────────────────┘    │
│                                                                         │
│  ┌─────────────────────────────────────────────────────────────────┐    │
│  │ 2. STATEFUL INSPECTION                                          │    │
│  │    - Layer 3-4                                                  │    │
│  │    - Tracks connection state                                    │    │
│  │    - More secure than packet filter                             │    │
│  └─────────────────────────────────────────────────────────────────┘    │
│                                                                         │
│  ┌─────────────────────────────────────────────────────────────────┐    │
│  │ 3. APPLICATION GATEWAY (Proxy)                                  │    │
│  │    - Layer 7                                                    │    │
│  │    - Deep packet inspection                                     │    │
│  │    - Can filter content                                         │    │
│  └─────────────────────────────────────────────────────────────────┘    │
│                                                                         │
│  ┌─────────────────────────────────────────────────────────────────┐    │
│  │ 4. NEXT-GEN FIREWALL (NGFW)                                     │    │
│  │    - All layers                                                 │    │
│  │    - IPS + Application awareness + User identity                │    │
│  │    - Most comprehensive                                         │    │
│  └─────────────────────────────────────────────────────────────────┘    │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

12.4 VPN Types

TypeLayerUse Case
IPSec3Site-to-site, remote access
SSL/TLS VPN5-7Remote access via browser
PPTP2Legacy, not recommended
L2TP/IPSec2Mobile devices
WireGuard3Modern, fast, simple

13. HTTP/HTTPS

13.1 HTTP Methods

MethodDeskripsiIdempotentSafe
GETRetrieve resource
POSTCreate new resource
PUTUpdate/replace resource
PATCHPartial update
DELETERemove resource
HEADGET without body
OPTIONSGet supported methods

13.2 HTTP Status Codes

RangeCategoryContoh
1xxInformational100 Continue, 101 Switching Protocols
2xxSuccess200 OK, 201 Created, 204 No Content
3xxRedirection301 Moved Permanently, 302 Found, 304 Not Modified
4xxClient Error400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found
5xxServer Error500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable

13.3 HTTPS & TLS Handshake

   Client                                    Server
      │                                         │
      │ ───── Client Hello ────────────────────→│
      │       (TLS version, cipher suites)      │
      │                                         │
      │ ←──── Server Hello ─────────────────────│
      │       (Chosen cipher, certificate)      │
      │                                         │
      │ ←──── Server Certificate ───────────────│
      │                                         │
      │ ─────────── Key Exchange ──────────────→│
      │       (Pre-master secret)               │
      │                                         │
      │ ←──────── Finished ─────────────────────│
      │                                         │
      │ ═══════ Encrypted Data ════════════════→│
      │ ←══════ Encrypted Data ═════════════════│
      │                                         │

14. Quality of Service (QoS)

14.1 QoS Metrics

MetricDeskripsiTypical Value
BandwidthData rateMbps, Gbps
LatencyDelay end-to-end<150ms untuk VoIP
JitterVariasi latency<30ms untuk VoIP
Packet LossPersentase paket hilang<1% untuk VoIP

14.2 QoS Mechanisms

┌─────────────────────────────────────────────────────────────────────────┐
│                          QoS TECHNIQUES                                 │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  1. CLASSIFICATION & MARKING                                            │
│     ├── Identify traffic types                                          │
│     └── Mark with DSCP/CoS values                                       │
│                                                                         │
│  2. QUEUING                                                             │
│     ├── FIFO (First In First Out)                                       │
│     ├── Priority Queuing (PQ)                                           │
│     ├── Weighted Fair Queuing (WFQ)                                     │
│     └── Low Latency Queuing (LLQ)                                       │
│                                                                         │
│  3. CONGESTION AVOIDANCE                                                │
│     ├── RED (Random Early Detection)                                    │
│     └── WRED (Weighted RED)                                             │
│                                                                         │
│  4. TRAFFIC SHAPING & POLICING                                          │
│     ├── Shaping: Delay excess traffic                                   │
│     └── Policing: Drop excess traffic                                   │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

14.3 DSCP Values (Common)

DSCPPer-Hop BehaviorUse Case
EF (46)Expedited ForwardingVoIP, video conferencing
AF41 (34)Assured ForwardingVideo streaming
AF21 (18)Assured ForwardingBusiness applications
CS0 (0)Best EffortDefault traffic

15. Troubleshooting Commands

15.1 Essential Commands

ping

# Test connectivity
ping 8.8.8.8
ping -c 4 google.com    # Linux: 4 packets
ping -n 4 google.com    # Windows: 4 packets

traceroute / tracert

# Trace path to destination
traceroute google.com   # Linux
tracert google.com      # Windows

nslookup / dig

# DNS lookup
nslookup google.com
dig google.com          # More detailed (Linux)
dig +short google.com   # Just the IP

netstat / ss

# Network statistics
netstat -an             # All connections
netstat -tulpn          # Listening ports (Linux)
ss -tulpn               # Modern alternative (Linux)

ipconfig / ifconfig / ip

# Interface configuration
ipconfig /all           # Windows
ifconfig                # Linux (legacy)
ip addr                 # Linux (modern)
ip route                # Routing table

arp

# ARP cache
arp -a                  # Show ARP table

nmap

# Port scanning
nmap -sP 192.168.1.0/24   # Ping sweep
nmap -sT 192.168.1.1      # TCP connect scan
nmap -sV 192.168.1.1      # Service version detection

15.2 Troubleshooting Methodology

Bottom-Up Troubleshooting Approach

1
Physical Layer
Check cables, lights, power, NIC status
Check link lights, reseat cables
2
Data Link Layer
Check MAC address, switch port, VLAN
arp -a, show mac address-table
3
Network Layer
Check IP config, routing, ping gateway
ip addr, ping gateway, traceroute
4
Transport Layer
Check ports, firewall, TCP/UDP connectivity
netstat -an, telnet host port
5
Application Layer
Check application logs, DNS, service status
nslookup, curl, application logs

16. Cable Types & Standards

16.1 Ethernet Cable Categories

CategorySpeedBandwidthMax LengthUse Case
Cat5100 Mbps100 MHz100mLegacy
Cat5e1 Gbps100 MHz100mCommon office
Cat610 Gbps250 MHz55m (10G)Modern office
Cat6a10 Gbps500 MHz100mData center
Cat710 Gbps600 MHz100mHigh performance
Cat840 Gbps2000 MHz30mData center

16.2 Fiber Optic

TypeCore SizeRangeSpeedUse
Single-mode (SMF)9 µm10-100 km100 Gbps+Long distance, WAN
Multi-mode (MMF)50/62.5 µm300m-2km10-100 GbpsData center, LAN

16.3 Connector Types

┌─────────────────────────────────────────────────────────────────────────┐
│                        COMMON CONNECTORS                                │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   COPPER (Ethernet)                 FIBER OPTIC                         │
│   ┌───────────────┐                 ┌───────────────┐                   │
│   │   RJ-45       │                 │   SC          │ Square connector  │
│   │   ┌─┬─┬─┬─┬─┬─┐│                 │   ┌───┐      │                   │
│   │   │ │ │ │ │ │ ││                 │   │ ○ │      │                   │
│   │   └─┴─┴─┴─┴─┴─┘│                 │   └───┘      │                   │
│   └───────────────┘                 └───────────────┘                   │
│   8 pins, Ethernet                                                      │
│                                     ┌───────────────┐                   │
│   ┌───────────────┐                 │   LC          │ Smaller, popular  │
│   │   RJ-11       │                 │   ┌──┐        │                   │
│   │   ┌─┬─┬─┐     │                 │   │○│        │                   │
│   │   │ │ │ │     │                 │   └──┘        │                   │
│   │   └─┴─┴─┘     │                 └───────────────┘                   │
│   └───────────────┘                                                     │
│   4/6 pins, Telephone               ┌───────────────┐                   │
│                                     │   ST          │ Bayonet style     │
│   ┌───────────────┐                 │   ○───        │                   │
│   │   Coaxial     │                 └───────────────┘                   │
│   │   ┌─○─┐       │                                                     │
│   │   └───┘       │                 ┌───────────────┐                   │
│   └───────────────┘                 │   MT-RJ       │ Dual fiber        │
│   BNC/F-type                        │   ┌──┬──┐     │                   │
│                                     │   │○│○│     │                   │
│                                     │   └──┴──┘     │                   │
│                                     └───────────────┘                   │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

17. Spanning Tree Protocol (STP)

STP mencegah loop di Layer 2 network dengan memblokir redundant paths.

17.1 STP Port States

┌─────────────────────────────────────────────────────────────────────────┐
│                     STP PORT STATES (802.1D)                            │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   ┌──────────┐     ┌──────────┐     ┌──────────┐     ┌──────────┐       │
│   │ Blocking │ ──→ │ Listening│ ──→ │ Learning │ ──→ │Forwarding│       │
│   │          │     │          │     │          │     │          │       │
│   │ No data  │     │ 15 sec   │     │ 15 sec   │     │ Normal   │       │
│   │ No MAC   │     │ No data  │     │ Learn MAC│     │ Full     │       │
│   │ learn    │     │ No MAC   │     │ No data  │     │ operation│       │
│   └──────────┘     └──────────┘     └──────────┘     └──────────┘       │
│                                                                         │
│   Total convergence time: 30-50 seconds (802.1D)                        │
│                                                                         │
│   RSTP (802.1w) States:                                                 │
│   Discarding → Learning → Forwarding                                    │
│   Convergence: < 1 second                                               │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

17.2 STP Port Roles

RoleDeskripsi
Root PortPort dengan path terbaik ke Root Bridge
Designated PortPort yang forward traffic ke segment
Blocked PortPort yang tidak forward untuk mencegah loop
Alternate Port (RSTP)Backup untuk root port
Backup Port (RSTP)Backup untuk designated port

17.3 STP Selection Process

  1. Root Bridge Election: Switch dengan Bridge ID (Priority + MAC) terendah
  2. Root Port Selection: Port dengan Root Path Cost terendah
  3. Designated Port Selection: Per segment, switch dengan lowest Root Path Cost

Default Bridge Priority: 32768


18. Cloud Networking Concepts

18.1 Cloud Network Components

ComponentDeskripsi
VPCVirtual Private Cloud, isolated network
SubnetNetwork segment dalam VPC
Internet GatewayKoneksi VPC ke internet
NAT GatewayOutbound internet untuk private subnet
Route TableRouting rules dalam VPC
Security GroupInstance-level firewall (stateful)
NACLSubnet-level firewall (stateless)
VPN GatewayHybrid cloud connectivity
PeeringKoneksi antar VPC
Load BalancerDistribute traffic ke multiple instances

18.2 Cloud vs On-Premises

AspekOn-PremisesCloud
Capital CostHigh (CapEx)Low (OpEx)
ScalabilityLimited, plan aheadElastic, on-demand
MaintenanceSelf-managedProvider-managed
LatencyPredictableVariable
ControlFullLimited
ComplianceFull controlShared responsibility

19. Quick Reference

19.1 Penting Untuk Dihapal

Networking Quick Reference

🔢 OSI Layers (Top-Down)
All People Seem To Need Data Processing
Application → Presentation → Session → Transport → Network → Data Link → Physical
📍 Private IP Ranges
10.0.0.0/8 (Class A)
172.16.0.0/12 (Class B)
192.168.0.0/16 (Class C)
🔌 Critical Ports
HTTP: 80, HTTPS: 443
SSH: 22, DNS: 53
FTP: 21, SMTP: 25
🤝 TCP Handshake
1. SYN →
2. ← SYN-ACK
3. ACK →
Connection Established!
📧 DHCP Process
Discover → Offer → Request → Ack
Mnemonic: DORA
🔍 Subnetting Formula
Hosts = 2h - 2
Networks = 2n
Block Size = 256 - subnet

19.2 Rumus Penting

RumusDeskripsi
$\text{Hosts} = 2^h - 2$Jumlah usable hosts (h = host bits)
$\text{Networks} = 2^n$Jumlah subnet (n = borrowed bits)
$\text{Block Size} = 256 - \text{subnet octet}$Increment antar subnet
$\text{Bandwidth} = \frac{\text{Data Size}}{\text{Time}}$Throughput calculation
$\text{Latency} = \frac{\text{Distance}}{\text{Speed of Light}}$Propagation delay

19.3 Conversion Table

DecimalBinaryHexCIDR Hosts
00000000000/24 = 254
1281000000080/25 = 126
19211000000C0/26 = 62
22411100000E0/27 = 30
24011110000F0/28 = 14
24811111000F8/29 = 6
25211111100FC/30 = 2
25411111110FE/31 = 0*
25511111111FF/32 = 1

19.4 Common Acronyms

AcronymFull Form
TCPTransmission Control Protocol
UDPUser Datagram Protocol
IPInternet Protocol
MACMedia Access Control
ARPAddress Resolution Protocol
DHCPDynamic Host Configuration Protocol
DNSDomain Name System
NATNetwork Address Translation
VLANVirtual Local Area Network
VPNVirtual Private Network
OSPFOpen Shortest Path First
BGPBorder Gateway Protocol
STPSpanning Tree Protocol
QoSQuality of Service
SNMPSimple Network Management Protocol
SSL/TLSSecure Sockets Layer / Transport Layer Security

Penutup

Jaringan komputer adalah fondasi dari hampir semua sistem modern. Memahami konsep-konsep di atas akan membantu dalam:

  • Troubleshooting masalah jaringan dengan pendekatan sistematis
  • Designing arsitektur jaringan yang scalable dan secure
  • Optimizing performa jaringan
  • Securing infrastruktur dari berbagai ancaman

Tips belajar: Praktik langsung dengan tools seperti Packet Tracer, GNS3, atau lab virtual adalah cara terbaik untuk menginternalisasi konsep-konsep ini.

Sertifikasi yang relevan:

  • CompTIA Network+
  • Cisco CCNA/CCNP
  • Juniper JNCIA
  • AWS/Azure/GCP Networking Specialty