Chapter Two Introduction To Networking and Internetworking

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 35

CHAPTER TWO:

NETWORKING AND
INTERNETWORKING
Reference: Chapter Two:
Coulouris, G., Dollimore, J., Kindberg, T., Blair,
G., Distributed Systems: Concepts and Design,
5th Edition, Addison Wesley, 2011
Networking and Internetworking
Introduction
•Distributed systems use;
– local area networks,
– wide area networks and
– internetworks for communication.
•The characteristics of the underlying networks such as:-
• performance, reliability, scalability, mobility and quality of service impact the
behavior of distributed systems and hence affect their design.
•Changes in user requirements have resulted in the emergence of wireless
networks and of high-performance networks with quality of service
guarantees.
•The principles on which computer networks are based include;
– protocol layering,
– packet switching,
– routing and data streaming.

Distributed systems by Patrick ndungu 2


Networking and Internetworking Cont……
• Internetworking techniques
– enable heterogeneous networks to be integrated.
– The Internet is the major example;
• its protocols are almost universally used in distributed systems.

– The addressing and routing schemes used in the Internet


have withstood the impact of its enormous growth.
• They are now undergoing revision to accommodate future growth
and to meet new application requirements for mobility, security
and quality of service.

Distributed systems by Patrick ndungu 3


Networking and Internetworking Cont……

• The networks used in distributed systems are built from a variety of:
1. Transmission media;- cable, fibre and wireless channels;
2. Hardware devices;- routers, switches, bridges, hubs, repeaters and network
interfaces; and
3. Software components;- protocol stacks, communication handlers and drivers.
• The resulting functionality and performance available to
distributed system and application programs is affected by all of
these

Distributed systems by Patrick ndungu 4


Networking and Internetworking Cont……
Communication subsystem
–refer to hardware and software components
 that provide the communication facilities for a distributed
system
• hosts
– computers and other devices that use the network for
communication purposes
• node
– any computer or switching device attached to a network. Internet
constructed from any subnets
• subnet
– unit of routing (delivering data from one part of the Internet to
another);
- collection of nodes that can all be reached on the same physical
network

Distributed systems by Patrick ndungu 5


Networking and Internetworking Cont……
• The design of a communication subsystem
– is strongly influenced by the characteristics of the
operating systems used in the computers of which
the distributed system is composed of as well as the
networks that interconnect them.
• Early computer networks were designed to meet a
few, relatively simple application requirements.
• Network applications such as file transfer,
remote login, electronic mail and newsgroups were
supported.

Distributed systems by Patrick 6


ndungu
Networking and Internetworking Cont……
• Following the growth and commercialization of the
Internet and the emergence of many new modes of
use, more stringent requirements for reliability,
scalability, mobility, security and quality of service
have emerged.
• The speed with which individual messages can be
transferred between two interconnected computers
are determined by the:
– latency and
– point-to-point data transfer rate:

Distributed systems by Patrick 7


ndungu
Introduction Networking and
Internetworking Cont……
Latency
• Is the delay that occurs after a send operation is executed
and before data starts to arrive at the destination computer.
• It can be measured as the time required to transfer an
empty message.
• Here we are considering only network latency, which
forms a part of the process-to-process latency.
Data transfer rate
• Is the speed at which data can be transferred between two
computers in the network once transmission has begun, usually
quoted in bits per second.

• The time required for a network to transfer a message


containing length bits between two computers is:
• Message transmission time = latency + length ⁄ data
transfer rate
Distributed systems by Patrick ndungu 8
Networking issues for distributed systems
Performance
 Message transmission time = latency + length ⁄ data transfer
rate
 longer messages segmented – transmission time is the sum of
transfering the segment
 total system bandwidth of a network is a measure of throughput
 the total volume of traffic that can be transferred across the
network in a given time
 in most wide area networks messages can be transferred on
several different channels simultaneously
 The performance of networks deteriorates in conditions of
overload
 time required to access shared resources on a local network
remains about a 1000x greater than that required to access
resources that are resident in local memory
Distributed systems by Patrick 9
ndungu
Types of Networks
• The main types of network that are used to support distributed
systems:
 Personal Area Networks (PAN)
 Local Area Networks (LAN)
 Wide Area Networks (WAN)
 Metropolitan Area Networks (MAN) and
 The wireless variants of them.

• Internetworks such as the Internet are constructed from networks


of all these types.
 We refer to networks that are composed of many interconnected
networks, integrated to provide a single data communication medium, as
internetworks.
 
