2.2
2-1 LAYERED TASKS
2-1LAYERED TASKS
We use the concept of
We use the concept of layers
layers in our daily life. As an
in our daily life. As an
example, let us consider two friends who communicate
example, let us consider two friends who communicate
through postal mail. The process of sending a letter to a
through postal mail. The process of sending a letter to a
friend would be complex if there were no services
friend would be complex if there were no services
available from the post office.
available from the post office.
Sender, Receiver, and Carrier
Hierarchy
Topics discussed in this section:
Topics discussed in this section:
Each layerat the sending site uses the
services of the layer immediately below it.
The sender at the higher layer uses the
services of the middle layer.
The middle layer uses the services of the
lower layer.
The lower layer uses the services of the
carrier.
2.4
5.
2.5
2-2 THE OSIMODEL
2-2 THE OSI MODEL
Established in 1947, the International Standards
Established in 1947, the International Standards
Organization (
Organization (ISO
ISO) is a multinational body dedicated to
) is a multinational body dedicated to
worldwide agreement on international standards. An ISO
worldwide agreement on international standards. An ISO
standard that covers all aspects of network
standard that covers all aspects of network
communications is the Open Systems Interconnection
communications is the Open Systems Interconnection
(
(OSI
OSI) model. It was first introduced in the late 1970s.
) model. It was first introduced in the late 1970s.
Layered Architecture
Peer-to-Peer Processes
Encapsulation
Topics discussed in this section:
Topics discussed in this section:
An opensystem is a set of protocols
allows any two different systems to communicate
regardless of their underlying architecture.
How to facilitate communication between different
systems without requiring changes to the logic of the
underlying hardware and software?
Flexible, robust, and interoperable model.
Layered framework for the design of network systems that
allows communication between all types of computer
systems.
2.7
2-2 THE OSI MODEL
2-2 THE OSI MODEL
OSI Layered Architecture
Each layer - family of functions distinct from those of the other
layers.
Comprehensive and flexible Architecture.
Allows complete interoperability between incompatible systems.
Within a single machine, each layer calls upon the services of the
layer just below it.
Peer-to-peer processes
Each interface defines the information and services a layer must
provide for the layer above it.
Well-defined interfaces and layer functions
provide modularity to a network.
Specific implementation of its functions can be modified or replaced
without requiring changes to the surrounding layers.
2.9
2.12
Figure 2.4 Anexchange using the OSI model (ENCAPSULATION)
User Support Layers
Network Support
Layers
13.
2.13
2-3 LAYERS INTHE OSI MODEL
2-3 LAYERS IN THE OSI MODEL
In this section we briefly describe the functions of each
In this section we briefly describe the functions of each
layer in the OSI model.
layer in the OSI model.
Physical Layer
Data Link Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
Topics discussed in this section:
Topics discussed in this section:
14.
2.14
The physical layeris responsible for movements of
individual bits from one hop (node) to the next.
Note
Physical Layer
Physical characteristicsof interfaces and transmission medium.
Representation of bits
To be transmitted, bits must be encoded into signals- electrical or
optical.
Data rate
The transmission rate-the number of bits sent each second
Synchronization of bits
sender and receiver (same bit rate) - clocks
Line configuration
Connection of devices to the media (Point to Point, Multipoint)
Physical topology
How devices are connected to make a network
Transmission mode
Direction of transmission between two devices (Simplex, Half/Full
Duplex)
2.16
Coordinates the functions required to
carry a bit stream over a physical medium
17.
2.17
The data linklayer is responsible for moving
frames from one hop (node) to the next.
Note
Data-Link Layer
Makesphysical layer appear error-free to the upper layer
Reliable Link
Framing
divides the stream of bits received from the network layer into manageable data units
Physical addressing
adds a header to the frame to define the sender and/or receiver of the frame
Flow control
Flow of data must not be allowed to overwhelm receiver ; rate of absorption by RX
less than rate at which data produced by TX
Error control
adds reliability to the physical layer by adding mechanisms to detect and retransmit
damaged or lost frames
Trailer added to the end of the frame
Access control
Two or more devices are connected to the same link ?
2.19
2.25
The transport layeris responsible for the delivery
of a message from one process to another.
Note
26.
Transport Layer
Process-to-processdelivery of the entire message
Segmentation and Reassembly
Gets the entire message to the correct process on that computer
Ensures whole message arrives intact and in order
Service-point Addressing (or Port address)
Relationship between packets
Error control and Flow control at the source-to-
destination level
Entire message arrives at the receiving transport layer without
error (damage, loss, or duplication).
Error correction - retransmission
2.26
Session Layer
Establishes,maintains, and synchronizes the
interaction among communicating systems.
Dialog control
Allows two systems (processes) to enter into a dialog.
Allows communication – Half or Full-Duplex
Synchronization
Allows a process to add checkpoints or synchronization
points to data stream
Acknowledge – retransmission – insert checkpoints
2.29
Presentation Layer
Syntaxand Semantics of the information exchanged between
two systems.
Translation
Interoperability between these different encoding methods
Sender-dependent format –> common format
Common format -> receiver-dependent format
Encryption
Ensure privacy
Encrypt data for security purposes. For ex, password encryption.
Decryption – reverse process
Compression
Reduces the number of bits contained in the information
Transmission of multimedia such as text, audio, and video
2.32
Applications –
The InterfaceBetween Human and Data Networks
Explain that applications provide the means for generating
and receiving data that can be transported on the network
36.
Applications –
The InterfaceBetween Human and Data Networks
Explain the role of applications, services and protocols in
converting communication to data that can be transferred
across the data network
Application Layer
Enablesthe user, whether human or software, to
access the network.
Provides user interfaces and support for services
Electronic mail,
Remote file access and transfer,
Shared database management,
Network virtual terminal
Allows a user to log on to a remote host.
Application creates a software emulation of a terminal
File transfer, access, and management.
Mail & Directory services
2.38
2.41
2-4 TCP/IP PROTOCOLSUITE
2-4 TCP/IP PROTOCOL SUITE
The layers in the
The layers in the TCP/IP protocol suite
TCP/IP protocol suite do not exactly
do not exactly
match those in the OSI model. The original TCP/IP
match those in the OSI model. The original TCP/IP
protocol suite was defined as having four layers:
protocol suite was defined as having four layers: host-to-
host-to-
network
network,
, internet
internet,
, transport
transport, and
, and application
application. However,
. However,
when TCP/IP is compared to OSI, we can say that the
when TCP/IP is compared to OSI, we can say that the
TCP/IP protocol suite is made of five layers:
TCP/IP protocol suite is made of five layers: physical
physical,
,
data link
data link,
, network
network,
, transport
transport, and
, and application
application.
.
Physical and Data Link Layers
Network Layer
Transport Layer
Application Layer
Topics discussed in this section:
Topics discussed in this section:
Applications –
The InterfaceBetween Human and Data Networks
Define the separate roles applications, services and protocols
play in transporting data through networks
44.
Applications –
The InterfaceBetween Human and Data Networks
Describe the role protocols play in networking and be able to
identify several message properties that can be defined by a
protocol
45.
The Role ofProtocols in Supporting Communication
Describe the roles of client and server processes in data
networks
46.
The Role ofProtocols in Supporting Communication
List common Application Layers services and protocols
47.
The Role ofProtocols in Supporting Communication
Compare and contrast client server networking with peer-to-
peer networking and peer-to-peer applications
48.
Features, Operation, andUse of Application Layer
Services
Describe the features of the DNS protocol and how this
protocol supports DNS services
49.
Features, Operation, andUse of Application Layer
Services
Describe the features of the HTTP protocol and how this
protocol supports the delivery of web pages to the client
50.
Features, Operation, andUse of Application Layer
Services
Describe the features of the Telnet protocol and identify
several of its uses in examining and managing networks
51.
Internetworking Protocol (IP)
Unreliable and connectionless protocol.
Best Effort Delivery Service
Transports data in packets – Datagrams
No Reordering
No Error Checking
No tracking of routes
2.51
52.
Internet Control MessageProtocol
(ICMP)
Network protocol useful in IP network management and
administration
Control protocol
Errors in the underlying communications of network applications
Availability of Remote hosts, Network congestion
Overall round-trip time of the probe messages (PING)
Facilitate simultaneous transmission of a message to a group of
recipients.
2.52
Internet Group Message Protocol
(IGMP)
53.
Address Resolution Protocol(ARP)
Associate Logical address with Physical address
To find the physical address of the node when its Internet
address is known
Allows host to discover its Internet address when
physical address is only known.
Used when computer is connected to network for first
time.
2.53
Reverse Address Resolution Protocol
(RARP)
54.
Transport Layer
UserDatagram Protocol (UDP) vs Transmission Control
Protocol (TCP)
Process-to-process protocol
TCP
Reliable stream transport protocol (connection-oriented)
UDP
Connection less protocol
Packet delay is more serious than packet loss.
Stream Control Transmission Protocol (SCTP)
Voice over the Internet
Combines the best features of UDP and TCP
2.54
55.
2.55
2-5 ADDRESSING
2-5 ADDRESSING
Fourlevels of addresses are used in an internet employing
Four levels of addresses are used in an internet employing
the TCP/IP protocols:
the TCP/IP protocols: physical
physical,
, logical
logical,
, port
port, and
, and specific
specific.
.
Physical Addresses
Logical Addresses
Port Addresses
Specific Addresses
Topics discussed in this section:
Topics discussed in this section:
2.58
In Figure 2.19a node with physical address 10 sends a
frame to a node with physical address 87. The two nodes
are connected by a link (bus topology LAN). As the
figure shows, the computer with physical address 10 is
the sender, and the computer with physical address 87 is
the receiver.
Example 2.1
2.60
As we willsee in Chapter 13, most local-area networks
use a 48-bit (6-byte) physical address written as 12
hexadecimal digits; every byte (2 hexadecimal digits) is
separated by a colon, as shown below:
Example 2.2
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
2.62
Figure 2.20 showsa part of an internet with two routers
connecting three LANs. Each device (computer or
router) has a pair of addresses (logical and physical) for
each connection. In this case, each computer is
connected to only one link and therefore has only one
pair of addresses. Each router, however, is connected to
three networks (only two are shown in the figure). So
each router has three pairs of addresses, one for each
connection.
Example 2.3
2.64
Figure 2.21 showstwo computers communicating via the
Internet. The sending computer is running three
processes at this time with port addresses a, b, and c. The
receiving computer is running two processes at this time
with port addresses j and k. Process a in the sending
computer needs to communicate with process j in the
receiving computer. Note that although physical
addresses change from hop to hop, logical and port
addresses remain the same from the source to
destination.
Example 2.4