0% found this document useful (0 votes)
136 views21 pages

00-Basic TCP PDF

This document provides an overview of basic TCP/IP networking concepts including: - OSI layers, packet headers, MAC addresses, IP addresses and subnetting - Common network protocols like TCP, UDP, ICMP and how they operate at different OSI layers - Distinctions between public vs private IP addresses and examples of private IP ranges - Basic functions of protocols like IP, ICMP, and examples of ICMP message types In 3 sentences or less, this summary highlights the key topics related to networking fundamentals that are covered in the document such as OSI layers, network protocols, IP addressing and private IP ranges.

Uploaded by

donpio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views21 pages

00-Basic TCP PDF

This document provides an overview of basic TCP/IP networking concepts including: - OSI layers, packet headers, MAC addresses, IP addresses and subnetting - Common network protocols like TCP, UDP, ICMP and how they operate at different OSI layers - Distinctions between public vs private IP addresses and examples of private IP ranges - Basic functions of protocols like IP, ICMP, and examples of ICMP message types In 3 sentences or less, this summary highlights the key topics related to networking fundamentals that are covered in the document such as OSI layers, network protocols, IP addressing and private IP ranges.

Uploaded by

donpio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Basic TCP/IP

Certified Mikrotik Training Basic Class


Organized by: Citraweb Nusa Infomedia
(Mikrotik Certified Training Partner)
Training Outline
OSI Layer
Packet Header
Mac Address

IP Address and subnetting

IP Protocol
Basic networking, DNS, gateway

00-2 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Internet Topologi

Jutaan host yang harus


bisa berkomunikasi
satu sama lain.
00-3 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15
OSI Layer dan Protokol
Application Open Systems

Application Set
Interconnection (OSI)
Presentation adalah sebuah model
referensi arsitektur
Session antarmuka jaringan yang
dikembangkan oleh ISO
Transport yang kemudian menjadi
konsep standard
Transport Set

Network komunikasi jaringan di


hampir semua perangkat
Link jaringan.

Physical

00-4 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


OSI Layer dan Protokol
Application SMTP HTTP FTP Telnet DNS DHCP SNMP TFTP

Enkripsi, dekripsi, mime


Presentation

Session Domain Resolve


TCP Data Session Maintenance

TCP UDP
Transport Transmission Control Protocol User Datagram Protocol
Routing Protocols
Network IP RIP, OSPF, BGP
ICMP
ARP
Link Mac Address, Switch

Physical Ethernet, Wireless, ATM, Frame Relay, PPP

00-5 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Packet Header
IP version (4) IP Header Length Type of service

ver IHL ToS 16 bit total length


16 bit identification fragment offset flag/length
TTL protocol 16 bit header checksum
32 bit source IP Address
Time to Live
32 bit destination IP Address
options (if any)

data

00-6 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


MAC Address
MAC = Media Access Control
Digunakan sebagai identitas yang unik dari setiap
interface hardware, yang merupakan identitas untuk
berkomunikasi di OSI layer 2.
Sebagian bit merupakan identitas pabrik pembuat
hardware
48 bit hex. Contoh: 00:11:22:DD:EE:FF

Jika sebuah router memiliki 3 interface fisik, maka


akan memiliki 3 buah mac address
Untuk virtual interface (VLAN, EoIP) maka
ditambahkan mac address virtual.

00-7 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


IP Address
Adalah sistem pengalamatan setiap host yang
terhubung ke jaringan
Saat ini IP Address yang banyak digunakan adalah
IP versi 4. (32 bits / 4 bytes) - 4,294,967,296 hosts

00-8 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Pengelompokan IP Address
Pengelompokan IP Address dilakukan dengan
subnet-ing.
Subnet .. 0 32
Melambangkan jumlah IP dalam subnet tersebut
dengan rumus 2(32-x)
Subnet 0 berarti semua IP Address

Subnet 32 berarti 1 IP Address

00-9 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


IP Subneting (contoh 1)
Contoh: 192.168.0.0/24
l Netmask : 255.255.255.0
l Prefix : /24
l IP Network : 192.168.0.0
l First HostIP: 192.168.0.1
l Last HostIP : 192.168.0.254
l Broadcast : 192.168.0.255
l HostIP : total IP di dalam Subnet () minus 2

00-10 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


IP Subneting (contoh 2)
Contoh: 192.168.0.0/25
l Netmask : 255.255.255.128
l Prefix : /25
l IP Network : 192.168.0.0
l First HostIP: 192.168.0.1
l Last HostIP : 192.168.0.126
l Broadcast : 192.168.0.127
l HostIP : total IP di dalam Subnet () minus 2

00-11 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Tabel Subnet
Subnet Mask Prefix No of IP Usable IP
255.255.255.0 /24 256 254
255.255.255.128 /25 128 126
255.255.255.192 /26 64 62
255.255.255.224 /27 32 30
255.255.255.240 /28 16 14
255.255.255.248 /29 8 6
255.255.255.252 /30 4 2
255.255.255.254 /31 2 -
255.255.255.255 /32 1 -

