Vous êtes sur la page 1sur 10

12/03/2005

Livello Network

Network Layer Design Isues

Applicazione

Unit di trasmissione dati a livello applicazione

Applicazione

Trasporto

Unit di trasmissione dati a livello trasporto

Trasporto

Limite della sottorete di interconnessione

Rete

Pacchetto

Rete

Pacchetto

Rete

Pacchetto

Rete

Data link

Frame

Data link

Frame

Data link

Frame

Data link

Fisico

Bit

Fisico

Bit

Fisico

Bit

HOST A

Router

12/03/2005

Router

Fisico
HOST B

Reti di Calcolatori

Store-and-Forward Packet Switching

Store-and-Forward Packet Switching


Services Provided to the Transport Layer
Implementation of Connectionless Service
Implementation of Connection-Oriented
Service
Comparison of Virtual-Circuit and Datagram
Subnets

12/03/2005

Reti di Calcolatori

Implementation of Connectionless Service


Routing within a diagram subnet.

The environment of the network layer protocols.


fig 5-1

12/03/2005

Reti di Calcolatori

12/03/2005

Reti di Calcolatori

Comparison of Virtual-Circuit and


Datagram Subnets

Implementation of ConnectionOriented Service


Routing within a virtual-circuit subnet.

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

12/03/2005

Reti di Calcolatori

12/03/2005

Routing

Routing

Each node in a WAN is a router


that accepts an input packet,
examines the destination address,
and forwards the packet on to a
particular telecommunications line.
How does a router decide which
line to transmit on?
A router must select the one
transmission line that will best
provide a path to the destination
and in an optimal manner.
Often many possible routes exist
between sender and receiver.

12/03/2005

Reti di Calcolatori

Routing

The subnet with its nodes


and telecommunication links
is essentially a weighted
network graph.
The edges, or
telecommunication links,
between nodes, have a cost
associated with them.
The cost could be a delay
cost, a queue size cost, a
limiting speed, or simply a
dollar amount for using that
link.

12/03/2005

Reti di Calcolatori

Routing Algorithms

The

routing method, or algorithm, chosen to


move packets through a network should be:

Conflict between fairness and optimality.

Optimal, so the least cost can be found


Fair, so all packets are treated equally
Robust, in case link or node failures occur and the
network has to reroute traffic.
Not too robust so that the chosen paths do not
oscillate too quickly between troubled spots.

12/03/2005

Reti di Calcolatori

Least Cost Routing Algorithm

Reti di Calcolatori

Reti di Calcolatori

Reti di Calcolatori

10

Flooding Routing

Dijkstras least cost


algorithm finds all
possible paths between
two locations.
By identifying all possible
paths, it also identifies
the least cost path.
The algorithm can be
applied to determine the
least cost path between
any pair of nodes.

12/03/2005

12/03/2005

When a packet arrives at a node,


the node sends a copy of the
packet out every link except the
link the packet arrived on.
Traffic grows very quickly when
every node floods the packet.
To limit uncontrolled growth, each
packet has a hop count. Every
time a packet hops, its hop count
is incremented. When a packets
hop count equals a global hop
limit, the packet is discarded.

11

12/03/2005

Reti di Calcolatori

12

12/03/2005

Centralized Routing

Distributed Routing

One routing table is kept at a central node.


Whenever a node needs a routing decision, the central node is consulted.
To survive central node failure, the routing table should be kept at a backup
location.
The central node should be designed to support a high amount of traffic
consisting of routing requests.

12/03/2005

Reti di Calcolatori

13

Isolated Routing
node uses only local information to create
its own routing table.
Advantage - routing information does not have
to be passed around the network.
Disadvantage - a nodes individual routing
information could be inaccurate, or out of date.

Reti di Calcolatori

Reti di Calcolatori

Reti di Calcolatori

14

adaptive routing, routing tables can


change to reflect changes in the network
Static routing does not allow the routing tables
to change.
Static routing is simpler but does not adapt to
network congestion or failures.

15

12/03/2005

Reti di Calcolatori

16

Congestion Prevention Policies


Policies that affect congestion.

12/03/2005

Reti di Calcolatori

With