• The Internet is the prototypical internetwork; it is composed of
millions of local, metropolitan and wide area networks.

Distributed systems by Patrick 10


ndungu
Network Performance

Network Performance

Distributed systems by Patrick 11


ndungu
Network Principles
• The basis for all computer networks is the packet-
switching technique first developed in the 1960s.
– This enables data packets addressed to different
destinations to share a single communications link,
unlike the circuit-switching technology that underlies
conventional telephony.
– Packets are queued in a buffer and transmitted when
the link is available.
– Communication is asynchronous – messages arrive at
their destination after a delay that varies depending
upon the time that packets take to travel through the
network.

Distributed systems by Patrick 12


ndungu
Packet Transmission
• In most applications of computer networks the requirement
is for the transmission of logical units of information, or
messages – sequences of data items of arbitrary length.
– But before a message is transmitted it is subdivided into packets.
• The simplest form of packet is a sequence of binary data (an array of
bits or bytes) of restricted length, together with addressing
information sufficient to identify the source and destination computers.
• Packets of restricted length are used:
– Why?
 so that each computer in the network can allocate sufficient
buffer storage to hold the largest possible incoming packet;
 to avoid the undue delays that would occur in waiting for
communication channels to become free if long messages were
transmitted without subdivision.

Distributed systems by Patrick 13


ndungu
Data Streaming
Data Streaming
-a method of transmitting or receiving data (especially video and
audio material) over a computer network as a steady, continuous
flow, allowing playback to start while the rest of the data is still
being received.
-Is the transmission and display of audio and video in real time
• It requires much higher bandwidths than most other forms of
communication in distributed systems.
–The timely delivery of audio and video streams depends upon the
availability of connections with adequate quality of service
• The need to consider the:-
– bandwidth,
– latency and
– reliability must all be considered.

14
Distributed systems by Patrick ndungu
Data Streaming
Data Streaming Cont…

– Ideally,
• adequate quality of service should be guaranteed.
–In general
» the Internet does not offer that
capability, and the quality of real-time
video streams sometimes reflects that,
» but in proprietary intranets such as those
operated by media companies, guarantees
are sometimes achieved.

15
Distributed systems by Patrick ndungu
Data Streaming Cont…..
•  Data Streaming quality of service
– Require
• the ability to establish a channel from the source to the
destination of a multimedia stream, with a predefined route
through the network,
• a reserved set of resources at each node through which it will
travel and buffering where appropriate to smooth any
irregularities in the flow of data through the channel.
– Data can then be passed through the channel from sender to
receiver at the required rate.
– Communication subsystems that provide quality of service
guarantees require facilities for the pre-allocation of network
resources and the enforcement of the allocations.
• The Resource Reservation Protocol (RSVP):
– enables applications to negotiate the pre-allocation of bandwidth for
real-time data streams.
Distributed systems by Patrick ndungu 16
Data Streaming Cont…..
– The Real Time Transport Protocol
(RTP):
• is an application-level data transfer protocol that
– includes details of the play time and other timing
requirements in each packet.
– Nb
• The availability of effective implementations of
these protocols in the general Internet will depend
upon substantial changes to the transport and
network layers.

Distributed systems by Patrick 17


ndungu
Switching Schemes
Switching Schemes
– A network consists of a set of nodes connected together by circuits.
– To transmit information between two arbitrary nodes, a switching
system is required.
– four types of switching that are used in computer networking.
1.Broadcast:–
– Broadcasting is a transmission technique that involves no switching.
Everything is transmitted to every node, and it is up to potential
receivers to notice transmissions addressed to them.
– Some LAN technologies, Including Ethernet,
• are based on broadcasting.
• Wireless networking is necessarily based on broadcasting, but in the absence
of fixed circuits the broadcasts are arranged to reach nodes grouped in cells.

Distributed systems by Patrick 18


ndungu
Switching Schemes Cont….