00-12 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Quiz !
Berikut ini adalah IP Address yang tidak boleh digunakan
oleh host atau server yang berada pada internet network
(public internet) :
a. 192.186.0.1
b. 172.31.76.76
c. 110.10.12.10
d. 10.100.123.45

Seiring perjalanan data dari layer 1 ke layer 7 dalam 7


layer OSI, header dari paket data :
a. di-susun-ulang
b. di-modifikasi
c. di-tambah
d. di-hilangkan

00-13 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Public and Private IP Address
Public IP Address
IP Address yang dapat diakses di jaringan internet.
Kita bisa mendapatkan Public IP Address dari:
Dipinjami dari ISP

Alokasi dari APNIC/IDNIC (www.idnic.net)

Private IP Address
IP Address yang diperuntukkan untuk jaringan lokal (tidak
dapat diakses di jaringan internet)
10.0.0.0 10.255.255.255 (10./8)
172.16.0.0 172.31.255.255 (172.16./12)
192.168.0.0 192.168.255.255 (192.168./16)

00-14 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


IP Address Khusus Lainnya
Penggunaan IP / subnet
Self Identification 0.0.0.0/8
Localhost 127.0.0.1
Loopback Other 127.0.0.0/8
Multicast 224.0.0.0/4
Local link/DHCP error 169.254.0.0/16
IETF Protocol Assignments 192.0.0.0/24
TEST-NET-1 192.0.2.0/24
TEST-NET-2 198.51.100.0/24
TEST-NET-3 203.0.113.0/24
6to4 Relay Anycast 192.88.99.0/24
Benchmark Test 198.18.0.0/15
Future Used 240.0.0.0/4
Limited Broadcast 255.255.255.255/32

RFC5735 Jan 2010: http://tools.ietf.org/html/rfc5735


00-15 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15
IP Protocol
Adalah protokol standart yang digunakan untuk
mengkomunikasikan data melalui berbagai jenis
perangkat dan layer.
Pengiriman data dilakukan dengan sistem per
paket dan/atau per connection.
Sistem ini menjamin keutuhan data, dan mencegah
terjadinya kekurangan ataupun duplikasi data.
Ada beragam protokol yang biasa digunakan, yang
umum adalah TCP, UDP, dan ICMP.

00-16 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


ICMP (Internet Control Message Protocol)
Type Name
Disalurkan berbasis best effort sehingga 0 Echo Reply
bisa terjadi error (datagram lost) 1 Unassigned
Banyak digunakan untuk pengecekan 2 Unassigned
jaringan 3 Destination
Unreachable
Prinsip kerja:
4 Source Quench
Host (router ataupun tujuan) akan
5 Redirect
mendeteksi apabila terjadi
6 Alternate Host
permasalahan tranmisi, dan membuat Address
ICMP message yang akan dikirimkan 7 Unassigned
ke host asal. 8 Echo
Aplikasi ICMP yang paling banyak 9 Router
digunakan: Ping dan Traceroute Advertisement
10 Router Solicitation

11 Time Exceeded

00-17 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


UDP (User Datagram Protocol)
Komputer yang satu bisa mengirimkan pesan/
datagram ke komputer lainnya di jaringan, tanpa
terlebih dahulu melakukan hand-shake
(connectionless communication)
Biasanya digunakan untuk servis yang mengirimkan
data kecil ke banyak host
Tidak ada flow control ataupun mekanisme lain
untuk menjaga keutuhan datagram
Aplikasi yang paling umum menggunakan UDP
adalah DNS dan berbagai game online

00-18 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


TCP (Transmission Control Protocol)
Merupakan protokol yang paling banyak digunakan
di internet.
Bekerja dengan pengalamatan port
Port 1 1024 : low port (standard service port)

Port 1025: high port (untuk transmisi lanjutan)

Contoh aplikasi: http, email, ftp, dll


Prinsip Kerja: Connection Oriented, Reliable
Transmission, Error Detection, Flow Control,
Segment Size Control, Congestion Control

00-19 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15


Prinsip Kerja TCP
Connection Oriented
Koneksi diawali dengan proses handshake
Client SYN Server
Server SYN-ACK Client
Client ACK Server
Reliable Transmission
Mampu melakukan pengurutan paket data, setiap
byte data ditandai dengan nomor yang unik
Error Detection
Jika terjadi error, bisa dilakukan pengiriman ulang
data
00-20 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15
Prinsip Kerja TCP
Flow Control
Mendeteksi supaya satu host tidak mengirimkan
data ke host lainnya terlalu cepat
Segment Size Control

Mendeteksi besaran MSS (maximum segment


size) yang bisa dikirimkan supaya tidak terjadi IP
fragmentation
Congestion Control

TCP menggunakan beberapa mekanisme untuk


mencegah terjadinya congestion pada network

00-21 Mikrotik Indonesia http://www.mikrotik.co.id/ 24/07/15

You might also like