WEEK-IV
TCP/IP NETWORKING MODEL
HISTORY LEADING TO TCP/IP
Overview of the TCP/IP Networking Model
What Does TCP/IP Do?
What is the Difference between TCP and IP?
How Does the TCP/IP Model Work?
Layers of TCP/IP Model
TCP/IP Application layer
The functions of the application layer are −
HTTP Overview
Features
HTTP Protocol Mechanism
HTTP works entirely through HTTP messages. There are two types of HTTP messages:
Request: These are messages sent by the client to the server to trigger an action
Response: These are messages sent by the server to the client in response to the request message
Client sends HTTP request messages to the server
Server receives the HTTP request
Server returns an HTTP response message to the client
Server does some processing for the request
Client receives the HTTP request
Fig: Request/Response Cycle
TCP/IP Transport Layer
The functions of the transport layer are :
TCP Error Recovery Basics
Same-Layer and Adjacent-Layer Interaction
The adjacent-layer interaction
The same-layer interaction
Same-layer interaction | Adjacent-layer interaction |
It happens between different computers. | It happens on the same computer. |
It happens between the same layers. | It happens between the different layers. |
Services and devices use it to encode and decode data. | Services and devices use it to request other services to provide specific functions. |
Differences between the adjacent-layer and same-layer interactions
TCP/IP Network Layer
Internet Protocol
Internet Protocol and Postal Service
Internet Protocol
Postal Service
Internet Protocol Addressing Basics
TCP/IP Network: Three Routers with IP Addresses Grouped
IP ROUTING BASICS
Basic Routing Example
(This logic is much like a user or me sending all our letters by putting them in a nearby mailbox.)
TCP/IP LINK LAYER (DATA LINK PLUS PHYSICAL)
Larry Using Ethernet to Forward an IP Packet to Router R1
TCP/IP MODEL AND TERMINOLOGY
.
Link versus Data Link and Physical Layers
DATA ENCAPSULATION TERMINOLOGY
Step 1. Create and encapsulate the application data with any required application layer headers. For example, the HTTP OK message can be returned in an HTTP header, followed by part of the contents of a web page.
Step 2. Encapsulate the data supplied by the application layer inside a transport layer header. For end-user applications, a TCP or UDP header is typically used.
Step 3. Encapsulate the data supplied by the transport layer inside a network layer (IP) header. IP defines the IP addresses that uniquely identify each computer.
Step 4. Encapsulate the data supplied by the network layer inside a data link layer header and trailer. This layer uses both a header and a trailer.
Step 5. Transmit the bits. The physical layer encodes a signal onto the medium to transmit the frame.
Five Steps of Data Encapsulation in TCP/IP
NAMES OF TCP/IP MESSAGES
The figure shows each layer along with the associated term.
Perspectives on Encapsulation and “Data”