SlideShare une entreprise Scribd logo
1  sur  75
Network Infrastructure
             Session 1



     The TCP/IP Model:
How data is packaged and sent
Overview

• What are we going to see?
• Jargon, Acronyms and Keywords
• Brief history of network models, the Internet
  and Al Gore’s involvement
• Networking Models/Frameworks
• The TCP/IP Model - How your data is
  packaged and prepared to be sent over a
  network
So what are we going to
                         see?
                            Data Encapsulation Process
                           How data is prepared to be sent
                                                 Layer
                “Data”
Encapsulation




                “Segment”
                aka “TCP Segment” or
                “Datagram”

                “Packet”                                     * IP Layer
                                                             * Network Layer

                “Frame”                                      * Network Interface Layer
                                                             * Data Link Layer
                                                             * Network Link Layer
Tell it to me in “FedEX”




           =
Jargon, Acronyms and
      Keywords
• Protocol
• Network Model Architecture (NM/A)
• TCP - Transmission Control Protocol
• IP - Internet Protocol
• TCP/IP Model = Internet Model =
  Internet Protocol Suite = the list goes on
• Encapsulation
TCP/IP Model
 Terminology / Key Concepts




• (Data) Encapsulation
     • Process of modifying or
       “packaging” data
TCP/IP Model
 Terminology / Key Concepts


• Same Layer Interaction
 • Interaction between 2 computers at
   same layer
 • Headers at that layer hold the
   information that they want to
   communicate
TCP/IP Model
 Terminology / Key Concepts



• Adjacent Layer Interaction
 • higher layers request to the next lower-
   layer protocol to perform a service, and
   the next lower-layer performs the service
   for the higher layer
TCP & IP two parts of a
        whole

• TCP facilitates the exchange of data (the
  “message”) directly between two
  computers (hosts/clients) on a network
• IP handles the addressing and routing
  of the data (“message”) across
  network(s)
FedEX Analogy

• TCP is the service that boxes up, packs,
  ships/receives your message (e.g. UPS/
  Fed-EX/Canada Post/USPS)
• IP is the Mailing Addresses (From/To)
  and Directions (Send through YYZ to
  get to SFO) involved in getting your
  message delivered
So Where does this all
      happen?


  (in the context of this class)
On client devices
On servers
So Where does this all happen?

• From a birds view: client devices & servers
• Under a microscope:
    • it is an interactive process between the
      operating system (Windows, OS X, Linux)
      and the network card (Wired/Wireless)
    • is both a hardware and software
      interaction
    • Occurs before leaving your computer
      (device)
Context

• 1970’s each company (IBM, Apple, Bell
  etc.) had their own closed standards
• no open standardized model(s)
  between companies
• computers/devices from different
  vendors were unable to speak to each
  other even if physically connected
Network Model /
  Architecture “NM/A”

• they are a set of functions and protocols for
  both Hardware and Software
• each NM/A takes a layered approach
• layered approach makes it:
    • efficient
    • easier
    • granularity for troubleshooting
Network Model /
Architecture “NM/A”
NM/A - Standardization

• There are two well known models:
• 1. OSI Model (Open Standards
  Interconnection?) - Created by the ISO
    • This is used primarily as a reference
      model now for most NM/A
• 2. TCP/IP Model - Created for/by the US-DoD
  (ARPANET / DARPA)
    • It is the internet
Special Note


• “Layer #” device - This most often
  refers to a corresponding layer in the
  OSI Model not the TCP/IP model
• Layers are not numbered in TCP/IP
  model
OSI vs. TCP/IP
Layer 7

Layer 6

Layer 5

Layer 4

Layer 3

Layer 2

