Routing / rutowanie (marszrutowanie) (trasowanie)
Router / router (trasownik)
Static routing / Trasa statyczna Dynamic routing / Trasa dynamiczna
Static routing table / tablica trasy statycznej root@pendragon:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Static routing table / tablica trasy statycznej root@pendragon:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.116
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.116 & 255.255.255.0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.116 & 255.255.255.0 = 192.168.0.0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 0.0.0.0 255.255.255.0 U 0 0 0 eth0 loopback 127.0.0.0 * 0.0.0.0 255.0.0.0 U 0 0 0 lo default 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.116 & 255.255.255.0 = 192.168.0.0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.116 & 255.255.255.0 = 192.168.0.0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 root@pendragon:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 root@pendragon:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Static routing table / tablica trasy statycznej root@pendragon:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 root@pendragon:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 gateway / brama
Dynamic routing table / tablica trasy dynamicznej root@pendragon:~# route -C Kernel IP routing cache Source Destination Gateway Flags Metric Ref Use Iface pl-waw4a-dns03. 192.168.0.173 192.168.0.173 l 0 0 17 lo rr.knams.wikime 192.168.0.173 192.168.0.173 l 0 0 7 lo 192.168.0.173 mg-in-f19.googl 192.168.0.1 0 2 2 eth0 192.168.0.173 rr.knams.wikime 192.168.0.1 0 0 1 eth0 localhost localhost localhost l 0 0 2 lo astro.as.ap.kra 192.168.0.173 192.168.0.173 l 0 0 1104 lo mg-in-f19.googl 192.168.0.173 192.168.0.173 l 0 0 49 lo mg-in-f18.googl 192.168.0.173 192.168.0.173 l 0 0 22 lo 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 0 eth0 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 1 eth0 astro.ap.krakow 192.168.0.173 192.168.0.173 l 0 0 165 lo 192.168.0.173 mg-in-f18.googl 192.168.0.1 0 1 3 eth0 192.168.0.173 astro.as.ap.kra 192.168.0.1 0 1 1 eth0 192.168.0.173 mg-in-f18.googl 192.168.0.1 0 0 1 eth0 192.168.0.173 pl-waw4a-dns03. 192.168.0.1 0 0 23 eth0 192.168.0.173 pl-waw4a-dns03. 192.168.0.1 0 0 25 eth0 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 0 eth0 192.168.0.173 rr.knams.wikime 192.168.0.1 0 0 0 eth0 localhost localhost localhost l 0 2 4 lo
Dynamic routing table / tablica trasy dynamicznej root@pendragon:~# route -C Kernel IP routing cache Source Destination Gateway Flags Metric Ref Use Iface pl-waw4a-dns03. 192.168.0.173 192.168.0.173 l 0 0 17 lo rr.knams.wikime 192.168.0.173 192.168.0.173 l 0 0 7 lo 192.168.0.173 mg-in-f19.googl 192.168.0.1 0 2 2 eth0 192.168.0.173 rr.knams.wikime 192.168.0.1 0 0 1 eth0 localhost localhost localhost l 0 0 2 lo astro.as.ap.kra 192.168.0.173 192.168.0.173 l 0 0 1104 lo mg-in-f19.googl 192.168.0.173 192.168.0.173 l 0 0 49 lo mg-in-f18.googl 192.168.0.173 192.168.0.173 l 0 0 22 lo 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 0 eth0 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 1 eth0 astro.ap.krakow 192.168.0.173 192.168.0.173 l 0 0 165 lo 192.168.0.173 mg-in-f18.googl 192.168.0.1 0 1 3 eth0 192.168.0.173 astro.as.ap.kra 192.168.0.1 0 1 1 eth0 192.168.0.173 mg-in-f18.googl 192.168.0.1 0 0 1 eth0 192.168.0.173 pl-waw4a-dns03. 192.168.0.1 0 0 23 eth0 192.168.0.173 pl-waw4a-dns03. 192.168.0.1 0 0 25 eth0 192.168.0.173 astro.ap.krakow 192.168.0.1 0 0 0 eth0 192.168.0.173 rr.knams.wikime 192.168.0.1 0 0 0 eth0 localhost localhost localhost l 0 2 4 lo
Distance vector routing protocols / protokoły routingu wektora odległości Routery przekazują sobie swoje tablice routingu Każdy router informuje jedynie swoich sąsiadów Na podstawie aktualnej tablicy router oblicza nalepszą trasę (Algorytm Bellmana-Forda)
Distance vector routing protocols / protokoły routingu wektora odległości Pętle Zliczanie do nieskończoności (count to infinity) Powolna propagacja zmian Nie skalują dobrze do dużych sieci Proste algorytmy, mało mocy obliczeniowej
Pętle A B C
Pętle A B C
Zliczanie do nieskończoności A B C D E F
Zliczanie do nieskończoności A B C D E F
Distance vector routing protocols / protokoły routingu wektora odległości RIP (RIP2) Routing Information Protocol / Protokół Informowania o Trasach Jedynie informacje o ilości skoków ('hops')
Link-state routing protocols / protokoły routingu stanu łącza Każdy router wysyła i otrzymuje od innych mapę lączności sieci Każdy niezależnie oblicza trasy na podstawie swojej kopii mapy
Link-state routing protocols / protokoły routingu stanu łącza Pętle Dużo mocy obliczeniowej Mniej komunikacji niż w distance-vector (mapy są mniejsze niż tablice)
Link-state + Distance vector EIGRP (Enhanced Interior Gateway Routing Protocol
Protokoły routowalne: IP (IPv4, IPv6) IPX (Novell)
Protokoły routowalne: IP (IPv4, IPv6) IPX (Novell) Protokoły nieroutowalne NetBIOS (Microsoft Networks)
Odległość administracyjna