SlideShare a Scribd company logo
1 of 34
1
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Network layer
2
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
PLAN
1. Network Layer characteristics
2. IPv4 package
3. IPv6 package
4. Routing methods on hosts
5. Routing tables on routers
3
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
8.1 Network Layer
characteristics
4
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Network layer
• Provides services that allow end devices to
exchange data
• IP version 4 (IPv4) and IP version 6 (IPv6) are the
communication protocols of the main network layer.
• The network layer performs four basic operations:
• Addressing end devices
• Encapsulation
• Routing
• Deencapsulation
5
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IP encapsulation
• The IP protocol encapsulates a transport
layer segment.
• The IP can use an IPv4 or IPv6 packet
and does not affect the Layer 4
segment.
• The IP packet will be checked by all
Layer 3 devices as the network
progresses.
• IP addressing does not change from
source to destination.
6
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IP Protocol Characteristics
IP is designed to have low overhead, and can be described as:
 Without establishing a connection
 Non-guaranteed delivery
 Independence from the environment
7
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Without establishing a connection
IP protocol. Without establishing a connection.
 The IP does not establish a connection to the destination until the packet is sent.
 Control information is not required (synchronization, confirmations, etc.).
 The destination will receive the packet when it arrives, but no advance IP notifications are
sent.
 If there is a need for connection-oriented traffic, then another protocol will handle this (usually
TCP at the transport layer).
8
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Non-guaranteed delivery
• IP does not guarantee package
delivery.
Thus, IP reduces overhead because
there is no mechanism to resend data
that is not received.
• The IP is not waiting for
confirmation.
• The IP does not know if another
device is working or if another
device has received a packet.
9
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Independence from the environment
IP is unreliable:
 It cannot manage or fix undelivered or corrupted
packages.
 IP cannot retransmit information after an error.
 IP cannot restore the sequence of packets.
 IP must rely on other protocols for these functions.
IP is independent of the environment.
 IP has nothing to do with the type of frame required at
the link layer or the type of media at the physical layer.
 IP can be transmitted over any type of media: copper,
fiber optic or wireless channels.
10
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
The network layer sets the maximum data
transfer unit (MTU).
 The network layer gets this from the
control information sent by the link
layer.
 The network then sets the MTU size.
Fragmentation is when layer 3 splits an
IPv4 packet into smaller units.
 Fragmentation causes a delay.
 IPv6 does not fragment packets.
 Example. The router is transitioning
from Ethernet to a slow WAN with a
smaller MTU
11
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
8.2 IPv4 package
12
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv4 packet header
IPv4 is one of the main network layer communication protocols.
The network header has many purposes:
 It ensures that the packet is sent in the right direction (to the destination).
 It contains information for network layer processing in various fields.
 The information in the header is used by all Layer 3 devices that process the packet
13
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv4 packet header
IPv4 Network Header Characteristics:
 It is shown in binary format.
 Contains several fields of information
 The diagram is read from left to right, 4 bytes
per line
 The two most important fields are source and
destination.
Protocols can have one or more functions.
14
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv4 packet header
Among the most important fields in the IPv4 header are the following.
Function Description
Version This is for v4, unlike v6, 4-bit field = 0100
Differentiated services Used for QoS: DiffServ — DS field or old IntServ — ToS or service type
Header Checksum Detecting corruption in the IPv4 header
Lifetime (TTL) The number of jumps of the 3rd level. When it becomes null, the router drops
the packet.
Protocol I.D.s next-level protocol: ICMP, TCP, UDP, etc.
IPv4 source address 32-bit source address
Destination IP address 32-bit destination address
15
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
8.3 IPv6 package
16
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv4 Packet Restrictions
IPv4 has three main limitations:
 Depletion of IPv4 addresses — at the present time, IPv4 addressing capabilities have
been exhausted.
 Lack of end-to-end connectivity - in order for IPv4 to exist for so long, private addressing
and NAT were created. This put an end to direct communication with public addressing.I
 ncreased network complexity — NAT was conceived as a temporary solution, it creates
