際際滷

際際滷Share a Scribd company logo
CompTIA Network +
Chapter 2
Dissecting the OSI Model
Objectives
 What is the purpose of a Network model?
 What are the layers of the OSI model?
 What are the characteristics of each layer of the
OSI model?
 How does the TCP/IP stack compare to the OSI
model?
 What are the well-known TCP and/or UDP port
numbers for a given collection of common
applications
The Purpose of Reference Models
 It breaks network communication into smaller, simpler parts that
are easier to develop.
 It facilitates standardization of network components to allow
multiple-vendor development and support.
 It allows different types of network hardware and software to
communicate with each other.
 It prevents changes in one layer from affecting the other layers
so that they can develop more quickly.
 It breaks network communication into smaller parts to make
learning it easier to understand.
Warriors of the Net
The OSI seven-layer model
Application
Presentation
Session
Transport
Network
Data Link
Physical
Figure 2-2 OSI Stack
1
2
3
4
5
6
7
Mnemonics for the OSI Model
Away
Pizza
Sausage
Throw
Not
Do
Please
All
People
Seem
To
Need
Data
Processing
Protocol Data Unit (PDU)
Application
Presentation
Session
Transport
Network
Data Link
Physical
Segments
Packets
Frames
Bits
Figure 2-3 PDU Names
Quick Summary of Layers 1-4
Transport
Network
Data Link
Physical
1
2
3
4 TCP & UDP Ports
Routers, IP Address
Switches, MAC
Address
Cables
Service
WAN
LAN
OSI Layers in Wireshark
1
2
3
4
7
Physical Layer
Application
Presentation
Session
Transport
Network
Data Link
Physical
 How Bits are represented
on the medium
 Wring standards for
connectors and jacks
 Physical topology
 Synchronizing bits
 Bandwidth usage
 Multiplexing strategy
Figure 2-4 Layer 1: Physical Layer
Wiring Standards
Asynchronous and Synchronous
Communications
 Synchronizing Bits
 Two devices must agree on when one bit
stops and another bit starts
 Asynchronous
 Uses start and stop bits
 Synchronous
 Internal clocks are synchronized at each end
of the cable
Bandwidth Usage
 Broadband
 Multiple channels share the same medium
 Ex: cable TV uses frequency division
multiplexing (each channel uses a different
frequency range)
 Baseband
 The whole medium is used for one
transmission
 Example: Ethernet
ABCA_CABCA_C
Time-Division Multiplexing (TDM)
 Each channel gets the same amount of
time on the wire
AAAA
B_B_
CCCC
ABCACABCAC
Statistical Time-Division
Multiplexing (StatTDM)
AAAA
B_B_
CCCC
 Busy channels get more time on the wire
Frequency Division Multiplexing
(FDM)
AAAA
B_B_
CCCC
 Example: signals sent with different colors
through the same fiber optic cable
AAAA
B_B_
CCCC
AAAA
B_B_
Layer 1 Devices
 Cables
 Wireless access points
 Hubs
 Because they dont pay any attention to
addresses, they just deliver signals to every
connected device like a crossover cable
Data Link Layer
Data Link
Application
Presentation
Session
Transport
Network
Physical
 Physical Addressing
 Logical topology
 Method of transmitting
on the media
Figure 2-8 Layer 2: The Data Link Layer
MAC
LLC
 Connection Services
 Synchronizing
transmissions
MAC Addresses
 IPCONFIG /ALL
 Physical Address
 Built into the network interface
Connection Services
 Flow control
 Prevents sender from sending data faster
than the client can accept it
 Error control
 When a frame is received, a checksum is
used to detect errors
 Usually a Cyclic Redundancy Check (CRC)
 If the receiver's checksum does not match the
sender's checksum, the frame is discarded
and resent
Layer 2 Devices
 Switches
 Bridges
 Network Interface Cards (NICs)
Network Layer
Network
Data Link
Application
Presentation
Session
Transport
Physical
 Logical addressing
 Switching
 Route discovery and
selection
 Connection services
 Bandwidth usage
 Multiplexing strategy
Figure 2-9 Layer 3: The Network Layer
IP Address
 Logical address
 Changes when the device is moved