2. Circuit Switching –
– At one time telephone networks were the only telecommunication
networks. Their operation was simple to understand: when a caller
dialled a number, the pair of wires from her phone to the local
exchange was connected by an automatic switch at the exchange
to the pair of wires connected to the other party’s phone. For a
long-distance call the process was similar but the connection would
be switched through a number of intervening exchanges to its
destination. This system is sometimes referred to as the plain old
telephone system, or POTS. It is a typical circuit-switching
network.
3.Packet Switching –
– Instead of making and breaking connections to build circuits, a
store-and forward network just forwards packets from their
source to their destination.
Distributed systems by Patrick 19
ndungu
Switching Schemes Cont….
Packet Switching Cont..
– There is a computer at each switching node (that is, wherever
several circuits need to be interconnected).
• Each packet arriving at a node is first stored in memory at the
node and then processed by a program that transmits it on an
outgoing circuit, which transfers the packet to another node
that is closer to its ultimate destination.
– Similar to the postal system is a store - and forward network for
letters, with the processing done by humans or machinery at sorting
offices.
– But in a computer network packets can be stored and processed
fast enough to give an illusion of instantaneous transmission,
even though the packet has to be routed through many nodes.
20
Distributed systems by Patrick ndungu
Switching Schemes Cont….
4. Frame Relay –
– The frame relay switching method
• brings some of the advantages of circuit switching to packet-
switching networks.
• They overcome the delay problems by switching small
packets (called frames) on the fly. The switching nodes
(which are usually special-purpose parallel digital
processors) route frames based on the examination of
their first few bits; frames as a whole are not stored at
nodes but pass through them as short streams of bits.
ATM networks are a prime example; high-speed ATM
networks can transmit packets across networks consisting
of many nodes in a few tens of microseconds.

21
Distributed systems by Patrick ndungu
Protocols
Protocols
– refer to a well-known set of rules and formats to be used for
communication between processes in order to perform a given
task.
– The definition of a protocol has two important parts to it:
• a specification of the sequence of messages that must be
exchanged;
• a specification of the format of the data in the messages .
– Nb
• The existence of well-known protocols enables the
separate software components of distributed systems
to be developed independently and implemented in
different programming languages on computers that
may have different order codes and data
representations. 22
Distributed systems by Patrick ndungu
Protocols
Protocols Layers
– Network software arranged in
• hierarchy of layers
• each layer presents an interface (service) to the layer(s) above it
•Conceptual layering of protocol software

23
Distributed systems by Patrick ndungu
Protocols
Protocols Layers
•Encapsulation as it is applied in layered protocols

24
Distributed systems by Patrick ndungu
Protocols
Protocols Layers
•Protocol suites
– protocol suite (or protocol stack) – complete set of protocol layers
Seven-layer Reference Model for Open Systems Interconnection (OSI)

Protocol layers in the ISO Open Systems Interconnection (OSI) model

25
Distributed systems by Patrick ndungu
OSI Protocol Summary

Distributed systems by Patrick ndungu 26


Protocols
Protocols Layers
• Internetwork layers

27
Distributed systems by Patrick ndungu
Protocols
• Packet assembly
 in transport layer
 header field
 data field
• maximum transfer unit (MTU)
• Ports
• software-defined destination points at a host computer
Addressing
Internet Assigned Numbers Authority (IANA) [www.iana.org I]).
FTP : 21 ; HTTP :80
• ≤ 1023 – well-known ports – restricted to privileged processes
• 1024:::49151– registered ports for which IANA holds service descriptions
• remaining ports upto 65535 available for private use

28
Distributed systems by Patrick ndungu
Protocols
Packet delivery
Datagram packet delivery
datagram’ refers to the similarity of this delivery mode to the way in which letters and telegrams
are delivered
Virtual circuit packet delivery:
analogous to a telephone network
A virtual circuit must be set up before packets can pass from a source host A to destination host B
Virtual circuit currently in use: ATM (Asynchronous Transfer Mode)

29
Distributed systems by Patrick ndungu
Routing
Routing
in large networks – adaptive routing – the best route for communication between
two points in the network is re-evaluated periodically

Two parts of routing algorithm:

1. make decisions that determine the route taken by each packet


2. dynamically update the knowledge of the network

30
Distributed systems by Patrick ndungu
Routing
Routing in a wide area network

31
Distributed systems by Patrick ndungu
Internetworking
Simplified view of part of a university campus network

32
Distributed systems by Patrick ndungu
Networking and internetworking
Routers
• routing required in all networks except Ethernets and wireless
Bridges
• link networks of different types
Hubs
• convenient means of connecting and extending segments of Ethernet and other broadcast
local network technologies
Switches
• perform similar function to routers, but for LANs (normally Ethernets)

33
Distributed systems by Patrick ndungu
Tunnelling
Tunnelling
protocol tunnel – software layer to transmit packets through alien network
 Tunnelling for IPv6 migration

34
Distributed systems by Patrick ndungu
The END

Q&A

THANKS

Distributed systems by Patrick 35


ndungu

You might also like