Chapter 2 6
Chapter 2 6
Network Models
2.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
2-1 LAYERED TASKS
2.2
Figure 2.1 Tasks involved in sending a letter
2.3
Figure 2.2 Seven layers of the OSI model
2.4
2-1 Internet layers
2.5
2-1 Internet layers
2.6
Figure 2.3 The interaction between layers in the OSI model
2.7
2-2 THE OSI MODEL
Established in 1947, the International Standards
Organization (ISO) is a multinational body dedicated to
worldwide agreement on international standards. An ISO
standard that covers all aspects of network
communications is the Open Systems Interconnection
(OSI) model. It was first introduced in the late 1970s.
2.8
Figure 2.4 An exchange using the OSI model
2.9
2-1 Internet layers
2.11
Note
2.12
2-3 LAYERS IN THE OSI MODEL
2.13
1. Physical layer
Note
2.14
Figure 2.5 Physical layer
2.15
Duties Of physical Layer
Physical characteristic of interfaces and media:
It defines the characteristic of the interface between devices and
media. It also define the type of transmission media
Representation of bits:
The bit stream must be encoded into signals. It defines the type of
representation ( how 0, 1 are changed to signal).
Data rate:
It defines the number of bits sent per second and also the duration
of bits.
Synchronization of bits
The sender and receiver must be use the same bit rate also the
receiver clock must be synchronized
2.16
Duties Of physical Layer
Line configuration
Physical layer is concerned with the connection of devices to the
media ( point-to point or multipoint)
Physical topology:
•How devices connected to make a network
•Devices can connected by using Star, mesh , bus, ring or
hybrid topology
Transmission mode:
•It defines the direction of transmission between two devices
(simplex, half-duplex, or full duplex)
2.17
2. Data Link Layer( hop to hop delivery)
Note
2.18
Figure 2.6 Data link layer
2.19
Duties Of Data Link Layer
Framing:
Divide the stream of bits received from network layer into data
units called frames
Physical addressing:
•It adds a header to the frame to define the sender and receiver of
the frame.
•If the frame for a system outside the sender’s network the
receiver address: is the address of the connecting device that
connects the network to next one (Router/switch).
Flow control:
It imposes a flow control mechanism , if the data rate at the
receiver is less than produced by sender the data link layer
imposes a flow control to avoid overwhelming the receiver
2.20
Duties Of Data Link Layer
Error control:
•Add mechanisms to detect and retransmit damaged or lost
frames.
•Prevent also duplication of frames.
•Error control is normally achieved through a trailer added to the
end of frame.
Access control:
•When two or more devices than one devices are connected to the
same link, data link layer protocols are necessary to determine
which device has control over the link at given time.
2.21
Figure 2.7 Hop-to-hop delivery
2.22
Physical address
2.23
Physical address
Example
A node with physical address 10 sends a frame to a node with
physical address 87. The two nodes are connected by a link. At
the data link level this frame contains physical addresses in
the header. These are the only addresses needed. The rest of
the header contains other information needed at this level. The
trailer usually contains extra bits needed for error detection
2.24
Physical address
2.25
3. Network Layer( hop to hop delivery)
Note
• The network layer is responsible for the delivery of
individual packets from the source host to the destination
host across multiple network.
• If two system are connected to the same link (network),
no need for this layer.
2.26
Figure 2.8 Network layer
2.27
Duties Of Network Layer
Logical addressing
•In contrast to physical addressing implemented by data link layer
handling the addressing problem locally. Net work layer adds
unique identifier ( IP or logical address) to the packet.
•These unique identifier( as tel. no, each tel. has unique number )
enable special devices called router to make sure the packet get to
correct system.
Routing:
provide the routing mechanism for the router which route the
packet to their final destination.
Routers : devices used when independent networks are connected
to create an internetworking ( network of networks)
2.28
Figure 2.9 Source-to-destination delivery
2.29
Logical address (IP)
Logical address (IP) The physical addresses will change from hop
to hop, but the logical addresses remain the same.
2.30
Example2:
2.31
Example2:
2.32
3. Transport Layer(process to process delivery)
Note
2.33
Figure 2.10 Transport layer
2.34
Duties Of transport Layer
Port addressing (Service-point addressing)
•Computer often run several process ( running programs) at the
same time, so the process to process delivery means delivery from
a specific process on a computer to specific process to the other.
•The transport layer header must include Port address
•Port address: 16-bit addresses represented by decimal number
range from 0-65535 to choose among multiple processes on the
destination host
•Destination port No is needed for delivery
•Source port No is needed for replay.
2.35
IP (logical address )and port address play different roles
in selecting the final destination
IP: defines the host among the different hosts in the world
After host is selected , the port address defines one of the
processes on this particular host.
2.36
Duties Of transport Layer
3.Flow control:
Like the data link layer, transport layer responsible for flow
control. Flow control at this layer is performed end to end rather
than across a single link.
2.37
Duties Of transport Layer
4. Error control
•Error control at this layer is performed process-to-process
rather than across a single link
•The sending transport layer makes sure that the entire
message arrives at the receiving transport layer without error
(damage, loss or duplicated).
•Error correction is usually achieved through retransmission
2.38
Duties Of transport Layer
5. Connection control
The transport layer can be either connection less or
connection oriented
1. Connection oriented
• Makes a connection with the transport layer at the destination
machine first before delivering the packers.
• When the connection established a sequence of packets from
source to the destination can be sent one after another on the same
path and in sequential order.
•When all packets of message have been delivered, the connection
is terminated
This makes the sending transport layer ensure that the message
arrives at the receiving transport layer without error
( damage, loss or duplication
2.39
Duties Of transport Layer
2.40
Figure 2.11 Reliable process-to-process delivery of a message
2.41
Example
The following figure shows two 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.
2.42
2.43
ADDRESSING
Four levels of addresses are used in an internet employing the TCP/IP protocols:
physical , logical , port and Specific addresses :
examples:
•e-mail addresses ( Lhajr@yahoo.com) to define the recipient of an e-mail
•URL addresses ( www.ksu.com) to find a document on the world wide web
The addresses get changed to the corresponding port and logical addresses by the
sending computer
2.44
5. Session Layer
Note
2.45
Figure 2.12 Session layer
2.46
Duties Of Session Layer
1. Dialog control:
Allows two systems to enter into dialog. It allows communication
between two processes in either half or full duplex.
2. Synchronization (Recovery)
Allow a process to add check points (Synchronization point)
into a stream of data . So that if a failure of some sort occurs
between checkpoints, the layer can retransmit all data since the
last checkpoint.
2.47
6. Presentation Layer
Note
2.48
Figure 2.13 Presentation layer
2.49
Duties Of Presentation Layer
1.Translation
At the sender it changes the information from its sender –
dependent format into common format. At receiving, changes
the common format into its receiver-dependent format
2. Encryption-Decryption
To ensure privacy and security
3. Compression
Data compression reduces the number of bits contained in the
information. It is important in the transmission of multimedia
such as audio or video
2.50
7 . Application Layer
Note
2.51
Figure 2.14 Application layer
2.52
Application Layer
2.53
OSI model
2.54
Figure 2.15 Summary of layers
2.55
2-4 TCP/IP PROTOCOL SUITE
2.57
Example 2.2
07:01:02:01:2C:4B
2.58