Switching
 Packet switching
 Data is broken into packets
 Many packets travel along network
connections like cars on a freeway
 Circuit switching
 A physical line is dedicated to each
connection
 Ex: old copper landline phone systems
 Message switching
 Store-and-forward, like email
Layer 3 Devices
 Routers
 Multilayer Switches
Transport Layer
Transport
Network
Data Link
Application
Presentation
Session
Physical
 TCP/UDP
 Windowing
 Buffering
Figure 2-10 Layer 4: The Transport Layer
TCP and UDP
 Transmission Control Protocol (TCP)
 Connection-oriented and reliable
 Handshake makes sure both ends are ready
 Segments are acknowledged and resent if
necessary
 User Datagram Protocol (UDP)
 Connectionless and unreliable
 No handshake
 Best-effort delivery, no acknowledgements
TCP Sliding Window
Sender Receiver
Window Size 1
Segment 1
Ack 2
Window Size 2
Ack 4
Segment 2
Segment 3
Window Size 4
Ack 8
Segment 4
Segment 5
Segment 6
Segment 7
Figure 2-11 TCP Sliding Window
ICMP
(Internet Control Message
Protocol)
 At layer 4
 Used by ping and traceroute, and to
indicate errors such as dropped packets
Session Layer
Session
Transport
Network
Data Link
Application
Presentation
Physical
 Setting up a session
 Maintaining a session
 Tearing down a session
Figure 2-12 Layer 5: The Session Layer
Example of a Session
 User logs in with a username & password
 All data now has a special significance
until that user logs off, or the session times
out, or is terminated some other way
 Layer 6 Protocol
 H.323 (voice or video)
 NetBIOS (file sharing)
Presentation Layer
Presentation
Session
Transport
Network
Data Link
Application
Physical
 Data formatting
 Encryption
Figure 2-13 Layer 6: The Presentation Layer
Application Layer
Application
Presentation
Session
Transport
Network
Data Link
Physical
 Application services
 Service advertisement
Application Layer
 Closest to the user
 Hands data to an application in the format
it expects, with no addresses or other
transmission artifacts
 Examples: a downloaded file, an email
message
The TCP/IP Stack
Application
Transport
Internet
Network Interface
The TCP/IP and OSI Models Compared
Application
Transport
Internet
Network Interface
TCP/IP Stack
Application
Presentation
Session
Transport
Network
Data Link
Physical
OSI Stack
Figure 2-15 TCP/IP Stack
IP Ver4 Header
TTL (Time-to-Live)
 TTL decreases by one each time the
packet is forwarded by a router
 If TTL reaches zero, the packet is
discarded
 This eliminates packets trapped in routing
loops
Demo: Routing Loop
TCP Header
Figure 2-17 TCP Segment Format
TCP Header Fields
 Port numbers
 Indicate which program on the end device
should receive the data
 Examples: Port 25 for email, 80 for HTTP
 Window size
 Number of bytes that can be sent before
waiting for an ACK
TCP Header Fields
 Sequence and Acknowledgement
numbers
 Used to put packets in order to reassemble
files and other large messages
 Flags like SYN and ACK are used for the
TCP handshake and to acknowledge data
received
UDP Header
0 16 31
SOURCE PORT DESTINATION PORT
LENGTH CHECKSUM
 No handshake, acknowledgements,
sequencing, or flow control
Common Ports
Link Ch 2d for flash cards
Port Types
Port numbers are assigned in various ways, based
on three ranges:
 System Ports (0-1023), System Ports are assigned by IETF process for
standards-track protocols, as per RFC6335. Also known as well-
known-ports
 User Ports (1024-49151) ,User Ports are assigned by IANA using the
"Expert Review" process, as per RFC6335
 Dynamic and/or Private Ports (49152-65535), Dynamic Ports are not
assigned, they are dynamically created as your computer need them.
Also known as ephemeral ports.
Communication Between Two Systems

More Related Content

Similar to Comptia Security + Chapter 1 501 (20)