Network Congestion
When a network or a part of a
network becomes so saturated
with data packets that packet
transfer is noticeably impeded,
network congestion occurs.
Preventive measure include
providing backup nodes and links
and preallocation of resources.
To handle network congestion, you
can perform buffer preallocation,
choke packets, or permit systems.
Forward and backward explicit
congestion control also used

12/03/2005

Adaptive Routing versus Static Routing

Each

12/03/2005

Each node maintains its own routing table.


No central site holds a global table.
Somehow each node has to share information with other nodes
so that the individual routing tables can be created.
Possible problem with individual routing tables holding
inaccurate information.

5-26

When too much traffic is offered,


congestion sets in and
performance degrades sharply.

17

12/03/2005

Reti di Calcolatori

18

12/03/2005

Quality of Service

Requirements

Before making a connection, user requests how much


bandwidth is needed, or if connection needs to be
real-time
Network checks to see if it can satisfy user request
If user request can be satisfied, connection is
established
If a user does not need a high bandwidth or real-time,
a simpler, cheaper connection is created

12/03/2005

Reti di Calcolatori

How stringent the quality-of-service requirements are.

19

Buffering

12/03/2005

20

Internetworking

Smoothing the output stream by buffering


packets.

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

21

Connecting Networks

12/03/2005

How Networks Differ


How Networks Can Be Connected
Concatenated Virtual Circuits
Connectionless Internetworking
Tunneling
Internetwork Routing
Fragmentation
Reti di Calcolatori

22

How Networks Differ


Some of the many ways networks can differ.

5-43

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

23

12/03/2005

Reti di Calcolatori

24

12/03/2005

How Networks Can Be


Connected

Concatenated Virtual Circuits

(a) Two Ethernets connected by a


switch.
(b) Two Ethernets connected by routers.

12/03/2005

Reti di Calcolatori

Internetworking using concatenated virtual


circuits.

25

Connectionless
Internetworking

12/03/2005

Reti di Calcolatori

26

Tunneling
Tunneling a packet from Paris to London.

A connectionless internet.

12/03/2005

Reti di Calcolatori

27

Tunneling (2)

12/03/2005

Reti di Calcolatori

28

Internetwork Routing

Tunneling a car from France to England.

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

(a) An internetwork. (b) A graph of the


internetwork.

29

12/03/2005

Reti di Calcolatori

30

12/03/2005

Fragmentation

Fragmentation (2)

Fragmentation when the elementary data size is 1 byte.


(a) Original packet, containing 10 data bytes.
(b) Fragments after passing through a network with maximum
packet size of 8 payload bytes plus header.
(c) Fragments after passing through a size 5 gateway.

(a) Transparent fragmentation.


(b) Nontransparent fragmentation.
12/03/2005

Reti di Calcolatori

31

12/03/2005

Reti di Calcolatori

The Network Layer in the Internet

Design Principles for Internet

The

IP Protocol
IP Addresses
Internet Control Protocols
OSPF The Interior Gateway Routing Protocol
BGP The Exterior Gateway Routing Protocol
Internet Multicasting
Mobile IP
IPv6
12/03/2005

Reti di Calcolatori

33

Collection of Subnetworks

32

Make sure it works.


Keep it simple.
Make clear choices.
Exploit modularity.
Expect heterogeneity.
Avoid static options and parameters.
Look for a good design; it need not be perfect.
Be strict when sending and tolerant when receiving.
Think about scalability.
Consider performance and cost.

12/03/2005

Reti di Calcolatori

34

Communication in the Internet

The transport layer takes data streams and breaks


them up into datagrams
Each datagram is transmitted through the Internet
(possibly fragmented into smaller units)
When all the pieces get to the destination machines
they are reassembled by the network layer to the
original datagram which is then handed to the
transport layer
The transport layer inserts the received datagram into
the receiving process input stream.

The Internet is an interconnected collection of many networks.


12/03/2005

Reti di Calcolatori

Reti di Calcolatori

35

12/03/2005

Reti di Calcolatori

36

12/03/2005

Progression of a packet from one network to another

The Internet Protocol (IP)


IP

prepares a packet for transmission across


the Internet.
The IP header is encapsulated onto a transport
data packet.
The IP packet is then passed to the next layer
where further network information is
encapsulated onto it.

12/03/2005

Reti di Calcolatori

37

The Internet Protocol (IP)