such problems in the network as a side effect of manipulating the addressing of network
headers. NAT causes latency issues and troubleshooting.
17
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv6 Review
• The Working Group of Internet Technology
Engineers (Internet Engineering Task Force)
• IPv6 overcomes the limitations of IPv4.
• Advantages that IPv6 provides:
• The address space has been increased —
based on a 128-bit address, not a 32-bit
oneImproved packet handling.
• The IPv6 header structure has been simplified
by reducing the number of fields.
• Eliminates the need for NAT — since there is a
huge amount of addressing, there is no need to
use private addressing internally and map to a
shared public address
18
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv6 IPv4 Packet header fields in the IPv6 packet header
• The IPv6 header is simplified, but
not smaller in size.
• The header is fixed with a length of
40 bytes or octets.
• Several IPv4 fields have been
removed to improve performance.
• Some IPv4 fields have been
removed to improve performance:
• Flag
• Fragment Offset
• Header Checksum
19
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
IPv6 packet header
Among the most important fields in the IPv4 header are the following.
Функция Описание
Version This is for IPv6, unlike v4, 4-bit field = 0110
Traffic class Used for QoS: equivalent to the DiffServ — DS field
Flow label Tells the device to process identical stream labels in the same way, a 20-bit
field
Payload length This 16-bit field indicates the length of the data block or payload of the IPv6
packet.
Next heading I.D.s next-level protocol: ICMP, TCP, UDP, etc.
Transition limit Replaces the TTL Level 3 Transition Counter field
IPv4 source address 128-bit source address
Destination IP address 128-bit destination address
20
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
An IPv6 packet can also contain extension headers (EH).
EH header Characteristics:
 provide additional information about the network layer
 are optional
 placed between the IPv6 header and the payload
 used for fragmentation, security, mobility support and more.
Note: Unlike IPv4, routers do not divide IPv6-directed packets into parts.
21
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
8.4 Routing methods on hosts
22
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Decision on packet forwarding by node
• Packages are always created in the source.
• Each host device creates its own routing table.
• The host can send packets as follows:
• Sam — 127.0.0.1 (IPv4),: :1 (IPv6)
• Local nodes — the destination is on the same local network
• Remote hosts — devices are not on the same LAN
23
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Decision on packet forwarding by node (Continued)
• The source device determines whether the destination is local or remote
• Detection method:
• The IPv4 Source uses its own IP address and subnet mask, as well as the destination IP address
• The IPv6 Source uses the network address and prefix declared by the local router
• Local traffic is dumped from the host interface for processing by an intermediate device.
• Remote traffic is redirected directly to the default gateway on the local network.
24
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Default Gateway
The router or layer 3 switch can be the default gateway.
Features of the Default Gateway (HCV):
• It must have an IP address in the same range as the rest of the LAN.
• It can receive data from the local network and is able to redirect traffic from the
local network.
• It can route to other networks.
If a device does not have a default gateway or a bad default gateway, its traffic
will not be able to leave the local network.
25
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Using the default Gateway
• The host will know the default gateway
(DGW) either statically or via DHCP in
IPv4.
• IPv6 sends DGW via the Request
Router (RS) or can be configured
manually.
• DGW is a static route that will be the
route of last resort in the routing table.
• All devices on the LAN will need a DGW
router if they intend to send traffic
remotely.
26
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Host Routing Tables
In Windows, print the route or
netstat -r to display the PC routing
table
Three sections displayed by these
two commands:
• Interface List — all potential
interfaces and MAC addressing
• IPv4 Routing Table
• IPv6 Routing Table
27
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
8.5 Introduction to Routing
28
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
The decision to forward router packets
What happens when the router receives a frame from the host device?
29
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Введение в маршрутизацию
IP Router Routing Table
There are three types of routes in the router's routing table:
 Direct connection — these routes are automatically added by the router, provided that the interface is
active and has addresses.
 Remote routes — these routes do not have a direct connection, they can be explored:
• Manually — with a static route
• Dynamically — using a routing protocol so that routers share information with each other
 Default route — this redirects all traffic to a certain direction if there is no match in the routing table
30
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Static routing
Static route characteristics:
 Manually configured.
 It is necessary to configure manually by
the administrator when changing the
topology
 Suitable for small networks without
redundancy
 It is often used in combination with the
dynamic routing protocol to configure the
default route
31
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Dynamic routing
Dynamic routes automatically provide:
 Remote network detection
 Updating routing data
 Choosing the optimal path to
destination networks.
 Finding new best paths when topology
changes
Dynamic routing can also share static
default routes with other routers.
32
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
Introduction to the IPv4 Routing Table
The show ip route command shows the
following route sources:
 the IP address of the local interface with a
direct connection
 C – Directly connected network
 S — Static route was manually configured
by the administrator
 O – OSPF
 D – EIGRP
This command shows the types of routes:
 Directly connected network – C and L
 Remotemarts to remote networks – O, D,
