Cse 317 1 PDF
Cse 317 1 PDF
Chapter - 1
1.1 Uses of Computer Networks
• Business Applications
(e.g. resource sharing)
Client-Server Model
1.1 Uses of Computer Networks
• Business Applications
(e.g. resource sharing)
Client-Server Model
• Bluetooth configuration
• Wireless LAN
Network Software
Protocol Hierarchies
• To reduce their design complexity, most
networks are organized as a stack of
layers or levels.
• The number of layers,
The name of each layer,
The contents of each layer, and
The function of each layer differ from
network to network.
A five-layer network
Protocol Hierarchies
• In a sense, each layer is a kind of virtual
machine, offering certain services to the
layer above it.
• Layer n on one machine carries on a
conversation with layer n on another
machine.
• The rules and conventions used in this
conversation are collectively known as the
layer n protocol.
An analogy
Example information flow
Connection-Oriented Services
• modeled after the telephone system
• it acts like a tube
• In most cases the order is preserved
• conduct a negotiation about parameters
• situation in which a reliable connection-
oriented service is appropriate is:
– file transfer
– digitized voice traffic
– transmitting a video conference
Connectionless Services
• is modeled after the postal system
• each message carries the full destination
address
• each one is routed through the system
independent of all the others
• … first one sent can be delayed so that
the second one arrives first
• For example: electronic mail, database
query, etc …
Reference Models
• OSI reference model
• TCP/IP reference model
The OSI Reference Model
• Called the ISO OSI (Open Systems
Interconnection) Reference Model
• Because it deals with connecting open
systems—that is, systems that are open
for communication with other systems.
The OSI Reference Model
The OSI Reference Model
• The principles that were applied to arrive
at the seven layers:
1. A layer should be created where a different
abstraction is needed.
2. Each layer should perform a well-defined
function.
3. The function of each layer should be chosen
with an eye toward defining internationally
standardized protocols.
The OSI Reference Model
• The principles that were applied to arrive
at the seven layers:
4. The layer boundaries should be chosen to
minimize the information flow across the
interfaces.
5. The number of layers should be large enough
that distinct functions need not be thrown
together in the same layer out of necessity
and small enough that the architecture does
not become unwieldy.
The OSI Reference Model
• The Physical Layer
–…
–…
• The Data Link Layer
–…
• The Network Layer
–…
The TCP/IP reference model
The TCP/IP reference model
• The Internet Layer:
• Its job is to permit hosts to inject packets
into any network and have them travel
independently to the destination
• The internet layer defines an official
packet format and protocol called IP
(Internet Protocol).
The TCP/IP reference model
• The Transport Layer:
• It is designed to allow peer entities on the
source and destination hosts to carry on a
conversation,
• Two end-to-end transport protocols have
been defined
– TCP (Transmission Control Protocol)
– UDP (User Datagram Protocol)
The TCP/IP reference model
• TCP (Transmission Control Protocol)
– reliable connection-oriented protocol that allows a byte
stream originating on one machine to be delivered
without error on any other machine in the internet.
– It fragments the incoming byte stream into discrete
messages and passes each one on to the internet
layer.
– At the destination, the receiving TCP process
reassembles the received messages
– TCP also handles flow control to make sure a fast sender
cannot swamp a slow receiver with more messages than
it can handle.
The TCP/IP reference model
• UDP (User Datagram Protocol)
• unreliable, connectionless protocol
• Widely used for one-shot, client-server-
type request-reply queries and
applications in which prompt delivery is
more important than accurate delivery,
such as transmitting speech or video.
The TCP/IP reference model
• The Application Layer
• It contains all the higher-level protocols.
• …
The TCP/IP reference model
• The Host-to-Network Layer
• The TCP/IP reference model does not
really say much about what happens
here, except to point out that the host has
to connect to the network using some
protocol so it can send IP packets to it.
• This protocol is not defined and varies
from host to host and network to network.
Protocols and networks in the
TCP/IP model
A Comparison of the OSI and
TCP/IP Reference Models
• Self
Architecture of the Internet