Using

12/03/2005

Reti di Calcolatori

38

The IP Protocol

IP, a subnet router:

The IPv4 (Internet Protocol) header.

Makes routing decision based on the destination


address.
May have to fragment the datagram into smaller
datagrams (very rare) using Fragment Offset.
May determine that the current datagram has been
hopping around the network too long and delete it
(Time to Live).

12/03/2005

Reti di Calcolatori

39

The IP Protocol (2)

12/03/2005

Reti di Calcolatori

40

IP Addresses

Some of the IP options.

All devices connected to the Internet have a 32-bit IP


address associated with it.
Think of the IP address as a logical address (possibly
temporary), while the 48-bit address on every NIC is the
physical, or permanent address.

5-54

Computers, networks and routers use the 32-bit


binary address, but a more readable form is the
dotted decimal notation.
For example, the 32-bit binary address
10000000 10011100 00001110 00000111
translates to 128.156.14.7

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

41

There are basically four types of IP addresses: Classes


A, B, C and D.

12/03/2005

Reti di Calcolatori

42

12/03/2005

IP Addresses

IP Addresses (2)

IP address formats.

12/03/2005

Reti di Calcolatori

Special IP addresses.

43

Subnets

12/03/2005

Reti di Calcolatori

44

IP Subnet Masking

A campus network consisting of LANs for various


departments.

Sometimes you have a large number of IP address to


manage.
By using subnet masking, you can break the host ID
portion of the address into a subnet ID and host ID.
Some examples:
the subnet mask 255.255.255.0 applied to a class B address
will break the host ID (normally 16 bits) into an 8-bit subnet
ID and an 8-bit host ID;
the subnet mask 255.255.252.0 applied to a class B address
will break the host ID (normally 16 bits) into an 6-bit subnet
ID and an 10-bit host ID.

12/03/2005

Reti di Calcolatori

45

12/03/2005

Reti di Calcolatori

46

CIDR Classless InterDomain


Routing

Subnets (2)

A set of IP address assignments.


5-59

Class B network subnetted into 64 subnets.


12/03/2005

Reti di Calcolatori

Reti di Calcolatori

47

12/03/2005

Reti di Calcolatori

48

12/03/2005

Network Address Translation (NAT)

NAT lets a router represent an entire local area


network to the Internet as a single IP address.
All traffic leaving this LAN appears as originating from
a global IP address.
All traffic coming into this LAN uses this global IP
address.
This security feature allows a LAN to hide all the
workstation IP addresses from the Internet.
Since the outside world cannot see into the LAN, you
do not need to use registered IP addresses on the
inside LAN.

12/03/2005

Reti di Calcolatori

Network Address Translation (NAT)

We can use the following blocks of addresses for private use:


10.0.0.0 10.255.255.255
172.16.0.0 172.31.255.255
192.168.0.0 192.168.255.255

49

When a user on inside sends a packet to the outside, the NAT


interface changes the users inside address to the global IP
address. This change is stored in a cache.
When the response comes back, the NAT looks in the cache
and switches the addresses back.
No cache entry? The packet is dropped. Unless NAT has a
service table of fixed IP address mappings. This service table
allows packets to originate from the outside.

12/03/2005

Reti di Calcolatori

50

Internet Control Message


Protocol

NAT Network Address Translation


Placement and operation of a NAT box.

The principal ICMP message types.


5-61

12/03/2005

Reti di Calcolatori

51

ARP The Address Resolution


Protocol

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

52

Dynamic Host Configuration


Protocol

Three interconnected /24 networks: two


Ethernets and an FDDI ring.

12/03/2005

Reti di Calcolatori

Operation of DHCP.

53

12/03/2005

Reti di Calcolatori

54

12/03/2005

The Main IPv6 Header

Extension Headers

The IPv6 fixed header (required).

IPv6 extension headers.

12/03/2005

Reti di Calcolatori

55

Extension Headers (2)

12/03/2005

Reti di Calcolatori

Reti di Calcolatori

56

Extension Headers (3)

The hop-by-hop extension header for large


datagrams (jumbograms).
12/03/2005

Reti di Calcolatori

The extension header for routing.


57

12/03/2005

Reti di Calcolatori

58

10

Vous aimerez peut-être aussi