Day 04 Layer 4

Embed Size (px)

Citation preview

  • 7/27/2019 Day 04 Layer 4

    1/32

    1

  • 7/27/2019 Day 04 Layer 4

    2/32

    2

    Frame creation

    Destination

    MAC

    Source

    MAC

    Source

    IP

    Destination

    IP

    Burned

    on the NIC

    - ARP

    - Proxy ARP

    - Static

    - Dynamic

    (RARP ,BOOTP ,

    DHCP)

    DNS

  • 7/27/2019 Day 04 Layer 4

    3/32

    3

    Source MAC-

    Burned

    on the NIC

  • 7/27/2019 Day 04 Layer 4

    4/32

    4

    Source IP-

    1- by static configuration

  • 7/27/2019 Day 04 Layer 4

    5/32

  • 7/27/2019 Day 04 Layer 4

    6/32

    6

    Source IP-DHCP :-

    - Dynamic host configuration

    protocol

    - DHCP allows a host to obtain

    an IP address dynamically

    without the networkadministrator having to set

    up an individual profile for

    each device.

    - a range of IP addresses on a

    DHCP server is defined .

    - the entire network

    configuration of a computer

    can be obtained in one

    message from the server.

  • 7/27/2019 Day 04 Layer 4

    7/32

  • 7/27/2019 Day 04 Layer 4

    8/32

    8

    Destination MAC-

    - ARP :- each PC

    form an

    ARP tablecontaining

    the learned

    MACs

  • 7/27/2019 Day 04 Layer 4

    9/32

    9

    Destination MAC-

    A

    Router R

    Broadcast Message to all:

    If your IP address matches B

    then please tell me your

    Ethernet address

    B

    A

    B

    Yes, I know the destination

    network, let me give you my

    Ethernet address

    I take care, to forward

    IP packets to B

    Proxy ARP :-

  • 7/27/2019 Day 04 Layer 4

    10/32

    1010

    TCP/IP Transport Layer

  • 7/27/2019 Day 04 Layer 4

    11/32

  • 7/27/2019 Day 04 Layer 4

    12/32

    12

    Transport Layer Functions

    Transport Layer is responsible for the following segmentation of data

    error detection

    addressing of upper layer application using port numbers

    Multiplexing to allow multiple applications to be handled the same connection

    support of reliable and unreliable data delivery mechanisms

    for reliable data delivery: Establishment of connection (3-way handshake)

    Management of connection

    reliability (sequencing and acknowledgements)

    flow control (Buffering, congestion avoidance, Ready/not ready,

    windowing)

    error correction (windowing) Termination of connection (4-way handshake)

    Transport Layer protocols are

    TCP (Transmission Control Protocol)

    UDP (User Datagram Protocol)

  • 7/27/2019 Day 04 Layer 4

    13/32

    Session multiplexing

    Segmentation

    Flow control (when required)

    Connection-oriented(when required)

    Reliability (when required)

  • 7/27/2019 Day 04 Layer 4

    14/32

  • 7/27/2019 Day 04 Layer 4

    15/32

    Port Numbers

  • 7/27/2019 Day 04 Layer 4

    16/32

    16

    Connection establishment

    Way Handshake :-3

  • 7/27/2019 Day 04 Layer 4

    17/32

    17

    Multiplexing applications

    12.0.0.1

    12.0.0.2

    13.0.0.1

    web server

    1

    2

    3

    13.0.0.112.0.0.1 1200 801

    13.0.0.112.0.0.1 1500 80

    13.0.0.112.0.0.2 1200 80

    2

    3

    Source IP Destination IP Source port Destination port

  • 7/27/2019 Day 04 Layer 4

    18/32

    18

    Connection management

    - Sequencing & Acknowledgement :

  • 7/27/2019 Day 04 Layer 4

    19/32

    19

    Flow Control

    Flow control avoids the problem of a transmitting hostoverflowing the buffers in the receiving host.

  • 7/27/2019 Day 04 Layer 4

    20/32

    Flow ControlReady / Not Ready :-

  • 7/27/2019 Day 04 Layer 4

    21/32

    Flow Control

    - Windowing (PAR):

    2error in

    22 2

    3

    3

  • 7/27/2019 Day 04 Layer 4

    22/32

    22

    Flow Control- Windowing (PAR):

  • 7/27/2019 Day 04 Layer 4

    23/32

    23

    Connection termination

    way handshake)-4(

    Ack, FIN

    Ack

    Ack, FIN

    Ack

  • 7/27/2019 Day 04 Layer 4

    24/32

    24

    Transport layer protocols

    - TCP :

    - Transmission Control Protocol

    - Connection oriented

    - Reliable service

    - UDP :

    - User Datagram Protocol- Connectionless

    - Unreliable service

  • 7/27/2019 Day 04 Layer 4

    25/32

    25

    TCP Characteristics

    Operates at the transport layer of the TCP/IP

    stack

    Provides applications with access to the

    network layer Connection-oriented protocol

    Full-duplex mode operation

    Error checking Sequencing of data packets

    Acknowledgement of receipt

    Data recovery features

  • 7/27/2019 Day 04 Layer 4

    26/32

    TCP Header

  • 7/27/2019 Day 04 Layer 4

    27/32

    27

    UDP Characteristics

    Operates at transport layer of OSI and TCP/IP

    models

    Provides applications with access to the

    network layer without the overhead ofreliability mechanisms ( speedy )

    Connectionless protocol

    Limited error checking

    Best-effort delivery

    No data recovery features

  • 7/27/2019 Day 04 Layer 4

    28/32

    UDP Header

  • 7/27/2019 Day 04 Layer 4

    29/32

    29

    29

    Application Layer

  • 7/27/2019 Day 04 Layer 4

    30/32

    File transfer FTP

    TFTP

    Network File System

    E-mail

    Simple Mail Transfer Protocol

    Remote login

    Telnet

    rlogin

    Network management

    Simple Network ManagementProtocol

    Name management

    Domain Name System

    TCP/IP Application Layer Overview

  • 7/27/2019 Day 04 Layer 4

    31/32

    Port Numbers

  • 7/27/2019 Day 04 Layer 4

    32/32

    TCP/IP Protocol Stack