16
DHCP, ARP,RARP, ICMP Pertemuan 19 Matakuliah : H0484/Jaringan Komputer Tahun : 2007

DHCP, ARP,RARP, ICMP Pertemuan 19

  • Upload
    orly

  • View
    157

  • Download
    8

Embed Size (px)

DESCRIPTION

DHCP, ARP,RARP, ICMP Pertemuan 19. Matakuliah: H0484/Jaringan Komputer Tahun: 2007. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menggunakan DHCP dan protokol khusus pada Network Layer seperti ARP, RARP, ICMP. Outline Materi. - PowerPoint PPT Presentation

Citation preview

Page 1: DHCP, ARP,RARP, ICMP Pertemuan 19

DHCP, ARP,RARP, ICMPPertemuan 19

Matakuliah : H0484/Jaringan KomputerTahun : 2007

Page 2: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

Learning Outcomes

Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu :

• Menggunakan DHCP dan protokol khusus pada Network Layer seperti ARP, RARP, ICMP

Page 3: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

Outline Materi

• Automatic IP Address assignment

• DHCP Protocol• Protokol khusus

ARP, RARP dan ICMP

Page 4: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

Start-up IP Address

Menentukan IP Address saat Startup melalui jaringan untuk mendapatkan IP address dari

Server– Sistem harus menggunakan physical

addressnya (MAC address) untuk berkomunikasi dengan server yang mempunyai tabel IP address

– Sistem mengirimkan broadcast untuk meminta IP address

Page 5: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

IP Address Statik / Dinamik

• Address komputer dapat dialokasikan secara Statik atau Dinamik

• IP address statik diberikan secara permanen ke komputer (Servers, routers) secara manual

• Pemberian IP address secara dinamik lebih disukai karena penghematan, menghindari konfigurasi manual, mendukung mobilitas

• DHCP Server umumnya digunakan untuk memberikan IP address dinamik ke clients

• Tiap DHCP server mempunyai sejumlah IP addresses yang dapat diberikan dan mempunyai tabel statusnya

• DHCP client dapat memperoleh semua parameter konfigurasi

• Client menggunakan UDP port 67 untuk mengirimkan permintaan, Server menggunakan UDP port 68 untuk menjawab

Page 6: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Message Format

Number of Seconds

OpCode Hardware Type

Your IP address

Flags

Gateway IP address

Client IP address

Server IP address

Hardware AddressLength

Hop Count

Server host name (64 bytes)

Client hardware address (16 bytes)

Boot file name (128 bytes)

Transaction ID

Options

(There are >100 different options)

Page 7: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Process

• Satu DHCP client dapat memperoleh tawaran dari beberapa servers dan dapat menerima salah satu namun biasanya yang pertama.

• DHCP server yang menawarkan IP address ke client akan menjaga nya sampai tawaran tersebut diterima atau ditolak

• Bila client melihat bahwa address yang ditawarkan padanya telah ada di jaringan, ia akan mengirimkan DHCPDECLINE

Page 8: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Process

DCHP DISCOVER

DCHP OFFER

DHCP Client00:a0:24:71:e4:44 DHCP Server

DHCPDISCOVERSent to 255.255.255.255

DHCP Server

DHCP Client00:a0:24:71:e4:44 DHCP Server

DHCP Server

DHCPOFFER

DHCPOFFER

Page 9: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Process

Client

00:a0:24:71:e4:44DHCP Server

DHCP Request00:a0:24:71:e4:44Sent to 255.255.255.255

Client128.143.137.144

00:a0:24:71:e4:44DHCP ServerDHCP Response:

IP address: 128.143.137.144Default gateway: 128.143.137.1Netmask: 255.255.0.0

Page 10: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Process

• Saat ini DHCP client dapat memulai menggunakan IP address • Lease diperbahurui bila waktu telah berjalan 50 %. Jika DHCP

server mengirimkan DHCPNACK address dilepas• Lamanya lease berkisar antara 1 menit sampai 999 hari

(unlimited). Default 8 hari.

DCHP REQUEST

DHCPREQUEST

DHCPACK

DHCP Client00:a0:24:71:e4:4400:a0:24:71:e4:44

DHCP ServerDHCPREQUEST

DHCPACK

DHCP Server

Page 11: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

DHCP Operation

DCHP RELEASE

Saat ini DHCP client telah melepaskan IP address

DHCP Client00:a0:24:71:e4:44 DHCP Server

DHCP Server

DHCPRELEASE

DHCP Client00:a0:24:71:e4:44 DHCP Server

DHCP Server

DHCPRELEASE

Page 12: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

•TCP/IP network uses logical address (IP address) at network

•To pass through packets to its destination via the physical network, physical address must be used

•A table at each device is created to map logical address to physical address

•Static mapping must periodically update its table

•Dynamic mapping is using a protocol to create the table

•The protocols are ARP (Address Resolution Protocol) ad RARP (Reverse Address Resolution Protocol)

Role of ARP and RARP

Page 13: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

ARP and RARP

ARP : Get physical address of the known IP addressRARP : Get IP address from the known physical address

Page 14: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

•Internet Protocol has no error reporting and error correcting mechanism

•Possible problems:• Dicard packets due inability to find a

router to the final destination or TTL=0

• Discard all fragments due to time out of receiving all fragments

•No mechanism for host and management queries

•ICMP (Internet Control Message Protocol) has been designed to compensate the above deficiencies

Role of ICMP

Page 15: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

Error-reporting messages

Page 16: DHCP, ARP,RARP, ICMP Pertemuan 19

Bina Nusantara

Query messages