ccna exp1 - chapter03 - application layer functionality and protocols

Upload: t2-spider

Post on 10-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    1/54

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    2/54

    Overview

    Describe how the functions of the three upper OSI model layersprovide network services to end user applications.

    Describe how the TCP/IP Application Layer protocols provide theservices specified by the upper layers of the OSI model.

    Define how people use the Application Layer to communicate acrossthe information network.

    -

    Hc vin mng Bch khoa - Website: www.bkacad.com

    World Wide Web and email, and their related services (HTTP, DNS,SMB, DHCP, STMP/POP, and Telnet).

    Describe file-sharing processes that use peer-to-peer applications andthe Gnutella protocol.

    Explain how protocols ensure services running on one kind of devicecan send to and receive data from many different network devices.

    Use network analysis tools to examine and explain how common userapplications work.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    3/54

    Introduction

    Explain that applications provide the means for generating andreceiving data that can be transported on the network.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    4/54

    OSI model

    To address the roblem of network incom atibilit , the International

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Organization for Standardization (ISO) researched networking models likeDigital Equipment Corporation net (DECnet), Systems Network Architecture(SNA), and TCP/IP in order to find a generally applicable set of rules for allnetworks.

    Using this research, the ISO created a network model that helps vendorscreate networks that are compatible with other networks.

    The Open System Interconnection (OSI) reference model released in 1984was the descriptive network model that the ISO created.

    It provided vendors with a set of standards that ensured greater compatibilityand interoperability among various network technologies produced bycompanies around the world.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    5/54

    The OSI Model

    Initially the OSI model was designed by the International Organization forStandardization (ISO) to provide a framework on which to build a suite of open

    systems protocols.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    6/54

    The OSI Model

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    7/54

    OSI model

    Explain the role of applications, services and protocols in convertingcommunication to data that can be transferred across the data network.

    Application layer: It is the layer that provides the interface between theapplications we use to communicate and the underlying network overwhich our messages are transmitted.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    8/54

    OSI model

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    9/54

    OSI model

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    10/54

    OSI and TCP/IP Model

    Functionality of the TCP/IP application layer protocols fit roughly into

    the framework of the top three layers of the OSI model: Application,

    Presentation and Session layers.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    11/54

    OSI and TCP/IP Model

    The Presentation layer has three primary functions:

    1. Coding and conversion of Application layer data to ensure that

    data from the source device can be interpreted by the appropriate

    application on the destination device.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    .

    by the destination device.

    3. Encryption of the data for transmission and the decryption of data

    upon receipt by the destination.

    Example: QuickTime, Motion Picture Experts Group (MPEG),

    Graphics Interchange Format (GIF), Joint Photographic Experts

    Group (JPEG)

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    12/54

    OSI and TCP/IP Model

    The Session Layer

    Functions at this layer create and maintain dialogs between source and

    destination applications.

    The Session layer handles the exchange of information to initiate

    Hc vin mng Bch khoa - Website: www.bkacad.com

    , ,

    idle for a long period of time.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    13/54

    Application Layer Protocols

    These protocols specify the format and control information necessaryfor many of the common Internet communication functions. Amongthese TCP/IP protocols are:

    Domain Name Service Protocol (DNS). Hypertext Transfer Protocol (HTTP).

    Simple Mail Transfer Protocol (SMTP).

    Hc vin mng Bch khoa - Website: www.bkacad.com

    .

    File Transfer Protocol (FTP).

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    14/54

    Application Layer Software

    The functions associated with the Application layer protocols enableour human network to interface with the underlying data network.

    Within the Application layer, there are two forms of software programs

    or processes that provide access to the network: applications andservices.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    15/54

    User applications, Services, and Application Layer Protocols

    The Application layer uses protocols that are implemented withinapplications and services.

    While applications provide people a way to create messages and

    application layer services establish an interface to the network,protocols provide the rules and formats that govern how data is treated.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    16/54

    Application Layer Protocol Functions

    Application layer protocols are used by both the sourceand destination devices during a communication session.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    17/54

    The Client-Server Model

    In the client/server model, the device requesting the information iscalled a client and the device responding to the request is called aserver. Client and server processes are considered to be in the

    Application layer.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    18/54

    Servers

    In a general networking context, any device that responds to requests fromclient applications is functioning as a server.

    A server is usually a computer that contains information to be shared with

    many client systems. Different types of server applications may have different requirements for

    client access.

    Some servers may

    Hc vin mng Bch khoa - Website: www.bkacad.com

    requ re au en ca on o

    user account information

    to verify if the user has

    permission to access the

    requested data or to use

    a particular operation.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    19/54

    Application Layer Services and Protocols

    A single application may employ many different supporting Applicationlayer services.

    Additionally, servers typically have multiple clients requesting

    information at the same time.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    20/54

    Peer-to-Peer Networking and Applications (p2p)

    The Peer-to-Peer Model

    Peer-to-peer networking involves two distinct forms: peer-to-peer networkdesign and peer-to-peer applications (P2P). Both forms have similar features

    but in practice work very differently.Peer-to-Peer Networks

    In a peer-to-peer network, two or more computers are connected via a networkand can share resources (such as printers and files) without having a

    Hc vin mng Bch khoa - Website: www.bkacad.com

    e ca e server.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    21/54

    Peer-to-Peer Networking and Applications (p2p)

    Peer-to-Peer Applications

    A peer-to-peer application (P2P), unlike a peer-to-peer network, allows adevice to act as both a client and a server within the same communication.

    In this model, every client is a server and every server a client. Both can initiatea communication and are considered equal in the communication process. Peer-to-peer applications can be used on peer-to-peer networks, client/server

    networks, and across the Internet.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    22/54

    Application Layer Protocols and Services Examples

    Now that we have a better understanding of how applications providean interface for the user and provide access to the network, we willtake a look at some specific commonly used protocols.

    Some of these services are: Domain Name System (DNS) - TCP/UDP Port 53

    Hypertext Transfer Protocol (HTTP) - TCP Port 80

    Hc vin mng Bch khoa - Website: www.bkacad.com

    -

    Post Office Protocol (POP) - UDP Port 110

    Telnet - TCP Port 23

    Dynamic Host Configuration Protocol - UDP Port 67

    File Transfer Protocol (FTP) - TCP Ports 20 and 21

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    23/54

    DNS Services and Protocol

    Hc vin mng Bch khoa - Website: www.bkacad.com

    A domain naming system was developed in order to associate thecontents of the site with the address of that site. The Domain NameSystem (DNS) is a system used on the Internet for translating namesof domains and their publicly advertised network nodes into IP

    addresses.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    24/54

    DNS Services and protocol

    The Domain Name System (DNS) was created for domain name toaddress resolution for these networks. DNS uses a distributed set ofservers to resolve the names associated with these numbered

    addresses. The DNS protocol defines an automated service that matches resource

    names with the required numeric network address.

    DNS rotocol communications use a single format called a message.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    DNS is used for all types of client queries and server responses, errormessages, and the transfer of resource record information betweenservers.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    25/54

    DNS - Example

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    26/54

    DNS - Example

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    27/54

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    28/54

    DNS - Example

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    29/54

    DNS - Example

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    30/54

    DNS - Example

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    31/54

    DNS Services and Protocol

    The DNS server stores different types of resource recordsused to resolve names. These records contain the name,address, and type of record.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    32/54

    DNS Services and protocol

    When configuring a network device, we generally provide one or moreDNS Server addresses that the DNS client can use for nameresolution.

    Computer operating systems also have a utility called nslookup thatallows the user to manually query the name servers to resolve a givenhost name. This utility can also be used to troubleshoot nameresolution issues and to verify the current status of the name servers.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    33/54

    WWW Service and HTTP

    When a web address (or URL) is typed into a web browser, the web browserestablishes a connection to the web service running on the server using theHTTP protocol.

    URLs (or Uniform Resource Locator) and URIs (Uniform Resource Identifier)are the names most people associate with web addresses.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    34/54

    WWW Service and HTTP

    In order to access the content, web clients make connections to theserver and request the desired resources. The server replies with theresources and, upon receipt, the browser interprets the data and

    presents it to the user.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    35/54

    WWW Service and HTTP

    Browsers can interpret and present many data types, such as plain textor Hypertext Markup Language (HTML, the language in which webpages are constructed). Other types of data, however, may require

    another service or program, typically referred to as plug-ins or add-ons.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    36/54

    WWW Service and HTTP

    HTTP specifies a request/response protocol. When a client, typically aweb browser, sends a request message to a server, the HTTP protocoldefines the message types the client uses to request the web page and

    also the message types the server uses to respond. The three commonmessage types are GET, POST and PUT.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    37/54

    E-mail Services and SMTP/POP Protocols

    E-mail, the most popular network service and run on a computer or other enddevice, e-mail requires several applications and services.

    POP/SMTP define client/server processes.

    Mail User Agent (MUA): allows messages to be sent and places receivedmessages into the client's mailbox, both of which are distinct processes. MUAinclude: POP and SMTP.

    POP: used to receive e-mail messages from an e-mail server.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    : use to sen e-ma rom e t er a c ent or a server uses messageformats and command strings.

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    38/54

    E-mail Services and SMTP/POP Protocols

    E-mail Server Processes - MTA and MDA

    The e-mail server operates two separate processes: Mail Transfer Agent (MTA).

    Mail Delivery Agent (MDA).

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    39/54

    E-mail Services and SMTP/POP Protocols

    We see that the Mail Delivery Agent (MDA) accepts a piece of e-mail from aMail Transfer Agent (MTA) and performs the actual delivery.

    The MDA receives all the inbound mail from the MTA and places it into theappropriate users' mailboxes.

    The MDA can also resolve final delivery issues, such as virus scanning, spamfiltering, and return-receipt handling.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    40/54

    E-mail Services and SMTP/POP Protocols

    POP and POP3 (Post Office Protocol, version 3) are inbound mail deliveryprotocols and are typical client/server protocols. They deliver e-mail from the e-mail server to the client (MUA).

    The MDA listens for when a client connects to a server. Once a connection is

    established, the server can deliver the e-mail to the client. Some of the commands specified in the SMTP protocol are: HELO, EHLO,

    MAIL FROM, RCPT TO, DATA.

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    41/54

    FTP

    The File Transfer Protocol (FTP) is another commonly used Application layerprotocol.

    FTP was developed to allow for file transfers between a client and a server. AnFTP client is an application that runs on a computer that is used to push and

    pull files from a server running the FTP daemon (FTPd).

    The client establishes the first connection to the server on TCP port 21. Theclient establishes the second connection to the server over TCP port 20.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    .

    DHCP

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    42/54

    DHCP

    The Dynamic Host Confirmation Protocol (DHCP) service enables devices on anetwork to obtain IP addresses and other information from a DHCP server.

    DHCP allows a host to obtain an IP address dynamically when it connects tothe network.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Wh U DHCP?

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    43/54

    Why Use DHCP?

    DHCP reduces the complexity and amount of administrative work by

    using automatic TCP/IP configuration

    Manual TCP/IP Configuration

    IP addresses are enteredmanually on each client computer

    Automatic TCP/IP Configuration

    IP addresses are suppliedautomatically to client computers

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Possibility of entering incorrect orinvalid IP address

    Incorrect configuration can leadto communication and networkissues

    Administrative overload onnetworks where computers arefrequently moved

    Ensures that clients always usecorrect configuration information

    Client configuration is updatedautomatically to reflect changesin network structure

    Eliminates a common source ofnetwork problems

    Wh t A DHCP S ?

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    44/54

    What Are DHCP Scopes?

    A scope is a range of IP addresses that are available to be leased

    DHCP Server

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Scope Properties

    Network ID Lease duration Scope name Subnet mask Router Exclusion range

    Network IPaddress range

    Scope BScope A

    DHCP

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    45/54

    DHCP

    The DHCP server maintains a pool of IP addresses and leases an address toany DHCP-enabled client when the client is powered on.

    DHCP Packet: DHCP DISCOVER.

    DHCP OFFER.

    DHCP REQUEST.

    DHCP ACK.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    How the DHCP Operation

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    46/54

    How the DHCP Operation

    DHCP

    DHCP

    Server2

    Hc vin mng Bch khoa - Website: www.bkacad.com

    DHCP client broadcasts a DHCPDISCOVER packet1

    DHCP servers broadcast a DHCPOFFER packet2

    DHCP client broadcasts a DHCPREQUEST packet3

    DHCP Server1 broadcasts a DHCPACK packet4

    Client

    Server1

    File Sharing Services and SMB Protocol

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    47/54

    File Sharing Services and SMB Protocol

    The Server Message Block (SMB) is a client/server file sharing protocol. Unlike the file sharing supported by FTP, clients establish a long term

    connection to servers. Once the connection is established, the user of theclient can access the resources on the server as if the resource is local to the

    client host.

    SMB file-sharing and print services have become the mainstay of Microsoftnetworking.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    File Sharing Services and SMB Protocol

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    48/54

    File Sharing Services and SMB Protocol

    The SMB protocol describes file system access and how clients can makerequests for files. All SMB messages share a common format. This format usesa fixed-sized header followed by a variable-sized parameter and data

    component.

    SMB messages can: Start, authenticate, and terminate sessions.

    Control file and printer access.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    ow an app ca on o sen or rece ve messages o or rom ano er ev ce.

    P2P Services and Gnutella Protocol

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    49/54

    P2P Services and Gnutella Protocol

    Many P2P applications do not use a central database to record all the filesavailable on the peers.

    When a user is connected to a Gnutella service, the client applications willsearch for other Gnutella nodes to connect to. These nodes handle queries for

    resource locations and replies to those requests.

    The Gnutella protocol defines five different packet types: ping, pong, query,query hit, push

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Telnet Services and Protocol

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    50/54

    Telnet Services and Protocol

    Telnet provides a standard method of emulating text-based terminal devicesover the data network. Both the protocol itself and the client software thatimplements the protocol are commonly referred to as Telnet.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Telnet Services and Protocol

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    51/54

    Telnet Services and Protocol

    Telnet is a client/server protocol and it specifies how a VTY session isestablished and terminated.

    Each Telnet command consists of at least two bytes. The first byte is a specialcharacter called the Interpret as Command (IAC) character.

    If security is a concern, the Secure Shell (SSH) protocol offers an alternate andsecure method for server access.

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Labs

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    52/54

    Labs

    Hc vin mng Bch khoa - Website: www.bkacad.com

    Summary

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    53/54

    Summary

    Hc vin mng Bch khoa - Website: www.bkacad.com

  • 8/8/2019 CCNA Exp1 - Chapter03 - Application Layer Functionality and Protocols

    54/54

    Hc vin mng Bch khoa - Website: www.bkacad.com