Professional Documents
Culture Documents
Internetworking: 1 Coms22101 Lecture 9
Internetworking: 1 Coms22101 Lecture 9
Problem: need to connect networks together to build global network Two main problems: heterogeneity and scale Heterogeneity: hosts on different networks need to communicate - requires communication over multiple network technologies - need to provide routing and addressing Scale: need to support large numbers of networks and hosts Working example: the Internet Protocol
Coms22101 Lecture 9
Example Internetwork
H7 H8 ETH H1 H2 H3 R3
ETH R1 FDDI
PtP
R2
H4 H5 H6
H8 TCP
R1
IP FDDI PtP
R2
IP PtP
R3
IP ETH
FDDI
ETH
Coms22101 Lecture 9
Internet Protocol
Internetworking is implemented by the Internet Protocol Runs on every node, routers and hosts Provides three main services - Datagram delivery - Fragmentation and reassembly - Global addressing .....to give best effort packet delivery over multiple networks Note: there are other internetworking technologies, eg IPX by Novell, but IP has proven global scalability.
Coms22101 Lecture 9
Datagram Delivery
IP uses connectionless datagram forwarding - best effort delivery - IP datagrams carry source and destination addresses No guarantee of delivery - packets can get lost, delayed and replicated - reliable delivery services provided by layers above IP, ie transmission control protocol (TCP) based on sliding window Simple connectionless delivery means that IP can run over anything - minimal complexity required at intermediate routers and hosts
Coms22101 Lecture 9
IP Packet Structure
version HLen Ident TTL Protocol Source Address Destination address Options Pad TOS Flags Length Offset Checksum
Data
Coms22101 Lecture 9
Coms22101 Lecture 9
Global Addresses
IP provides global addressing - unique identier for every node IP addresses are hierarchical, with two parts: - network part: identies network containing host - host part: identies host on that network Networks assigned unique address and hosts on that network inherit that address plus unique host address IPv4 has 32-bit address space - over 4000 million possible hosts (usually written as 4 decimal numbers, eg 171.69.210.245) - problem: maximising utilisation of addresses - how many networks? how many nodes on a network? Are there enough addresses?
8 Coms22101 Lecture 9
IP Address Classes
IP addresses divided into 3 classes - A, B or C - large networks are class A - medium networks are class B - small networks are class C Problem: under utilisation of addresses, eg class C networks with 25 hosts out of 256
7 A
0 Network
24
Host
14 B
10 Network
16
Host
21 C
110 Network
8
Host
Need exibility in assigning addresses whilst retaining hierarchical structure subnetting and classless routing
9 Coms22101 Lecture 9
Forwarding in IP
Datagram sent from source host to destination host, possibly via intermediate routers Nodes compare network part of datagram destination address with there own network address - if same, deliver datagram over network - if not, deliver datagram to next router in direction of destination network Delivery may be require fragmentation if datagram too large Next router determined from network forwarding table built by internetwork routing protocol
11
Coms22101 Lecture 9
Summary
Internet Banking Network Video Internet Banking Network Video
Security
Compression
Security
Compression
Network Architecture sliding window routing TCP IP ETH ETH addressing R1 encapsulation fragmentation token ring checksum R2 forwarding TCP IP PtP R3 IP ETH encapsulation
IP
IP FDDI PtP
FDDI
ETH
ethernet
12
Coms22101 Lecture 9