1 of 44

Module 3: Protocols and Models

CCNA Routing and Switching:

Introduction to Networks v7.0 (ITN)

This Slides is prepared by:

Eng. Rawan Aljamal

​

Cisco Certified CCNA Instructor Trainer

​

1

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

2 of 44

Communications Fundamentals

  • Networks can vary in size and complexity.
  • It is not enough to have a connection; devices must agree on “how” to communicate.
  • There are three elements to any communication: There will be a source (sender), there will be a destination (receiver) and there will be a channel (media) that provides for the path of communications to occur.
  • All communications are governed by protocols.
  • Network protocol is a set of rules and procedures that governs data communications.

​

2

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

3 of 44

Communications Fundamentals

Protocols must account for the following requirements:

    • An identified sender and receiver.
    • Common language and grammar.
    • Speed and timing of delivery.
    • Confirmation or acknowledgment requirements.

​

3

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

4 of 44

Network Protocol Requirements

Common computer protocols must be in agreement and include the following requirements:

    • Message encoding
    • Message formatting and encapsulation
    • Message size
    • Message timing
    • Message delivery options

​

4

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

5 of 44

The Rules�Message Encoding

  • Encoding is the process of converting information into another acceptable form for transmission.
  • Decoding reverses this process to interpret the information.

5

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

6 of 44

The Rules�Message Encoding

Encoding between hosts must be in an appropriate format for the medium.

    • Messages sent across the network are converted to bits
    • The bits are encoded into a pattern of electrical, microwaves, or light impulses.
    • The destination host must decode the signals to interpret the message.

6

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

7 of 44

The Rules�Message Formatting and Encapsulation

  • When a message is sent, it must use a specific format or structure. Message formats depend on the type of message and the channel that is used to deliver the message.
  • “The process of placing one message format (the letter) inside another message format (the envelope) to prepare it for transmission” is called encapsulation.
  • Decapsulation occurs when the process is reversed by the recipient and the letter is removed from the envelope.

7

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

8 of 44

The Rules�Message Size

In a network, the size restrictions on frames requires the source host to break a long message into individual pieces that meet both the minimum and maximum size requirements.

8

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

9 of 44

The Rules�Message Timing

Message timing includes the following:

Flow Control – Manages the rate of data transmission and defines how much information can be sent and the speed at which it can be delivered.

Response Timeout – Manages how long a device waits when it does not hear a reply from the destination.

Access method - Determines when someone can send a message.

      • There may be various rules governing issues like “collisions”. A collision happens when more than one device sends traffic at the same time and the messages become corrupt.
      • Some protocols are proactive and attempt to prevent collisions; other protocols are reactive and establish a recovery method after the collision occurs.

​

9

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

10 of 44

The Rules�Message Delivery Options

Message delivery may one of the following methods:

    • Unicast – one to one communication
    • Multicast – one to many, typically not all
    • Broadcast – one to all

​

Note: Broadcasts are used in IPv4 networks, but are not an option for IPv6. Later we will also see “Anycast” as an additional delivery option for IPv6.

​

10

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

11 of 44

Protocols

11

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

11

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

11

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

12 of 44

Network Protocol Overview

Network protocols define a common set of rules.

  • Can be implemented on devices in:
    • Software
    • Hardware
    • Both
  • Protocols have their own:
    • Function
    • Format
    • Rules

Protocol Type

Description

Network Communications

Enable two or more devices to communicate over one or more networks such as Hypertext Transfer

Protocol (HTTP).

Network Security

Secure data to provide authentication, data integrity, and data encryption such as Secure Sockets Layer (SSL), and Transport Layer Security (TLS).

Routing

Enable routers to exchange route information, compare path information, and select best path.

Service Discovery

Used for the automatic detection of devices or services such as Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS).

12

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

13 of 44

Network Protocol Functions

  • Network protocols define a common format and set of rules for exchanging messages between devices.
  • Protocols are implemented by end devices and intermediary devices in software, hardware, or both.
  • Protocols may have one or more functions.

Function

Description

Addressing

Identifies sender and receiver

Reliability

Provides guaranteed delivery

Flow Control

Ensures data flows at an efficient rate

Sequencing

Uniquely labels each transmitted segment of data

Error Detection

Determines if data became corrupted during transmission

Application Interface

Process-to-process communications between network applications such as web browser and web server.

13

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

14 of 44

Standards Organizations

14

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

14

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

14

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

15 of 44

Open Standards

Open standards are publicly available specifications that allows different products or services work together.

Open standards encourage: interoperability, competition and innovation.

15

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

16 of 44

Internet Standards

  • Internet Society (ISOC) - Promotes the open development and evolution of internet.
  • Internet Architecture Board (IAB) - Responsible for management and development of internet standards.
  • Internet Engineering Task Force (IETF) - Develops, documents, updates, and maintains internet and TCP/IP technologies and protocols (RFCs).
  • Internet Research Task Force (IRTF) - Focused on long-term research related to internet and TCP/IP protocols.