etc.
33
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
New terms and commands
• Encapsulation
• Routing
• De-encapsulation
• Data payload
• Packet
• Internet Protocol Version
4 (IPv4)
• Internet Protocol Version
6 (IPv6)
• Network Layer PDU = IP
Packet
• IP Header
• Best effort delivery
• Media independent
• Connectionless
• Unreliable
• Maximum Transmission
Unit (MTU)
• Version
• Differentiated Services
(DS)
• Time-to-Live (TTL)
• Internet Control Message
Protocol (ICMP)
• Identification, Flags,
Fragment Offset fields
• Network Address
Translation (NAT)
• Traffic Class
• Flow Label
• Payload Length
• Next Header
• Hop Limit
• Extension Headers
• Local host
• Remote host
• Default Gateway
34
© Cisco и/или Партнеры, 2016 г. Все права защищены.
Конфиденциальная информация Cisco
New terms and commands
• netstat –r
• route print
• interface list
• IPv4 Route Table
• IPv6 Route Table
• directly-connected routes
• remote routes
• default route
• show ip route
• route source
• destination network
• outgoing interface
• administrative distance
• metric
• next-hop
• route timestamp

More Related Content

Similar to Network Layer Fundamentals

Chapter 5 Routing.pptx
Chapter 5 Routing.pptxChapter 5 Routing.pptx
Chapter 5 Routing.pptxAyaanMohamed4
 
A comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodingsA comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodingsGunter Van de Velde
 
PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview PROIDEA
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNCisco Canada
 
A comparison of Segment Routing Data-Plane encodings
A comparison of Segment Routing Data-Plane encodingsA comparison of Segment Routing Data-Plane encodings
A comparison of Segment Routing Data-Plane encodingsGunter Van de Velde
 
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6IJERA Editor
 
Internet Protocol Version 6 By Suvo 2002
Internet Protocol Version 6 By Suvo 2002Internet Protocol Version 6 By Suvo 2002
Internet Protocol Version 6 By Suvo 2002suvobgd
 
Apnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshopApnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshopNguyen Minh Thu
 
Tutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoTutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoAPNIC
 
Ex 1 chapter05-network-layer-tony_chen
Ex 1 chapter05-network-layer-tony_chenEx 1 chapter05-network-layer-tony_chen
Ex 1 chapter05-network-layer-tony_chenĐô GiẢn
 
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIES
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIESANALYSIS OF IPV6 TRANSITION TECHNOLOGIES
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIESIJCNCJournal
 
SRWE_Module_14.pptx
SRWE_Module_14.pptxSRWE_Module_14.pptx
SRWE_Module_14.pptxRobinRohit2
 
SRWE_Module_14.pptx
SRWE_Module_14.pptxSRWE_Module_14.pptx
SRWE_Module_14.pptxNguyenNM
 

Similar to Network Layer Fundamentals (20)

Chapter 5 Routing.pptx
Chapter 5 Routing.pptxChapter 5 Routing.pptx
Chapter 5 Routing.pptx
 
i pv6
i pv6i pv6
i pv6
 
A comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodingsA comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodings
 
PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPN
 
Ipv6 routing
Ipv6 routingIpv6 routing
Ipv6 routing
 
A comparison of Segment Routing Data-Plane encodings
A comparison of Segment Routing Data-Plane encodingsA comparison of Segment Routing Data-Plane encodings
A comparison of Segment Routing Data-Plane encodings
 
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6
Implementation of “Traslator Strategy” For Migration of Ipv4 to Ipv6
 
Internet Protocol Version 6 By Suvo 2002
Internet Protocol Version 6 By Suvo 2002Internet Protocol Version 6 By Suvo 2002
Internet Protocol Version 6 By Suvo 2002
 
Apnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshopApnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshop
 
Cisco CCNA module 10
Cisco CCNA module 10Cisco CCNA module 10
Cisco CCNA module 10
 
Tutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoTutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demo
 
Ex 1 chapter05-network-layer-tony_chen
Ex 1 chapter05-network-layer-tony_chenEx 1 chapter05-network-layer-tony_chen
Ex 1 chapter05-network-layer-tony_chen
 
I pv4 vs ipv6
I pv4 vs ipv6I pv4 vs ipv6
I pv4 vs ipv6
 
14 564
14 56414 564
14 564
 
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIES
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIESANALYSIS OF IPV6 TRANSITION TECHNOLOGIES
ANALYSIS OF IPV6 TRANSITION TECHNOLOGIES
 
IPv6
IPv6IPv6
IPv6
 