tcp ip protocols.ppt
tcp ip protocols.ppttcp ip protocols.ppt
tcp ip protocols.ppt
ssuser3acfba
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
Ahmed Elnaggar
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
namrataparopate
TCP /IP
TCP /IPTCP /IP
TCP /IP
VIKAS SINGH BHADOURIA
ip-basics.ppt
ip-basics.pptip-basics.ppt
ip-basics.ppt
GioSanBuenaventura1
ip net basic understanding slide show ppt
ip net basic understanding slide show pptip net basic understanding slide show ppt
ip net basic understanding slide show ppt
lolo749806
Lecture set 7
Lecture set 7Lecture set 7
Lecture set 7
Gopi Saiteja
3131471Scanned.ppt
3131471Scanned.ppt3131471Scanned.ppt
3131471Scanned.ppt
ssuserf21d85
02 protocol architecture
02 protocol architecture02 protocol architecture
02 protocol architecture
chameli devi group of institutions
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
Taymoor Nazmy
OSI model (7 LAYER )
OSI model (7 LAYER )OSI model (7 LAYER )
OSI model (7 LAYER )
AAKASH S
16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)
Jeff Green
The-OSI-and-TCPIP-Models protocol suit.pdf
The-OSI-and-TCPIP-Models protocol suit.pdfThe-OSI-and-TCPIP-Models protocol suit.pdf
The-OSI-and-TCPIP-Models protocol suit.pdf
FasikaGetachew3
MVA slides lesson 2
MVA slides lesson 2MVA slides lesson 2
MVA slides lesson 2
Fabio Almeida- Oficina Eletr担nica
layering.ppt
layering.pptlayering.ppt
layering.ppt
Rashmin Tanna
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
Piero Fraternali
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpip
Palanivel Kuppusamy
OSI TCP.pptx
OSI TCP.pptxOSI TCP.pptx
OSI TCP.pptx
computerScience920885
Aplication and Transport layer- a practical approach
Aplication and Transport layer-  a practical approachAplication and Transport layer-  a practical approach
Aplication and Transport layer- a practical approach
Sarah R. Dowlath
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
Olivier Bonaventure
tcp ip protocols.ppt
tcp ip protocols.ppttcp ip protocols.ppt
tcp ip protocols.ppt
ssuser3acfba
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP M...
namrataparopate
ip net basic understanding slide show ppt
ip net basic understanding slide show pptip net basic understanding slide show ppt
ip net basic understanding slide show ppt
lolo749806
3131471Scanned.ppt
3131471Scanned.ppt3131471Scanned.ppt
3131471Scanned.ppt
ssuserf21d85
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
Taymoor Nazmy
OSI model (7 LAYER )
OSI model (7 LAYER )OSI model (7 LAYER )
OSI model (7 LAYER )
AAKASH S
16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)
Jeff Green
The-OSI-and-TCPIP-Models protocol suit.pdf
The-OSI-and-TCPIP-Models protocol suit.pdfThe-OSI-and-TCPIP-Models protocol suit.pdf
The-OSI-and-TCPIP-Models protocol suit.pdf
FasikaGetachew3
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
Piero Fraternali
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpip
Palanivel Kuppusamy
Aplication and Transport layer- a practical approach
Aplication and Transport layer-  a practical approachAplication and Transport layer-  a practical approach
Aplication and Transport layer- a practical approach
Sarah R. Dowlath
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
Olivier Bonaventure

