Protocols
Protocols
TCP/IP
Transmission Control Protocol/Internet Protocol (TCP/IP) is
an industry standard protocol stack that is used for
communication between Windows based computers. TCP/IP is
designed for communication across large-scale networks. The
tasks involved in using TCP/IP in the communication process are
distributed between protocols that are organized into four
distinct layers of the TCP/IP stack.
EXAMPLE:
1.Writing a letter in a language that the recipient can understand. Then
the data is associated with the destination application and computer,
much like how you address a letter to a recipient and household.
2.The address of the destination computer is then added to the data,
just as the address of the recipient is specified on the letter.
3.After these activities are performed, the data and additional
information, including a request for confirmation of its delivery, are
sent over the network to the destination.
The network medium used for transmitting the data is independent of
the above activities, just as the means of transport that transfers the
letter from one post office to another is independent of the letters
content or address.
The TCP/IP protocol layers:
RFC 959
uses two TCP Ports
one for control
one for data transfers
command-response protocol
control port uses telnet protocol to negotiate
session
Why do we need a FTP Service?
Client Server
I would like to open a
connection OK
Display response
Close connection
OK
HTTP is an application layer protocol
The Web client and the Web server are application programs
Application layer programs do useful work like retrieving Web pages,
sending and receiving email or transferring files
Lower layers take care of the communication details
The client and server send messages and data without knowing
anything about the communication network
Hypertext Transfer Protocol over Secure Socket Layer
(HTTPS)
HTTPS is the use of Secure Sockets Layer (SSL) as a sub-
layer under the regular HTTP in the application layer. It
is also referred to as Hypertext Transfer Protocol over
Secure Socket Layer (HTTPS) or HTTP over SSL, in
short.
HTTPS is a Web protocol developed by Netscape, and it
is built into its browser to encrypt and decrypt user page
requests as well as the pages that are returned by the
Web server. HTTPS uses port 443 instead of HTTP port
80 in its interactions with the lower layer, TCP/IP
The OSI Model:
Network Layer
this layer provides the definition for the connection of two dissimilar
networks.
Transport Layer
this layer allows data to be broken into smaller packages for data
to be distributed and addressed to other nodes (workstations).
Session Layer
this layer helps out with the task to carry information from one
node (workstation) to another node (workstation). A session
has to be made before we can transport information to another
computer.
Presentation Layer
this layer is responsible to code and decode data sent to the
node.
Application Layer
this layer allows you to use an application that will
communicate with say the operation system of a server. A good
example would be using your web browser to interact with the
operating system on a server such as Windows NT, which in
turn gets the data you requested.
OSI comparision with TCP/IP Protocol Stack
FTP, HTTP,
POP3, IMAP,
7 Application data
telnet, SMTP,
DNS, TFTP
6 data
Presentation 4 Application
5 data
Session
4
Transport 3 Transport segments TCP, UDP
3
Network 2 Internet packets IP
2
Data Link frames
1 Network Access
1
Physical bits
TCP/IP Reference Model OSI Reference Model
1
Defined after the advent of Internet Defined before advent of internet
2
Service interface and protocols were not clearly Service interface and protocols are clearly
distinguished before distinguished
3
TCP/IP supports Internet working Internet working not supported
4
Loosely layered Strict layering
5
Protocol Dependent standard Protocol independent standard
6
More Credible Less Credible
7
TCP reliably delivers packets, IP does not reliably
All packets are reliably delivered
deliver packets