Network Layer & Transport Layer
Network Layer & Transport LayerNetwork Layer & Transport Layer
Network Layer & Transport Layer
 
SRWE_Module_14.pptx
SRWE_Module_14.pptxSRWE_Module_14.pptx
SRWE_Module_14.pptx
 
SRWE_Module_14.pptx
SRWE_Module_14.pptxSRWE_Module_14.pptx
SRWE_Module_14.pptx
 

More from AssemNazirova2

ICT L13 — копия.pptx
ICT L13 — копия.pptxICT L13 — копия.pptx
ICT L13 — копия.pptxAssemNazirova2
 
SDT_L8 — копия.ppt
SDT_L8 — копия.pptSDT_L8 — копия.ppt
SDT_L8 — копия.pptAssemNazirova2
 
CN L7 — копия.ppt
CN L7 — копия.pptCN L7 — копия.ppt
CN L7 — копия.pptAssemNazirova2
 
Лекция 1_ РЭС_Презентация — копия.pptx
Лекция 1_ РЭС_Презентация — копия.pptxЛекция 1_ РЭС_Презентация — копия.pptx
Лекция 1_ РЭС_Презентация — копия.pptxAssemNazirova2
 
CN L5 — копия.pptx
CN L5 — копия.pptxCN L5 — копия.pptx
CN L5 — копия.pptxAssemNazirova2
 
CN L1 — копия.ppt
CN L1 — копия.pptCN L1 — копия.ppt
CN L1 — копия.pptAssemNazirova2
 
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptx
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptxvlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptx
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptxAssemNazirova2
 

More from AssemNazirova2 (17)

ICT L13 — копия.pptx
ICT L13 — копия.pptxICT L13 — копия.pptx
ICT L13 — копия.pptx
 
SDT_L8 — копия.ppt
SDT_L8 — копия.pptSDT_L8 — копия.ppt
SDT_L8 — копия.ppt
 
Cloud technology
Cloud technologyCloud technology
Cloud technology
 
CN L7 — копия.ppt
CN L7 — копия.pptCN L7 — копия.ppt
CN L7 — копия.ppt
 
Лекция 1_ РЭС_Презентация — копия.pptx
Лекция 1_ РЭС_Презентация — копия.pptxЛекция 1_ РЭС_Презентация — копия.pptx
Лекция 1_ РЭС_Презентация — копия.pptx
 
CN L5 — копия.pptx
CN L5 — копия.pptxCN L5 — копия.pptx
CN L5 — копия.pptx
 
physical_layer.pptx
physical_layer.pptxphysical_layer.pptx
physical_layer.pptx
 
Physical.pptx
Physical.pptxPhysical.pptx
Physical.pptx
 
CN L5.pptx
CN L5.pptxCN L5.pptx
CN L5.pptx
 
CN L1 — копия.ppt
CN L1 — копия.pptCN L1 — копия.ppt
CN L1 — копия.ppt
 
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptx
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptxvlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptx
vlsisubsystemdesignprocessesandillustration-131101063110-phpapp02.pptx
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
ICT L4.pptx
ICT L4.pptxICT L4.pptx
ICT L4.pptx
 
ICT L2.pptx
ICT L2.pptxICT L2.pptx
ICT L2.pptx
 
HCI.pptx
HCI.pptxHCI.pptx
HCI.pptx
 
E-technology.pptx
E-technology.pptxE-technology.pptx
E-technology.pptx
 
ICT L1 .pptx
ICT L1  .pptxICT L1  .pptx
ICT L1 .pptx
 

