SlideShare a Scribd company logo
1 of 42
Chapter 2
Network Models

2.1

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
2-1 LAYERED TASKS
We use the concept of layers in our daily life. As an
example, let us consider two friends who communicate
through postal mail. The process of sending a letter to a
friend would be complex if there were no services
available from the post office.

Topics discussed in this section:
Sender, Receiver, and Carrier
Hierarchy

2.2
Figure 2.1

2.3

Tasks involved in sending a letter
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.

Topics discussed in this section:
Layered Architecture
Peer-to-Peer Processes
Encapsulation
2.4
Note
ISO is the organization.
OSI is the model.

2.5
Figure 2.2 Seven layers of the OSI model

2.6
Figure 2.3 The interaction between layers in the OSI model

2.7
Figure 2.4 An exchange using the OSI model

2.8

A packet consists of two kinds of data: control information and user data (also known as payload). The
control information provides data the network needs to deliver the user data, for example: source and
destination addresses, error detection codes like checksums, and sequencing information. Typically, control
information is found in packet headers and trailers, with user data in between.
2-3 LAYERS IN THE OSI MODEL
In this section we briefly describe the functions of each
layer in the OSI model.

Topics discussed in this section:
Physical Layer
Data Link Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
2.9
Organization of the layers
Layers 1,2, and 3 physical, data link, and network are
Network Support layers
Layers 5,6 and 7 are session, presentation, and application are
User support layer
Layer 4 transport layer
links the 2 subgroups and ensures that what the lower layers
have transmitted is in a form that the upper layers can use.

2.10
Common Names For Messages
The most common terms that are used for messages are the following:

Packet: This term is considered by many to most correctly refer to a message sent by protocols operating at the network layer of
the OSI Reference Model. So, you will commonly see people refer to “IP packets”. However, this term is commonly also used to
refer generically to any type of message, as I mentioned at the start of this topic.

Datagram: This term is basically synonymous with “packet” and is also used to refer to network layer technologies. It is also
often used to refer to a message that is sent at a higher level of the OSI Reference Model (more often than “packet” is).

Frame: This term is most commonly associated with messages that travel at low levels of the OSI Reference Model. In
particular, it is most commonly seen used in reference to data link layer messages. It is occasionally also used to refer to physical
layer messages, when message formatting is performed by a layer one technology. A frame gets its name from the fact that it is
created by taking higher-level packets or datagrams and “framing” them with additional header information needed at the lower
level.

Cell: Frames and packets, in general, can be of variable length, depending on their contents; in contrast, a cell is most often a
message that is fixed in size. For example, the fixed-length, 53-byte messages sent in Asynchronous Transfer Mode (ATM) are
called cells. Like frames, cells usually are used by technologies operating at the lower layers of the OSI model.
Protocol Data Unit (PDU) and Service Data Unit (SDU): These are the formal terms used in the OSI Reference to describe
protocol messages. A PDU at layer N is a message sent between protocols at layer N. It consists of layer N header information and
an encapsulated message from layer N+1, which is called both the layer N SDU and the layer N+1 PDU. After you stop scratching
your head, see the topic on OSI model data encapsulation for a discussion of this that may actually make sense. J

2.11
Figure 2.5 Physical layer
The physical layer is responsible for movements of
individual bits from one hop (node) to the next.

2.12
Physical layer
The physical layer is also concerned with:
 Physical characteristics of interfaces and medium.
 Representation of the bits ( type of encoding).
