chapter 3: networking and internetworking 1. introduction networking issues for distributed systems:...

22
Chapter 3: Networking and Internetworking 1

Upload: noel-sanders

Post on 04-Jan-2016

226 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

1

Chapter 3:Networking and Internetworking

Page 2: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

2

Introduction Networking issues for distributed

systems:Performance,scalability,reliability,s

ecurity ,mobility, quality of services, and multicasting.

Page 3: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

3

Types of network Local area network (LAN): high

speed, connection, segment, bandwidth, latency, cable, Ethernet.

Wide area network (WAN): low speed, routing, source – destination, bandwidth.

Metropolitan area network (MAN): high bandwidth, fiber optic.

Wireless network

Page 4: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

4

Models

Page 5: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

5

Network principals Packet transmission – message,

packet, IP, buffer, delay, communication channel free.

Data stream: bandwidth, latency, reliability, establishing a channel.

Switching schemesProtocols: rules and format.

Page 6: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

6

Protocol layers

Page 7: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

7

Protocol Layers in OSI Protocol Model

Applicat ion

Presentat ion

Session

Transport

Network

Data link

Physical

Message sent Message received

Sender Recipient

Layers

Communicat ionmedium

Page 8: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

8

OSI Protocol SummaryLayer Description ExamplesApplication Protocols that are designed to meet the communication requirements of

specific applications, often defining the interface to a service. HTTP, FTP, SMTP,CORBA IIOP

Presentation Protocols at this level transmit data in a network representation that isindependent of the representations used in individual computers, which maydiffer. Encryption is also performed in this layer, if required.

Secure Sockets(SSL),CORBA DataRep.

Session At this level reliability and adaptation are performed, such as detection offailures and automatic recovery.

Transport This is the lowest level at which messages (rather than packets) are handled.Messages are addressed to communication ports attached to processes,Protocols in this layer may be connection-oriented or connectionless.

TCP, UDP

Network Transfers data packets between computers in a specific network. In a WANor an internetwork this involves the generation of a route passing throughrouters. In a single LAN no routing is required.

IP, ATM virtualcircuits

Data link Responsible for transmission of packets between nodes that are directlyconnected by a physical link. In a WAN transmission is between pairs ofrouters or between routers and hosts. In a LAN it is between any pair of hosts.

Ethernet MAC,ATM cell transfer,PPP

Physical The circuits and hardware that drive the network. It transmits sequences ofbinary data by analogue signalling, using amplitude or frequency modulationof electrical signals (on cable circuits), light signals (on fibre optic circuits)or other electromagnetic signals (on radio and microwave circuits).

Ethernet base- bandsignalling, ISDN

Page 9: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

9

Internetwork layers

Page 10: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

10

Internetwork layersProtocol suitesPacket assemblyAddressingPacket delivery

Page 11: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

11

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.

Page 12: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

12

Routing

Hosts Linksor local networks

A

D E

B

C

1

2

5

43

6

Routers

Page 13: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Routing

13

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 hope (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.

Page 14: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Routing

14

Routings from D Routings from E

To Link Cost To Link CostABCDE

336

local6

12201

ABCDE

4456

local

21110

Routings from A Routings from B Routings from C

To Link Cost To Link Cost To Link CostABCDE

local1131

01212

ABCDE

1local

214

10121

ABCDE

22

local55

21021

Page 15: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Routing

15

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

Page 16: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Internetworking: Simplified View of the QMW Computer Science Network (2000)

16

file

compute

dialup

hammer

henry

hotpoint

138.37.88.230

138.37.88.162

bruno138.37.88.249

router/sickle

138.37.95.241138.37.95.240/29

138.37.95.249

copper138.37.88.248

firewall

web

138.37.95.248/29

server

desktop computers 138.37.88.xx

subnet

subnet

Eswitch

138.37.88

server

server

server

138.37.88.251

custard138.37.94.246

desktop computers

Eswitch

138.37.94

hubhub

Student subnetStaff subnet

otherservers

router/firewall

138.37.94.251

1000 Mbps EthernetEswitch: Ethernet switch

100 Mbps Ethernet

file server/gateway

printers

Campusrouter

Campusrouter

138.37.94.xx

Page 17: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Internetwork

17

Routers Bridges Hubs Switches Tunneling

Page 18: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Internet protocols

18

Page 19: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

19

Page 20: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

Internetworking / Internet Address Structure

20

Switches: Performs similar function as routers but for local networks (usually Ethernet) only.

Hubs: used for connecting hosts and extension

7 24

Class A: 0 Net work I D Host I D

14 16

Class B: 1 0 Net work I D Host I D

21 8

Class C: 1 1 0 Net work I D Host I D

28

Class D (mult icast ) : 1 1 1 0 Mult icast address

27

Class E ( reserved) : 1 1 1 1 unused0

Page 21: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

21

Page 22: Chapter 3: Networking and Internetworking 1. Introduction Networking issues for distributed systems: Performance,scalability,reliability,security,mobility,

IP addressing and The IP protocol

22