Recently uploaded (20)

Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1...
Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1...Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1...
Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1...
pinkdvil200
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAMDUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
vlckovar
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal
Modeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptxModeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptx
maribethlacno2
The Broccoli Dog's inner voice (look A)
The Broccoli Dog's inner voice  (look A)The Broccoli Dog's inner voice  (look A)
The Broccoli Dog's inner voice (look A)
merasan
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
A PPT Presentation on The Princess and the God: A tale of ancient India by A...
A PPT Presentation on The Princess and the God: A tale of ancient India  by A...A PPT Presentation on The Princess and the God: A tale of ancient India  by A...
A PPT Presentation on The Princess and the God: A tale of ancient India by A...
Beena E S
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
Principle and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby BasnetPrinciple and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby Basnet
Boby Basnet
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptxTLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
RizaBedayo
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Fuel part 1.pptx........................
Fuel part 1.pptx........................Fuel part 1.pptx........................
Fuel part 1.pptx........................
ksbhattadcm
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
Essentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok SonawalaEssentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok Sonawala
Association for Project Management
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1...
Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1...Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1 2024  Lesson Plan M1...
Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1 2024 Lesson Plan M1...
pinkdvil200
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAMDUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
vlckovar
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal
Modeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptxModeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptx
maribethlacno2
The Broccoli Dog's inner voice (look A)
The Broccoli Dog's inner voice  (look A)The Broccoli Dog's inner voice  (look A)
The Broccoli Dog's inner voice (look A)
merasan
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
A PPT Presentation on The Princess and the God: A tale of ancient India by A...
A PPT Presentation on The Princess and the God: A tale of ancient India  by A...A PPT Presentation on The Princess and the God: A tale of ancient India  by A...
A PPT Presentation on The Princess and the God: A tale of ancient India by A...
Beena E S
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
Principle and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby BasnetPrinciple and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby Basnet
Boby Basnet
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptxTLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
RizaBedayo
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Fuel part 1.pptx........................
Fuel part 1.pptx........................Fuel part 1.pptx........................
Fuel part 1.pptx........................
ksbhattadcm
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper

