4) Networking and Internetworking
4) Networking and Internetworking
4) Networking and Internetworking
NETWORKING AND
INTERNETWORKING
1
NETWORKING AND INTERNETWORKING
Contents
Networking Issues for Distributed Systems
Basics of Networking
Internet Protocols
2
NETWORKING AND INTERNETWORKING
3
NETWORKING AND INTERNETWORKING
Performance
Performance: the performance parameters are
those affecting the speed of message transfer. They
are as the followings:
Latency: Delay that occurs after a send operation is
executed before the data start to arrive at the destination
computer.
Data transfer rate: Speed at which the data can be
transferred between two computers once transmission
has begun.
Thus the transfer time for a message containing
length bit is: latency + length/data transfer rate
4
NETWORKING AND INTERNETWORKING
Performance
The equation for message transfer rate is only valid
if the length of message does not exceed a
maximum that is determined by the underlying
network technology. Longer messages have to be
segmented and transmission time is sum of the
times for segments.
For example if message transfer is performed
between two processes in a distributed system
since messages are small, latency has greater
significance than transfer rate in that case.
5
NETWORKING AND INTERNETWORKING
Performance
The total system bandwidth of a network is a
measure of throughput
The throughput is the total volume of traffic that can
be transferred across the network in a given time.
In many Local Are Networks (LAN) such as
Ethernet system bandwidth is the same as the data
transfer rate.
In most Wide Area Networks (WAN) since
messages can be transferred in different channels
simultaneously, total system bandwidth is different
from transfer rate.
Next slide shows some networks performance
6
NETWORKING AND INTERNETWORKING
Network Performance
Example Range Bandwidth Latency
(Mbps) (ms)
Wired:
LAN Ethernet 1-2 kms 10-1000 1-10
WAN IP routing worldwide 0.010-600 100-500
MAN ATM 250 kms 1-150 10
Internetwork Internet worldwide 0.5-600 100-500
Wireless:
WPAN Bluetooth (802.15.1) 10 - 30m 0.5-2 5-20
WLAN WiFi (IEEE 802.11) 0.15-1.5 km 2-54 5-20
WMAN WiMAX (802.16) 550 km 1.5-20 5-20
WWAN GSM, 3G phone nets worldwide 0.01-02 100-500
7
NETWORKING AND INTERNETWORKING
Protocol layers
Network software is arranged in a hierarchy of
layers
Data is sent to sender through different layers
Each layer of network software communicates with
the layers above and below it. See the next slide
The protocol types of the above layers are
included in the packets sent by the sender to
enable the protocol stack at the receiver for
selecting the correct software component to
unpack the packets.
8
NETWORKING AND INTERNETWORKING
Layer n
Layer 2
Layer 1
Sender Communication Recipient
medium
9
NETWORKING AND INTERNETWORKING
Application-layer message
Presentation header
Session header
Transport header
Network header
10
NETWORKING AND INTERNETWORKING
Protocol Suites
A complete set of protocols is referred to as
protocol suites or protocol stack , reflecting the
layered structure.
Seven layer reference model for open systems
interconnection (OSI) adopted by International
Organization for Standardization (ISO) to
encourage the development of protocol standards
that would meet the requirements for open
systems.
Next slides show OSI model and summary of its
protocols
11
NETWORKING AND INTERNETWORKING
12
NETWORKING AND INTERNETWORKING
Routing
Routing is a function that is required in all networks
excepts that LANs such as Ethernet that provide
the direct connection between all pairs of attached
hosts.
In the large networks adaptive routing which is the
best route for communication between two points
and this route is identifies by periodically re-
evaluation, is employed.
Assume a packet switching network shown in the
next slide, the routers located at connection points
are responsible for delivery of packets.
14
NETWORKING AND INTERNETWORKING
Routing
A 1 B
Hosts 2
3 Links 4
or local C
networks 5
D 6 E
Routers
15
NETWORKING AND INTERNETWORKING
Routing
A simple algorithm for routing discussed here is
“distance vector” algorithm which is the basis for
link-state algorithm that is used by Internet.
In this algorithm each router has a table contains a
single entry for each possible destination showing
the next hop (link field in the table) that packet must
take toward its destination.
Cost field in the table is simple calculation of vector
distance or number of hopes for a given destination.
See the next slide that shows routing tables for the
previous network.
16
NETWORKING AND INTERNETWORKING
Routing
Routing
For a packet addressed to C, when it arrives at
the router at A, the algorithm uses routing table
in A and choose the row staring with C therefore
forwards the packet to link labeled 1.
When the packet arrives at B same procedure is
followed and link 2 will be selected
When packet arrives at C, routing table entry
shows local that means packet should be
delivered to a local host
The routing tables will be built up and maintained
whenever faults occur in the network
18
NETWORKING AND INTERNETWORKING
19
NETWORKING AND INTERNETWORKING
Internetworking
To build an integrated network (an internetwork)
many subnets of different network technologies are
integrated. Internet made this possible by providing
the following items:
1. IP addresses
2. IP protocol
3. Internet Routers
Next slide shows part of intranet that comprises
several subnets interconnected by routers
20
NETWORKING AND INTERNETWORKING
web
server
copper
138.37.88.248
hub hub
sickle
Campus 138.37.95.248/29
router/ 100 Mbps Ethernet
router subnet 138.37.95.249 firewall
1000 Mbps Ethernet
Eswitch: Ethernet switch 21
NETWORKING AND INTERNETWORKING
Internetworking
In the previous slide the routers are in fact the
general purpose computers that serves as
firewalls. They may be interconnected through the
subnets or direct connection. In any case they are
responsible for forwarding the internetwork
packets and maintaining routing tables.
Switches: Performs similar function as routers but
for local networks (usually Ethernet) only.
Hubs: used for connecting hosts and extension
22
NETWORKING AND INTERNETWORKING
Internet Protocols
Internet emerged from the development of
ARPANET computer network and TCP/IP protocol
suites.
TCP stands for Transmission Control Protocol and
IP for Internet Protocol.
The technologies that are based on TCP/IP with
their application layer protocols (shown in
parentheses) including the Web(HTTP), email
(SMTP),netnews (NNTP), file transfer (FTP) and
Telnet (telnet)
TCP/IP layers are shown in the next slide
23
NETWORKING AND INTERNETWORKING
TCP/IP Layers
Message
Layers
Application
Messages (UDP) or Streams (TCP)
Transport
UDP or TCP packets
Internet
IP datagrams
Network interface
Network-specific frames
Underlying network
24
NETWORKING AND INTERNETWORKING
Internet Protocols
Note that the Internet Protocol (IP) is underlying
layer of Internet virtual network, which means IP
datagrams provides the basic transmission
mechanism for Internet and other TCP/IP networks.
IP packets produced by Internet layer can be
transferred over any underlying networks or data
links.
25
NETWORKING AND INTERNETWORKING
Application message
IP header TCP
Ethernet header IP
Ethernet frame
26
NETWORKING AND INTERNETWORKING
Internet Protocols
The success of TCP/IP is based on their
independence of underlying transmission
technology, which enables the internetworking to
be built up from many heterogeneous networks and
data links.
IP addressing and IP protocols are two design
aspects of Internet protocols.
The version of IP currently using is IPv4. New
version is IPv6 that designed to overcome
addressing limitation of IPv4.
The design of Internet address space and IP packet
layout are shown in the next Slides
27
NETWORKING AND INTERNETWORKING
7 24
Class A: 0 Network ID Host ID
14 16
Class B: 1 0 Network ID Host ID
21 8
Class C: 1 1 0 Network ID Host ID
28
Class D (multicast): 1 1 1 0 Multicast address
27
Class E (reserved): 1 1 1 1 0 unused
28
NETWORKING AND INTERNETWORKING
IP Packet Layout
header
IP address of source IP address of destination data
up to 64 kilobytes
29