5network layer

Upload: irvan-nurgiatmo

Post on 09-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 5network layer

    1/38

    17-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    OSI network layer

    CCNA Exploration Semester 1

    Chapter 5

  • 8/7/2019 5network layer

    2/38

    2

    Tujuan Lapis Network

    Menjamin Komunikasi end to end,

    mendapatkan data dari sumber ke tujuan,

    dan me-route-kannya: Addressing/Pengalamatan

    Encapsulation

    Routing

    Decapsulation

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    3/38

    37-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    4/38

    47-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    OSI network layer

    OSI model layer3

    TCP/IP model Internet layer

    Application

    Presentation

    Session

    Transport

    Network

    Data link

    Physical

    Application

    Transport

    Internet

    Network Access

    TCP, UDP

    IP

    Ethernet,

    WAN

    technologies

    HTTP, FTP,

    TFTP, SMTP

    etc

    Segment

    Packet

    Frame

    Bits

    Data

    stream

  • 8/7/2019 5network layer

    5/38

    5

    Network Layer Protocol

    Protocols implemented at the Network layer

    that carry user data include:

    Internet Protocol version 4 (IPv4) Internet Protocol version 6 (IPv6)

    Novell Internetwork Packet Exchange (IPX)

    AppleTalk

    Connectionless Network Service (CLNS/DECNet)

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    6/38

    6

    Protocol IPv4

    Characteristics IPv4

    Connectionless - No connection is established

    before sending data packets.

    Best Effort (unreliable) - No overhead is used to

    guarantee packet delivery.

    Media Independent - Operates independently of

    the medium carrying the data.

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    7/38

    7

    IPv4 - Connectionless

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    8/38

    8

    IPv4 Best effort (Unreliable)

    IP tidak mempunyai kemempuan untuk

    memanage dan recovery packet yang tak

    terkirim, hilang, atau rusak.

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    9/38

    9

    IPv4 - Media Independent

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    10/38

    107-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Network layer topics

    IP version 4 the most common layer3

    routed protocol

    Dividing hosts into groups why and how Routing sending packets the right way

    Routing how routers learn routes

    IP addressing in chapter 6

  • 8/7/2019 5network layer

    11/38

    117-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Network layer encapsulation

    Segment from transport layer

    Packet header added to make

    IP packet

    Sent to data link layer for

    further encapsulation into

    frame

  • 8/7/2019 5network layer

    12/38

    127-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 packet header fieldsIP address of source

    host, needed so reply

    can be sent.

    IP address of destination

    host, needed so routers

    can find route.

  • 8/7/2019 5network layer

    13/38

    137-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 packet header fieldsReduced by 1 at each

    router. Packet dropped if

    it goes to 0.

    TCP or UDP used in

    Transport layer.

  • 8/7/2019 5network layer

    14/38

    147-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 packet header fieldsPriority for QoS. E.g.

    voice data has higher

    priority than e-mail.

    For checking if header has

    been corrupted.

  • 8/7/2019 5network layer

    15/38

    157-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 packet header fieldsShows if packet has

    been fragmented or

    must not be fragmented.

    If router has to split a

    packet, this gives order for

    putting pieces together.

  • 8/7/2019 5network layer

    16/38

    167-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 packet header fieldsVersion 4. Length of whole packet.Header

    length.

  • 8/7/2019 5network layer

    17/38

    177-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Splitting up networks

    Fully switched network, each device has its own

    bandwidth. You could have hundreds of computers.

    Why split it up?

    Too large to manage efficiently

    Too much broadcast traffic - congestion

    Too many addresses for switches to remember

    Lack of security

  • 8/7/2019 5network layer

    18/38

    187-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    How to split the network

    Geographically different sites

  • 8/7/2019 5network layer

    19/38

  • 8/7/2019 5network layer

    20/38

    20

    How to split the network

    (contd)

    Ownership different companies or departments in a

    company, security requirements

    7-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    21/38

    217-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Use a router

    Limits broadcasts

    Can provide security

    Addressing scheme

    based on networks -

    hierarchical

  • 8/7/2019 5network layer

    22/38

    227-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    IPv4 hierarchical address

    32 bits in four8-bit octets, written in decimal

    Network part then host part

    Here network part (prefix) is 24 bits /24

    Length of network part can vary.

  • 8/7/2019 5network layer

    23/38

    237-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Message to same network

  • 8/7/2019 5network layer

    24/38

    247-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Message to different network

  • 8/7/2019 5network layer

    25/38

    257-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Default gateway

    Each PC is configured with an IP address

    and a default gateway.

    The default gateway is the IP address of arouter port on the same network as the PC.

    It is the routers job to handle messages to

    other networks.

    Each router port is on a different network and

    has a different IP address.

  • 8/7/2019 5network layer

    26/38

    267-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

  • 8/7/2019 5network layer

    27/38

    277-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Hops

    A packet may pass through many routers on

    its journey.

    The trip from one router to the next is called ahop and the next router is called the next hop

    router.

    Each router looks at the IP address in the

    packet header and decides what to do withthe packet next.

  • 8/7/2019 5network layer

    28/38

    287-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Routing table and forwarding

    Each router has a routing table. This contains

    a list of known networks and the best way to

    get there outgoing port and address of next-

    hop router.

    The router looks at the IP address of a packet.

    It decides which network this address is on.

    If it knows the network it forwards the packet.If it does not know the network it drops the

    packet.

  • 8/7/2019 5network layer

    29/38

    297-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Directly connected

    The networks of the routers own interfaces go into the

    routing table.

  • 8/7/2019 5network layer

    30/38

    307-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Other networks

    Routes to other networks can be configured

    by an administrator (static routes)

    Or they can be learned from another routerusing a routing protocol (dynamic routes)

    A router can have a default route. Packets for

    unknown networks go on this route instead of

    being dropped.

  • 8/7/2019 5network layer

    31/38

    317-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Routing table entries

    Directly connected shown by C

  • 8/7/2019 5network layer

    32/38

    327-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Routing table entries

    Static, configured by administrator,

    shown by S

  • 8/7/2019 5network layer

    33/38

  • 8/7/2019 5network layer

    34/38

    347-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Routing table entries

    Learned from another router using RIP

    routing protocol, shown by R

  • 8/7/2019 5network layer

    35/38

    357-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Router has a route

  • 8/7/2019 5network layer

    36/38

    367-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Routing protocols

    Routers learn routes from each other and put

    them in their routing tables.

    A routing protocol is the set of rules they useto swap information.

    These routes are dynamic routes

  • 8/7/2019 5network layer

    37/38

    377-Feb-11 S Ward Abingdon and Witney College CCNA Exploration Semester 1

    Static routes Dynamic routes

    Entered by

    administrator

    Time consuming,

    different for each router

    Must be updated if

    routes change

    Little processing

    No bandwidth used

    Gives nothing away

    Learned from other

    routers

    Start the protocol then

    it runs by itself

    Automatically updates

    when routes change

    More processing

    Uses bandwidth

    Gives away information

  • 8/7/2019 5network layer

    38/38