Professional Documents
Culture Documents
It is formed by adding bit streams using ones complement arithmetic and then complementing the result
Deteksi Error
(1) Deteksi Error: Checksum
Heru Sukoco
Email: hsrkom@ipb.ac.id, heru_sukoco@ilkom.fmipa.ipb.ac.id Website: http://web.ipb.ac.id/~hsrkom Yahoo! Messenger : hsrkom, Friendster : hsrkom@yahoo.com Bagian Net-centric Computing Departemen Ilmu Komputer FMIPA IPB Wednesday, 9 Mei 2007
Latihan:
Konversikan Bilangan Biner berikut ke Bilangan Desimal:
1. 1011011.0110 2. 00110.11001
Binary 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111
Octal 5 6 7 10 11 12 13 14 15 16 17
Hex 5 6 7 8 9 A B C D E F
4
Latihan
Hitung konversi berikut: 648 = . 2 12816 = . 2 19210 = . 2 111000002 = . 8 648 = . 16
Format Datagram IP
Pembentukan Checksum
Pengirim (Sender):
Checksum dihitung saat akan dikirim dari pengirim dan nilai yang diperoleh dikirim bersama dengan paket.
Penerima (Receiver):
Checksum akan dihitung kembali di sisi penerima dengan metoda yang sama seperti yang digunakan pada sisi pengirim Jika hasil perhitungan memuaskan paket diterima Else paket ditolak
11
Sisi Sender
To create the checksum the sender does the following: 1. The packet is divided into k sections, each of n bits. 2. All sections are added together using ones complement arithmetic. 3. The final result is complemented to make the checksum.
13
Konsep Checksum
14
Checksum
15
5 1 4
0 0 17 10.12.14.5
28 0 0
12.6.7.9
16
4 4
5 1
0 0 17 10.12.14.5 12.6.7.9
28 0 0
Sum Checksum
10 00000000 00011100 00000001 00000000 00010001 00000000 00001100 00000101 00000110 00001001
4 4
5 1
0 0 17 10.12.14.5 12.6.7.9
28 0 0
Sum Checksum
3 4 0 0 0 0 0 0 0 0 0 7 8
5 0 0 0 4 0 A E C 7 4 B
2 0 1 0 0 1 0 0 0 0 0 4 B
0 C 1 0 1 0 C 5 6 9 E 1
18
Cek Lampiran C dari Buku Forouzan (TCP/IP Protocol Suite) untuk perhitungan Checksum yang lebih rincinya.
19
21
22
23
24
25
26