Data Rate. The transmission rate
Synchronization of bits.
Line configuration ( point-point, multipoint)
Physical Technology (how devices are connected –network)
 Transmission mode (simplex, h-d, f-d

2.13
Figure 2.6 Data link layer
The data link layer is responsible for moving
frames from one hop (node) to the next.

2.14
Data link layer
The Data link layer is also concerned with:
 Framing (data received from the NW layer into frames)
 Physical addressing ( add header to frame to define sendr/reciever)
Flow Control (data flow rate between S/R to avoid overwhelming)
Error Control mechanism to detect and retransmit damaged or lost frames
Access Control when 2 or more devices are connected through the link, it
determines which device has control over the link at any given time

2.15
Figure 2.7 Hop-to-hop delivery

Router

2.16
Figure 2.8 Network layer
The network layer is responsible for the
delivery of individual packets from
the source host to the destination host.

2.17
Figure 2.9 Source-to-destination delivery

2.18
Network Layer
The Network layer is also concerned with:
 Logical Addressing (data link layer give the data a physical address
locally , if the packet passes the network boundary, we need another
address to distinguish the source and destination received from the NW
layer into frames)
 Routing ( when connecting independent networks or a links to creat
internetworks or a large network, the network layer provide this
mechanism

2.19
Figure 2.10 Transport layer
The transport layer is responsible for the delivery
of a message from one process to another.

2.20
Figure 2.11 Reliable process-to-process delivery of a message

2.21
Transport Layer
The Transport layer is also concerned with:
 Service Point Addressing delivery of messages can be performed
from a process to a process (running program), the transport layer
header include a type of address called SPA( port address), the network
layer get the packet to the correct computer and the transport layer get
the message to the correct process.
Segmentation and reassembly: message is segmented, each segment
has sequence number.
Connection control ( 2 types 1-connection less 2- connection oriented)
Connectionless each segment is treated as independent packet
Connection oriented : connection is performed with the
destination, packets are transferred, connection is terminated.
Flow Control
Error Control
2.22
Figure 2.12 Session layer(network dialogue controller)
The session layer is responsible for dialog
control and synchronization.

2.23
Session Layer
The Session layer is also concerned with:
It establishes, maintains, and synchronizes, the interaction among
communicating system
 Dialog Control allows the communication between two processes to
take place in either half-duplex or full-duplex.
Synchronization : allows a process to add a check points to a stream of
data ( a system sends 2000 page, put a check point every 100 page to
ensure their receiving).

2.24
Figure 2.13 Presentation layer
The presentation layer is responsible for translation,
compression, and encryption.

2.25
Presentation Layer
The Presentation layer is also concerned with:
 Translation Process in different computer are usually exchange
information in the form of character, numbers,..the information is
changed to a stream of bits before transmitted using different codes,
presentation is responsible for the interoperability between different
encoding methods.
Encryption: sensitive information, and also to ensure privacy
Compression Data compression reduces the number of bits contained
in the information.

2.26
Figure 2.14 Application layer
The application layer is responsible for
providing services to the user.

2.27
Application Layer
The application layer is also concerned with:
enables the user( human or software) to access the network,
support for services ( Email, shared data base management,…).
 Network Virtual terminal software version ( created by the
application) of a physical terminal, and allows the user to log on to a
remote host
File transfer , access, management : allows the user to access files in
the remote host.
Mail Services provides distributed data base source and access for
global information about various objects and services.

2.28
Figure 2.15 Summary of layers

2.29
2-4 TCP/IP PROTOCOL SUITE
The layers in the TCP/IP protocol suite do not exactly
match those in the OSI model. The original TCP/IP
protocol suite was defined as having four layers: host-tonetwork, internet, transport, and application. However,
when TCP/IP is compared to OSI, we can say that the
TCP/IP protocol suite is made of five layers: physical,
data link, network, transport, and application.
Topics discussed in this section:
Physical and Data Link Layers
Network Layer
Transport Layer
Application Layer
2.30
Figure 2.16 TCP/IP and OSI model

Internet layer

2.31
2-5 ADDRESSING
Four levels of addresses are used in an internet employing
the TCP/IP protocols: physical, logical, port, and specific.

Topics discussed in this section:
Physical Addresses
Logical Addresses
Port Addresses
Specific Addresses

2.32
Figure 2.17 Addresses in TCP/IP

2.33
Figure 2.18 Relationship of layers and addresses in TCP/IP

2.34
Example 2.1
In Figure 2.19 a 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.

2.35
Figure 2.19 Physical addresses

2.36
Example 2.2
As we will see 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:

07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.

2.37
Example 2.3
Figure 2.20 shows a 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.

2.38
Figure 2.20 IP addresses

2.39
Example 2.4
Figure 2.21 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.40
Figure 2.21 Port addresses

2.41
The physical addresses will change from hop to hop,
but the logical addresses usually remain the same.

As we will see in Chapter 23, a port address is a 16-bit
address represented by one decimal number as shown.

753
A 16-bit port address represented
as one single number.
The physical addresses change from hop to hop,
but the logical and port addresses usually remain the same.

2.42

More Related Content

What's hot (20)

Computer network : models and topologies
Computer network : models and topologiesComputer network : models and topologies
Computer network : models and topologies
 
Ch2 network models
Ch2 network modelsCh2 network models
Ch2 network models
 
Chap 2 network models
Chap 2 network modelsChap 2 network models
Chap 2 network models
 
Chapter 2 - Network Models
Chapter 2 - Network ModelsChapter 2 - Network Models
Chapter 2 - Network Models
 
Osi model34
Osi model34Osi model34
Osi model34
 
Ch 02
Ch 02Ch 02
Ch 02
 
Introduction to Computer Networks
Introduction to Computer NetworksIntroduction to Computer Networks
Introduction to Computer Networks
 
CCN -UNIT 1 PDF Notes for 7th EC
CCN -UNIT 1 PDF Notes for 7th ECCCN -UNIT 1 PDF Notes for 7th EC
CCN -UNIT 1 PDF Notes for 7th EC
 
Introduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link LayerIntroduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link Layer
 
Networking Models
Networking ModelsNetworking Models
Networking Models
 
Chap2
Chap2Chap2
Chap2
 
Protocol
ProtocolProtocol
Protocol
 
Network models and Attacks
Network models and AttacksNetwork models and Attacks
Network models and Attacks
 
Dc2 t1
Dc2 t1Dc2 t1
Dc2 t1
 
OSI model
OSI modelOSI model
OSI model
 
OSI 7 Layer Model
OSI 7 Layer ModelOSI 7 Layer Model
OSI 7 Layer Model
 
Ch 2 network
Ch 2 networkCh 2 network
Ch 2 network
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 
1
11
1
 

Similar to Ch02

ch02 - Network Models- powerpoint-lecture
ch02 - Network Models- powerpoint-lecturech02 - Network Models- powerpoint-lecture
ch02 - Network Models- powerpoint-lecturelaraguler
 
Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing marwan aldulaimy
 
Topology Chapter 2.pptx
Topology Chapter 2.pptxTopology Chapter 2.pptx
Topology Chapter 2.pptxTadeseBeyene
 
Computer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdfComputer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdfabdnazar2003
 
Unit 2.1 - OSI Model.ppt Physical Layer
Unit 2.1 - OSI Model.ppt  Physical LayerUnit 2.1 - OSI Model.ppt  Physical Layer
Unit 2.1 - OSI Model.ppt Physical Layervedantihp21
 
Network_Model. In the field of Computer Networking.ppt
Network_Model. In the field of Computer Networking.pptNetwork_Model. In the field of Computer Networking.ppt
Network_Model. In the field of Computer Networking.pptBlackHat41
 
OSI model
OSI modelOSI model
OSI modelDMMemon
 
Osi model
Osi modelOsi model
Osi modelyjartes
 
CN_ECE_6th SEM_OSI Layer.pptx
CN_ECE_6th SEM_OSI Layer.pptxCN_ECE_6th SEM_OSI Layer.pptx
CN_ECE_6th SEM_OSI Layer.pptxsubhash750762
 
Computer Network Unit-1 ppt
Computer Network Unit-1 pptComputer Network Unit-1 ppt
Computer Network Unit-1 pptvmdharxfr
 

Similar to Ch02 (20)

ch02 - Network Models- powerpoint-lecture
ch02 - Network Models- powerpoint-lecturech02 - Network Models- powerpoint-lecture
ch02 - Network Models- powerpoint-lecture
 
Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing
 
DCN _ unit 2.pptx
DCN _ unit 2.pptxDCN _ unit 2.pptx
DCN _ unit 2.pptx
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Topology Chapter 2.pptx
Topology Chapter 2.pptxTopology Chapter 2.pptx
Topology Chapter 2.pptx
 
Computer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdfComputer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdf
 
Unit 2.1 - OSI Model.ppt Physical Layer
Unit 2.1 - OSI Model.ppt  Physical LayerUnit 2.1 - OSI Model.ppt  Physical Layer
Unit 2.1 - OSI Model.ppt Physical Layer
 
Network_Model. In the field of Computer Networking.ppt
Network_Model. In the field of Computer Networking.pptNetwork_Model. In the field of Computer Networking.ppt
Network_Model. In the field of Computer Networking.ppt
 
The Osi Model
The Osi ModelThe Osi Model
The Osi Model
 
OSI model
OSI modelOSI model
OSI model
 
Dod & osi model
Dod & osi modelDod & osi model
Dod & osi model
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 
CN_ECE_6th SEM_OSI Layer.pptx
CN_ECE_6th SEM_OSI Layer.pptxCN_ECE_6th SEM_OSI Layer.pptx
CN_ECE_6th SEM_OSI Layer.pptx
 
Computer Network Unit-1 ppt
Computer Network Unit-1 pptComputer Network Unit-1 ppt
Computer Network Unit-1 ppt
 
Computer networking
Computer networkingComputer networking
Computer networking
 
Ch02
Ch02Ch02
Ch02
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Network layers
Network layersNetwork layers
Network layers
 
Osi
OsiOsi
Osi
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

Ch02

  • 1. Chapter 2 Network Models 2.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. 2-1 LAYERED TASKS We use the concept of layers in our daily life. As an example, let us consider two friends who communicate through postal mail. The process of sending a letter to a friend would be complex if there were no services available from the post office. Topics discussed in this section: Sender, Receiver, and Carrier Hierarchy 2.2
  • 3. Figure 2.1 2.3 Tasks involved in sending a letter
  • 4. 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. Topics discussed in this section: Layered Architecture Peer-to-Peer Processes Encapsulation 2.4
  • 5. Note ISO is the organization. OSI is the model. 2.5
  • 6. Figure 2.2 Seven layers of the OSI model 2.6
  • 7. Figure 2.3 The interaction between layers in the OSI model 2.7
  • 8. Figure 2.4 An exchange using the OSI model 2.8 A packet consists of two kinds of data: control information and user data (also known as payload). The control information provides data the network needs to deliver the user data, for example: source and destination addresses, error detection codes like checksums, and sequencing information. Typically, control information is found in packet headers and trailers, with user data in between.
  • 9. 2-3 LAYERS IN THE OSI MODEL In this section we briefly describe the functions of each layer in the OSI model. Topics discussed in this section: Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer 2.9
  • 10. Organization of the layers Layers 1,2, and 3 physical, data link, and network are Network Support layers Layers 5,6 and 7 are session, presentation, and application are User support layer Layer 4 transport layer links the 2 subgroups and ensures that what the lower layers have transmitted is in a form that the upper layers can use. 2.10
  • 11. Common Names For Messages The most common terms that are used for messages are the following: Packet: This term is considered by many to most correctly refer to a message sent by protocols operating at the network layer of the OSI Reference Model. So, you will commonly see people refer to “IP packets”. However, this term is commonly also used to refer generically to any type of message, as I mentioned at the start of this topic. Datagram: This term is basically synonymous with “packet” and is also used to refer to network layer technologies. It is also often used to refer to a message that is sent at a higher level of the OSI Reference Model (more often than “packet” is). Frame: This term is most commonly associated with messages that travel at low levels of the OSI Reference Model. In particular, it is most commonly seen used in reference to data link layer messages. It is occasionally also used to refer to physical layer messages, when message formatting is performed by a layer one technology. A frame gets its name from the fact that it is created by taking higher-level packets or datagrams and “framing” them with additional header information needed at the lower level. Cell: Frames and packets, in general, can be of variable length, depending on their contents; in contrast, a cell is most often a message that is fixed in size. For example, the fixed-length, 53-byte messages sent in Asynchronous Transfer Mode (ATM) are called cells. Like frames, cells usually are used by technologies operating at the lower layers of the OSI model. Protocol Data Unit (PDU) and Service Data Unit (SDU): These are the formal terms used in the OSI Reference to describe protocol messages. A PDU at layer N is a message sent between protocols at layer N. It consists of layer N header information and an encapsulated message from layer N+1, which is called both the layer N SDU and the layer N+1 PDU. After you stop scratching your head, see the topic on OSI model data encapsulation for a discussion of this that may actually make sense. J 2.11
  • 12. Figure 2.5 Physical layer The physical layer is responsible for movements of individual bits from one hop (node) to the next. 2.12
  • 13. Physical layer The physical layer is also concerned with:  Physical characteristics of interfaces and medium.  Representation of the bits ( type of encoding). Data Rate. The transmission rate Synchronization of bits. Line configuration ( point-point, multipoint) Physical Technology (how devices are connected –network)  Transmission mode (simplex, h-d, f-d 2.13
  • 14. Figure 2.6 Data link layer The data link layer is responsible for moving frames from one hop (node) to the next. 2.14
  • 15. Data link layer The Data link layer is also concerned with:  Framing (data received from the NW layer into frames)  Physical addressing ( add header to frame to define sendr/reciever) Flow Control (data flow rate between S/R to avoid overwhelming) Error Control mechanism to detect and retransmit damaged or lost frames Access Control when 2 or more devices are connected through the link, it determines which device has control over the link at any given time 2.15
  • 16. Figure 2.7 Hop-to-hop delivery Router 2.16
  • 17. Figure 2.8 Network layer The network layer is responsible for the delivery of individual packets from the source host to the destination host. 2.17
  • 19. Network Layer The Network layer is also concerned with:  Logical Addressing (data link layer give the data a physical address locally , if the packet passes the network boundary, we need another address to distinguish the source and destination received from the NW layer into frames)  Routing ( when connecting independent networks or a links to creat internetworks or a large network, the network layer provide this mechanism 2.19
  • 20. Figure 2.10 Transport layer The transport layer is responsible for the delivery of a message from one process to another. 2.20
  • 21. Figure 2.11 Reliable process-to-process delivery of a message 2.21
  • 22. Transport Layer The Transport layer is also concerned with:  Service Point Addressing delivery of messages can be performed from a process to a process (running program), the transport layer header include a type of address called SPA( port address), the network layer get the packet to the correct computer and the transport layer get the message to the correct process. Segmentation and reassembly: message is segmented, each segment has sequence number. Connection control ( 2 types 1-connection less 2- connection oriented) Connectionless each segment is treated as independent packet Connection oriented : connection is performed with the destination, packets are transferred, connection is terminated. Flow Control Error Control 2.22
  • 23. Figure 2.12 Session layer(network dialogue controller) The session layer is responsible for dialog control and synchronization. 2.23
  • 24. Session Layer The Session layer is also concerned with: It establishes, maintains, and synchronizes, the interaction among communicating system  Dialog Control allows the communication between two processes to take place in either half-duplex or full-duplex. Synchronization : allows a process to add a check points to a stream of data ( a system sends 2000 page, put a check point every 100 page to ensure their receiving). 2.24
  • 25. Figure 2.13 Presentation layer The presentation layer is responsible for translation, compression, and encryption. 2.25
  • 26. Presentation Layer The Presentation layer is also concerned with:  Translation Process in different computer are usually exchange information in the form of character, numbers,..the information is changed to a stream of bits before transmitted using different codes, presentation is responsible for the interoperability between different encoding methods. Encryption: sensitive information, and also to ensure privacy Compression Data compression reduces the number of bits contained in the information. 2.26
  • 27. Figure 2.14 Application layer The application layer is responsible for providing services to the user. 2.27
  • 28. Application Layer The application layer is also concerned with: enables the user( human or software) to access the network, support for services ( Email, shared data base management,…).  Network Virtual terminal software version ( created by the application) of a physical terminal, and allows the user to log on to a remote host File transfer , access, management : allows the user to access files in the remote host. Mail Services provides distributed data base source and access for global information about various objects and services. 2.28
  • 29. Figure 2.15 Summary of layers 2.29
  • 30. 2-4 TCP/IP PROTOCOL SUITE The layers in the TCP/IP protocol suite do not exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four layers: host-tonetwork, internet, transport, and application. However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and application. Topics discussed in this section: Physical and Data Link Layers Network Layer Transport Layer Application Layer 2.30
  • 31. Figure 2.16 TCP/IP and OSI model Internet layer 2.31
  • 32. 2-5 ADDRESSING Four levels of addresses are used in an internet employing the TCP/IP protocols: physical, logical, port, and specific. Topics discussed in this section: Physical Addresses Logical Addresses Port Addresses Specific Addresses 2.32
  • 33. Figure 2.17 Addresses in TCP/IP 2.33
  • 34. Figure 2.18 Relationship of layers and addresses in TCP/IP 2.34
  • 35. Example 2.1 In Figure 2.19 a 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. 2.35
  • 36. Figure 2.19 Physical addresses 2.36
  • 37. Example 2.2 As we will see 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: 07:01:02:01:2C:4B A 6-byte (12 hexadecimal digits) physical address. 2.37
  • 38. Example 2.3 Figure 2.20 shows a 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. 2.38
  • 39. Figure 2.20 IP addresses 2.39
  • 40. Example 2.4 Figure 2.21 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.40
  • 41. Figure 2.21 Port addresses 2.41
  • 42. The physical addresses will change from hop to hop, but the logical addresses usually remain the same. As we will see in Chapter 23, a port address is a 16-bit address represented by one decimal number as shown. 753 A 16-bit port address represented as one single number. The physical addresses change from hop to hop, but the logical and port addresses usually remain the same. 2.42