( BASICS).pdf

Embed Size (px)

Citation preview

  • 8/14/2019 ( BASICS).pdf

    1/162

    2009, Velocis Systems

    Networking BasicsNetworking Basics

  • 8/14/2019 ( BASICS).pdf

    2/162

    2009, Velocis Systems

    How a LAN Is BuiltHow a LAN Is Built

  • 8/14/2019 ( BASICS).pdf

    3/162

    1-3Networking Fundamentals 2009, Velocis Systems

    Local-Area NetworkLANLocal-Area NetworkLAN

    What is a LAN?

    A collection of computers, printers, and otherdevices that can communicate with eachother in a small area.

    What are the components?Computers, operating system (OS),network interface card (NIC), and hubs

    How is a LAN controlled?ProtocolsFormal descriptions of sets of

    rules and conventions that govern how

    devices on a network exchange information

  • 8/14/2019 ( BASICS).pdf

    4/1621-4Networking Fundamentals 2009, Velocis Systems

    Local-Area NetworksLocal-Area Networks

    LANs are designed to:Operate within a limited geographic area

    Allow multi-access to high-bandwidth media

    Control the network privately under localadministration

    Provide full-time connectivity to local services

    Connect physically adjacent devices

  • 8/14/2019 ( BASICS).pdf

    5/1621-5Networking Fundamentals 2009, Velocis Systems

    Network Operating System (OS)Network Operating System (OS)

    Software that allowscommunicating andsharing of data and

    network resources

    Examples:

    AppleTalk

    NetWare

    Win NT

    PC or Workstation

    Loaded with NOS

  • 8/14/2019 ( BASICS).pdf

    6/1621-6Networking Fundamentals 2009, Velocis Systems

    Network Interface CardNetwork Interface Card

    Connector Port

    PC or Workstation

    Loaded with NOS

    Network InterfaceCard (NIC)

    Amplifies electronic signals

    Packages data fortransmission

    Physically connectscomputer to

    transmissionmedia (cable)

  • 8/14/2019 ( BASICS).pdf

    7/1621-7Networking Fundamentals 2009, Velocis Systems

    1990sGlobal Internetworking1990sGlobal Internetworking

    19921 major backbone, 3,000 networks, 200K computers

    1995Multiple backbones, hundreds of regional nets, tens of thousands

    of LANs, millions of hosts, tens of millions of usersDoubling every year!

  • 8/14/2019 ( BASICS).pdf

    8/1621-8Networking Fundamentals 2009, Velocis Systems

    The OSI ModelThe OSI Model

    OSI Layer is meant for Networking

    manufacturers and developers toprovide them a standard based onwhich they can make their products.

    All OSI Layers are independent fromeach other, which makes introducingchanges easier as no other layers areeffected.

    Ease of Troubleshooting.

  • 8/14/2019 ( BASICS).pdf

    9/162 2009, Velocis Systems

    The Layered ModelThe Layered Model

  • 8/14/2019 ( BASICS).pdf

    10/162

  • 8/14/2019 ( BASICS).pdf

    11/162

    1-11Networking Fundamentals 2009, Velocis Systems

    Devices Function at LayersDevices Function at Layers

    7 Application

    6 Presentation

    5 Session

    4 Transport

    3 Network

    2 Data Link

    1 Physical

    NIC Card

    Hub

  • 8/14/2019 ( BASICS).pdf

    12/162

    1-12Networking Fundamentals 2009, Velocis Systems

    Host LayersHost Layers

    7 Application

    6 Presentation

    5 Session

    4 Transport

    Network

    3 Data Link

    1

    Host layers:Host layers: Provideaccurate data delivery

    between computers

    Physical

  • 8/14/2019 ( BASICS).pdf

    13/162

    1-13Networking Fundamentals 2009, Velocis Systems

    Media LayersMedia Layers

    7 Application

    6 Presentation

    5 Session

    4Transport

    3 Network

    2 Data Link

    1 Physical

    Host layers:Host layers: Provideaccurate data delivery

    between computers

    Media layers:Media layers:Control

    physical delivery of messages

    over the network

  • 8/14/2019 ( BASICS).pdf

    14/162

    1-14Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Provides network services to

    application processes (such aselectronic mail, file transfer, and

    terminal emulation)

    Application7

  • 8/14/2019 ( BASICS).pdf

    15/162

    1-15Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Application

    Presentation

    7 Network services to applicationsNetwork services to applications

    Data representation6

    Ensures data is readable by

    receiving system

    Format of data Data structures

    Negotiates data transfer

    syntax for application layer

  • 8/14/2019 ( BASICS).pdf

    16/162

    1-16Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Application

    Presentation

    Session

    7 Network services to applicationsNetwork services to applications

    6 Data representationData representation

    5 Inter-host communication

    Establishes, manages, andterminates sessions between

    applications

  • 8/14/2019 ( BASICS).pdf

    17/162

    1-17Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Application

    Presentation

    Session

    Transport

    7 Network services to applicationsNetwork services to applications

    6 Data representationData representation

    5 InterInter--host communicationhost communication

    4 End-to-end connection reliability Concerned with data transport

    issues between hosts

    Data transport reliability Establishes, maintains, and

    terminates virtual circuits

    Fault detection and recovery

    Information flow control

  • 8/14/2019 ( BASICS).pdf

    18/162

    1-18Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Application

    Presentation

    Session

    Transport

    Network

    7 Network services to applicationsNetwork services to applications

    6 Data representationData representation

    5 InterInter--host communicationhost communication

    4 EndEnd--toto--end connection reliabilityend connection reliability

    3 Addresses and best path

    Provides connectivity and pathselection between two end

    systems

    Domain of routing

  • 8/14/2019 ( BASICS).pdf

    19/162

    1-19Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    7 Application

    6 Presentation

    5 Session

    Transport4

    Network3

    Data Link2

    InterInter--host communicationhost communication

    Network services to applicationsNetwork services to applications

    Data representationData representation

    EndEnd--toto--end connection reliabil ityend connection reliability

    Addresses and best pathAddresses and best path

    Access to media Provides reliable transfer of data

    across media

    Physical addressing, network

    topology, error noti fication, flow

    control

  • 8/14/2019 ( BASICS).pdf

    20/162

    1-20Networking Fundamentals 2009, Velocis Systems

    Layer FunctionsLayer Functions

    Application

    Presentation

    Session

    Transport

    Network

    Data Link

    Physical

    7 Network services to applicationsNetwork services to applications

    6 Data representationData representation

    5 InterInter--host communicationhost communication

    4 EndEnd--toto--end connection reliabilityend connection reliability

    3 Addresses and best pathAddresses and best path

    2 Access to mediaAccess to media

    1 Binary transmission

    Wires, connectors, voltages,

    data rates

  • 8/14/2019 ( BASICS).pdf

    21/162

    1-21Networking Fundamentals 2009, Velocis Systems

    Peer-to-Peer CommunicationsPeer-to-Peer Communications

    7 Application

    6 Presentation

    5 Session

    4 Transport

    3 Network

    2 Data Link

    1 Physical

    Host A

    Application

    Presentation

    Session

    Transport

    Network

    Data Link

    PhysicalBits

    Frames

    Packets

    Segments

    Host B

  • 8/14/2019 ( BASICS).pdf

    22/162

    1-22Networking Fundamentals 2009, Velocis Systems

    Application LayerApplication Layer

    This is where users communicate to the

    computer. This is where communication between

    two users are established.

    This is a point where user or applicationinterfaces with the protocols to gain

    access to the network. Examples are WWW, Telnet, FTP, TFTP,

    E-mail, SNMP, DNS

    Presentation LayerPresentation Layer

  • 8/14/2019 ( BASICS).pdf

    23/162

    1-23Networking Fundamentals 2009, Velocis Systems

    Presentation LayerPresentation Layer

    Tasks like Translation, Encryption,decryption, compression, decompression areassociated with this layer.

    It receives the data in native format &converts in standard format or receives datain standard format and converts in nativeformat, ie. EBCDIC to ASCII.

    It is mainly responsible for how the data is to

    be presented to the Application Layer.

    Examples are PICT, TIFF, JPEG, MIDI, MPEG,GIFF etc.

  • 8/14/2019 ( BASICS).pdf

    24/162

    1-24Networking Fundamentals 2009, Velocis Systems

    Presentation LayerPresentation Layer

    ASCIIEBCDIC

    Encrypted

    Text

    Data

    login:

    PICTTIFF

    JPEGGIF

    Graphics

    Visual images

    Sound

    VideoMPEG

    QuickTime

    MIDI

    Provides code formatting and

    conversion for applications

    PROTOCOLS OF PRESENTATIONPROTOCOLS OF PRESENTATION

  • 8/14/2019 ( BASICS).pdf

    25/162

    1-25Networking Fundamentals 2009, Velocis Systems

    PROTOCOLS OF PRESENTATIONLAYER

    PROTOCOLS OF PRESENTATIONLAYER

    PICT: This is picture format used by Macintosh or power PC

    program for transferring quick draw graphics. TIFF: Tagged image file format is a standard graphic format for

    high resolution, bitmapped images.

    JPEG: the joint photographic express group brings this photo

    standard to us. MIDI: the musical instrument digital interface is used for

    digitized music. Other standard guide movies and sound:

    MPEG: the moving picture experts groups standard for the

    compression and coding of motion video for the CDsincreasingly popular. It provides digital storage and rates up to1.5 Mbps.

    Quick time: this for use with Macintosh or PowerPC programs; it

    manages audio and video application.

    S i LS i L

  • 8/14/2019 ( BASICS).pdf

    26/162

    1-26Networking Fundamentals 2009, Velocis Systems

    Session LayerSession Layer

    Session Establishment

    Establishes a session between two devices

    before actual transmission of data.Dialog Control

    Simplex

    Half Duplex

    Full Duplex

    S i L

  • 8/14/2019 ( BASICS).pdf

    27/162

    1-27Networking Fundamentals 2009, Velocis Systems

    Session Layer

    Simplex

    Data travels only one way.

    Radio transmission is the best example of this.

    Half DuplexBoth way but one at a time. By default all LAN Cards

    (NICs) work on Half Duplex.

    Full Duplex

    Both way at the same time.

    S

  • 8/14/2019 ( BASICS).pdf

    28/162

    1-28Networking Fundamentals 2009, Velocis Systems

    Session LayerSession Layer

    Network File System (NFS)

    Structured Query Language (SQL)

    Remote-Procedure Call (RPC)

    X Window System

    AppleTalk Session Protocol (ASP)

    DEC Session Control Protocol (SCP)

    Service Request

    Service Reply

    Coordinates applications asthey interact on different hosts

    S SS O O OCO SSESSION LAYER PROTOCOLS

  • 8/14/2019 ( BASICS).pdf

    29/162

    1-29Networking Fundamentals 2009, Velocis Systems

    SESSION LAYER PROTOCOLSSESSION LAYER PROTOCOLS

    Network File System (NFS): Was developed by SunMicrosystems and used with TCP/IP and Unix workstations toallow transparent access to remote resources.

    Structured Query Language (SQL): Was developed by IBM toprovide users with a simple way to define their informationrequirements on both local and remote systems.

    Remote Procedure Call (RPC): A board client/server redirectiontool used for disparate service environments. Its procedure arecreated on client and performed on servers.

    X Windows: Is widely used by intelligent terminals forcommunicating with remote Unix computers, allowing them as

    though they were locally attached monitors. Apple Talk special Protocol (ASP): Is another client /server

    mechanism, which both establishes and maintains session talksbetween apples talk client and sever machines.

    Digital Network Architecture Session control protocol (DNASCP): Is DEC net session layer protocol

    T t LT t L

  • 8/14/2019 ( BASICS).pdf

    30/162

    1-30Networking Fundamentals 2009, Velocis Systems

    Transport LayerTransport Layer

    Segments upper-layer applications

    Establishes an end-to-end connection Sends segments from one end host to another

    Optionally, ensures data reliability

    Transport LayerTransport Layer

  • 8/14/2019 ( BASICS).pdf

    31/162

    1-31Networking Fundamentals 2009, Velocis Systems

    Transport LayerTransport Layer

    Transport Layer never actually transports the databut only prepares for transporting.

    Uses Socket to define the services running on aparticular node, the data is associated with.

    Responsible for the following :

    Segmentation

    End-to-end Communication

    Flow ControlError Control

    Multiplexing of Applications

    TCP, UDP and SPX work at this layer

    SocketSocket

  • 8/14/2019 ( BASICS).pdf

    32/162

    1-32Networking Fundamentals 2009, Velocis Systems

    SocketSocket

    Socket is a software component and points to a particular servicerunning on a particular node.

    Structure of a socket

    IP Address + Port Address

    Each service has a unique Port address

    Max. Port Addresses can be 65,536

    Port address 1-1023 is reserved for specific Services l ike

    WWW - 80FTP - 21

    SMTP - 25

    Port Addresses are reserved for standardization purpose.

    P t N bP t N b

  • 8/14/2019 ( BASICS).pdf

    33/162

    1-33Networking Fundamentals 2009, Velocis Systems

    Port NumbersPort Numbers

    TCP

    Port

    Numbers

    FTP

    Transport

    Layer

    TEL

    NET

    DNS

    SNM

    P

    TFT

    P

    SMT

    P

    UDP

    Application

    Layer

    2121 2323 2525 5353 6969 161161

    RIP

    520520

    SegmentationSegmentation

  • 8/14/2019 ( BASICS).pdf

    34/162

    1-34Networking Fundamentals 2009, Velocis Systems

    SegmentationSegmentation

    This is a mechanism wherein the data is divided into

    multiple segments and sent over the network. By doing this different segments can use different l inks

    for travelling across the network.

    If one segment is lost the only segment is required to bere-sent and not the entire data.

    Once all segments reach to the destination the receivedsegments have to be sequenced back, which is alsodone at this layer.

    Transport LayerTransport Layer

  • 8/14/2019 ( BASICS).pdf

    35/162

    1-35Networking Fundamentals 2009, Velocis Systems

    Transport LayerSends Segments with Flow Control

    Transport LayerSends Segments with Flow Control

    Transmit

    Buffer FullNot Ready

    Stop Process

    Segments

    Buffer OKReadyGo

    Resume Transmission

    ReceiverSender

    Flow ControlFlow Control

  • 8/14/2019 ( BASICS).pdf

    36/162

    1-36Networking Fundamentals 2009, Velocis Systems

    Used while connection oriented communication

    It helps to have a control on over flow of Buffer.

    Advantages are:

    The segments delivered are acknowledged if received

    Any segment not acknowledged are retransmitted

    segments are sequenced back upon their arrival

    Congestion, Overloading and data loss are avoided

    To achieve all this it uses the technique of Sliding

    window or Windowing

    Transport LayerTransport Layer

  • 8/14/2019 ( BASICS).pdf

    37/162

    1-37Networking Fundamentals 2009, Velocis Systems

    p yEstablishes Connection

    p yEstablishes Connection

    Synchronize

    Synchronize

    Acknowledge

    Negotiate Connection

    ReceiverSender

    Data Transfer

    Connection Established

    (Send Segments)

    End to End CommunicationEnd to End Communication

  • 8/14/2019 ( BASICS).pdf

    38/162

    1-38Networking Fundamentals 2009, Velocis Systems

    End-to-End CommunicationEnd-to-End Communication

    Connection Less Transmission

    UDP is used

    Not reliable

    Faster

    Connection Oriented Transmission

    TCP or SPX is used

    Reliable

    Slower

    Connection Oriented ProtocolConnection Oriented Protocol

  • 8/14/2019 ( BASICS).pdf

    39/162

    1-39Networking Fundamentals 2009, Velocis Systems

    Connection Oriented ProtocolConnection Oriented Protocol

    These protocols relies on Acknowledgement. Positive acknowledgement means data has

    been received.

    Negative acknowledgement means data islost no further data is sent till positive

    acknowledgement is received. It is slow but Reliable.

    Eg. TCP and SPX

    Transport LayerTransport Layer

  • 8/14/2019 ( BASICS).pdf

    40/162

    1-40Networking Fundamentals 2009, Velocis Systems

    p yReliability with Windowing

    p yReliability with Windowing

    Window Size = 1

    Sender

    Send 1 Receive 1

    Receiver

    Ack 2

    Send 2 Receive 2

    Ack 3

    Sender

    Send 1

    Send 2Receive 1Receive 2

    Window Size = 3

    Send 3 Receive 3Ack 4

    Send 4

    Receiver

    Transport LayerTransport Layer

  • 8/14/2019 ( BASICS).pdf

    41/162

    1-41Networking Fundamentals 2009, Velocis Systems

    p yAn Acknowledgement Technique

    yAn Acknowledgement Technique

    Sender Receiver

    Send 2Send 1Send 3

    Ack 4

    Send 5Send 4Send 6

    Ack 5

    Send 5 Ack 7

    1 2 3 4 5 6 7 1 2 3 4 5 6 7

    Connection Less ProtocolConnection Less Protocol

  • 8/14/2019 ( BASICS).pdf

    42/162

    1-42Networking Fundamentals 2009, Velocis Systems

    Connection Less ProtocolConnection Less Protocol

    They do not provide acknowledgementneither sequence numbers.

    It is faster but not reliable

    Eg. UDP

    Network LayerNetwork Layer

  • 8/14/2019 ( BASICS).pdf

    43/162

    1-43Networking Fundamentals 2009, Velocis Systems

    yy

    It is responsible for communicating Networks

    It recognizes Networks with the help of Netwok Addresses

    Network Address is a logical address like IP Address or IPX

    Address

    It is common for a group of computers

    It works only with Network IDs and has got nothing to do with host

    Ids.

    Path determination or Routing is performed at this layer.

    Router works at this layer.

    Network Layer: Path DeterminationNetwork Layer: Path Determination

  • 8/14/2019 ( BASICS).pdf

    44/162

    1-44Networking Fundamentals 2009, Velocis Systems

    Network Layer: Path DeterminationNetwork Layer: Path Determination

    Which Path?Which Path?

    Layer 3 functions to find the best

    path through the internetwork

    Network Layer: Communicate PathNetwork Layer: Communicate Path

  • 8/14/2019 ( BASICS).pdf

    45/162

    1-45Networking Fundamentals 2009, Velocis Systems

    Network Layer: Communicate PathNetwork Layer: Communicate Path

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10 11

    Addresses represent the path of mediaconnections

    Protocol Addressing VariationsProtocol Addressing Variations

  • 8/14/2019 ( BASICS).pdf

    46/162

    1-46Networking Fundamentals 2009, Velocis Systems

    Protocol Addressing VariationsProtocol Addressing Variations

    Network Node

    1 1

    General

    Example

    Network Host

    10. 8.2.48

    TCP/IP

    Example(Mask 255.0.0.0)

    Network Node

    1aceb0b. 0000.0c00.6e25

    Novell IPXExample

    Network LayerP t l O ti

    Network LayerP t l O ti

  • 8/14/2019 ( BASICS).pdf

    47/162

    1-47Networking Fundamentals 2009, Velocis Systems

    Protocol OperationsProtocol Operations

    X Y

    AA

    CC

    Each router provides its services to

    support upper layer functions

    Routed Versus Routing ProtocolRouted

    Versus Routing Protocol

  • 8/14/2019 ( BASICS).pdf

    48/162

    1-48Networking Fundamentals 2009, Velocis Systems

    Routed Versus Routing ProtocolRouted Versus Routing Protocol

    Routed protocol

    used between

    routers to directuser traffic

    Examples: IP, IPX,

    AppleTalk

    Routing protocolused only between

    routers to maintain

    routing tables

    Examples: RIP, IGRP, OSPF

    Static Versus Dynamic RoutesStatic Versus Dynamic Routes

  • 8/14/2019 ( BASICS).pdf

    49/162

    1-49Networking Fundamentals 2009, Velocis Systems

    Static Versus Dynamic RoutesStatic Versus Dynamic Routes

    Uses a protocol route that a network

    administrator enters into the router

    Static Route

    Uses a route that a network protocol

    adjusts automatically for topology ortraffic changes

    Dynamic Route

    Static Route ExampleStatic Route Example

  • 8/14/2019 ( BASICS).pdf

    50/162

    1-50Networking Fundamentals 2009, Velocis Systems

    Static Route Examplep

    Point-to-point orcircuit-switched

    connection

    Stub network

    Only a single network

    connection with no need

    for routing updates

    AA

    BB

    Fixed route to address reflects

    administrators knowledge

    Adapting to Topology ChangeAdapting to Topology Change

  • 8/14/2019 ( BASICS).pdf

    51/162

    1-51Networking Fundamentals 2009, Velocis Systems

    p g p gy gp g p gy g

    AA BB

    CCDD

    Can an alternate route substitute

    for a failed route?

    Adapting to Topology ChangeAdapting to Topology Change

  • 8/14/2019 ( BASICS).pdf

    52/162

    1-52Networking Fundamentals 2009, Velocis Systems

    p g p gy gp g p gy g

    AA BB

    CCDDXX

    Adapting to Topology ChangeAdapting to Topology Change

  • 8/14/2019 ( BASICS).pdf

    53/162

    1-53Networking Fundamentals 2009, Velocis Systems

    p g p gy gp g p gy g

    AA BB

    CCDDXX

    Can an alternate route substitutefor a failed route?

    YesYesWith dynamic routing enabled

    Data Link LayerData Link Layer

  • 8/14/2019 ( BASICS).pdf

    54/162

    1-54Networking Fundamentals 2009, Velocis Systems

    yy

    It uniquely identifies each device in the Network.

    It translates data from Network Layer into bits for thePhysical layer to transmit.

    It formats the messages into Data Frames

    Adds a customized header containing Source andDestination hardware address

    This layer works with Frames

    This layer is logically divided in two sub-layers:

    LLC (Logical Link Control)

    MAC (Media Access Control)

    DATA LINK LAYERDATA LINK LAYER

  • 8/14/2019 ( BASICS).pdf

    55/162

    1-55Networking Fundamentals 2009, Velocis Systems

    FUNCTIONS OF ETHERNET

    1) Arbitration: CSMA/CD algos

    2) Addressing: 6 byte-long MAC address

    3) Error detection: FCS in Ethernet trailer

    4) Identify the type of packet inside the frame

  • 8/14/2019 ( BASICS).pdf

    56/162

  • 8/14/2019 ( BASICS).pdf

    57/162

    2009, Velocis Systems

    DOD MODELDOD MODEL

    The DoD ModelThe DoD Model

  • 8/14/2019 ( BASICS).pdf

    58/162

    1-58Networking Fundamentals 2009, Velocis Systems

    The Process / Application Layer

    The Host-to-Host Layer

    The Internet Layer

    The Network Layer

    The DoD & OSIThe DoD & OSI

  • 8/14/2019 ( BASICS).pdf

    59/162

    1-59Networking Fundamentals 2009, Velocis Systems

    ApplicationApplication

    Presentation

    Session

    Transport

    Network

    Data Link

    Physical

    Host-to-Host

    Internet

    Network

    Access

    DoDModel OSIModel

    Process/Application LayerProcess/Application Layer

  • 8/14/2019 ( BASICS).pdf

    60/162

    1-60Networking Fundamentals 2009, Velocis Systems

    The Process / Application layer definesprotocols for node-to-node application

    communication and also controls user-interface specification.

    A vast array of protocols combine at thislayer of DoDs Model to integrate theactivities and duties of upper layer of OSI.

    Examples for this layer are :

    Telnet, FTP, TFTP, NFS, SMTP, SNMP,

    DNS DHCP, BootP etc.

    Host-to-Host LayerHost-to-Host Layer

  • 8/14/2019 ( BASICS).pdf

    61/162

    1-61Networking Fundamentals 2009, Velocis Systems

    The Host-to-Host layer parallels thefunctions of the OSIs Transport layer

    It performs the following:

    Defining protocols for setting up thelevel of transmission service forApplications

    It tackles issues like creating reliable

    ene-to-end communication.It ensures the error free delivery of data

    It handles packet sequencing andmaintains data integrity.

    Internet LayerInternet Layer

  • 8/14/2019 ( BASICS).pdf

    62/162

    1-62Networking Fundamentals 2009, Velocis Systems

    Internet Layer corresponds to the OSIsNetwork Layer.

    It performs the following:

    Designating the protocols relating to thelogical transmission of packets over theentire network.

    It takes care of the addressing of hostsby giving them an IP address.

    It handles routing of packets among

    multiple networks.

    Network Access LayerNetwork Access Layer

  • 8/14/2019 ( BASICS).pdf

    63/162

    1-63Networking Fundamentals 2009, Velocis Systems

    This layer is equivalent of the Data Link andPhysical Layer of OSI model.

    It performs the following

    It monitors the data exchange between thehost and the network.

    Network Access Layer overseas hardwareaddressing and defines protocols for thephysical transmission of the Data.

    Lets have a look on how TCP/IP Protocol suit relatesto the DoD model layers.

    TCP/IP Protocol Suit at DoDTCP/IP Protocol Suit at DoD

  • 8/14/2019 ( BASICS).pdf

    64/162

    1-64Networking Fundamentals 2009, Velocis Systems

    DoDModel

    Process /Application

    Host-to-Host

    Internet

    Network

    Access

    TCP/IP Protocol Suit

    Telnet FTP LPD SNMP

    X WindowNFSSMTPTFTP

    TCP UDP

    ICMP

    Ethernet

    ARP RARP

    IP

    Fast

    Ethernet

    Token

    Ring FDDI

    BootP

  • 8/14/2019 ( BASICS).pdf

    65/162

    2009, Velocis Systems

    EthernetEthernet

    IntroductionIntroduction

  • 8/14/2019 ( BASICS).pdf

    66/162

    1-66Networking Fundamentals 2009, Velocis Systems

    Ethernet is a methodology for accessing a media

    It allows all hosts on a network to share the same

    bandwidth of a link.

    It is popular because :

    It is easy to implement & TroubleshootIt is easy to add new technologies like Fast Ethernet

    and Gigabit Ethernet to existing infrastructure.

    Ethernet uses Data Link Layer and Physical LayerSpecification

    It uses something called CSMA/CD

    Ethernet OperationEthernet Operation

  • 8/14/2019 ( BASICS).pdf

    67/162

    1-67Networking Fundamentals 2009, Velocis Systems

    AA BB CC DD

    Ethernet OperationEthernet Operation

  • 8/14/2019 ( BASICS).pdf

    68/162

    1-68Networking Fundamentals 2009, Velocis Systems

    AA BB CC DD

    D

    Data Link

    NetworkTransport

    Session

    Presentation

    Application

    Physical

    Ethernet OperationEthernet Operation

  • 8/14/2019 ( BASICS).pdf

    69/162

    1-69Networking Fundamentals 2009, Velocis Systems

    AA BB CC DD

    D

    Data Link

    NetworkTransport

    Session

    Presentation

    Application

    Physical

    B and C

    Data Link

    NetworkTransport

    Session

    Presentation

    Application

    Physical

    Ethernet LANs:How do they work?

  • 8/14/2019 ( BASICS).pdf

    70/162

    1-70Networking Fundamentals 2009, Velocis Systems

    Multiple workstations

    are connected to a

    segment Each station has to take

    turns sending traffic

    All stations listen to all

    traffic on their segment

    Stations can only senddata (Ethernet Frames)

    when no one else is

    sending

    Ethernet LANs:MAC Addresses

  • 8/14/2019 ( BASICS).pdf

    71/162

    1-71Networking Fundamentals 2009, Velocis Systems

    Every workstation has

    a Network Interface

    Card (NIC) Every NIC has a unique

    MAC address

    Stations use MAC

    addresses to send

    Ethernet Frames to aspecific station

    0000.0c12.3456

    0000.0c12.11110000.1018.321a

    Ethernet LANs:Unicast Frames

  • 8/14/2019 ( BASICS).pdf

    72/162

    1-72Networking Fundamentals 2009, Velocis Systems

    Ethernet frames contain

    the MAC address of the

    station that the framewas sent to

    These are called

    unicast frames All stations receive the

    Ethernet frame, but

    ignore the frames that

    are not addressed to

    their MAC address

    0000.0c12.3456

    0000.0c12.11110000.1018.321a

    Frame

    To: 0000.0c12.3456

    Ethernet LANs:Broadcast Frames

  • 8/14/2019 ( BASICS).pdf

    73/162

    1-73Networking Fundamentals 2009, Velocis Systems

    Some Ethernet frames

    are sent to all stations These are called

    broadcast frames

    All stations process

    this frame

    0000.0c12.3456

    0000.0c12.11110000.1018.321a

    Frame

    To: FFFF.FFFF.FFFF

    Ethernet LANs:Broadcast Frames

  • 8/14/2019 ( BASICS).pdf

    74/162

    1-74Networking Fundamentals 2009, Velocis Systems

    Some Ethernet frames

    are sent to all stations These are called

    broadcast frames

    All stations process

    this frame

    0000.0c12.3456

    0000.0c12.11110000.1018.321a

    Frame

    To: FFFF.FFFF.FFFF

    Ethernet Collisions

  • 8/14/2019 ( BASICS).pdf

    75/162

    1-75Networking Fundamentals 2009, Velocis Systems

    Sometimes stations

    transmitsimultaneously

    Two frames on the

    same segment coll ide

    Collisions require

    each station to waitand resend

    Collision!

    PacketFrame PacketFrame

    Packe

    t

    Packe

    tFrameFrame

    Ethernet ReliabilityEthernet Reliability

  • 8/14/2019 ( BASICS).pdf

    76/162

    1-76Networking Fundamentals 2009, Velocis Systems

    B C DAFigure 1

    B C DDAAFigure 2

    Collision

    Ethernet ReliabilityEthernet Reliability

  • 8/14/2019 ( BASICS).pdf

    77/162

    1-77Networking Fundamentals 2009, Velocis Systems

    Collision

    CC

    B C DDAA

    BA D

    JAMJAMJAMJAMJAM JAM

    Ethernet ReliabilityEthernet Reliability

  • 8/14/2019 ( BASICS).pdf

    78/162

    1-78Networking Fundamentals 2009, Velocis Systems

    B C DA

    Collision

    B C DA

    JAMJAMJAMJAMJAM JAM

    Carrier sense multiple access with

    collision detection (CSMA/CD)

    CSMA/CDCSMA/CD

  • 8/14/2019 ( BASICS).pdf

    79/162

    1-79Networking Fundamentals 2009, Velocis Systems

    CSMA/CD stands for Carrier Sense Multiple Access /Coll ision Detect.

    It is used by all NICs in Ethernet Networking

    In this method all NICs first sense whether the cableis free or not.

    If it is free the request is sent otherwise it waits.

    Half Duplex EthernetHalf Duplex Ethernet

  • 8/14/2019 ( BASICS).pdf

    80/162

    1-80Networking Fundamentals 2009, Velocis Systems

    It is defined in 802.3 Ethernet

    specifications It uses only one wire pair for signals

    running in both direction.

    CSMA/CD is used to prevent collision.

    Half Duplex typically 10base T is 50-60

    % efficient. (In CISCO views)

    In a large 10 base T network you only

    get 3 to 4 MBPS at most.

    Full DuplexFull Duplex

  • 8/14/2019 ( BASICS).pdf

    81/162

    1-81Networking Fundamentals 2009, Velocis Systems

    Full Duplex Ethernet uses two pairs ofwires.

    It uses Point-to-Point connection

    There is no collision in Full Duplex Full Duplex is suppose to offer 100%

    efficiency in both direction

    Means you can get 20 MBPS in 10 MBPSor 200 MBPS in Fast Ethernet running

    Full Duplex.

    Ethernet AddressingEthernet Addressing

  • 8/14/2019 ( BASICS).pdf

    82/162

    1-82Networking Fundamentals 2009, Velocis Systems

    Ethernet Addressing uses MAC Address

    MAC addresses are burned on every NIC

    It is a 48-bit address

    It is written in the same format even if different

    LAN Technologies are used.

    Organizationally

    Unique Identifier (OUI)

    (Assigned by IEEE)

    Vender Assigned

    24 bits 24 bits

    Ethernet Addressing using MAC Addresses

    Ethernet and IEEE 802.3Ethernet and IEEE 802.3

  • 8/14/2019 ( BASICS).pdf

    83/162

    1-83Networking Fundamentals 2009, Velocis Systems

    Benefits and background Ethernet is the most popular physical layer LAN technology because

    it strikes a good balance between speed, cost, and ease ofinstallation

    Supports virtually all network protocols Xerox initiated, then joined by DEC & Intel in 1980

    Revisions of Ethernet specif ication

    Fast Ethernet (IEEE 802.3u) raises speed from 10 Mbps to 100 Mbps Gigabit Ethernet is an extension of IEEE 802.3 which increases

    speeds to 1000 Mbps, or 1 Gbps

    Ethernet and IEEE 802.3Ethernet and IEEE 802.3

  • 8/14/2019 ( BASICS).pdf

    84/162

    1-84Networking Fundamentals 2009, Velocis Systems

    Several framing variations exist for thiscommon LAN technology

    Ethernet FramesEthernet Frames

  • 8/14/2019 ( BASICS).pdf

    85/162

    1-85Networking Fundamentals 2009, Velocis Systems

    Frames are used at the Data Link Layer toencapsulate packets coming down fortransmission on a type of Media Access

    Types of Media Access

    Contention (Ethernet)

    Token Passing (Token Ring or FDDI)We will be covering only Contention, as rest all are beyond the scope of our course.

    LAN FUNDAMENTALSLAN FUNDAMENTALS

  • 8/14/2019 ( BASICS).pdf

    86/162

    1-86Networking Fundamentals 2009, Velocis Systems

    Ethernet

    It is a LAN protocol. Given by Xerox in early 1970s. Threecompanies modified it as E (II)

    DEC, Intel & Xerox (DIX). IEEE made it standard as 802.3

    Header of Ethernet

    8bytes 6byts 6byts 2 byts variable 4byts

    DAFlag SA TYPE DATA Flag

    MAC SUB-LAYERMAC SUB-LAYER

  • 8/14/2019 ( BASICS).pdf

    87/162

    1-87Networking Fundamentals 2009, Velocis Systems

    MAC Layer - 802.3

    DataSource add FCSLengthDest add

    # Bytes 8 6 2 Variable6 4

    Preamble

    Ethernet IIuses Type

    here and

    does not use

    802.2.

    0000.0C xx.xxxx

    IEEE assigned Vendorassigned

    MAC Address

    PreamblePreamble

  • 8/14/2019 ( BASICS).pdf

    88/162

    1-88Networking Fundamentals 2009, Velocis Systems

    It allows the receiving devices to lockthe incoming bit stream.

    The Peamble is used to indicate tothe receiving station that the data

    portion of the message will follow.

    Destination Address (DA)Destination Address (DA)

  • 8/14/2019 ( BASICS).pdf

    89/162

    1-89Networking Fundamentals 2009, Velocis Systems

    DA is used by receiving stations to

    determine if an incoming packet isaddressed to a particular node.

    Uses LSB (Least Significant Bit) first

    Destination can be individual, multicastor broadcast

    Broadcast will be all 1s or Fs and will besent to all.

    Multicast wil l be sent to the specific subnet

    Source Address (SA)Source Address (SA)

  • 8/14/2019 ( BASICS).pdf

    90/162

    1-90Networking Fundamentals 2009, Velocis Systems

    SA is a 48 bit MAC Address suppliedby the transmitting device.

    Broadcast and Multicast addressformats are illegal within the SAfields.

    It uses LSB (Least significant bit first)

    Length or Type FieldLength or Type Field

  • 8/14/2019 ( BASICS).pdf

    91/162

    1-91Networking Fundamentals 2009, Velocis Systems

    802.3 uses length field where as Ethernetframe uses type field to identify thenetwork layer protocol.

    802.2 can identify upper-layer protocol andmust be used with 802.3 frame.

    DataData

  • 8/14/2019 ( BASICS).pdf

    92/162

    1-92Networking Fundamentals 2009, Velocis Systems

    This is the packet sent down to theData Link Layer from the Networklayer.

    The size can vary from 46-1500bytes.

    Frame Check Sequence (FCS)Frame Check Sequence (FCS)

  • 8/14/2019 ( BASICS).pdf

    93/162

    1-93Networking Fundamentals 2009, Velocis Systems

    FCS is a field at the end of the framethat is used to store the cyclicredundancy check.

    Data Link Layer Functions (cont.)Data Link Layer Functions (cont.)

  • 8/14/2019 ( BASICS).pdf

    94/162

    1-94Networking Fundamentals 2009, Velocis Systems

    DataDest

    SAP

    Source

    SAP

    DataSource add FCSLengthDest add

    Variable11 802.2 (SAP)

    Ctrl

    1 or 2

    3 2

    Preamble

    DataDest SAPAA

    Source SAPAA

    Variable11

    802.2 (SNAP)

    Ctrl03

    1 or 2

    OR

    OUIID Type

    # Bytes

    # Bytes

    MAC Layer - 802.3

    802.2 Frame802.2 Frame

  • 8/14/2019 ( BASICS).pdf

    95/162

    1-95Networking Fundamentals 2009, Velocis Systems

    802.2 Frame has two new fields

    DSAP (Destination Service Access Pointer)

    SSAP (Source Service Access Pointer)

    802.2 frame type is nothing but 802.3frame with LLC information

    Because of the LLC information we

    know what upper layer protocol is.

    SNAP FrameSNAP Frame

  • 8/14/2019 ( BASICS).pdf

    96/162

    1-96Networking Fundamentals 2009, Velocis Systems

    The SNAP Frame has its own protocol field toidentify the upper layer protocol.

    To Identify SNAP Frame:

    DSAP and SSAP fields are always AA to indicatethat this is a SNAP header coming up.

    it is an LLC data unit (sometimes called aLogical Protocol Data Unit (LPDU)) of Type 1(indicated by 03)

    The SNAP header then indicates the vender via

    the Organisational Unique Identifier (OUI) andthe protocol type via the Ethertype field

    CISCO uses SNAP frame with their proprietaryprotocol CDP (CISCO Discovery Protocol)

    EXAMPLE - SNAPEXAMPLE - SNAP

  • 8/14/2019 ( BASICS).pdf

    97/162

    1-97Networking Fundamentals 2009, Velocis Systems

    In the example above we have the OUI as

    00-00-00 which means that there is an Ethernet

    frame, and the Ethertype of 08-00 whichindicates IP as the protocol.

  • 8/14/2019 ( BASICS).pdf

    98/162

    2009, Velocis Systems

    ETHERNET

    CABLING

    Network CablingNetwork Cabling

  • 8/14/2019 ( BASICS).pdf

    99/162

    1-99Networking Fundamentals 2009, Velocis Systems

    Media connecting network components

    NIC cards take turns transmitting on the cableLAN cables only carry one signal at a time

    WAN cables can carry multiple signals

    simultaneously

    Three primary types of cabling

    Twisted-pair (or copper)Coaxial cable

    Fiber-optic cable

    Twisted-Pair (UTP and STP)Twisted-Pair (UTP and STP)

    STP only:

  • 8/14/2019 ( BASICS).pdf

    100/162

    1-100Networking Fundamentals 2009, Velocis Systems

    Speed and throughput: 10/100 Mbps

    Relative cost: Least costly

    Media and connector size: Small

    Maximum cable length: 100 m

    RJ-45

    Connector

    Color-Coded

    Plastic Insulation

    Twisted-Pair

    Outer Jacket

    STP only:

    Shielded Insulation

    to Reduce EMI

    Coaxial CableCoaxial Cable

    Braided Copper Shielding

  • 8/14/2019 ( BASICS).pdf

    101/162

    1-101Networking Fundamentals 2009, Velocis Systems

    Speed and throughput: 10/100 Mbps

    Relative cost: More than UTP, but still low

    Media and connector size: Medium

    Maximum cable length: 200/500 m

    OuterJacketBraided Copper Shielding

    Plastic Insulation

    Copper Conductor

    BNC Connector

    Fiber-Optic CableFiber-Optic Cable

  • 8/14/2019 ( BASICS).pdf

    102/162

    1-102Networking Fundamentals 2009, Velocis Systems

    Outer JacketKevlar Reinforcing

    Material

    Plastic

    Shield Glass Fiber

    and Cladding

    Speed and throughput: 100+ Mbps

    Average cost per node: Most expensive

    Media and connector size: Small

    Maximum cable length: Up to 2 km

  • 8/14/2019 ( BASICS).pdf

    103/162

    2009, Velocis Systems

    UPPER LAYER

    PROTOCOLS

    UPPER LAYER

    PROTOCOLS

    What Is TCP/IP?What Is TCP/IP?

  • 8/14/2019 ( BASICS).pdf

    104/162

    1-104Networking Fundamentals 2009, Velocis Systems

    A suite of protocols

    Rules that dictate how packetsof information are sent across

    multiple networks

    Addressing

    Error checking

    TCP/IP ProtocolTCP/IP Protocol

  • 8/14/2019 ( BASICS).pdf

    105/162

    1-105Networking Fundamentals 2009, Velocis Systems

    The Transmission Control Protocol/Internet Protocol(TCP/IP) suit was created by the Department of Defense

    (DoD).

    The Internet Protocol can be used to communicateacross any set of interconnected networks.

    TCP/IP supports both LAN and WAN communications.

    IP suite includes not only Layer 3 and 4 specificationsbut also specifications for common applications like e-mail, remote login, terminal emulation and file transfer.

    The TCP/IP protocol stack maps closely to the OSImodel in the lower layers.

    The DoD & OSIThe DoD & OSI

    D D M d l OSI M d l

  • 8/14/2019 ( BASICS).pdf

    106/162

    1-106Networking Fundamentals 2009, Velocis Systems

    Application

    Application

    Presentation

    Session

    Transport

    Network

    Data Link

    Physical

    Host-to-Host

    Internet

    Network

    Access

    DoDModel OSIModel

    TCP/IP Protocol Suit at DoDTCP/IP Protocol Suit at DoD

    DoDModel

    TCP/IP Protocol Suit

  • 8/14/2019 ( BASICS).pdf

    107/162

    1-107Networking Fundamentals 2009, Velocis Systems

    Process /

    Application

    Host-to-Host

    Internet

    Network

    Access

    Telnet FTP LPD SNMP

    NFSSMTPTFTP

    TCP UDP

    ICMP

    Ethernet

    ARP RARP

    IP

    Fast

    Ethernet

    Token

    Ring FDDI

    BootP

    TCP/IP ApplicationsTCP/IP Applications

    Application layer

  • 8/14/2019 ( BASICS).pdf

    108/162

    1-108Networking Fundamentals 2009, Velocis Systems

    Application layerFile Transfer Protocol (FTP)

    Remote Login (Telnet)

    E-mail (SMTP)

    Transport layerTransport Control Protocol (TCP)

    User Datagram Protocol (UDP)

    Network layer

    Internet Protocol (IP) Data link & physical layer

    LAN Ethernet, Token Ring, FDDI, etc.

    WAN Serial lines, Frame Relay, X.25, etc.

  • 8/14/2019 ( BASICS).pdf

    109/162

    Internet ProtocolInternet Protocol

    P id ti l b t

  • 8/14/2019 ( BASICS).pdf

    110/162

    1-110Networking Fundamentals 2009, Velocis Systems

    Provides connectionless,best -

    effort delivery routing of datagrams.

    IP is not concerned with the contentof the datagrams.

    It looks for a way to move thedatagrams to their destination.

    IP DatagramIP Datagram

    1

    Bit 0 Bit 15 Bit 16 Bit 31

  • 8/14/2019 ( BASICS).pdf

    111/162

    1-111Networking Fundamentals 2009, Velocis Systems

    Version

    (4)

    Destination IP Address (32)

    Options (0 or 32 if Any)

    1 Bit 15 Bit 16 Bit 31

    Header

    Length (4)Type

    of Service (8)Total Length (16)

    Identification (16)Flags

    (3) Fragment Offset (13)

    Time-to-Live (8) Protocol (8) Header Checksum (16)

    Source IP Address (32)

    20

    Bytes

    Data (Varies if Any)

    IP DatagramIP Datagram

    Version Currently used IP version

    Header Length Datagram header length

  • 8/14/2019 ( BASICS).pdf

    112/162

    1-112Networking Fundamentals 2009, Velocis Systems

    g g g

    TOS Level of importance assigned by a particular upper-layer protocol

    Total Length- Length of packet in bytes including Data and Header Identification Identifies current datagram (Sequence Number)

    Flags Specifies whether the packet can be fragmented or not

    Fragment Offset Used to piece together datagram fragmentsTTL It maintains a counter that gradually decreases, in increments, to zero

    Protocol It indicates which upper-layer protocol receives incoming packets

    Header Checksum Calculated checksum of the header to check its integrity

    Source IP Address Sending node IP Address

    Destination IP Address Receiving node IP Address

    Options It allows IP to support various options like security

    Data U er la er information maximum 64Kb

    Protocol FieldProtocol Field

  • 8/14/2019 ( BASICS).pdf

    113/162

    1-113Networking Fundamentals 2009, Velocis Systems

    Transport

    Layer

    InternetLayer

    TCP UDP

    IP

    176 Protocol

    Numbers

    Determines destination upper-layer protocol

    Address Resolution Protocol(ARP)

    Address Resolution Protocol(ARP)

    ARP works at Internet Layer of DoD Model

  • 8/14/2019 ( BASICS).pdf

    114/162

    1-114Networking Fundamentals 2009, Velocis Systems

    y

    It is used to resolve MAC address with the

    help of a known IP address.

    All resolved MAC addresses are maintained

    in ARP cache table is maintained. To send a datagram this ARP cache table is

    checked and if not found then a broadcast is

    sent along with the IP address.

    Machine with that IP address responds and

    the MAC address is cached.

    Address Resolution ProtocolAddress Resolution Protocol

    I need the

  • 8/14/2019 ( BASICS).pdf

    115/162

    1-115Networking Fundamentals 2009, Velocis Systems

    172.16.3.1 172.16.3.2

    IP: 172.16.3.2 = ???IP: 172.16.3.2 = ???

    I need the

    Ethernet address

    of 176.16.3.2.

    Address Resolution ProtocolAddress Resolution Protocol

    I need the

  • 8/14/2019 ( BASICS).pdf

    116/162

    1-116Networking Fundamentals 2009, Velocis Systems

    172.16.3.1 172.16.3.2

    IP: 172.16.3.2 = ???IP: 172.16.3.2 = ???

    I heard that broadcast.

    The message is for me.

    Here is my Ethernetaddress.

    I need the

    Ethernet address

    of 176.16.3.2.

    Address Resolution ProtocolAddress Resolution Protocol

    I need the

  • 8/14/2019 ( BASICS).pdf

    117/162

    1-117Networking Fundamentals 2009, Velocis Systems

    172.16.3.1

    IP: 172.16.3.2

    Ethernet: 0800.0020.1111

    IP: 172.16.3.2

    Ethernet: 0800.0020.1111

    172.16.3.2

    IP: 172.16.3.2 = ???IP: 172.16.3.2 = ???

    I heard that broadcast.

    The message is for me.

    Here is my Ethernetaddress.

    I need the

    Ethernet address

    of 176.16.3.2.

    Address Resolution ProtocolAddress Resolution Protocol

    I need the

  • 8/14/2019 ( BASICS).pdf

    118/162

    1-118Networking Fundamentals 2009, Velocis Systems

    Map IP Ethernet

    172.16.3.1

    IP: 172.16.3.2

    Ethernet: 0800.0020.1111

    IP: 172.16.3.2

    Ethernet: 0800.0020.1111

    172.16.3.2

    IP: 172.16.3.2 = ???IP: 172.16.3.2 = ???

    I heard that broadcast.

    The message is for me.

    Here is my Ethernetaddress.

    I need the

    Ethernet address

    of 176.16.3.2.

    DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)

    The DHCP server dynamically assigns IP address to hosts.

  • 8/14/2019 ( BASICS).pdf

    119/162

    1-119Networking Fundamentals 2009, Velocis Systems

    All types of Hardware can be used as a DHCP server, even aCisco Router.

    BootP can also send an operating system that a host canboot from. DHCP can not perform this function.

    Following information is provided by DHCP while hostregisters for an IP address:

    IP Address

    Subnet mask Domain name

    Default gateway (router)

    DNS

    Internet Control MessageProtocol

    Internet Control MessageProtocol

    ICMP messages are carried in IP datagrams and used to senderror and control messages.

  • 8/14/2019 ( BASICS).pdf

    120/162

    1-120Networking Fundamentals 2009, Velocis Systems

    Application

    Transport

    Internet

    Data-Link

    Physical

    Destination

    Unreachable

    Echo (Ping)

    Other

    ICMP

    1

    g

    ICMP PingICMP Ping

  • 8/14/2019 ( BASICS).pdf

    121/162

    1-121Networking Fundamentals 2009, Velocis Systems

    Transport Layer OverviewTransport Layer Overview

  • 8/14/2019 ( BASICS).pdf

    122/162

    1-122Networking Fundamentals 2009, Velocis Systems

    Transmission Control

    Protocol (TCP)

    User Datagram

    Protocol (UDP)

    Transmission Control

    Protocol (TCP)

    User Datagram

    Protocol (UDP)

    Application

    Transport

    Internet

    Data-Link

    Physical

    Connection-

    Oriented

    Connectionless

    Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)

    TCP works at Transport Layer

  • 8/14/2019 ( BASICS).pdf

    123/162

    1-123Networking Fundamentals 2009, Velocis Systems

    p y

    TCP is a connection oriented protocol.

    TCP is responsible for breaking messagesinto segments and reassembling them.

    Supplies a virtual circuit between end-userapplication.

    TCP Segment FormatTCP Segment Format

    Bit 0 Bit 15 Bit 16 Bit 31

  • 8/14/2019 ( BASICS).pdf

    124/162

    1-124Networking Fundamentals 2009, Velocis Systems

    Source Port (16) Destination Port (16)

    20

    Bytes

    Sequence Number (32)

    Acknowledgment Number (32)

    HeaderLength (4) Reserved (6) Code Bits (6) Window (16)

    Checksum (16) Urgent (16)

    Options (0 or 32 if Any)

    Data (Varies)

    TCP Segment FormatTCP Segment Format

    Source port Number of the calling port

    Destination Port Number of the called port

  • 8/14/2019 ( BASICS).pdf

    125/162

    1-125Networking Fundamentals 2009, Velocis Systems

    Destination Port Number of the called port

    Sequence Number Number used to ensure correct sequencing of the

    arriving data

    Acknowledgement Number Next expected TCP octet

    Header Length Length of the TCP header

    Reserved Set to zero

    Code Bits Control Functions (setup and termination of a session)

    Window Number of octets that the sender is willing to accept

    Checksum Calculated checksum of the header and data fields

    Urgent Pointer Indication of the end of the urgent data

    Options One option currently defined (maximum TCP segment size)

    Data Upper layer protocol data

    Port NumbersPort Numbers

  • 8/14/2019 ( BASICS).pdf

    126/162

    1-126Networking Fundamentals 2009, Velocis Systems

    TCP

    PortNumbers

    F

    T

    P

    Transport

    Layer

    T

    E

    L

    N

    ET

    D

    N

    S

    S

    N

    M

    P

    T

    F

    T

    P

    S

    M

    T

    P

    UDP

    Application

    Layer

    2121 2323 2525 5353 6969 161161

    R

    I

    P

    520520

    TCP Port NumbersTCP Port Numbers

    S

    Source D ti ti

    Destination

  • 8/14/2019 ( BASICS).pdf

    127/162

    1-127Networking Fundamentals 2009, Velocis Systems

    Source

    Port

    Source

    PortDestination

    Port

    Destination

    Port

    Host A

    10281028 2323

    SP DP

    Host ZTelnet Z

    Destination port = 23.

    Send packet to my

    Telnet

    application.

    TCP Three-Way Handshake/OpenConnection

    TCP Three-Way Handshake/OpenConnection

    Host A Host B

  • 8/14/2019 ( BASICS).pdf

    128/162

    1-128Networking Fundamentals 2009, Velocis Systems

    Send SYN(seq = 100 ctl = SYN)

    SYN Received

    1

    Send SYN, ACK

    (seq = 300 ack = 101

    2

    SYN Receivedctl = syn,ack)

    Established

    (seq = 101 ack = 3013

    ctl = ack)

    TCP Simple AcknowledgmentTCP Simple Acknowledgment

    Sender Receiver

    Send 1

  • 8/14/2019 ( BASICS).pdf

    129/162

    1-129Networking Fundamentals 2009, Velocis Systems

    Window Size = 1

    Send 1Receive 1

    Receive ACK 2 Send ACK 2

    Send 2Receive 2

    Receive ACK 3Send ACK 3

    Send 3

    Receive 3

    Receive ACK 4 Send ACK 4

    TCP Sequence andAcknowledgment Numbers

    TCP Sequence andAcknowledgment Numbers

    Source

    Port

    Source

    PortDestination

    Port

    Destination

    PortSequence

    Sequence

    Acknowledgment

    Acknowledgment

  • 8/14/2019 ( BASICS).pdf

    130/162

    1-130Networking Fundamentals 2009, Velocis Systems

    PortPort PortPort

    10281028 2323

    Source Dest.

    111111

    Seq.

    22

    Ack.

    10281028 2323

    Source Dest.

    101010

    Seq.

    11

    Ack.

    102810282323

    Source Dest.

    111111

    Seq.

    11

    Ack.

    .

    I just

    sent number

    10I just got number

    10, now I need

    number 11.

  • 8/14/2019 ( BASICS).pdf

    131/162

    UDP (User Datagram Protocol)UDP (User Datagram Protocol)

    A connectionless and unacknowledged protocol.

  • 8/14/2019 ( BASICS).pdf

    132/162

    1-132Networking Fundamentals 2009, Velocis Systems

    UDP is also responsible for transmittingmessages.

    But no checking for segment delivery is provided.

    UDP depends on upper layer protocol forreliability.

    TCP and UDP uses Port no. to listen to aparticular services.

    UDP Segment FormatUDP Segment Format

    1

    Bit 0 Bit 15 Bit 16 Bit 31

  • 8/14/2019 ( BASICS).pdf

    133/162

    1-133Networking Fundamentals 2009, Velocis Systems

    Source Port (16) Destination Port (16)

    No sequence or acknowledgment fields

    Length (16)

    8

    BytesChecksum (16)

    Data (if Any)

    UDP Segment FormatUDP Segment Format

    Source port Number of the calling port

  • 8/14/2019 ( BASICS).pdf

    134/162

    1-134Networking Fundamentals 2009, Velocis Systems

    p g p

    Destination Port Number of the called port Length Number of bytes, including header and data

    Checksum Calculated checksum of the header and data

    fields

    Data Upper layer protocol data

    Application Layer OverviewApplication Layer Overview

    File Transfer

    - TFTP*

    File Transfer

    - TFTP*

  • 8/14/2019 ( BASICS).pdf

    135/162

    1-135Networking Fundamentals 2009, Velocis Systems

    *Used by the Router

    Application

    Transport

    Internet

    Data-Link

    Physical

    TFTP

    - FTP*

    - NFSE-Mail

    - SMTP

    Remote Login

    - Telnet*- rlogin*

    Network Management

    - SNMP*

    Name Management

    - DNS*

    TFTP

    - FTP*

    - NFSE-Mail

    - SMTP

    Remote Login

    - Telnet*

    - rlogin*

    Network Management

    - SNMP*

    Name Management

    - DNS*

    TelnetTelnet

    Telnet is used for Terminal Emulation.

    It ll i tti t hi t

  • 8/14/2019 ( BASICS).pdf

    136/162

    1-136Networking Fundamentals 2009, Velocis Systems

    It allows a user sitting on a remote machine to

    access the resources of another machine.

    It allows you to transfer files from one machine to another.

    It also allows access to both directories and files.

    It uses TCP for data transfer and hence slow but reliable.

    Simple Network ManagementProtocol

    Simple Network ManagementProtocol

  • 8/14/2019 ( BASICS).pdf

    137/162

    1-137Networking Fundamentals 2009, Velocis Systems

    SNMP enable a central management ofNetwork.

    Using SNMP an administrator can watch theentire network.

    SNMP works with TCP/IP.

    IT uses UDP for transportation of the data.

    DNS (Domain Name Service)DNS (Domain Name Service)

  • 8/14/2019 ( BASICS).pdf

    138/162

    1-138Networking Fundamentals 2009, Velocis Systems

    DNS resolves FQDNs with IP address.

    DNS allows you to use a domain name tospecify and IP address.

    It maintains a database for IP address andHostnames.

    On every query it checks this database andresolves the IP.

  • 8/14/2019 ( BASICS).pdf

    139/162

    2009, Velocis Systems

    WAN Basics

    What Is a WAN?What Is a WAN?

    A network that serves users across a broadgeographic area

  • 8/14/2019 ( BASICS).pdf

    140/162

    1-140Networking Fundamentals 2009, Velocis Systems

    geographic area

    Often uses transmission devices providedby public carriers (Pacific Bell, AT&T, etc.)

    This service is commonly referred to as plain old telephone service (POTS)

    WANs function at the lower three layers of

    the OSI reference modelPhysical layer, data link layer, and network

    layer

    WAN OverviewWAN Overview

  • 8/14/2019 ( BASICS).pdf

    141/162

    1-141Networking Fundamentals 2009, Velocis Systems

    Service

    Provider

    WANs connect sites

    Connection requirements vary depending

    on user requirements and cost

    What is a WAN?

    A WAN is a data communications network that covers a relatively broad geographicarea and often uses transmission facilities provided by common carriers, such as

    telephone companies. WAN technologies function at the lower three layers of the OSI

  • 8/14/2019 ( BASICS).pdf

    142/162

    1-142Networking Fundamentals 2009, Velocis Systems

    p p g y

    reference model: the physical layer, the data link layer, and the network layer.

    Serial Implementation ofDTE versus DCE

    Serial Implementation ofDTE versus DCE

    Data Terminal Equipment

    End of the users device

    on the WAN link

    Data Communications Equipment End of the WAN providers

    side of the communication facility

  • 8/14/2019 ( BASICS).pdf

    143/162

    1-143Networking Fundamentals 2009, Velocis Systems

    o t e side of the communication facility

    DCE is responsible for clocking

    DCEDTE

    Modem

    CSU/DSU

    SS SS

    SSSS

    SSSS

    DTE DTEDCE DCE

    WAN Terminating EquipmentWAN Terminating Equipment

    EIA/TIA-232

    V.35WAN Provider

    (Carrier) Network

    Physical Cable Types

  • 8/14/2019 ( BASICS).pdf

    144/162

    1-144Networking Fundamentals 2009, Velocis Systems

    Modem

    Data Terminal Equipment

    DTE

    Data Circuit-Terminating Equipment

    The Service ProvidersThe Service Providers

    EquipmentEquipment

    DCE

    V.35

    X.21HSSITo Corporate

    Network

    The CustomerThe Customerss

    EquipmentEquipment

    (Carrier) Network

    Usually on theCustomers

    Premises

    Router

    Serial TransmissionSerial Transmission

    WAN Serial connectors use serialtransmission

    Serial transmission uses one bit at time

  • 8/14/2019 ( BASICS).pdf

    145/162

    1-145Networking Fundamentals 2009, Velocis Systems

    Serial transmission uses one bit at time

    over a single channel.Parallel transmission can use 8 bits at

    a time, but all WANs use serial

    transmission. Cisco Routers use a proprietary 60 pin

    serial connector.

    Connector at the other end of the cablewill depend on your service provider orend device requirements.

  • 8/14/2019 ( BASICS).pdf

    146/162

    2009, Velocis Systems

    LAN/WAN DevicesLAN/WAN Devices

    1999, Cisco Systems, Inc.

    LAN/WAN DevicesLAN/WAN Devices

  • 8/14/2019 ( BASICS).pdf

    147/162

    1-147Networking Fundamentals 2009, Velocis Systems

    Hubs

    Bridges

    Switches

    Routers

    HubHub

    Device that serves as the center of aDevice that serves as the center of a

  • 8/14/2019 ( BASICS).pdf

    148/162

    1-148Networking Fundamentals 2009, Velocis Systems

    Device that serves as the center of aDevice that serves as the center of a

    star topology network, sometimesstar topology network, sometimes

    referred to as areferred to as a multiport repeatermultiport repeater,, nono

    forwarding intelligenceforwarding intelligence

    HubsHubs

    123123 126126

  • 8/14/2019 ( BASICS).pdf

    149/162

    1-149Networking Fundamentals 2009, Velocis Systems

    124124

    125125

    127127

    128128

    Hub

    Data

    Data

    Data

    Data

    Amplifies signals

    Propagates signals through the network Does not f ilter data packets based on destination

    No path determination or switching

    Used as network concentration point

    Hubs Operate at Physical layerHubs Operate at Physical layer

  • 8/14/2019 ( BASICS).pdf

    150/162

    1-150Networking Fundamentals 2009, Velocis Systems

    A B C D

    Physical

    All devices in the same collision domain

    All devices in the same broadcast domain

    Devices share the same bandwidth

    Hubs: One Collision DomainHubs: One Collision Domain

    M d t ti

  • 8/14/2019 ( BASICS).pdf

    151/162

    1-151Networking Fundamentals 2009, Velocis Systems

    More end stations means

    more collisions

    CSMA/CD is used

    BridgeBridge

    Device that connects and passes packetsDevice that connects and passes packets

    between two network segmentsbetween two network segments

  • 8/14/2019 ( BASICS).pdf

    152/162

    1-152Networking Fundamentals 2009, Velocis Systems

    between two network segments.between two network segments.

    More intelligent than hubMore intelligent than hubanalyzesanalyzes

    incoming packets and forwards (or filters)incoming packets and forwards (or filters)

    them based on addressing information.them based on addressing information.

    Bridge ExampleBridge Example

    Bridge

    123123

    124124

    126126

    12

  • 8/14/2019 ( BASICS).pdf

    153/162

    1-153Networking Fundamentals 2009, Velocis Systems

    Segment 1 Segment 2

    125125

    127127

    128128

    Corporate Intranet

    Hub Hub

    More intelligent than a hubcan analyze incoming packetsand forward (or fi lter) them based on addressing information

    Collects and passes packets between two network segments

    Maintains address tables

    SwitchesSwitches

    UseUse bridging technologybridging technology totoforward traffic between ports.forward traffic between ports.

  • 8/14/2019 ( BASICS).pdf

    154/162

    1-154Networking Fundamentals 2009, Velocis Systems

    pp

    Provide fullProvide full dedicateddedicated datadatatransmission rate between twotransmission rate between two

    stations that are directly connectedstations that are directly connectedto the switch ports.to the switch ports.

    Build and maintainBuild and maintain addressaddress

    tablestables called contentcalled content --addressableaddressablememory (CAM).memory (CAM).

    Switching Dedicated MediaSwitching Dedicated Media

    10-MbpsUTP Cable

    Dedicated

    Workstation

    3131

    Switch 3434

  • 8/14/2019 ( BASICS).pdf

    155/162

    1-155Networking Fundamentals 2009, Velocis Systems

    Corporate Intranet

    3232

    33 3636

    100 Mbps 100 Mbps

    Uses bridging technology to forward traffic (i.e.

    maintains address tables, and can fil ter) Provides full dedicated transmission rate between

    stations that are connected to switch ports

    Used in both local-area and in wide-area networking

    All types availableEthernet, Token Ring, ATM

    3535

    Switches and Bridges Operate atData Link Layer

    Switches and Bridges Operate atData Link Layer

    Data Link

  • 8/14/2019 ( BASICS).pdf

    156/162

    1-156Networking Fundamentals 2009, Velocis Systems

    Each segment has its own collision domain

    All segments are in the same broadcast domain

    OR1 2 3 1 24

    SwitchesSwitches

  • 8/14/2019 ( BASICS).pdf

    157/162

    1-157Networking Fundamentals 2009, Velocis Systems

    Each segment has its owncollision domain

    Broadcasts are forwardedto all segments

    Memory

    Switch

  • 8/14/2019 ( BASICS).pdf

    158/162

    Network Layer Functions (cont.)Network Layer Functions (cont.)

    1.0 4.0

    1.3 4.32.22.1

    4.11.1

  • 8/14/2019 ( BASICS).pdf

    159/162

    1-159Networking Fundamentals 2009, Velocis Systems

    Routing TableNET INT Metric

    12

    4

    S0S0

    E0

    10

    0

    1.3

    E0

    4.3

    S0 E0S0 4.21.2

    Routing TableNET INT Metric

    12

    4

    E0S0

    S0

    00

    1

    Logical addressing allows for hierarchical network

    Configuration required

    Uses configured information to identify paths to networks

    Routers: Operate at theNetwork Layer

    Routers: Operate at theNetwork Layer

    Broadcast control

    Multicast control

  • 8/14/2019 ( BASICS).pdf

    160/162

    1-160Networking Fundamentals 2009, Velocis Systems

    Optimal pathdetermination

    Traffic management Logical addressing

    Connects to WANservices

    Using Routers to Provide RemoteAccess

    Using Routers to Provide RemoteAccess

    Telecommuter

    Modem or ISDN TA

  • 8/14/2019 ( BASICS).pdf

    161/162

    1-161Networking Fundamentals 2009, Velocis Systems

    Internet

    Branch Office

    Mobile User

    Main Office

    Network Device DomainsNetwork Device Domains

    Hub Bridge Switch Router

  • 8/14/2019 ( BASICS).pdf

    162/162

    1-162Networking Fundamentals 2009, Velocis Systems

    Collision Domains:

    1 4 4 4

    Broadcast Domains:

    1 1 1 4