16

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

17 of 44

Internet Standards

​

    • Internet Corporation for Assigned Names and Numbers (ICANN) - Coordinates IP address allocation, the management of domain names, and assignment of other information
    • Internet Assigned Numbers Authority (IANA) - Oversees and manages IP address allocation, domain name management, and protocol identifiers for ICANN

17

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

18 of 44

Electronic and Communications Standards

  • Institute of Electrical and Electronics Engineers (IEEE, pronounced “I-triple-E”) - dedicated to creating standards in power and energy, healthcare, telecommunications, and networking
  • Electronic Industries Alliance (EIA) - develops standards relating to electrical wiring, connectors, and the 19-inch racks used to mount networking equipment
  • Telecommunications Industry Association (TIA) - develops communication standards in radio equipment, cellular towers, Voice over IP (VoIP) devices, satellite communications, and more
  • International Telecommunications Union-Telecommunication Standardization Sector (ITU-T) - defines standards for video compression, Internet Protocol Television (IPTV), and broadband communications, such as a digital subscriber line (DSL)

18

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

19 of 44

Reference Models�(Network Models)

19

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

19

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

19

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

20 of 44

The Benefits of Using a Layered Model

Complex concepts such as how a network operates can be difficult to explain and understand. For this reason, a layered model is used.

Two layered models describe network operations:

  • Open System Interconnection (OSI) Reference Model.
  • TCP/IP Reference Model.

20

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

21 of 44

The Benefits of Using a Layered Model

These are the benefits of using a layered model:

  • Assist in protocol design because protocols that operate at a specific layer have defined information that they act upon and a defined interface to the layers above and below.
  • Foster competition because products from different vendors can work together.
  • Prevent technology or capability changes in one layer from affecting other layers above and below.
  • Provide a common language among network engineers to describe networking functions and capabilities.

​

21

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

22 of 44

The OSI Reference Model

OSI Model Layer

Description

7 - Application

Contains protocols used for process-to-process communications.

6 - Presentation

Provides common representation of the data transferred between application layer services (character encoding, encryption, and compression).

5 - Session

Establishes, manages, and ends communication sessions between devices.

4 - Transport

Defines services to segment, transfer, and reassemble the data for individual communications.

3 - Network

Determines the best path and routes data between different networks.

2 - Data Link

Uses MAC addresses to deliver data to the correct device within a local network.

1 - Physical

Transmits raw bits as electrical, light, or radio signals over the physical medium.

22

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

23 of 44

The TCP/IP Reference Model

TCP/IP Model Layer

Description

Application

Provides user-facing network services, including data representation, encoding, and session control.

Transport

Ensures reliable end-to-end data delivery through segmentation, error checking, and flow control.

Internet

Determines the best path through the network (Routing).

Network Access

Controls the hardware devices and media that make up the network.

23

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

24 of 44

OSI and TCP/IP Model Comparison

  • The OSI model divides the network access layer and the application layer of the TCP/IP model into multiple layers.
  • OSI Layers 1 and 2 discuss the necessary procedures to access the media and the physical means to send data over a network.

​

24

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

25 of 44

Protocol Suites

25

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

25

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

25

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

26 of 44

Evolution of Protocol Suites

Protocol suite is a group of inter-related protocols necessary to perform a communication function.

There are several protocol suites.

  • Internet Protocol Suite.
  • Open Systems Interconnection (OSI) protocols.
  • AppleTalk.
  • Novell NetWare.

​

​

26

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

27 of 44

TCP/IP Protocol Suite

  • TCP/IP protocols operate at the application, transport, and internet layers.
  • The most common network access layer LAN protocols are Ethernet and WLAN (wireless LAN).

​

27

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

28 of 44

Data Encapsulation

28

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

28

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

28

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

29 of 44

Encapsulation Example

  • Encapsulation is the process where protocols add their information to the data.
  • Encapsulation is a top-down process.
  • The level above does its process and then passes it down to the next level of the model.
  • This process is repeated by each layer until it is sent out as a bit stream.

29

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

30 of 44

Decapsulation Example

  • Data is decapsulated as it moves up the stack (bottom-up process).
  • When a layer completes its process, that layer strips off its header and passes it up to the next level to be processed. This is repeated at each layer until it is a data stream that the application can process.
    1. Received as Bits (Bit Stream)
    2. Frame
    3. Packet
    4. Segment
    5. Data (Data Stream)

30

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

31 of 44

Protocol Data Units

  • At each stage of the encapsulation/ decapsulation , a PDU has a different name to reflect its new functions.
  • There is no universal naming convention for PDUs, in this course, the PDUs are named according to the protocols of the TCP/IP suite.
  • PDUs passing down the stack are as follows (encapsulation):
    1. Data (Data Stream)
    2. Segment
    3. Packet
    4. Frame
    5. Bits (Bit Stream)

