1 of 18

Module 15: Application Layer

CCNA Routing and Switching:

Introduction to Networks v7.0 (ITN)

This Slides is prepared by:

Eng. Rawan Aljamal

​

Cisco Certified CCNA Instructor Trainer

​

1

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

2 of 18

Application Layer

  • The upper three layers of the OSI model (application, presentation, and session) define functions of the TCP/IP application layer.
  • The Application Layer provides the interface between the applications used to communicate, and the underlying network over which messages are transmitted.
  • In other words, the Application Layer enables software applications to communicate over the network by providing network services to end-user applications.
  • Some of the most widely known application layer protocols include HTTP, FTP, TFTP, IMAP and DNS.

2

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

3 of 18

Presentation and Session Layer

The Presentation Layer has three primary functions:

      • Character encoding: Converting characters into binary (0s and 1s) using different encoding standards (such as UTF-8, UTF-16, or ASCII) to allow the source and destination devices to correctly interpret text data.
      • Compression: Reducing the size of data before transmission to improve transmission efficiency and restoring it to its original form after reception.
      • Encryption: Converting data into a secure, unreadable form before transmission to ensure confidentiality and restoring it back to its original readable form after reception .

​

The Session Layer functions:

        • It creates and maintains dialogs between source and destination applications.
        • It handles the exchange of information to initiate dialogs, keep them active, and to restart sessions that are disrupted or idle.

3

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

4 of 18

TCP/IP Application Layer Protocols

  • The TCP/IP application protocols specify the format and control information necessary for many common internet communication functions.
  • Application layer protocols are used by both the source and destination devices during a communication session. 

Name System

DNS - Domain Name System (or Service)

  • Translates domain names, such as cisco.com, into IP addresses.

Host Config

DHCP - Dynamic Host Configuration Protocol

  • Dynamically assigns IP addresses to be re-used when no longer needed.

Web

HTTP - Hypertext Transfer Protocol

  • A set of rules for exchanging text, graphic images, sound, video, and other multimedia files on the World Wide Web.

​

4

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

5 of 18

Web and Email Protocols

5

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

5

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

5

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

6 of 18

Hypertext Transfer Protocol

  • When a web address or Uniform Resource Locator (URL) is typed into a web browser, the web browser establishes a connection to the web service.
  • The web service is running on the server that is using the HTTP protocol.
  • To better understand how the web browser and web server interact, examine how a web page is opened in a browser in the following steps:

Step 1

The browser interprets the three parts of the URL:

  • http (the protocol or scheme)
  • www.cisco.com (the server's name)
  • index.html (the specific filename requested)

​

6

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

7 of 18

Hypertext Transfer Protocol

Step 2

  • The browser then checks with a DNS server to convert www.cisco.com into a numeric IP address, which it uses to connect to the server.

​

  • The client initiates an HTTP request to a server by sending a GET request to the server and asks for the index.html file.

​

Step 3

  • In response to the request, the server sends the HTML code for this web page to the browser.

7

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

8 of 18

HTTP and HTTPS

  • HTTP is a request/response protocol. It is the communication protocol that enables web browsers to request and receive information from web servers.
  • HTTP specifies the message types used for that communication. The three common message types (HTTP methods) are GET, POST, and PUT:
      • GET - This is a client request for data. A client (web browser) sends the GET message to the web server to request HTML pages.
      • POST - This uploads data to the web server, such as form data.
      • PUT - This updates resources or content on the web server.

​

Note: HTTP is not a secure protocol. For secure communications sent across the internet, HTTPS should be used.

8

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

9 of 18

Email Protocols

  • Email is a store-and-forward method of sending, storing, and retrieving electronic messages across a network. 
  • Email messages are stored in databases on mail servers.
  • Email clients communicate with mail servers to send and receive email.
  • The email protocols used for operation are:
      • Simple Mail Transfer Protocol (SMTP) – used to send mail.
      • Post Office Protocol (POP) & IMAP – used to receive mail.

9

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

10 of 18

IP Addressing Services

10

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

10

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

10

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

11 of 18

Domain Name Service

  • Domain names were created to replace the numeric IP addresses by a simple and recognizable name.
  • Fully-qualified domain names (FQDNs), such as www.cisco.com, are much easier for people to remember than 198.133.219.25.
  • The DNS protocol defines an automated service that matches domain names with the required numeric IP address.

11

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

12 of 18

DNS Hierarchy

  • DNS uses a hierarchical (tree-like) structure to organize domain names and provide name resolution.
  • Responsibility for managing domain names is distributed across the hierarchy. Each DNS server is authoritative only for its own portion of the namespace, called a DNS zone.
  • The hierarchy starts with the root, followed by Top-Level Domains (TLDs) such as .com, .org, and country-code TLDs such as .au and .jo.
  • Each TLD represents either the type of organization or the country of origin. Examples of top-level domains:
      • .com - a business or industry
      • .org - a non-profit organization
      • .au - Australia

12

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

13 of 18

DNS Hierarchy

  • Below each TLD are second-level domains (for example, google.com), which can be further divided into subdomains (for example, mail.google.com).

​

  • A DNS resolver receives queries from clients and performs a recursive lookup. It starts at the root DNS servers, then moves down through the hierarchy levels until it reaches the authoritative DNS server (the server that stores the actual domain’s name-to-IP mapping).

​

​

​

13

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

14 of 18

Dynamic Host Configuration Protocol

  • The Dynamic Host Configuration Protocol (DHCP) for IPv4 service automates the assignment of IPv4 addresses, subnet masks, default gateways, and other IPv4 networking parameters. 
  • When a host connects to the network, the DHCP server is contacted, and an address is requested. The DHCP server chooses an address from a configured range of addresses called a pool and assigns (leases) it to the host.
  • DHCP for IPv6 (DHCPv6) provides similar services for IPv6 clients.

14

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

15 of 18

File Sharing Services

15

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

15

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

15

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

16 of 18

File Transfer Protocol

FTP was developed to allow for file transfers between a client and a server. An FTP client is an application which runs on a computer that is being used to push and pull data from an FTP server.

Step 1 - The client establishes the first connection to the server for control traffic using TCP port 21.

Step 2 - The client establishes the second connection to the server for the actual data transfer using TCP port 20. This connection is created every time there is data to be transferred.

Step 3 - The data transfer can happen in either direction. The client can download (pull) data from the server, or the client can upload (push) data to the server.

​

16

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

17 of 18

Server Message Block

  • The Server Message Block (SMB) is a client/server, request-response file/printer sharing protocol.
  • Servers can make their own resources available to clients on the network. A user opens a shared folder on a company file server and accesses documents through SMB without needing to physically transfer the files to their computer.
  • Unlike the file sharing supported by FTP, clients establish a long-term connection to servers. After the connection is established, the user can access the resources on the server as though resource are local to the user's host.
  • Three functions of SMB messages:
      • Start, authenticate, and terminate sessions.
      • Manage access to file and printer.
      • Enable clients to read, write, and manage files stored on remote servers (according to specified permissions).

​

​

17

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

18 of 18

18

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential