4-6 Network Layer.pptx

Embed Size (px)

Citation preview

  • 8/13/2019 4-6 Network Layer.pptx

    1/31

    Network Layer (Part 6)

    Computer Networks

    Tutun JuhanaTelecommunication EngineeringSchool of Electrical Engineering & Informatics

    Institut Teknologi Bandung

    4

  • 8/13/2019 4-6 Network Layer.pptx

    2/31

    INTERNET CONTROL MESSAGEPROTOCOL VERSION 4 (ICMPV4)

  • 8/13/2019 4-6 Network Layer.pptx

    3/31

    3

    The value of the protocol field in the IP datagram is 1 to indicate

    that the IP data is an ICMP message

  • 8/13/2019 4-6 Network Layer.pptx

    4/31

    Messages

    4

    includes the IP

    header of

    the originaldatagram + the first

    8 bytes of data in

    that datagram

  • 8/13/2019 4-6 Network Layer.pptx

    5/31

    5

    Provides port numbers

    (UDP and TCP) and

    sequence number

    (TCP).

  • 8/13/2019 4-6 Network Layer.pptx

    6/31

    ERROR REPORTINGMESSAGES

    6

  • 8/13/2019 4-6 Network Layer.pptx

    7/31

    Error Reporting Messages

    No ICMP error message will be generated in response to a

    datagram carrying an ICMP error message.

    No ICMP error message will be generated for a fragmented

    datagram that is not the first fragment.

    No ICMP error message will be generated for a datagram having a

    multicast address.

    No ICMP error message will be generated for a datagram having a

    special address such as 127.0.0.0 or 0.0.0.07

  • 8/13/2019 4-6 Network Layer.pptx

    8/31

    Destination Unreachable

    8

    Note: For codes, please refer to Forouzans

  • 8/13/2019 4-6 Network Layer.pptx

    9/31

    Source Quench

    9

  • 8/13/2019 4-6 Network Layer.pptx

    10/31

    Time Exceeded

    10

  • 8/13/2019 4-6 Network Layer.pptx

    11/31

    11

  • 8/13/2019 4-6 Network Layer.pptx

    12/31

    Parameter ProblemIf a router or the destination host discovers an ambiguous

    or missing value in any field of the datagram, it discards thedatagram and sends a parameter-problem message back

    to the source

    12

  • 8/13/2019 4-6 Network Layer.pptx

    13/31

    Redirection

    13

  • 8/13/2019 4-6 Network Layer.pptx

    14/31

    QUERY MESSAGES

    14

  • 8/13/2019 4-6 Network Layer.pptx

    15/31

    Query Messages

    ICMP can also diagnose some network

    problemsaccomplished through the

    query messages

    15

  • 8/13/2019 4-6 Network Layer.pptx

    16/31

    Echo Request and Reply

    The echo-request and echo-reply messages aredesigned for diagnostic purposes

    Network managers and users utilize this pair of

    messages to identify network problems.

    The combination of echo-request and echo-reply

    messages determines whether two systems

    (hosts or routers) can communicate with each

    other.

    16

  • 8/13/2019 4-6 Network Layer.pptx

    17/31

    17

  • 8/13/2019 4-6 Network Layer.pptx

    18/31

    Timestamp Request and Reply

    Two machines (hosts or routers) can

    use the timestamp-request and

    timestamp-reply messages to: determine the round-trip time needed for

    an IP datagram to travel between them

    synchronize the clocks in two machines

    18

  • 8/13/2019 4-6 Network Layer.pptx

    19/31

    19

  • 8/13/2019 4-6 Network Layer.pptx

    20/31

    20

  • 8/13/2019 4-6 Network Layer.pptx

    21/31

    21

  • 8/13/2019 4-6 Network Layer.pptx

    22/31

    22

  • 8/13/2019 4-6 Network Layer.pptx

    23/31

    CHECKSUM

    23

  • 8/13/2019 4-6 Network Layer.pptx

    24/31

    In ICMP the checksum is calculated over

    the entire message (header and data)

    24

  • 8/13/2019 4-6 Network Layer.pptx

    25/31

    25

  • 8/13/2019 4-6 Network Layer.pptx

    26/31

    26

  • 8/13/2019 4-6 Network Layer.pptx

    27/31

    DEBUGGING TOOLS

    27

  • 8/13/2019 4-6 Network Layer.pptx

    28/31

    Ping

    We can use the ping program to find if a host is alive andresponding

    The source host sends ICMP echo request messages

    (type: 8, code: 0); the destination, if alive, responds with

    ICMP echo reply messages

    The ping program sets the identifier field in the echo

    request and reply message and starts the sequence

    number from 0; this number is incremented by one each

    time a new message is sent

    Note that ping can calculate the round-trip time. It inserts

    the sending time in the data section of the message.

    When the packet arrives it subtracts the arrival time from

    the departure time to get the round-trip time (RTT).

    28

  • 8/13/2019 4-6 Network Layer.pptx

    29/31

    29

  • 8/13/2019 4-6 Network Layer.pptx

    30/31

    Traceroute

    The traceroute program in UNIX or tracert

    in Windows can be used to trace the route

    of a packet from the source to the

    destination

    30

  • 8/13/2019 4-6 Network Layer.pptx

    31/31

    31