​

31

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

32 of 44

Segmenting and multiplexing Messages

Segmenting is the process of breaking up messages into smaller units.

Multiplexing is the processes of taking multiple streams of segmented data and interleaving them together.

​

Segmenting messages has two primary benefits:

  • Increases speed - Large amounts of data can be sent over the network without tying up a communications link.
  • Increases efficiency - Only segments which fail to reach the destination need to be retransmitted, not the entire data stream.

32

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

33 of 44

Sequencing

Sequencing messages is the process of numbering the segments so that the message may be reassembled at the destination.

TCP is responsible for sequencing the individual segments.

33

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

34 of 44

Addresses

Both the data link and network layers use addressing to deliver data from source to destination.

Network layer source and destination addresses - Responsible for delivering the IP packet from original source to the final destination (from network to network).

Data link layer source and destination addresses – Responsible for delivering the data link frame from one network interface card (NIC) to another NIC on the same network.

34

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

35 of 44

Layer 3 Logical Address

An IP address is the network layer, or Layer 3, logical address used to deliver the IP packet from the original source to the final destination.

The IP packet contains two IP addresses:

    • Source IP address - The IP address of the sending device, original source of the packet.
    • Destination IP address - The IP address of the receiving device, final destination of the packet.

​

35

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

36 of 44

Layer 3 Logical Address

An IP address contains two parts:

  • Network portion (IPv4) or Prefix (IPv6) 
    • The left-most part of the address indicates the network group which the IP address is a member.
    • Each LAN or WAN will have the same network portion.
  • Host portion (IPv4) or Interface ID (IPv6) 
    • The remaining part of the address identifies a specific device within the group.
    • This portion is unique for each device on the network.

36

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

37 of 44

Layer 2 Physical Addresses

  • The purpose of the data link address (Physical address) is to deliver the data link frame from one network interface to another network interface on the same network.
  • Since data link addressing is local addressing (whose next address), it will have a source and destination for each segment or hop of the journey to the destination.

37

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

38 of 44

Role of Physical Addresses: Same IP Network

When devices are on the same Ethernet network the data link frame will use the actual MAC address of the destination NIC.

MAC addresses are physically embedded into the Ethernet NIC and are local addressing.

  • The Source MAC address will be that of the originator on the link.
  • The Destination MAC address will always be on the same link as the source, even if the ultimate destination is remote.

​

38

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

39 of 44

Default Gateway

  • A router or layer 3 switch can be a default-gateway (DGW).
  • GW must have an IP address in the same range as the rest of the LAN that can either obtained statically or dynamically through DHCP in IPv4.
  • IPv6 sends the DGW through a router solicitation (RS) or can be configured manually.
  • If a device has no GW or wrong GW information, its traffic will not be able to leave the LAN.
  • A DGW is static route which will be a last resort route in the host routing table.
  • It can accept data from the LAN and is capable of forwarding traffic to remote hosts outside the LAN.

​

39

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

40 of 44

Role of Physical Addresses: Different IP Networks

When the final destination is remote, Layer 3 will provide Layer 2 with the local default gateway IP address, also known as the router address.

  • The default gateway (DGW) is the router interface IP address that is part of this LAN and will be the “door” or “gateway” to all other remote locations.
  • All devices on the LAN must be told about this address or their traffic will be confined to the LAN only.
  • Once Layer 2 on PC1 forwards to the default gateway (Router), the router then can start the routing process of getting the information to actual destination.

​

40

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

41 of 44

Role of Physical Addresses: Different IP Networks

  • The data link addressing is local addressing so it will have a source and destination for each link.
  • The MAC addressing for the first segment is :
    • Source – AA-AA-AA-AA-AA-AA (PC1) Sends the frame.
    • Destination – 11-11-11-11-11-11 (R1- Default Gateway MAC) Receives the frame.

Note: While the L2 local addressing will change from link to link or hop to hop, the L3 addressing remains the same.

​

​

41

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

42 of 44

Concluding remarks

    • Two addresses are needed to move a packet from the source to the destination: MAC Address (Source and destination), IP Address (Source and destination).
    • IP addresses (source and destination) are always known before encapsulating data. If destinations are identified by hostnames or URLs, it will be translated to IP addresses.
    • Every host must have a gateway IP address to communicate with remote devices in other networks.
    • Physical address (MAC address) can be gotten using resolution protocols such as Address resolution protocol (ARP).
    • Data in the packet will never be modified; some addresses may change such as the physical address when data travels from networks to another.
    • Layer 3 address (IP address) will not be modified when data travels from the original source to the original destination, unless Network address translation (NAT) is used.

​

42

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

43 of 44

Suggested Lab Work

Page #

Activity Name

3.5.5

Investigate the TCP/IP and OSI Models in Action

3.7.10

Use Wireshark to View Network Traffic

43

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

44 of 44

44

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential