7TCPIP
7TCPIP
7TCPIP
Internetworking
• The main design goal of TCP/IP was to build an interconnection of
networks, referred to as an internetwork, or internet, that provided
universal communication services over heterogeneous physical
networks.
• Each physical network has its own technology-dependent communication interface, in the form of a
programming interface that provides basic communication functions (primitives).
• TCP/IP provides communication services that run between the programming interface of a physical network and
user applications.
• It enables a common interface for these applications, independent of the underlying physical network.
• The architecture of the physical network is therefore hidden from the user and from the developer of
the application. The application need only code to the standardized communication abstraction to be
able to function under any type of physical network and operating platform.
Simplified File Transfer Architecture
File Transfer Application Layer: Application specific commands, passwords and the actual file(s) –
high level data
Communications Service Module: reliable transfer of those data – error detection, ordered delivery
of data packets, etc.
Network Module: actual transfer of data and dealing with the network – if the network changes,
only this module is affected, not the whole system
7
Network Access Layer
• Exchange of data between the computer and the network
8
Transport Layer
• Reliable data exchange
• to make sure that all the data packets arrived in the same order in which they
are sent out
• Packets not received or received in error are retransmitted
• Independent of network being used
• Independent of application
9
Application Layer
• Support for different user applications
e.g. e-mail, file transfer
10
Addressing Requirements
• Two levels of addressing required
• Each computer needs unique network address
• Each application on a (multi-tasking) computer needs a unique
address within the computer
• The service access point or SAP
• The port number in TCP/IP protocol stack
11
Protocol Architectures and Networks
or ports
12
Operation of a Protocol Architecture
Transport Transport
Header Header
Network Network
Header Header
(Network PDU)
13
TCP/IP Protocol Suite
The TCP/IP Model, or Internet Protocol Suite, describes a set of general design
guidelines and implementations of specific networking protocols to enable
computers to communicate over a network.
The TCP/IP protocol suite was developed before the OSI model was published. As a
result, it does not use the OSI model as a reference. An early architectural
document, RFC 1122, emphasizes architectural principles over layering.
End-to-End Principle: This principle has evolved over time. Its original expression
put the maintenance of state and overall intelligence at the edges, and assumed
the Internet that connected the edges retained no state and concentrated on speed
and simplicity. Real-world needs for firewalls, network address translators, web
content caches and the like have forced changes in this principle.
• Robustness Principle: In general, an implementation must be
conservative in its sending behavior, and liberal in its receiving
behavior.
• That is, it must be careful to send well-formed datagrams, but must
accept any datagram that it can interpret.
RFC 1122 defines a four-layer model
TCP/IP Protocol Suite
Application (process-to-process) Layer
• An application layer is the topmost layer in the TCP/IP model.
• This is the scope within which applications create user data and communicate
this data to other processes or applications on another or the same host.
• The communications partners are often called peers.
• It is responsible for handling high-level protocols, issues of representation.
• This layer allows the user to interact with the application.
Application Layer of TCP/IP Model encompasses same functions as these OSI Model
layers : Application, Presentation, Session
Application Layer
• This layer defines the networking methods with the scope of the local network link
on which hosts communicate without intervening routers.
• It is the combination of the Physical layer and Data Link layer defined in the OSI
reference model. It performs much of the job of the MAC portion of the Data Link
and Physical layers of the OSI Model
• It defines how the data should be sent physically through the network.
• This layer describes the protocols used to describe the local network topology and
the interfaces needed to affect transmission of Internet Layer datagrams to next-
neighbor hosts.
• TCP/IP protocol suite relies on standards created by the various standards
organizations concerning how to encode bits onto media to do the work on this layer
• This layer is mainly responsible for the transmission of the data
between two devices on the same network.
• The functions carried out by this layer are encapsulating the IP
datagram into frames transmitted by the network and mapping of IP
addresses into physical addresses.
• The protocols used by this layer are ethernet, token ring, FDDI, X.25,
frame relay.