UNIVERSITAS BINA NUSANTARA Jurusan Teknik Informatika Skripsi Sarjana Komputer Semester Ganjil tahun 2006/2007
ANALISIS DAN PERANCANGAN HOT BILLING SYSTEM VoIP BERBASISKAN SIP
Hendra Effendi
0700709905
Melati Sari Indah
0700726003
Yonata Andrelo
0700678061
Abstrak
Tujuan dari skripsi ini adalah untuk mengembangkan aplikasi Hot Billing yang dapat digunakan untuk kebutuhan perhitungan tarif pada wartel VoIP yang menawarkan jasa telepon menggunakan VoIP gateway berbasiskan SIP. SIP itu sendiri adalah signalling protocol yang dikembangkan oleh IETF yang digunakan pada teknologi VoIP. Metodologi penelitian yang digunakan dalam penulisan skripsi ini adalah metode analisis dan metode perancangan. Metode analisis dilakukan untuk meneliti paket SIP yang dihasilkan pada sebuah proses panggilan yang menggunakan VoIP gateway. Metode perancangan dilakukan untuk merancang aplikasi Hot Billing yang dapat melakukan perhitungan tarif pada sebuah wartel VoIP seperti perancangan layar dan perancangan database. Sejumlah uji coba panggilan telah dilakukan dan aplikasi Hot Billing VoIP dapat melakukan perhitungan tarif percakapan dengan baik dan mencetak tagihan. Untuk pengembangan lebih lanjut dapat dilakukan dengan penambahan fiturfitur pada aplikasi Hot Billing VoIP seperti mem-block akses dari VoIP gateway tertentu.
Kata Kunci Wartel VoIP, Hot Billing, SIP, Signalling Protocol, Perhitungan Tarif Percakapan.
iv
PRAKATA
Puji syukur penulis ucapkan kepada Tuhan Yang Maha Esa atas segala berkat dan karunia yang telah diberikan-Nya sehingga pembuatan skripsi ini dapat terselesaikan tepat pada waktunya. Skripsi berjudul “Analisis dan Perancangan Hot Billing System VoIP berbasiskan SIP” ini disusun sebagai salah satu syarat untuk memperoleh gelar kesarjanaan pada jenjang pendidikan Strata-1. Dalam pembuatan skripsi, penulis mendapatkan banyak bantuan dan dorongan yang sangat berarti dari orang-orang di sekitar. Oleh karena itu, pada kesempatan ini penulis ingin mengucapkan rasa terima kasih yang sebesar-besarnya kepada: 1. Bapak Prof. Dr. Gerardus Polla, M.App.Sc, selaku rektor Universitas Bina Nusantara 2. Bapak Ir. Sablin Yusuf, M.Sc, M.Com.Sc, selaku dekan fasilkom Universitas Bina Nusantara 3. Bapak H. Mohammad Subekti, BE, M.Sc, selaku ketua jurusan teknik informatika Universitas Bina Nusantara 4. Bapak Fredy Purnomo, S.Kom., M.Kom., selaku sekretaris jurusan teknik informatika Universitas Bina Nusantara 5. Bapak Lukas Tanutama, Ir, MM, selaku dosen pembimbing skripsi 6. Para dosen Universitas Bina Nusantara lainnya yang telah memberikan ilmu pengetahuan selama masa perkuliahan 7. Seluruh anggota keluarga dan kerabat dekat penulis yang senantiasa memberikan dorongan di saat-saat sulit
iv
8. Teman-teman dan pihak lain yang turut memberikan saran dan masukkan selama pembuatan skripsi ini Sebagaimana peribahasa “Tiada Gading yang Tak Retak”, penulis menyadari bahwa penulisan skripsi ini masih jauh dari sempurna dan masih memiliki kekurangan. Oleh karena itu, penulis mengharapkan saran, kritik, dan masukkan yang berharga dari para pembaca sekalian sebagai bahan pembelajaran pada kesempatan yang akan datang. Akhir kata, penulis berharap agar skripsi ini dapat memberikan sumbangsih dan pengetahuan yang bermanfaat bagi para pembaca sekalian.
Jakarta, Januari 2007
Penulis
iv
DAFTAR ISI Halaman
Halaman Judul Luar ..................................................................................................... i Halaman Judul Dalam .................................................................................................. ii Halaman Persetujuan Hardcover ................................................................................. iii Abstrak ......................................................................................................................... iv Prakata.......................................................................................................................... v Daftar Isi ...................................................................................................................... vii Daftar Tabel ................................................................................................................. xiv Daftar Gambar.............................................................................................................. xv Daftar Lampiran ........................................................................................................... xxii
BAB 1 PENDAHULUAN 1.1. Latar Belakang ..................................................................................... 1 1.2. Ruang Lingkup..................................................................................... 3 1.3. Tujuan dan Manfaat ............................................................................. 3 1.4. Metodologi Penelitian .......................................................................... 4 1.5. Sistematika Penulisan .......................................................................... 5
BAB 2 LANDASAN TEORI 2.1. Pengertian Jaringan .............................................................................. 6 2.2. Model TCP/IP ...................................................................................... 6 2.3. Media Transmisi .................................................................................. 7 iv
2.3.1. Wired........................................................................................ 7 2.3.1.1. Coaxial ...................................................................... 7 2.3.1.2. Unshielded Twisted Pair dan Shielded Twisted Pair ................................................................................... 8 2.3.1.3.
Fiber Optic ............................................................... 8
2.3.2. Wireless.................................................................................... 9 2.4. Topologi Jaringan................................................................................. 9 2.4.1. Topologi Fisik .......................................................................... 9 2.4.1.1.
Mesh......................................................................... 9
2.4.1.2. Star ............................................................................ 10 2.4.1.3. Bus ............................................................................ 11 2.4.1.4. Hybrid ....................................................................... 11 2.4.1.5. Ring ........................................................................... 12 2.4.2. Topologi Logical...................................................................... 13 2.4.2.1. Broadcast................................................................... 13 2.4.2.2. Token Passing ........................................................... 13 2.5. Perangkat Keras Jaringan..................................................................... 13 2.5.1. Network Interface Card............................................................ 13 2.5.2. Repeater ................................................................................... 14 2.5.3. Hub........................................................................................... 14 2.5.4. Bridge....................................................................................... 15 2.5.5. Switch....................................................................................... 15 2.5.6. Router....................................................................................... 15 2.6. Internet Protocol (IP) Address ............................................................. 15 iv
2.7. Konsep Dasar Telepon ......................................................................... 18 2.7.1. Sistem Telepon......................................................................... 18 2.7.2. Operasi Telepon ....................................................................... 20 2.7.3. Private Branch Exchange ......................................................... 21 2.8. Konsep Dasar VoIP.............................................................................. 21 2.8.1. Sejarah VoIP ............................................................................ 21 2.8.2. Pengertian VoIP ....................................................................... 22 2.8.3. Protokol-Protokol pada VoIP................................................... 23 2.8.3.1. Transport Protocol..................................................... 23 2.8.3.2. Signaling Protocol..................................................... 24 2.8.3.2.1 Session Initiation Protocol ......................... 24 2.8.3.2.2 H.323.......................................................... 36 2.8.4. Perangkat Keras VoIP .............................................................. 36 2.9. Konsep Dasar Rekayasa Piranti Lunak ................................................ 38 2.10. Konsep Dasar State Transition Diagram (STD)................................... 40 2.11. Konsep Dasar Database........................................................................ 41 2.12. Konsep Thread dan Multiple Threads Pada Java................................. 43 2.13. Konsep Dasar Kerja Sniffer ................................................................. 44 2.14. Pengertian Hot Billing ......................................................................... 45
BAB 3 ANALISIS DAN PERANCANGAN 3.1. Analisis Sistem..................................................................................... 46 3.2. Perumusan Masalah ............................................................................. 46 3.3. Analisis Kebutuhan .............................................................................. 47 iv
3.4. Analisis Paket Data SIP ....................................................................... 47 3.5. Perancangan Sistem ............................................................................. 48 3.6. Perancangan Aplikasi........................................................................... 49 3.4.1. Perancangan Basis Data ........................................................... 49 3.4.2. Perancangan State Transition Diagram (STD)......................... 53 3.4.2.1. STD Layar Utama ..................................................... 54 3.4.2.2. STD Layar Start Billing ............................................ 56 3.4.2.3. STD Layar Report Periodic....................................... 56 3.4.2.4. STD Layar Report Detail .......................................... 57 3.4.2.5. STD Layar Call Billing Report ................................. 57 3.4.2.6. STD Layar Change Password ................................... 58 3.4.2.7. STD Layar Add Operator.......................................... 58 3.4.2.8. STD Layar Delete Operator ...................................... 59 3.4.2.9. STD Layar Confirmation Delete Operator................ 59 3.4.2.10. STD Layar Login ...................................................... 60 3.4.2.11. STD Layar Logout .................................................... 60 3.4.2.12. STD Layar Exit ......................................................... 61 3.4.2.13. STD Layar Setting .................................................... 61 3.4.2.14. STD Layar Edit Price ................................................ 62 3.4.2.15. STD Layar Add Country........................................... 62 3.4.2.16. STD Layar Confirmation Delete Country................. 62 3.4.2.17. STD Layar Detail Price............................................. 63 3.4.2.18. STD Layar Confirmation Delete Detail Price........... 63 3.4.2.19. STD Layar Printer Setting......................................... 64 iv
3.4.2.20. STD Layar Information............................................. 64 3.4.2.21. STD Layar About...................................................... 65 3.4.3. Flowchart ................................................................................. 65 3.4.4. Perancangan Layar ................................................................... 68 3.4.4.1. Layar Main Menu...................................................... 68 3.4.4.2. Layar Report ............................................................. 70 3.4.4.3. Layar Call Billing Report.......................................... 70 3.4.4.4. Layar Change Password............................................ 72 3.4.4.5. Layar Add Operator .................................................. 72 3.4.4.6. Layar Delete Operator............................................... 73 3.4.4.7. Layar Login............................................................... 73 3.4.4.8. Layar Logout............................................................. 73 3.4.4.9. Layar Exit.................................................................. 74 3.4.4.10. Layar Setting ............................................................. 74 3.4.4.11. Layar Edit Price ........................................................ 75 3.4.4.12. Layar Add Country ................................................... 75 3.4.4.13. Layar Delete Country................................................ 76 3.4.4.14. Layar Detail Setting .................................................. 76 3.4.4.15. Layar Confirmation Delete Detail Price ................... 76 3.4.4.16. Layar Printer Setting ................................................. 77 3.4.4.17. Layar Information ..................................................... 77 3.4.4.18. Layar About .............................................................. 78 3.5.
Pemilihan Bahasa Pemrograman....................................................... 79
iv
BAB 4 IMPLEMENTASI DAN EVALUASI 4.1. Aplikasi yang Dihasilkan ..................................................................... 80 4.2. Spesifikasi Perangkat Keras dan Perangkat Lunak.............................. 80 4.2.1. Spesifikasi Perangkat Keras Minimum.................................... 80 4.2.2. Spesifikasi Perangkat Lunak Minimum ................................... 82 4.2.3. Spesifikasi Perangkat Keras Uji Coba ..................................... 83 4.2.4. Spesifikasi Perangkat Lunak Uji Coba .................................... 85 4.3. Implementasi ........................................................................................ 86 4.3.1. Implementasi Jaringan Fisik .................................................... 86 4.3.2. Konfigurasi Perangkat Jaringan ............................................... 88 4.3.2.1. Konfigurasi Server .................................................... 88 4.3.2.1.1.
Instalasi Java Virtual Machine ............. 88
4.3.2.1.2.
Instalasi MySQL Server....................... 91
4.3.2.1.3.
Instalasi MySQL-Front ........................ 96
4.3.2.1.4.
Instalasi WinPCap................................ 101
4.3.2.1.5.
Instalasi JPCap ..................................... 103
4.3.2.1.6.
Konfigurasi TCP/IP.............................. 105
4.3.2.1.7.
Konfigurasi Internet Connection Sharing (ICS)..................................................... 110
4.3.2.2
Konfigurasi VoIP Gateway ....................................... 111
4.3.2.3
Konfigurasi Modem ADSL....................................... 113
4.3.3. Prosedur Pengoperasian Aplikasi............................................. 115 4.4. Pengujian Aplikasi ............................................................................... 134
iv
4.4.1. Pengujian Panggilan dengan Menggunakan Satu VoIP Gateway .................................................................................................. 135 4.4.2. Pengujian Panggilan dengan Menggunakan Dua VoIP Gateway .................................................................................................. 135 4.5. Evaluasi ................................................................................................ 135
BAB 5 SIMPULAN DAN SARAN 5.1. Simpulan .............................................................................................. 138 5.2. Saran..................................................................................................... 138
DAFTAR PUSTAKA ................................................................................................. 140 RIWAYAT HIDUP .................................................................................................... 142 LAMPIRAN................................................................................................................ L1
iv
DAFTAR TABEL
Halaman Tabel 2.1 TCP/IP Layer ............................................................................................. 7 Tabel 2.2 Standarisasi Wireless ................................................................................. 9 Tabel 2.3 Response Code........................................................................................... 35 Tabel 3.1 Tabel ms_access_level............................................................................... 49 Tabel 3.2 Tabel ms_access_operation........................................................................ 50 Tabel 3.3 Tabel ms_access_permission ..................................................................... 50 Tabel 3.4 Tabel ms_client .......................................................................................... 50 Tabel 3.5 Tabel ms_country....................................................................................... 51 Tabel 3.6 Tabel ms_country_detail............................................................................ 51 Tabel 3.7 Tabel tr_call ............................................................................................... 51 Tabel 4.1 Evaluasi Hasil Uji Coba Percakapan Dengan Satu VoIP Gateway ........... 136 Tabel 4.2 Evaluasi Hasil Uji Coba Percakapan Dengan Dua VoIP Gateway............ 136
iv
DAFTAR GAMBAR Halaman Gambar 2.1 Mesh ....................................................................................................... 10 Gambar 2.2 Star ......................................................................................................... 10 Gambar 2.3 Extended Star ......................................................................................... 10 Gambar 2.4 Bus.......................................................................................................... 11 Gambar 2.5 Hybrid .................................................................................................... 11 Gambar 2.6 Ring ........................................................................................................ 12 Gambar 2.7 Dual Ring ............................................................................................... 12 Gambar 2.8 Sistem Telepon....................................................................................... 18 Gambar 2.9 Skema Arsitektur SIP ............................................................................. 26 Gambar 2.10 User Agent ........................................................................................... 27 Gambar 2.11 Cara Kerja User Agent ......................................................................... 28 Gambar 2.12 Registrar Server.................................................................................... 29 Gambar 2.13 Proxy Mode .......................................................................................... 30 Gambar 2.14 Redirect Mode ...................................................................................... 31 Gambar 2.15 Request Message .................................................................................... 33 Gambar 2.16 Respone Message ................................................................................... 34 Gambar 2.17 Sesi Komunikasi SIP............................................................................ 36 Gambar 2.18 STD ...................................................................................................... 41 Gambar 3.1 Diagram Hot Billing System VoIP......................................................... 47 Gambar 3.2 Skema Database Hot Billing System VoIP ............................................ 49 Gambar 3.3 STD Layar Utama .................................................................................. 54 Gambar 3.4 STD Layar Start Billing ......................................................................... 55 iv
Gambar 3.5 STD Layar Report Periodic.................................................................... 55 Gambar 3.6 STD Layar Report Detail ....................................................................... 56 Gambar 3.7 STD Layar Call Billing Report .............................................................. 56 Gambar 3.8 STD Layar Change Password ................................................................ 57 Gambar 3.9 STD Layar Add Operator....................................................................... 57 Gambar 3.10 STD Layar Delete Operator ................................................................... 58 Gambar 3.11 STD Layar Confirmation Delete Operator............................................. 58 Gambar 3.12 STD Layar Login ................................................................................... 59 Gambar 3.13 STD Layar Logout ................................................................................. 59 Gambar 3.14 STD Layar Exit ...................................................................................... 60 Gambar 3.15 STD Layar Setting.................................................................................. 60 Gambar 3.16 STD Layar Edit Price ............................................................................. 61 Gambar 3.17 STD Layar Add Country ........................................................................ 61 Gambar 3.18 STD Layar Confirmation Delete Country.............................................. 62 Gambar 3.19 STD Layar Detail Price .......................................................................... 62 Gambar 3.20 STD Layar Confirmation Delete Detail Price ........................................ 62 Gambar 3.21 STD Layar Printer Setting...................................................................... 63 Gambar 3.22 STD Layar Information.......................................................................... 63 Gambar 3.23 STD Layar About ................................................................................... 64 Gambar 3.24 Listener Server ....................................................................................... 64 Gambar 3.25 SIP Packet Checking .............................................................................. 66 Gambar 3.26 Layar Main Menu................................................................................... 68 Gambar 3.27 Layar Report Periodic ............................................................................ 69 Gambar 3.28 Layar Report Detail................................................................................ 69 iv
Gambar 3.29 Layar Call Billing Report Periodic ........................................................ 70 Gambar 3.30 Layar Call Billing Report Detail ............................................................ 70 Gambar 3.31 Layar Change Password ......................................................................... 71 Gambar 3.32 Layar Add Operator ............................................................................... 71 Gambar 3.33 Layar Delete Operator............................................................................ 72 Gambar 3.34 Layar Login ............................................................................................ 72 Gambar 3.35 Layar Logout .......................................................................................... 72 Gambar 3.36 Layar Exit............................................................................................... 73 Gambar 3.37 Layar Setting .......................................................................................... 73 Gambar 3.38 Layar Edit Price...................................................................................... 74 Gambar 3.39 Layar Add Country ................................................................................ 74 Gambar 3.40 Layar Delete Country ............................................................................. 75 Gambar 3.41 Layar Detail Setting ............................................................................... 75 Gambar 3.42 Layar Confirmation Delete Detail Price................................................. 76 Gambar 3.43 Layar Printer Setting .............................................................................. 76 Gambar 3.44 Layar Information .................................................................................. 77 Gambar 3.45 Layar About ........................................................................................... 77 Gambar 4.1 Topologi Jaringan Uji Coba ................................................................... 86 Gambar 4.2 Instalasi Java Virtual Machine 1 ............................................................ 88 Gambar 4.3 Instalasi Java Virtual Machine 2 ............................................................ 88 Gambar 4.4 Instalasi Java Virtual Machine 3 ............................................................ 89 Gambar 4.5 Instalasi Java Virtual Machine 4 ............................................................ 89 Gambar 4.6 Instalasi Java Virtual Machine 5 ............................................................ 90 Gambar 4.7 Instalasi MySQL Server 1 ...................................................................... 91 iv
Gambar 4.8 Instalasi MySQL Server 2 ...................................................................... 91 Gambar 4.9 Instalasi MySQL Server 3 ...................................................................... 92 Gambar 4.10 Instalasi MySQL Server 4 ...................................................................... 92 Gambar 4.11 Instalasi MySQL Server 5 ...................................................................... 93 Gambar 4.12 Instalasi MySQL Server 6 ...................................................................... 93 Gambar 4.13 Instalasi MySQL Server 7 ...................................................................... 94 Gambar 4.14 Instalasi MySQL Server 8 ...................................................................... 94 Gambar 4.15 Instalasi MySQL-Front 1 ....................................................................... 95 Gambar 4.16 Instalasi MySQL-Front 2 ....................................................................... 95 Gambar 4.17 Instalasi MySQL-Front 3 ....................................................................... 96 Gambar 4.18 Instalasi MySQL-Front 4 ....................................................................... 96 Gambar 4.19 Instalasi MySQL-Front 5 ....................................................................... 97 Gambar 4.20 Instalasi MySQL-Front 6 ....................................................................... 97 Gambar 4.21 Instalasi MySQL-Front 7 ....................................................................... 98 Gambar 4.22 Instalasi MySQL-Front 8 ....................................................................... 98 Gambar 4.23 Instalasi MySQL-Front 9 ....................................................................... 99 Gambar 4.24 Instalasi MySQL-Front 10 ..................................................................... 99 Gambar 4.25 Instalasi WinPCap 1 ............................................................................... 100 Gambar 4.26 Instalasi WinPCap 2 ............................................................................... 100 Gambar 4.27 Instalasi WinPCap 3 ............................................................................... 101 Gambar 4.28 Instalasi WinPCap 4 ............................................................................... 101 Gambar 4.29 Instalasi WinPCap 5 ............................................................................... 102 Gambar 4.30 Instalasi JPCap 1 .................................................................................... 102 Gambar 4.31 Instalasi JPCap 2 .................................................................................... 103 iv
Gambar 4.32 Instalasi JPCap 3 .................................................................................... 103 Gambar 4.33 Instalasi JPCap 4 .................................................................................... 104 Gambar 4.34 Instalasi JPCap 5 .................................................................................... 104 Gambar 4.35 Konfigurasi TCP/IP 1............................................................................. 105 Gambar 4.36 Konfigurasi TCP/IP 2............................................................................. 105 Gambar 4.37 Konfigurasi TCP/IP 3............................................................................. 106 Gambar 4.38 Konfigurasi TCP/IP 4............................................................................. 107 Gambar 4.39 Konfigurasi TCP/IP 5............................................................................. 107 Gambar 4.40 Konfigurasi TCP/IP 6............................................................................. 108 Gambar 4.41 Konfigurasi TCP/IP 7............................................................................. 109 Gambar 4.42 Konfigurasi ICS ..................................................................................... 110 Gambar 4.43 Konfigurasi VoIP Gateway 1 ................................................................. 111 Gambar 4.44 Konfigurasi VoIP Gateway 2 ................................................................. 111 Gambar 4.45 Konfigurasi VoIP Gateway 3 ................................................................. 112 Gambar 4.46 Konfigurasi Modem ADSL 1................................................................. 113 Gambar 4.47 Konfigurasi Modem ADSL 2................................................................. 113 Gambar 4.48 Konfigurasi Modem ADSL 3................................................................. 114 Gambar 4.49 Login ...................................................................................................... 115 Gambar 4.50 Start Billing ............................................................................................ 116 Gambar 4.51 Start Billing Pada Saat Percakapan Terjadi............................................ 117 Gambar 4.52 Report ..................................................................................................... 118 Gambar 4.53 Report Periodic....................................................................................... 118 Gambar 4.54 Report Detail .......................................................................................... 119 Gambar 4.55 Call Billing Report Periodic................................................................... 119 iv
Gambar 4.56 Call Billing Report Detail ...................................................................... 120 Gambar 4.57 Add Operator.......................................................................................... 121 Gambar 4.58 Add Operator Dialog.............................................................................. 121 Gambar 4.59 Change Password .................................................................................. 123 Gambar 4.60 Change Password Dialog ....................................................................... 123 Gambar 4.61 Delete Operator ...................................................................................... 124 Gambar 4.62 Delete Operator Dialog .......................................................................... 124 Gambar 4.63 Confirmation Delete Operator................................................................ 125 Gambar 4.64 Logout .................................................................................................... 125 Gambar 4.65 Logout Dialog ........................................................................................ 125 Gambar 4.66 Exit ........................................................................................................ 126 Gambar 4.67 Exit Dialog ............................................................................................. 126 Gambar 4.68 Setting .................................................................................................... 127 Gambar 4.69 Setting Form........................................................................................... 127 Gambar 4.70 Detail Price............................................................................................. 128 Gambar 4.71 Add Detail Price ..................................................................................... 128 Gambar 4.72 Delete Detail Price ................................................................................. 129 Gambar 4.73 Edit Price ................................................................................................ 129 Gambar 4.74 Add Country........................................................................................... 129 Gambar 4.75 Confirmation Delete Country................................................................. 130 Gambar 4.76 Printer Setting......................................................................................... 130 Gambar 4.77 Printer Setting Dialog............................................................................. 131 Gambar 4.78 Information............................................................................................. 132 Gambar 4.79 Information Form ................................................................................... 132 iv
Gambar 4.80 About...................................................................................................... 133 Gambar 4.81 About Dialog .......................................................................................... 133
iv
DAFTAR LAMPIRAN Halaman
Lampiran 1 Hasil Capture Screen Pada Saat Uji Coba Panggilan dengan Satu VoIP Gateway ............................................................................................... L1 Lampiran 2 Hasil Capture Screen Pada Saat Uji Coba Panggilan dengan Dua VoIP Gateway ............................................................................................... L6 Lampiran 3
VoIP Gateway Linksys ..................................................................... L11
Lampiran 4
Wawancara........................................................................................ L12
iv