Docsity

Application Layer Protocols: A Comprehensive Guide for Network Engineers, Study notes of Computer Communication Systems

Partial preview of the text

Download Application Layer Protocols: A Comprehensive Guide for Network Engineers and more Study notes Computer Communication Systems in PDF only on Docsity!

Application Layer Protocols

Unit 3.

Learning Outcomes

Learners will be able to: Describe the services offered by the application layer to other layers Identify application layer protocols Describe the roles of application layer protocols Compare and contrast application layer protocols

Telnet

Provides terminal emulation Comes with nearly all vendor implementations of TCP/IP Open standard Supported by wide range of workstations Not a secure protocol

Telnet Communications

Options

7- or 8-bit compatibility Use of different terminal nodes Character echoing at sending and receiving ends Synchronized communications Transmission of character streams or single characters Flow control

The TELNET Protocol

 Reference: Request for Comments ( RFC ) - RFC

TCP connection data and control over the same connection. Network Virtual Terminal (terminal independence)  (^) intermediate representation of a generic terminal.  (^) provides a standard language for communication of terminal control functions.

Network Virtual Terminal

NVT NVT

Server

Process

TCP TCP

Control Functions

TELNET includes support for a series of control functions commonly supported by servers. This provides a uniform mechanism for communication of (the supported) control functions.

Control Functions

Interrupt Process (IP) suspend/abort process. Abort Output (AO) send no more output to user’s terminal. Are You There (AYT) check to see if system is still running. Erase Character (EC) delete last character sent Erase Line (EL) delete all input in current line.

Playing with TELNET

You can use the telnet program to play with the TELNET protocol.  telnet is a generic TCP client. Sends whatever you type to the TCP socket. Prints whatever comes back through the TCP socket Useful for testing TCP servers (ASCII based protocols). Many Unix systems have these servers running (by default):  echo port 7 discard port 9  daytime port 13 chargen port 19

telnet hostname port

telnet amele-2.cse.unr.edu 7 Trying 134.197.40.246... Connected to amele-2.cse.unr.edu (134.197.40.246). Escape character is '^]'. Hi mehmet Hi mehmet stop it stop it ^] telnet> quit Connection closed.

FTP

FTP – File transfer protocol. Commonly used

over the Internet.

Numerous FTP servers over the world allow

people anywhere on the Internet to log in

and download whatever files they have

placed on the FTP server, or upload other

files.

Uses two TCP ports (20 for data channel and

21 for control channel) – this is in active

mode.

In passive FTP mode, it uses 21 for the

control channel, and an temporary

(ephemeral) port for the data channel.

Commonly used on the Internet

Not a secure protocol

From the RFC

“HTTP is an application-level protocol with the lightness and speed necessary for distributed, hypermedia information systems.” Transport Independence The HTTP protocol generally takes place over a TCP connection, but the protocol itself is not dependent on a specific transport layer.

Request - Response

HTTP has a simple structure: client sends a request server returns a reply. HTTP can support multiple request-reply exchanges over a single TCP connection. The “well known” TCP port for HTTP servers is port 80. Other ports can be used as well... 8080, 81