Recently uploaded

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Recently uploaded (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

Network Layer Fundamentals

  • 1. 1 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Network layer
  • 2. 2 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco PLAN 1. Network Layer characteristics 2. IPv4 package 3. IPv6 package 4. Routing methods on hosts 5. Routing tables on routers
  • 3. 3 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco 8.1 Network Layer characteristics
  • 4. 4 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Network layer • Provides services that allow end devices to exchange data • IP version 4 (IPv4) and IP version 6 (IPv6) are the communication protocols of the main network layer. • The network layer performs four basic operations: • Addressing end devices • Encapsulation • Routing • Deencapsulation
  • 5. 5 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IP encapsulation • The IP protocol encapsulates a transport layer segment. • The IP can use an IPv4 or IPv6 packet and does not affect the Layer 4 segment. • The IP packet will be checked by all Layer 3 devices as the network progresses. • IP addressing does not change from source to destination.
  • 6. 6 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IP Protocol Characteristics IP is designed to have low overhead, and can be described as:  Without establishing a connection  Non-guaranteed delivery  Independence from the environment
  • 7. 7 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Without establishing a connection IP protocol. Without establishing a connection.  The IP does not establish a connection to the destination until the packet is sent.  Control information is not required (synchronization, confirmations, etc.).  The destination will receive the packet when it arrives, but no advance IP notifications are sent.  If there is a need for connection-oriented traffic, then another protocol will handle this (usually TCP at the transport layer).
  • 8. 8 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Non-guaranteed delivery • IP does not guarantee package delivery. Thus, IP reduces overhead because there is no mechanism to resend data that is not received. • The IP is not waiting for confirmation. • The IP does not know if another device is working or if another device has received a packet.
  • 9. 9 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Independence from the environment IP is unreliable:  It cannot manage or fix undelivered or corrupted packages.  IP cannot retransmit information after an error.  IP cannot restore the sequence of packets.  IP must rely on other protocols for these functions. IP is independent of the environment.  IP has nothing to do with the type of frame required at the link layer or the type of media at the physical layer.  IP can be transmitted over any type of media: copper, fiber optic or wireless channels.
  • 10. 10 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco The network layer sets the maximum data transfer unit (MTU).  The network layer gets this from the control information sent by the link layer.  The network then sets the MTU size. Fragmentation is when layer 3 splits an IPv4 packet into smaller units.  Fragmentation causes a delay.  IPv6 does not fragment packets.  Example. The router is transitioning from Ethernet to a slow WAN with a smaller MTU
  • 11. 11 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco 8.2 IPv4 package
  • 12. 12 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv4 packet header IPv4 is one of the main network layer communication protocols. The network header has many purposes:  It ensures that the packet is sent in the right direction (to the destination).  It contains information for network layer processing in various fields.  The information in the header is used by all Layer 3 devices that process the packet
  • 13. 13 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv4 packet header IPv4 Network Header Characteristics:  It is shown in binary format.  Contains several fields of information  The diagram is read from left to right, 4 bytes per line  The two most important fields are source and destination. Protocols can have one or more functions.
  • 14. 14 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv4 packet header Among the most important fields in the IPv4 header are the following. Function Description Version This is for v4, unlike v6, 4-bit field = 0100 Differentiated services Used for QoS: DiffServ — DS field or old IntServ — ToS or service type Header Checksum Detecting corruption in the IPv4 header Lifetime (TTL) The number of jumps of the 3rd level. When it becomes null, the router drops the packet. Protocol I.D.s next-level protocol: ICMP, TCP, UDP, etc. IPv4 source address 32-bit source address Destination IP address 32-bit destination address
  • 15. 15 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco 8.3 IPv6 package
  • 16. 16 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv4 Packet Restrictions IPv4 has three main limitations:  Depletion of IPv4 addresses — at the present time, IPv4 addressing capabilities have been exhausted.  Lack of end-to-end connectivity - in order for IPv4 to exist for so long, private addressing and NAT were created. This put an end to direct communication with public addressing.I  ncreased network complexity — NAT was conceived as a temporary solution, it creates such problems in the network as a side effect of manipulating the addressing of network headers. NAT causes latency issues and troubleshooting.
  • 17. 17 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv6 Review • The Working Group of Internet Technology Engineers (Internet Engineering Task Force) • IPv6 overcomes the limitations of IPv4. • Advantages that IPv6 provides: • The address space has been increased — based on a 128-bit address, not a 32-bit oneImproved packet handling. • The IPv6 header structure has been simplified by reducing the number of fields. • Eliminates the need for NAT — since there is a huge amount of addressing, there is no need to use private addressing internally and map to a shared public address
  • 18. 18 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv6 IPv4 Packet header fields in the IPv6 packet header • The IPv6 header is simplified, but not smaller in size. • The header is fixed with a length of 40 bytes or octets. • Several IPv4 fields have been removed to improve performance. • Some IPv4 fields have been removed to improve performance: • Flag • Fragment Offset • Header Checksum
  • 19. 19 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco IPv6 packet header Among the most important fields in the IPv4 header are the following. Функция Описание Version This is for IPv6, unlike v4, 4-bit field = 0110 Traffic class Used for QoS: equivalent to the DiffServ — DS field Flow label Tells the device to process identical stream labels in the same way, a 20-bit field Payload length This 16-bit field indicates the length of the data block or payload of the IPv6 packet. Next heading I.D.s next-level protocol: ICMP, TCP, UDP, etc. Transition limit Replaces the TTL Level 3 Transition Counter field IPv4 source address 128-bit source address Destination IP address 128-bit destination address
  • 20. 20 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco An IPv6 packet can also contain extension headers (EH). EH header Characteristics:  provide additional information about the network layer  are optional  placed between the IPv6 header and the payload  used for fragmentation, security, mobility support and more. Note: Unlike IPv4, routers do not divide IPv6-directed packets into parts.
  • 21. 21 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco 8.4 Routing methods on hosts
  • 22. 22 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Decision on packet forwarding by node • Packages are always created in the source. • Each host device creates its own routing table. • The host can send packets as follows: • Sam — 127.0.0.1 (IPv4),: :1 (IPv6) • Local nodes — the destination is on the same local network • Remote hosts — devices are not on the same LAN
  • 23. 23 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Decision on packet forwarding by node (Continued) • The source device determines whether the destination is local or remote • Detection method: • The IPv4 Source uses its own IP address and subnet mask, as well as the destination IP address • The IPv6 Source uses the network address and prefix declared by the local router • Local traffic is dumped from the host interface for processing by an intermediate device. • Remote traffic is redirected directly to the default gateway on the local network.
  • 24. 24 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Default Gateway The router or layer 3 switch can be the default gateway. Features of the Default Gateway (HCV): • It must have an IP address in the same range as the rest of the LAN. • It can receive data from the local network and is able to redirect traffic from the local network. • It can route to other networks. If a device does not have a default gateway or a bad default gateway, its traffic will not be able to leave the local network.
  • 25. 25 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Using the default Gateway • The host will know the default gateway (DGW) either statically or via DHCP in IPv4. • IPv6 sends DGW via the Request Router (RS) or can be configured manually. • DGW is a static route that will be the route of last resort in the routing table. • All devices on the LAN will need a DGW router if they intend to send traffic remotely.
  • 26. 26 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Host Routing Tables In Windows, print the route or netstat -r to display the PC routing table Three sections displayed by these two commands: • Interface List — all potential interfaces and MAC addressing • IPv4 Routing Table • IPv6 Routing Table
  • 27. 27 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco 8.5 Introduction to Routing
  • 28. 28 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco The decision to forward router packets What happens when the router receives a frame from the host device?
  • 29. 29 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Введение в маршрутизацию IP Router Routing Table There are three types of routes in the router's routing table:  Direct connection — these routes are automatically added by the router, provided that the interface is active and has addresses.  Remote routes — these routes do not have a direct connection, they can be explored: • Manually — with a static route • Dynamically — using a routing protocol so that routers share information with each other  Default route — this redirects all traffic to a certain direction if there is no match in the routing table
  • 30. 30 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Static routing Static route characteristics:  Manually configured.  It is necessary to configure manually by the administrator when changing the topology  Suitable for small networks without redundancy  It is often used in combination with the dynamic routing protocol to configure the default route
  • 31. 31 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Dynamic routing Dynamic routes automatically provide:  Remote network detection  Updating routing data  Choosing the optimal path to destination networks.  Finding new best paths when topology changes Dynamic routing can also share static default routes with other routers.
  • 32. 32 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco Introduction to the IPv4 Routing Table The show ip route command shows the following route sources:  the IP address of the local interface with a direct connection  C – Directly connected network  S — Static route was manually configured by the administrator  O – OSPF  D – EIGRP This command shows the types of routes:  Directly connected network – C and L  Remotemarts to remote networks – O, D, etc.
  • 33. 33 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco New terms and commands • Encapsulation • Routing • De-encapsulation • Data payload • Packet • Internet Protocol Version 4 (IPv4) • Internet Protocol Version 6 (IPv6) • Network Layer PDU = IP Packet • IP Header • Best effort delivery • Media independent • Connectionless • Unreliable • Maximum Transmission Unit (MTU) • Version • Differentiated Services (DS) • Time-to-Live (TTL) • Internet Control Message Protocol (ICMP) • Identification, Flags, Fragment Offset fields • Network Address Translation (NAT) • Traffic Class • Flow Label • Payload Length • Next Header • Hop Limit • Extension Headers • Local host • Remote host • Default Gateway
  • 34. 34 © Cisco и/или Партнеры, 2016 г. Все права защищены. Конфиденциальная информация Cisco New terms and commands • netstat –r • route print • interface list • IPv4 Route Table • IPv6 Route Table • directly-connected routes • remote routes • default route • show ip route • route source • destination network • outgoing interface • administrative distance • metric • next-hop • route timestamp