Layer 1
Then came Al Gore
Then came Al Gore
• Al Gore and the Internet http://pro.ps/UMYVk
• As a Senator, Gore began to craft the High
  Performance Computing and Communication Act
  of 1991 (commonly referred to as "The Gore
  Bill")
• Gore continued his involvement with the
  computer industry and new technologies after he
  left the White House in 2001. He is a member of
  the Board of Directors of Apple Inc. and a Senior
  Advisor to Google.
Without Al Gore there
would be no internet
Again...Tell it to me in
        “FedEX”




           =
What’s the big deal
  about TCP/IP?
What’s the big deal
                         about TCP/IP?
                           How data is prepared to be sent
                                                 Layer
                “Data”
Encapsulation




                “Segment”
                aka “TCP Segment” or
                “Datagram”

                “Packet”                                 * IP Layer
                                                         * Network Layer

                “Frame”                                  * Network Interface Layer
                                                         * Data Link Layer
                                                         * Network Link Layer
TCP/IP Model as FedEx
                     Data Encapsulation is
                  How data is packaged and sent
Encapsulation
TCP/IP Model


• 4 Layers
 • Application
 • Transport
 • Internet
 • Link
Note


• the naming of these is inconsistent
  across literature by different authors/
  companies
• see: http://pro.ps/qJ6ET
TCP/IP Model
    Application Layer
• “Top” / “Upper Most” / “First” Layer
• Provides services to software applications (i.e.
  Firefox etc.)
    • Actual ‘Software’ “sits on top” of this
      layer - Firefox is “above” this layer
• Examples of protocols at this layer - FTP,
  HTTP, SMTP
• Each protocol has its own port e.g. http port 80
  - FTP port 21
TCP/IP Model
    Application Layer

• At this layer data comes in coded
  according to application layer protocols
  (i.e. http, ftp, IMAP etc.)
• Data is sent off to the next lower layer
  (Transport Layer) to be encapsulated
  with a ‘lower layer’ protocol (e.g. TCP
  or UDP) to start actual data transfer
TCP/IP Model
   Application Layer

• Joe from Accounting has a document to
  send (data) -> Joe is the Web Browser
  (Application)
• You are the Mailroom Boy (A.K.A. The
  Application Layer)
• Joe hands gives you his document to
  FedEX
Application Layer to
                  Transport Layer
                     Application Layer


                                         Joe’s Document “Data”
Encapsulation




                     (e.g.http)             From Accounting




                     Transport Layer
Application Layer to
                  Transport Layer
                    Application Layer
                                        Joe’s Document “Data”
                          (e.g.http)       From Accounting
Encapsulation




                                         You arrive at
TCP/IP Model
    Transport Layer



• Home to “TCP” in TCP/IP
• TCP = Transmission Control Protocol
TCP/IP Model
     Transport Layer
• “Second” Layer
• Uses two categories of protocols to
  “transport” / encapsulate the data(a.k.a.
  datagrams, TCP Segments)
   • Reliable (i.e. TCP - Transmission
     Control Protocol)
   • Unreliable (i.e. UDP - User
     Datagram Protocol)
Reliable Transport (i.e.
         TCP)


• Acknowledgement of data received by
  the destination device
• Retransmission of data if not received -
  no missing data in reliable transport
• Timeout if it takes too long for a
  message to arrive
Reliable Transport (i.e.
         TCP)


• Ordered - puts messages in proper
  sequence - buffers out of order
  messages and then properly re-orders
  before sending to application
• Think valuable info - Financial data!
Unreliable Transport
       (i.e. UDP)


• No concept of Acknowledgement,
  Retransmission or Timeout
• No Re-Ordering of the message sent - if two
  messages sent - the order they arrive can’t be
  predicted
• Data integrity is checked IF the message arrives
• Meant for speed/burst transmission (i.e. voice)
Transport Layer
     Responsibilities
• Flow Control - “Windowing”
• Multiplexing - “Sockets” - Example:
  Web Browsers and Multiple Tabbed
  Pages
• Segmentation - Breaks data into smaller
  chunks when sending
• Clump - reassembles data when
  receiving (Reverse of Segmentation)
TCP/IP Model
    Transport Layer

• A Transport Layer HEADER is added to
  the Application Layer Data
• This Transport Layer (“Protocol”)
  Header *plus* Application Layer Data
  is referred to as a SEGMENT (aka TCP
  Segment or Datagram)
Reliable transport -
        Analogy

• Using the mail analogy: Reliable
  transport is like sending registered/
  courier mail
   • you get confirmation of when the
     package arrives at its destination
   • you also are told if it’s lost and can
     track where it gets lost (in theory...)
Unreliable transport -
       Analogy


• Unreliable is like sending a postcard
   • no return address - only who you’re
     sending to
   • you don’t care if it gets there you
     just send it and wish it luck
Transport Layer = Weighing,
   Packaging and Getting a Shipping#

1) Weigh your message       Fed-Ex
                                Layer
