tcp ip and http

15
Overview of Protocols TCP/IP and HTTP BSIT (Hons.), Semester-V UNIVERSITY OF EDUCATION, Bank road Campus, Lahore [email protected]

Upload: sana-naseer

Post on 20-Jun-2015

159 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Tcp ip and http

Overview of Protocols

TCP/IP and HTTP

BSIT (Hons.), Semester-VUNIVERSITY OF EDUCATION, Bank road Campus, [email protected]

Page 2: Tcp ip and http

TCP/IPTransmission Control Protocol / Internet Protocol

Page 3: Tcp ip and http

What is a Protocol?

• A protocol is a collection of rules and procedures for two computers to exchange information

• Protocol also defines the format of data that is being exchanged

Page 4: Tcp ip and http

What is a TCP/IP?

• TCP/IP stands for Transmission Control Protocol / Internet Protocol, developed to allow cooperating computers to share resources / Information across a network

• A highly standardized protocol used widely on the Internet

• TCP/IP protocols map to a four-layer conceptual model known as the DARPA (Defense Advanced Research Projects Agency) model 

Page 5: Tcp ip and http

TCP/IP Layers:

Because TCP/IP was developed prior to the OSI 7-layer mode, it does not have 7 layers but only 4 layers…

Application

Application Presentation

Session

Transport Host-to-Host/ Transport

Network Internet

Data Link Network Interface

Physical

OSI 7-layer TCP/IP Protocol Suite

Page 6: Tcp ip and http

Continue…

The layers of TCP/IP protocol suite contain relatively independent protocols that can be mixed & matched depending on the need of the system.

Application

Application SMTP, PTP, HTTP, DNS, SNMP, TELNET…Presentation

Session

TransportHost-to-Host/ Transport

SCTP, TCP, UDP

Network Internet / Network IP, ICMP, IGMP, RARP, ARP

Data Link Network Interface Ethernet, Token Ring,

Frame Relay, ATMPhysical

OSI 7-layer TCP/IP Protocol Suite

Page 7: Tcp ip and http
Page 8: Tcp ip and http

Network Interface Layer: (Physical & Data Link)

TCP/IP does not define any specific protocol at this layer. It supports all the standards & proprietary protocols.

– Ethernet– Token Ring– Frame Relay– ATM (Asynchronous Transfer Mode)

Page 9: Tcp ip and http

Internet / Network Layer: (Network)

At this layer, TCP/IP supports the Internetworking Protocols (IP) uses four supporting protocols:

– ARP (Address Resolution Protocol)

– RARP (Reverse Address Resolution Protocol)

– ICMP (Internet Control Message Protocol)

– IGMP (Internet Group Message Protocol)

Page 10: Tcp ip and http

Transport / H-H Layer: (Transport)

At Transport / Host-to-Host layer, TCP/IP is working with 3 Protocols that are responsible for delivery of a message from one device to another:

– UDP (User Datagram Protocol)

– TCP (Transmission Control Protocol)

– SCTP (Stream Control Transmission Protocol)

Page 11: Tcp ip and http

Application Layer: (Application, Presentation & Session)

This layer is equivalent to the upper three layers of OSI model:

– HTTP (Hyper Text Transfer Protocol)

– FTP (File Transfer Protocol)

– SMTP (Simple Mail Transfer Protocol)

– DNS (Domain Name System)

– RIP (Routing Information Protocol)

– SNMP (Simple Network Management Protocol)

– …

Page 12: Tcp ip and http

HTTPHyper Text Transfer Protocol

Page 13: Tcp ip and http

HTTP?

• HTTP stands for Hyper Text Transfer Protocol

• These are the rules governing the conversation between a Web client and a Web server

Page 14: Tcp ip and http

HTTP?

• HTTP uses the services of TCP

• HTTP itself is a stateless Protocol:

– Client and server establish TCP connection

– Client requests content

– Server responds with requested content

– Client and server close connection (usually)

WebserverWeb

server

HTTP request

HTTP response(content)

Webclient

(browser)

Webclient

(browser)

Page 15: Tcp ip and http

Any Question?