Documente Academic
Documente Profesional
Documente Cultură
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 1
Connection-Oriented and Connectionless Protocols
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 2
Connection-Oriented and Connectionless
Protocols and the OSI Model
7 Application
6 Presentation
5 Session
3 Network
2 Data Link
1 Physical
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 3
TCP
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 4
UDP
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 5
IP
• Responsible for packet formatting, routing individual datagrams, and the logical
addressing scheme.
• Acts as intermediary between higher protocol layers and the network.
• Carries a TCP or UDP payload.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 6
ICMP
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 7
ICMP (Cont.)
Destination
Unreachable
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 8
ARP
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 9
Port Mirroring
• Local or remote
• Local port mirroring sends all data to the node connected to the second switch port.
• Remote port mirroring sends data to the port on a different device.
• Diagnostic tool
• Enables traffic monitoring without a big performance hit.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 10
Activity: Identifying Protocols on a TCP/IP Network
• At the Greene City Interiors branch office, the network administrator has asked you
to identify the protocols that are in use on the network.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 11
Dotted Decimal Notation
Binary IP Address
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 12
IP Address Settings
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 13
Binary and Decimal Conversion
• 32 bits long
• Expressed in dotted decimal notation
• Network address and host address
• Apply a subnet mask to identify network and host addresses
• All IP addresses on a network must be unique
192.168.1.150
192.168.1.10 192.168.1.1
192.168.1.100
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 15
Subnet Masks
A number assigned to each host for dividing the IP address into network
and host portions.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 16
Subnets
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 17
Subnets (Cont.)
Subnet A Subnet B
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 18
Benefits of Subnetting
Benefit Description
If more IP addresses than hosts on a network,
IP addresses go to waste. Subnetting reduces IP
Conserve IP addresses addresses available for a subnetwork, making
the unused addresses available for other
subnetworks.
Administrator divides the network into groups
Improve network performance of devices that frequently interact with each
other.
Administrator divides the network based on
Provide a more secure network environment severs that host restricted applications or
sensitive data.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 19
Activity: Identifying TCP/IP Addressing Information
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 20
IP Address Assignment Rules
139.80.100.30
139.80.100.10 255.255.0.0
255.255.0.0
139.90.50.20
255.255.0.0
139.80.100.20
255.255.0.0
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 21
Activity: Converting Binary and Decimal Numbers
• At the Greene City Interiors branch office, the network administrator wants to make
sure you understand how to convert binary numbers into decimal numbers.
• The administrator reminds you that binary is a base 2 numbering system and gives
you some numbers to convert.
__ __ __ __ __ __ __ __
128 64 32 16 8 4 2 1
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 22
IP Address Classes
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 23
Default Subnet Masks
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 24
Available Host and Network Addresses
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 25
Private IP Addresses
An address used for a node that needs IP connectivity only within the
enterprise network, but not external connections to the Internet.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 26
Default Gateways
209.18.47.205
192.168.1.12
192.168.1.1
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 27
Activity: Identifying Default IP Addressing Schemes
• At the Greene City Interiors branch office, you now need to verify the subnet mask
and gateway of a few devices and verify that they are on the correct subnet and are
configured properly.
• You need to check this TCP/IP information on each device.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 28
Custom Subnets
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 29
Custom Subnet Masks
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 30
Custom Subnet Masks (Cont.)
11000000 255.255.255.192 4 62
11100000 255.255.255.224 8 30
11110000 255.255.255.240 16 14
11111000 255.255.255.248 32 6
11111100 255.255.255.252 64 2
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 31
Classless Inter-Domain Routing
An IP addressing scheme that treats its custom subnet mask like a 32-bit
binary word. Also referred to as supernetting.
Network address
192.168.12.0
Networks with 255.255.255.0 192.168.12.0
default subnet 192.168.12.0/23
masks 192.168.13.0 255.255.254.0
255.255.255.0 Combined to form one Indicates how
network with a custom mask many 1s in the
custom mask
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 32
Custom Subnetting Process
11111111.11111111.11111111.00000000 11111111.11111111.11111111.10000000
Network Host Network Host
Subnetwork
192.168.1.0/25
“subnet zero”
Two subnetworks
One network with
with 128 host
256 host addresses
addresses each
Network
192.168.1.0/24
Subnetwork
192.168.128.0/25
“subnet 128”
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 33
Custom Subnetting Process (Cont.)
11111111.11111111.11111111.10000000 11111111.11111111.11111111.11000000
Network Host Network Host
Subnetwork
192.168.1.0/26
Subnetwork “subnet zero”
192.168.1.0/25
“subnet zero” Subnetwork
Two subnetworks Four subnetworks
192.168.64.0/26
with 128 host with 64 host
addresses each addresses each “subnet 64”
Subnetwork
192.168.128.0/26
Subnetwork “subnet 128”
192.168.128.0/25
“subnet 128”
Subnetwork
192.168.192.0/26
“subnet 192”
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 34
Activity: Creating Custom IP Addressing Schemes
• At the Greene City Interiors branch office, you have been asked to implement TCP/IP
on a divided network.
• Your network ID is currently 192.168.1.0/24.
• You need to divide this in half (two subnets).
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 35
IPv4 Address Space Limitations
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 36
IPv6
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 37
Transmission Types
Transmission
Description Examples
Type
• Similar to IPv4 unicast address. • Link local: FE80::/64
Unicast
• One address identifies one interface. • Unspecified address: ::
• Packet sent to a multicast address is
delivered to all interfaces in the group.
Multicast • Targeted message goes only to FF01:0:0:0:0:0:0:1
members of the multicast group.
• Replaces IPv4 broadcast addressing.
• Data goes from a server to the nearest
host in an anycast group.
• Host imitates another anycast and
sends data to the next nearest host,
Anycast 2001:1::1/128
until all hosts in the anycast group have
the data.
• Hosts that are not part of the anycast
group ignore the transmission.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 38
Unicast Address Types
Type Description
• Globally routable public addresses.
• Also known as aggregatable global unicast addresses.
Global addresses
• Designed so that they can be summarized for efficient routing.
• Equivalent to the entire IPv4 public address space.
• Used for internal networks that are not routable on the Internet.
• The equivalent of IPv4 private, nonroutable address blocks.
Site-local addresses • Begin with FEC0::/10.
• Replaced with “unique local addresses” in the block fc00::/7.
• fd00::/8 is set aside for use in internal networks.
• Used to communicate within a network segment or broadcast
domain.
Link-local addresses • Automatically assigned on private network segments with no router.
• Usually begin with FE80, but can range up to FCFF.
• The equivalent of self-assigned IPv4 APIPA addresses.
• Used on mixed networks to support routing of IPv6 data across IPv4
IPv6 transitional networks.
addresses
• Will be phased out when all routers convert to IPv6.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 39
IPv6 Addresses
• An IPv6 address is usually separated into eight groups of four hexadecimal digits.
Each quartet of four hexadecimal digits equals 16 bits.
2001:0db8:85a3:0000:0000:8a2e:0370:7334
• You can omit any leading zeros from the address notation.
2001:db8:85a3:0:0:8a2e:370:7334
• You can compress contiguous sets of 0 blocks by using the double colon notation ::
2001:db8:85a3::8a2e:370:7334
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 40
IPv6 Addresses (Cont.)
Subnet
Site Prefix ID Interface ID
2001:0db8:85a3:0000:0000:8a2e:0370:7334/64
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 41
IPv6 Prefixes
The leftmost bits of an IPv6 address that are used for routing IPv6
packets.
Subnet
Site Prefix ID Interface ID
2001:0db8:85a3:0000:0000:8a2e:0370:7334/64
• Reserved prefixes
• 2001:db8::/32 for documentation.
• 2002::/16 for 6to4 routing.
• fe80::/10 for link-local addresses.
• ff00::/8 for multicast addresses.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 42
IPv6 Tunneling
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 43
EUI-64
MAC address of
an interface 01-00-11-22-33-44
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 44
Router Solicitation and Advertising
• RA messages (ICMP Type 134) are sent to the all-nodes multicast address ff02::1.
• RS messages (ICMP Type 133) are sent to all routers on the link (ff02::2).
RS
RA
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 45
Neighbor Discovery
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 46
Neighbor Discovery (Cont.)
Local link
Host A ICMPv6 packet:
ICMPv6 packet:
Type: 135
Type: 136
SrcAddy: A
SrcAddy: B
DstAddy: B’s solicited-
DstAddy: A
node multicast
Data: B’s link-layer
Data: A’s link-layer
address
address
Host B
Host C
Remote network
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 47
Protocol Binding
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 48
Protocol Binding (Cont.)
Network interface
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 49
IPv4 and IPv6 Differences
Parameter Description
Address length IPv4 addresses use 32 bits, whereas IPv6 addresses use 128 bits.
Header information IPv6 headers are simpler, but expandable if you need to include
structure options.
Loopback address On an IPv4 network, it is 127.0.0.1, and on an IPv6 host, it is ::1.
Default route address
The IPv4 default route address is 0.0.0.0/0, and the IPv6 default
(anything unknown is sent
route address is ::/0.
to the default gateway)
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 50
Activity: Examining IPv6 Addressing
• At the Greene City Interiors branch office, you have been asked to discover if IPv6 is
enabled on network devices.
• You need to check this IPv6 information on each device.
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 51
Reflective Questions
Copyright (c) 2018 CompTIA Properties, LLC. All Rights Reserved. | CompTIA.org 52