Transport Layer = Weighing,
   Packaging and Getting a Shipping#

1) Weigh your message       Fed-Ex
                                Layer

  2) Message almost
    always too big
Transport Layer = Weighing,
    Packaging and Getting a Shipping#

1) Weigh your message        Fed-Ex
                                 Layer

  2) Message almost
    always too big

   3) Split into
     smaller
    messages
“Segmentation”
Transport Layer = Weighing,
    Packaging and Getting a Shipping#

1) Weigh your message         Fed-Ex
                                   Layer

  2) Message almost        Packing Slip for
    always too big        Content Info Only

   3) Split into
     smaller
    messages
“Segmentation”
~OR~
Transport Layer = Weighing,
  Packaging and Getting a Shipping#
 3) Split into
   smaller
  messages
Segmentation
Transport Layer = Weighing,
  Packaging and Getting a Shipping#
 3) Split into
                                4*) Shipping #s
   smaller       #1   #2   #3
                                  (*optional)
  messages
Segmentation
Transport Layer = Weighing,
  Packaging and Getting a Shipping#
 3) Split into
                                 4*) Shipping #s
   smaller       #1   #2   #3
                                   (*optional)
  messages
Segmentation               Packing slip with:
                            Content Info &
                              Shipping#
                 #1   #2   #3
With or Without Shipping #
     What’s the Diff?


  #1, 2, 3   vs.   No #’s
With or Without Shipping #
     What’s the Diff?

    #1, 2, 3   vs.      No #’s
   Reliable          Unreliable
  Transport          Transport
  Registered         Unregistered
    Mail                Mail

   Fed-EX             Post Card
     TCP                UDP
With or Without Shipping #
     What’s the Diff?


  #1, 2, 3   vs.     No #’s
  Reliable         Unreliable
 Transport         Transport

   TCP               UDP
Did you notice anything?


• No sender address info
• No recipient address info


• This is handled and passed down to
  Internet Layer
Break Time
Application Layer to
                  Transport Layer
                  “Data”
                                             Layer
Encapsulation



                                (e.g.http)




                “Segment”
                      aka
                “TCP Segment”
                       or
                  “datagram”
                                             Layer




   Transport Layer Header added to
       Application Layer Data
Application Layer to
                  Transport Layer
                                                     Joe’s
                  “Data”                           Document
                                                      Layer
Encapsulation



                                (e.g.http)




                “Segment”
                      aka
                                             Arrive at local
                “TCP Segment”
                       or                       FedEX
                  “datagram”
                                                      Layer




   Transport Layer Header added to
       Application Layer Data
Transport Layer to
                     Internet Layer
                   “Segment”
                         aka
                   “TCP Segment”
                          or
                     “datagram”
                                           Layer
   Encapsulation




                    “Packet”



                                           Layer




Internet Layer Header added to Transport
             Layer Segment
Transport Layer to
                     Internet Layer
                   “Segment”
                         aka
                   “TCP Segment”
                          or
                     “datagram”
                                           Layer
   Encapsulation




                    “Packet”



                                           Layer




Internet Layer Header added to Transport
             Layer Segment
TCP/IP Model
      Internet Layer


• Home the “IP” of TCP/IP
• IP = Internet Protocol
• Provides addresses -> e.g. 192.168.1.1 or
  46 Hayden Street M4Y 1V8
TCP/IP Model
      Internet Layer
• “Third” Layer
• Also known as the “NETWORK (IP)
  LAYER” - and a whole bunch of names...
• Responsible for:
   • Routing - (Big Topic)
   • Addressing / Subnetting
   • Routers operate at this Layer
TCP/IP Model
      Internet Layer


• An Internet Layer HEADER is added to
  the Transport Layer Segment
• This Internet (“IP”) Header *plus*
  Transport Layer Segment is referred to
  as a PACKET
Internet Layer - Time to
  give it a Shipping Label


From:             To:
123 ABC Street    321 BCA Ave
M2N 4E6           L4R 6Y2

 192.168.1.1         10.1.1.1
255.255.255.0     255.255.255.0
Transport Layer to
                     Internet Layer
                   “Segment”
                         aka
                   “TCP Segment”
                          or
                     “datagram”
                                           Layer
   Encapsulation




                    “Packet”



                                           Layer




Internet Layer Header added to Transport
             Layer Segment
Internet Layer to Link
                Layer
                  “Packet”



                                                          Layer
Encapsulation




                “Frame”




                                                     Link Layer




Link Layer Header added to Internet   Link Layer Footer added to Internet Layer
           Layer Packet                                Packet
TCP/IP Model
               Link Layer

• “Last” / “Bottom” / “Fourth” Layer
• Also known as the “DATA LINK, NETWORK
  LINK LAYER”
• Has 2 Components
  • Software - “Data Link”
      • LAN (Ethernet)
  • Hardware - “Physical Link”
      • Voltages
      • Pins on a connector (8 for RJ-45)
TCP/IP Model
            Link Layer


• MTU (Maximum Transmission Unit) is
  controlled by this layer
• Max MTU over Ethernet is 1500-bytes
• HUB & Switch operate at this layer
• We use MAC addresses (Media Access
  Control) here NOT IP addresses
TCP/IP Model
             Link Layer



• A Link Layer HEADER *and* FOOTER
  is added to the Internet Layer Packet
• This Link Layer Header & Footer
  *plus* Internet Layer Packet is referred
  to as a FRAME
TCP/IP Model
             Link Layer



• This is where the package makes it to
  the back of the warehouse
• It is then ready to be put on to a
  shipping truck, van etc.
TCP/IP Model
            Link Layer




• This layer specifies how the data is to
  leave FedEX store -> Cube Van only? 16
  Wheeler?
Transport Layer to
                Network (IP) Layer
                  “Packet”



                                                          Layer
Encapsulation




                “Frame”




                                                     Link Layer




Link Layer Header added to Internet   Link Layer Footer added to Internet Layer
           Layer Packet                                Packet
TCP/IP Model
                               Data Encapsulation Process
                                                  Layer
                “Data”
Encapsulation




                “Segment”
                aka “TCP Segment” or
                “Datagram”

                “Packet”


                “Frame”
TCP/IP:
How data is packaged


       Thanks!


 Email: Ray@RaymondKao.com
       Twitter: @RayKao

Contenu connexe

Tendances

Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)UC San Diego
 
7 layers of osi models
7 layers of osi models7 layers of osi models
7 layers of osi modelsSathish Kumar
 
network fundamentals
network fundamentalsnetwork fundamentals
network fundamentalsSithu PM
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPTAIRTEL
 
Computer networks unit ii
Computer networks    unit iiComputer networks    unit ii
Computer networks unit iiJAIGANESH SEKAR
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1VISHNU N
 
IPv6 Fundamentals
IPv6 FundamentalsIPv6 Fundamentals
IPv6 FundamentalsMatt Bynum
 
Networking Fundamentals
Networking FundamentalsNetworking Fundamentals
Networking FundamentalsUMA MAHESWARI
 
CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7Nil Menon
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training PresentationRohit Singh
 
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlAdeel Rasheed
 

Tendances (20)

Iptables the Linux Firewall
Iptables the Linux Firewall Iptables the Linux Firewall
Iptables the Linux Firewall
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)
 
7 layers of osi models
7 layers of osi models7 layers of osi models
7 layers of osi models
 
network fundamentals
network fundamentalsnetwork fundamentals
network fundamentals
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Ceh v5 module 03 scanning
Ceh v5 module 03 scanningCeh v5 module 03 scanning
Ceh v5 module 03 scanning
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
Chapter11
Chapter11Chapter11
Chapter11
 
Firewalls
FirewallsFirewalls
Firewalls
 
Computer networks unit ii
Computer networks    unit iiComputer networks    unit ii
Computer networks unit ii
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
Arp spoofing
Arp spoofingArp spoofing
Arp spoofing
 
IPv6 Fundamentals
IPv6 FundamentalsIPv6 Fundamentals
IPv6 Fundamentals
 
Networking Fundamentals
Networking FundamentalsNetworking Fundamentals
Networking Fundamentals
 
CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training Presentation
 
Acl
AclAcl
Acl
 
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion Control
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 

Similaire à Network infrastructure - TCP/IP

Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- finalTaymoor Nazmy
 
Protocol architecture TCP IP
Protocol architecture TCP IPProtocol architecture TCP IP
Protocol architecture TCP IPToufiqueAhmed13
 
TCP/IP Introduction
TCP/IP Introduction TCP/IP Introduction
TCP/IP Introduction LJ PROJECTS
 
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IPPiero Fraternali
 
protocol architecture
 protocol architecture protocol architecture
protocol architectureSrinivasa Rao
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.pptaymenshykh
 
1 osi model
1 osi model1 osi model
1 osi modelSpacSec
 
The TCP/IP and OSI models
The TCP/IP and OSI modelsThe TCP/IP and OSI models
The TCP/IP and OSI modelsJake Weaver
 
Layers of tcpip.65 to 66
Layers of tcpip.65 to 66Layers of tcpip.65 to 66
Layers of tcpip.65 to 66myrajendra
 
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803ArtistMuso
 
CN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdfCN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdfskknowledge
 
Network security on Cisco routers and switches
Network security on Cisco routers and switchesNetwork security on Cisco routers and switches
Network security on Cisco routers and switchesAlexandros Britzolakis
 

Similaire à Network infrastructure - TCP/IP (20)

Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
 
Osi model
Osi modelOsi model
Osi model
 
Internet1
Internet1Internet1
Internet1
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
Lecture 3- tcp-ip
Lecture  3- tcp-ipLecture  3- tcp-ip
Lecture 3- tcp-ip
 
Protocol architecture TCP IP
Protocol architecture TCP IPProtocol architecture TCP IP
Protocol architecture TCP IP
 
TCP/IP Introduction
TCP/IP Introduction TCP/IP Introduction
TCP/IP Introduction
 
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
 
protocol architecture
 protocol architecture protocol architecture
protocol architecture
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
 
1 osi model
1 osi model1 osi model
1 osi model
 
TCP/IP model
TCP/IP modelTCP/IP model
TCP/IP model
 
The TCP/IP and OSI models
The TCP/IP and OSI modelsThe TCP/IP and OSI models
The TCP/IP and OSI models
 
TCP/IP Protocols
TCP/IP ProtocolsTCP/IP Protocols
TCP/IP Protocols
 
Ch05
Ch05Ch05
Ch05
 
Layers of tcpip.65 to 66
Layers of tcpip.65 to 66Layers of tcpip.65 to 66
Layers of tcpip.65 to 66
 
Ta 104-tcp
Ta 104-tcpTa 104-tcp
Ta 104-tcp
 
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803
TCP/IP Presentation lab encapsulation and de-capsulation Nick Raston 2143803
 
CN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdfCN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdf
 
Network security on Cisco routers and switches
Network security on Cisco routers and switchesNetwork security on Cisco routers and switches
Network security on Cisco routers and switches
 

Network infrastructure - TCP/IP

  • 1. Network Infrastructure Session 1 The TCP/IP Model: How data is packaged and sent
  • 2. Overview • What are we going to see? • Jargon, Acronyms and Keywords • Brief history of network models, the Internet and Al Gore’s involvement • Networking Models/Frameworks • The TCP/IP Model - How your data is packaged and prepared to be sent over a network
  • 3. So what are we going to see? Data Encapsulation Process How data is prepared to be sent Layer “Data” Encapsulation “Segment” aka “TCP Segment” or “Datagram” “Packet” * IP Layer * Network Layer “Frame” * Network Interface Layer * Data Link Layer * Network Link Layer
  • 4. Tell it to me in “FedEX” =
  • 5. Jargon, Acronyms and Keywords • Protocol • Network Model Architecture (NM/A) • TCP - Transmission Control Protocol • IP - Internet Protocol • TCP/IP Model = Internet Model = Internet Protocol Suite = the list goes on • Encapsulation
  • 6. TCP/IP Model Terminology / Key Concepts • (Data) Encapsulation • Process of modifying or “packaging” data
  • 7. TCP/IP Model Terminology / Key Concepts • Same Layer Interaction • Interaction between 2 computers at same layer • Headers at that layer hold the information that they want to communicate
  • 8. TCP/IP Model Terminology / Key Concepts • Adjacent Layer Interaction • higher layers request to the next lower- layer protocol to perform a service, and the next lower-layer performs the service for the higher layer
  • 9. TCP & IP two parts of a whole • TCP facilitates the exchange of data (the “message”) directly between two computers (hosts/clients) on a network • IP handles the addressing and routing of the data (“message”) across network(s)
  • 10. FedEX Analogy • TCP is the service that boxes up, packs, ships/receives your message (e.g. UPS/ Fed-EX/Canada Post/USPS) • IP is the Mailing Addresses (From/To) and Directions (Send through YYZ to get to SFO) involved in getting your message delivered
  • 11. So Where does this all happen? (in the context of this class)
  • 14. So Where does this all happen? • From a birds view: client devices & servers • Under a microscope: • it is an interactive process between the operating system (Windows, OS X, Linux) and the network card (Wired/Wireless) • is both a hardware and software interaction • Occurs before leaving your computer (device)
  • 15. Context • 1970’s each company (IBM, Apple, Bell etc.) had their own closed standards • no open standardized model(s) between companies • computers/devices from different vendors were unable to speak to each other even if physically connected
  • 16. Network Model / Architecture “NM/A” • they are a set of functions and protocols for both Hardware and Software • each NM/A takes a layered approach • layered approach makes it: • efficient • easier • granularity for troubleshooting
  • 18. NM/A - Standardization • There are two well known models: • 1. OSI Model (Open Standards Interconnection?) - Created by the ISO • This is used primarily as a reference model now for most NM/A • 2. TCP/IP Model - Created for/by the US-DoD (ARPANET / DARPA) • It is the internet
  • 19. Special Note • “Layer #” device - This most often refers to a corresponding layer in the OSI Model not the TCP/IP model • Layers are not numbered in TCP/IP model
  • 20. OSI vs. TCP/IP Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 Layer 2 Layer 1
  • 21. Then came Al Gore
  • 22. Then came Al Gore • Al Gore and the Internet http://pro.ps/UMYVk • As a Senator, Gore began to craft the High Performance Computing and Communication Act of 1991 (commonly referred to as "The Gore Bill") • Gore continued his involvement with the computer industry and new technologies after he left the White House in 2001. He is a member of the Board of Directors of Apple Inc. and a Senior Advisor to Google.
  • 23. Without Al Gore there would be no internet
  • 24. Again...Tell it to me in “FedEX” =
  • 25. What’s the big deal about TCP/IP?
  • 26. What’s the big deal about TCP/IP? How data is prepared to be sent Layer “Data” Encapsulation “Segment” aka “TCP Segment” or “Datagram” “Packet” * IP Layer * Network Layer “Frame” * Network Interface Layer * Data Link Layer * Network Link Layer
  • 27. TCP/IP Model as FedEx Data Encapsulation is How data is packaged and sent Encapsulation
  • 28.
  • 29. TCP/IP Model • 4 Layers • Application • Transport • Internet • Link
  • 30. Note • the naming of these is inconsistent across literature by different authors/ companies • see: http://pro.ps/qJ6ET
  • 31. TCP/IP Model Application Layer • “Top” / “Upper Most” / “First” Layer • Provides services to software applications (i.e. Firefox etc.) • Actual ‘Software’ “sits on top” of this layer - Firefox is “above” this layer • Examples of protocols at this layer - FTP, HTTP, SMTP • Each protocol has its own port e.g. http port 80 - FTP port 21
  • 32. TCP/IP Model Application Layer • At this layer data comes in coded according to application layer protocols (i.e. http, ftp, IMAP etc.) • Data is sent off to the next lower layer (Transport Layer) to be encapsulated with a ‘lower layer’ protocol (e.g. TCP or UDP) to start actual data transfer
  • 33. TCP/IP Model Application Layer • Joe from Accounting has a document to send (data) -> Joe is the Web Browser (Application) • You are the Mailroom Boy (A.K.A. The Application Layer) • Joe hands gives you his document to FedEX
  • 34. Application Layer to Transport Layer Application Layer Joe’s Document “Data” Encapsulation (e.g.http) From Accounting Transport Layer
  • 35. Application Layer to Transport Layer Application Layer Joe’s Document “Data” (e.g.http) From Accounting Encapsulation You arrive at
  • 36. TCP/IP Model Transport Layer • Home to “TCP” in TCP/IP • TCP = Transmission Control Protocol
  • 37. TCP/IP Model Transport Layer • “Second” Layer • Uses two categories of protocols to “transport” / encapsulate the data(a.k.a. datagrams, TCP Segments) • Reliable (i.e. TCP - Transmission Control Protocol) • Unreliable (i.e. UDP - User Datagram Protocol)
  • 38. Reliable Transport (i.e. TCP) • Acknowledgement of data received by the destination device • Retransmission of data if not received - no missing data in reliable transport • Timeout if it takes too long for a message to arrive
  • 39. Reliable Transport (i.e. TCP) • Ordered - puts messages in proper sequence - buffers out of order messages and then properly re-orders before sending to application • Think valuable info - Financial data!
  • 40. Unreliable Transport (i.e. UDP) • No concept of Acknowledgement, Retransmission or Timeout • No Re-Ordering of the message sent - if two messages sent - the order they arrive can’t be predicted • Data integrity is checked IF the message arrives • Meant for speed/burst transmission (i.e. voice)
  • 41. Transport Layer Responsibilities • Flow Control - “Windowing” • Multiplexing - “Sockets” - Example: Web Browsers and Multiple Tabbed Pages • Segmentation - Breaks data into smaller chunks when sending • Clump - reassembles data when receiving (Reverse of Segmentation)
  • 42. TCP/IP Model Transport Layer • A Transport Layer HEADER is added to the Application Layer Data • This Transport Layer (“Protocol”) Header *plus* Application Layer Data is referred to as a SEGMENT (aka TCP Segment or Datagram)
  • 43. Reliable transport - Analogy • Using the mail analogy: Reliable transport is like sending registered/ courier mail • you get confirmation of when the package arrives at its destination • you also are told if it’s lost and can track where it gets lost (in theory...)
  • 44. Unreliable transport - Analogy • Unreliable is like sending a postcard • no return address - only who you’re sending to • you don’t care if it gets there you just send it and wish it luck
  • 45. Transport Layer = Weighing, Packaging and Getting a Shipping# 1) Weigh your message Fed-Ex Layer
  • 46. Transport Layer = Weighing, Packaging and Getting a Shipping# 1) Weigh your message Fed-Ex Layer 2) Message almost always too big
  • 47. Transport Layer = Weighing, Packaging and Getting a Shipping# 1) Weigh your message Fed-Ex Layer 2) Message almost always too big 3) Split into smaller messages “Segmentation”
  • 48. Transport Layer = Weighing, Packaging and Getting a Shipping# 1) Weigh your message Fed-Ex Layer 2) Message almost Packing Slip for always too big Content Info Only 3) Split into smaller messages “Segmentation”
  • 49. ~OR~
  • 50. Transport Layer = Weighing, Packaging and Getting a Shipping# 3) Split into smaller messages Segmentation
  • 51. Transport Layer = Weighing, Packaging and Getting a Shipping# 3) Split into 4*) Shipping #s smaller #1 #2 #3 (*optional) messages Segmentation
  • 52. Transport Layer = Weighing, Packaging and Getting a Shipping# 3) Split into 4*) Shipping #s smaller #1 #2 #3 (*optional) messages Segmentation Packing slip with: Content Info & Shipping# #1 #2 #3
  • 53. With or Without Shipping # What’s the Diff? #1, 2, 3 vs. No #’s
  • 54. With or Without Shipping # What’s the Diff? #1, 2, 3 vs. No #’s Reliable Unreliable Transport Transport Registered Unregistered Mail Mail Fed-EX Post Card TCP UDP
  • 55. With or Without Shipping # What’s the Diff? #1, 2, 3 vs. No #’s Reliable Unreliable Transport Transport TCP UDP
  • 56. Did you notice anything? • No sender address info • No recipient address info • This is handled and passed down to Internet Layer
  • 58. Application Layer to Transport Layer “Data” Layer Encapsulation (e.g.http) “Segment” aka “TCP Segment” or “datagram” Layer Transport Layer Header added to Application Layer Data
  • 59. Application Layer to Transport Layer Joe’s “Data” Document Layer Encapsulation (e.g.http) “Segment” aka Arrive at local “TCP Segment” or FedEX “datagram” Layer Transport Layer Header added to Application Layer Data
  • 60. Transport Layer to Internet Layer “Segment” aka “TCP Segment” or “datagram” Layer Encapsulation “Packet” Layer Internet Layer Header added to Transport Layer Segment
  • 61. Transport Layer to Internet Layer “Segment” aka “TCP Segment” or “datagram” Layer Encapsulation “Packet” Layer Internet Layer Header added to Transport Layer Segment
  • 62. TCP/IP Model Internet Layer • Home the “IP” of TCP/IP • IP = Internet Protocol • Provides addresses -> e.g. 192.168.1.1 or 46 Hayden Street M4Y 1V8
  • 63. TCP/IP Model Internet Layer • “Third” Layer • Also known as the “NETWORK (IP) LAYER” - and a whole bunch of names... • Responsible for: • Routing - (Big Topic) • Addressing / Subnetting • Routers operate at this Layer
  • 64. TCP/IP Model Internet Layer • An Internet Layer HEADER is added to the Transport Layer Segment • This Internet (“IP”) Header *plus* Transport Layer Segment is referred to as a PACKET
  • 65. Internet Layer - Time to give it a Shipping Label From: To: 123 ABC Street 321 BCA Ave M2N 4E6 L4R 6Y2 192.168.1.1 10.1.1.1 255.255.255.0 255.255.255.0
  • 66. Transport Layer to Internet Layer “Segment” aka “TCP Segment” or “datagram” Layer Encapsulation “Packet” Layer Internet Layer Header added to Transport Layer Segment
  • 67. Internet Layer to Link Layer “Packet” Layer Encapsulation “Frame” Link Layer Link Layer Header added to Internet Link Layer Footer added to Internet Layer Layer Packet Packet
  • 68. TCP/IP Model Link Layer • “Last” / “Bottom” / “Fourth” Layer • Also known as the “DATA LINK, NETWORK LINK LAYER” • Has 2 Components • Software - “Data Link” • LAN (Ethernet) • Hardware - “Physical Link” • Voltages • Pins on a connector (8 for RJ-45)
  • 69. TCP/IP Model Link Layer • MTU (Maximum Transmission Unit) is controlled by this layer • Max MTU over Ethernet is 1500-bytes • HUB & Switch operate at this layer • We use MAC addresses (Media Access Control) here NOT IP addresses
  • 70. TCP/IP Model Link Layer • A Link Layer HEADER *and* FOOTER is added to the Internet Layer Packet • This Link Layer Header & Footer *plus* Internet Layer Packet is referred to as a FRAME
  • 71. TCP/IP Model Link Layer • This is where the package makes it to the back of the warehouse • It is then ready to be put on to a shipping truck, van etc.
  • 72. TCP/IP Model Link Layer • This layer specifies how the data is to leave FedEX store -> Cube Van only? 16 Wheeler?
  • 73. Transport Layer to Network (IP) Layer “Packet” Layer Encapsulation “Frame” Link Layer Link Layer Header added to Internet Link Layer Footer added to Internet Layer Layer Packet Packet
  • 74. TCP/IP Model Data Encapsulation Process Layer “Data” Encapsulation “Segment” aka “TCP Segment” or “Datagram” “Packet” “Frame”
  • 75. TCP/IP: How data is packaged Thanks! Email: Ray@RaymondKao.com Twitter: @RayKao

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
  62. \n
  63. \n
  64. \n
  65. \n
  66. \n
  67. \n
  68. \n
  69. \n
  70. \n
  71. \n
  72. \n
  73. \n
  74. \n
  75. \n