Comptia Security + Chapter 1 501

  • 1. CompTIA Network + Chapter 2 Dissecting the OSI Model
  • 2. Objectives What is the purpose of a Network model? What are the layers of the OSI model? What are the characteristics of each layer of the OSI model? How does the TCP/IP stack compare to the OSI model? What are the well-known TCP and/or UDP port numbers for a given collection of common applications
  • 3. The Purpose of Reference Models It breaks network communication into smaller, simpler parts that are easier to develop. It facilitates standardization of network components to allow multiple-vendor development and support. It allows different types of network hardware and software to communicate with each other. It prevents changes in one layer from affecting the other layers so that they can develop more quickly. It breaks network communication into smaller parts to make learning it easier to understand.
  • 5. The OSI seven-layer model Application Presentation Session Transport Network Data Link Physical Figure 2-2 OSI Stack 1 2 3 4 5 6 7
  • 6. Mnemonics for the OSI Model Away Pizza Sausage Throw Not Do Please All People Seem To Need Data Processing
  • 7. Protocol Data Unit (PDU) Application Presentation Session Transport Network Data Link Physical Segments Packets Frames Bits Figure 2-3 PDU Names
  • 8. Quick Summary of Layers 1-4 Transport Network Data Link Physical 1 2 3 4 TCP & UDP Ports Routers, IP Address Switches, MAC Address Cables Service WAN LAN
  • 9. OSI Layers in Wireshark 1 2 3 4 7
  • 10. Physical Layer Application Presentation Session Transport Network Data Link Physical How Bits are represented on the medium Wring standards for connectors and jacks Physical topology Synchronizing bits Bandwidth usage Multiplexing strategy Figure 2-4 Layer 1: Physical Layer
  • 12. Asynchronous and Synchronous Communications Synchronizing Bits Two devices must agree on when one bit stops and another bit starts Asynchronous Uses start and stop bits Synchronous Internal clocks are synchronized at each end of the cable
  • 13. Bandwidth Usage Broadband Multiple channels share the same medium Ex: cable TV uses frequency division multiplexing (each channel uses a different frequency range) Baseband The whole medium is used for one transmission Example: Ethernet
  • 14. ABCA_CABCA_C Time-Division Multiplexing (TDM) Each channel gets the same amount of time on the wire AAAA B_B_ CCCC
  • 16. Frequency Division Multiplexing (FDM) AAAA B_B_ CCCC Example: signals sent with different colors through the same fiber optic cable AAAA B_B_ CCCC AAAA B_B_
  • 17. Layer 1 Devices Cables Wireless access points Hubs Because they dont pay any attention to addresses, they just deliver signals to every connected device like a crossover cable
  • 18. Data Link Layer Data Link Application Presentation Session Transport Network Physical Physical Addressing Logical topology Method of transmitting on the media Figure 2-8 Layer 2: The Data Link Layer MAC LLC Connection Services Synchronizing transmissions
  • 19. MAC Addresses IPCONFIG /ALL Physical Address Built into the network interface
  • 20. Connection Services Flow control Prevents sender from sending data faster than the client can accept it Error control When a frame is received, a checksum is used to detect errors Usually a Cyclic Redundancy Check (CRC) If the receiver's checksum does not match the sender's checksum, the frame is discarded and resent
  • 21. Layer 2 Devices Switches Bridges Network Interface Cards (NICs)
  • 22. Network Layer Network Data Link Application Presentation Session Transport Physical Logical addressing Switching Route discovery and selection Connection services Bandwidth usage Multiplexing strategy Figure 2-9 Layer 3: The Network Layer
  • 23. IP Address Logical address Changes when the device is moved
  • 24. Switching Packet switching Data is broken into packets Many packets travel along network connections like cars on a freeway Circuit switching A physical line is dedicated to each connection Ex: old copper landline phone systems Message switching Store-and-forward, like email
  • 25. Layer 3 Devices Routers Multilayer Switches
  • 26. Transport Layer Transport Network Data Link Application Presentation Session Physical TCP/UDP Windowing Buffering Figure 2-10 Layer 4: The Transport Layer
  • 27. TCP and UDP Transmission Control Protocol (TCP) Connection-oriented and reliable Handshake makes sure both ends are ready Segments are acknowledged and resent if necessary User Datagram Protocol (UDP) Connectionless and unreliable No handshake Best-effort delivery, no acknowledgements
  • 28. TCP Sliding Window Sender Receiver Window Size 1 Segment 1 Ack 2 Window Size 2 Ack 4 Segment 2 Segment 3 Window Size 4 Ack 8 Segment 4 Segment 5 Segment 6 Segment 7 Figure 2-11 TCP Sliding Window
  • 29. ICMP (Internet Control Message Protocol) At layer 4 Used by ping and traceroute, and to indicate errors such as dropped packets
  • 30. Session Layer Session Transport Network Data Link Application Presentation Physical Setting up a session Maintaining a session Tearing down a session Figure 2-12 Layer 5: The Session Layer
  • 31. Example of a Session User logs in with a username & password All data now has a special significance until that user logs off, or the session times out, or is terminated some other way Layer 6 Protocol H.323 (voice or video) NetBIOS (file sharing)
  • 32. Presentation Layer Presentation Session Transport Network Data Link Application Physical Data formatting Encryption Figure 2-13 Layer 6: The Presentation Layer
  • 34. Application Layer Closest to the user Hands data to an application in the format it expects, with no addresses or other transmission artifacts Examples: a downloaded file, an email message
  • 36. The TCP/IP and OSI Models Compared Application Transport Internet Network Interface TCP/IP Stack Application Presentation Session Transport Network Data Link Physical OSI Stack Figure 2-15 TCP/IP Stack
  • 38. TTL (Time-to-Live) TTL decreases by one each time the packet is forwarded by a router If TTL reaches zero, the packet is discarded This eliminates packets trapped in routing loops
  • 40. TCP Header Figure 2-17 TCP Segment Format
  • 41. TCP Header Fields Port numbers Indicate which program on the end device should receive the data Examples: Port 25 for email, 80 for HTTP Window size Number of bytes that can be sent before waiting for an ACK
  • 42. TCP Header Fields Sequence and Acknowledgement numbers Used to put packets in order to reassemble files and other large messages Flags like SYN and ACK are used for the TCP handshake and to acknowledge data received
  • 43. UDP Header 0 16 31 SOURCE PORT DESTINATION PORT LENGTH CHECKSUM No handshake, acknowledgements, sequencing, or flow control
  • 44. Common Ports Link Ch 2d for flash cards
  • 45. Port Types Port numbers are assigned in various ways, based on three ranges: System Ports (0-1023), System Ports are assigned by IETF process for standards-track protocols, as per RFC6335. Also known as well- known-ports User Ports (1024-49151) ,User Ports are assigned by IANA using the "Expert Review" process, as per RFC6335 Dynamic and/or Private Ports (49152-65535), Dynamic Ports are not assigned, they are dynamically created as your computer need them. Also known as ephemeral ports.