Application Layer-5
Application Layer-5
▪ Importance of Multiplexing
▪ Types of Multiplexing
2
Topics Covered in Today's Lecture
▪ In today’s lecture:
▪ Summary
3
Objectives
• Understand Peer-to-Peer network and Client Server Network
• Explain how the functions of the session layer, presentation layer, and application layer
work together to provide network services to end user applications.
• Describe how common application layer protocols interact with end user applications.
• Describe, at a high level, common application layer protocols that provide Internet
services to end-users, including WWW services and email.
• Describe application layer protocols that provide IP addressing services, including DNS
and DHCP.
• Describe the features and operation of well-known application layer protocols that allow
for file sharing services, including: FTP, SMB protocol.
• Explain how data is moved across the network, from opening an application to receiving
data.
P2P Network and Client Server Network
Peer-to-Peer Network
• Two or more devices are connected via a network and can share resources
(such as printers and files) and have no dedicated server
• Peer-to-peer networks decentralize the resources on a network
• Both devices are considered equal in the communication
• The roles of client and server are set on a per request basis.
Peer-to-Peer Applications
Client and server in the same communication.
• Presentation layer
o Coding and conversion of application layer data
o Data compression
o Data encryption for the transmission and decryption of data upon receipt
by the destination
• Session layer
o Functions, creates, and maintains dialogs between source and
destination applications
o Handles the exchange of information to initiate dialogs, keep them
active, and to restart sessions
Hypertext Transfer Protocol and
Hypertext Markup Language
Example URL: http://www.cisco.com/index.html
1. First, the browser interprets the three parts of the URL:
o http (the protocol or scheme)
o www.cisco.com (the server name)
o index.html (the specific filename requested)
2. Browser checks with a nameserver to convert www.cisco.com (domain
name) into a numeric address.
3. Hypertext Transfer Protocol (HTTP) – used to transfer files that make
up the Web pages of the World Wide Web - used for web browsing.
4. Using the HTTP protocol requirements sends a GET request to the
server and asks for the file index.html.
5. Server sends the HTML code for this web page.
6. Browser deciphers the HTML code and formats the page.
HTTP and HTTPS
• Developed to publish and retrieve HTML pages.
HTTP: Port number 80
• Used for data transfer. HTTPS: Port Number 443
• Specifies a request/response protocol.
• Three common message types are GET, POST, and PUT.
• GET is used when a client request for data.
• POST and PUT are used to send messages that upload data to the web server.
Source: https://www.cloudflare.com/learning/ssl/why-is-http-not-secure/
Email: SMTP, POP, and IMAP
Reference: https://www.site24x7.com/learn/dns-record-types.html
DNS Hierarchy
.au - Australia
.co - Colombia
.jp - Japan
Example: https://www.rmit.edu.vn
DNS: nslookup
• Operating system utility called nslookup allows the user to manually query the name
servers to resolve a given host name
• Utility can be used to troubleshoot name resolution issues and to verify the current
status of the name servers
• DHCP operates on a client/server model, with any host acting as a client that needs
an IP address upon booting up, and a DHCP server that provides the request IP
address along with related configuration parameters.
• When DHCP server is contacted and address is requested, it chooses address from
a configured range of addresses called a pool and “leases” it to the host for a set
period.
• DHCP is used for general purpose hosts such as end user devices, and static
addressing is used for network devices such as gateways, switches, servers and
printers.
Refer: Chapter 21 Internetwork Operation, Page 725
Dynamic Host Configuration Protocol (cont.)
DHCP Operation
File Transfer Protocol
• File Transfer Protocol (FTP) - used for interactive file transfer between systems (data
transfers between a client and a server.)
• FTP client is an application that runs on a computer that is used to push and pull data
from a server running an FTP daemon.
• To successfully transfer data, FTP requires two connections between the client and the
server, one for commands and replies, the other for the actual file transfer.
• Trivial File Transfer Protocol (TFTP) - used for connectionless active file transfer.
File Transfer Protocol (cont.)
Server Message Block (SMB)
• SMB protocol is a network file sharing
protocol that allows applications on a
computer to read and write to files and to
request services from server programs in
a computer network.
A file may be copied from a PC to PC with Windows Explorer using the SMB protocol.
Other TCP/IP Application Layer Protocols
• Applications are computer programs with which the user interact, and which initiate
the data transfer process at the user’s request.
• Services are background programs that provide the connection between the
application layer and the lower layers of the networking model.
• DNS resolves the human legible names used to refer to network resources into
numeric addresses usable by the network