06 Network Layer
06 Network Layer
Network Layer
Introduction to Networks
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Bab 6: Tujuan
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
BAB 6
6.1 Network Layer Protokol
6.2 Routing
6.3 Routers
6.4 Konfigurasi Router Cisco
6.5 Rangkuman
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Lapisan Jaringan
Network Layer
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Network Layer Protokol
Komunikasi di Network Layer
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Komunikasi di Network layer
Network Layer
Proses perpindahan End to End
Pengalamatan dan Perangkat
Enkapsulasi
Routing
De-enkapsulasi
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Komunikasi di Network Layer
Network Layer Protokol
Network Layer Protokol Pada Umumnya
Internet Protocol version 4 (IPv4)
Internet Protocol version 6 (IPv6)
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Ciri Khas Protokol IP
Ciri Khas IP
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Ciri Khas Protokol IP
IP – Connectionless (Tanpa Sambungan)
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Ciri Khas Protokol IP
IP – Best Effort Delivery
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Ciri Khas Protokol IP
IP – Media Independent
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Paket IPv4
Meng-enkapsulasi IP
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Paket IPv4
Paket Header IPv4
Versi, Differentiated Services (DS), Time-to-Live (TTL),
Protokol, Alamat IP Sumber, Alamat IP Tujuan
Source IP Address
Destination IP Address
Options (optional)
Padding
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
Paket IPv4
Cakupan Header IPv4
Internet Header Length (IHL), Panjang Total, Header
Checksum, Identifikasi, Flags, Cetakan Fragmen
Source IP Address
Destination IP Address
Options (optional)
Padding
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Paket IPv4
Contoh Header IPv4
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Komunikasi di Network Layer
Kekurangan-kekurangan IPv4
Kehabisan IP Address
Berkembangnya routing tabel internet
Kekurangan sambungan end-to-end
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
Komunikasi di Network Layer
Pengenalan IPv6
Penambahan rentang alamat
Penambahan packet handling
Tidak memerlukan NAT
Keamanan terintegrasi
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
Paket IPv6
Enkapsulasi IPv6
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
Paket IPv6
Paket Header IPv6
Byte 1 Byte 2 Byte 3 Byte 4
Next
Payload Length Hop Limit
Header
Source IP Address
Destination IP Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
IPv6 Packet
Contoh IPv6 Header
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
Routing
Routing Table Host
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Routing Table Host
Paket Penerusan Keputusan Host
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
Routing Table Host
Default Gateway
Host harus mengurus routing tabel-nya sendiri, areanya
sendiri, untuk memastikan bahwa paket Network Layer
diarahkan pada jaringan tujuan yang tepat. Tabel lokal dari
host meliputi:
Koneksi Langsung R
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Routing Table Host
Routing Table Host IPv4
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
Routing Table Host
Contoh Routing Table Host IPv4
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Routing Table Host
Contoh Daftar Penjaluran Host IPv6
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
Routing Table Host
Keputusan Melewatkan Paket Router
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
Routing Table Host
Router Table IPv4
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 .1 209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Routing Table Host
Catatan Routing Table Directly Connected
192.168.11.0/24 10.1.2.0/24
A B C
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
Routing Table Host
Catatan Routing Table Jaringan yang Jauh
192.168.10.0/24 64.100.0.1 10.1.1.0/24
.10 G0/0 .10
PC1 .1 209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.1 .1
.10 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
Router
Anatomi Router
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
Anatomi Router
Router Adalah Komputer
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Anatomi Router
CPU dan OS Router
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Anatomi Router
Memori Router
Volatile /
Memory Stores
Non-Volatile
• IOS yang berjalan
• File konfigurasi yang berjalan
RAM Volatile
• IP Routing dan table ARP
• Paket Penyangga (buffer)
• Perintah bootup
ROM Non-Volatile • Diagnosa dasar software
• IOS terbatas
NVRAM Non-Volatile • File Konfigurasi startup
• IOS
Flash Non-Volatile
• File sistem lainnya
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Anatomy of a Router
Isi di dalam sebuah Router
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Anatomi Router
Bagian Belakang Router
Console
RJ45 USB
Ports
Two 4 GB flash card slots Console
USB Type B
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37
Anatomi Router
Koneksi ke Router
Console
RJ45
Console
USB Type B
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
Anatomi Router
Interface LAN dan WAN
Serial interfaces
LAN interfaces
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39
Router Boot-up
Cisco IOS
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40
Router Boot-up
File Bootset
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Router Boot-up
Proses Bootup Router
1.Melakukan POST
dan menjalankan
program bootstrap
2.Mencari dan
menjalankan
software Cisco IOS
3.Mencari dan
menjalankan file
konfigurasi startup atau
ke mode setup
<output omitted>
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
Router Boot-up
Tampilan Show Version
Router# show version
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.2(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thu 26-Jul-12 19:34 by prod_rel_team
<Output omitted>
<Output omitted>
-----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------
ipbase ipbasek9 Permanent ipbasek9
security None None None
data None None None
Router#
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43
Network Layer
Konfigurasi Router Cisco
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44
Mengatur Pengaturan Inisialisasi
Langkah-langkah Konfigurasi Router
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 .1
209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
R1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)# interface gigabitethernet 0/0
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# description Link to LAN-10
R1(config-if)# no shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
R1(config-if)# exit
R1(config)#
R1(config)# int g0/1
R1(config-if)# ip add 192.168.11.1 255.255.255.0
R1(config-if)# des Link to LAN-11
R1(config-if)# no shut
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
R1(config-if)# exit
R1(config)#
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 46
Pengaturan Interface
Memverifikasi Konfigurasi Interface
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 .1
209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
R1#
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 47
Mengkonfigurasi Router Cisco
Mengkonfigurasi Default Gateway
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 48
Mengkonfigurasi Default Gateway
Default Gateway pada Host
.10
PC1 192.168.10.0/24
.1
.10 G0/0
PC2
R1
G0/1
.1
.10
.10 PC1 192.168.10.0/24
PC3
.1
.11 G0/0
.10 192.168.11.0/24 PC2
PC4
R1
G0/1
.1
.10
PC3
.11 192.168.11.0/24
PC4
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 49
Mengkonfigurasi Default Gateway
Default Gateway pada Switch
S1#show running-config
Building configuration...
!
<output omitted>
service password-encryption
!
hostname S1
!
Interface Vlan1
ip address 192.168.10.50
!
ip default-gateway 192.168.10.1
<output omitted>
.10
PC1 192.168.10.0/24 192.168.11.0/24
.1 .1
S1 G0/0 G0/1 S2
.11 R1
PC2 .50
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 50
Lapisan Jaringan
Rangkuman
Pada bab ini, Anda telah mempelajari:
Network Layer, atau OSI Layer 3, yang menyediakan layanan
untuk mengizinkan end devices dapt bertukar-data melalui
jaringan.
Network Layer menggunakan empat proses dasar:
pengalamatan IP, enkapsulasi, routing, dan re-enkapsulasi.
Umumnya internet menggunakan IPv4, menjadikan network
layer protocol menjadi protokol terbesar yang digunakan.
IPv4 menyediakan IP Header dan payload.
Simplified header IPv6 menawarkan beberapa keuntungan
dibanding IPv4, termasuk efisiensi routing yang lebih baik,
penyederhanaan header extension, dan kemampuan untuk
per-flow processing.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 51
Lapisan Jaringan
Rangkuman
Pada bab ini, Anda telah mempelajari:
Sebagai penambahan hierarchial addressing, network layer
juga bertanggung jawab dalam routing.
Host membutuhkan local routing table untuk memastikan
bahwa paket (data) diarahkan tepat ke jaringan tujuan.
Local default route adalah jalur menuju default gateway.
Default gateway adalah alamat IP interface router yang
tehubung dengan jaringan lokal.
Saat router semisal default-gateway menerima paket, ia
memeriksa alamat IP tujuan untuk menentukan jaringan
tujuan.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 52
Network Layer
Rangkuman
Pada bab ini, Anda telah mempelajari:
Routing table milik router menyimpan informasi tentang
directly-connected routes dan remote routes ke IP jaringan.
Jika router memiliki catatan dari jaringan tujuan pada routing
table-nya, router akan meneruskan paketnya. Jika tidak,
router akan meneruskan ke jalur default-nya (jika sudah
diatur), atau ia akan membuang paket tersebut.
Catatan routing table bisa diatur secara manual pada tiap
router melalui routing statis (static routing) atau router akan
mendapatkan informasi routing secara dinamis dengan
sesamanya menggunakan routing protocol.
Agar router dapat dijangkau, interface router harus diatur
terlebih dahulu (diberi IP Address).
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 53