Network Layer 1. OSI network layer  OSI model layer 3  TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical.

Slides:



Advertisements
Similar presentations
RIP V1 W.lilakiatsakun.
Advertisements

Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.
CCNA – Network Fundamentals
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI Network Layer Network Fundamentals – Chapter 5.
Chapter 5 OSI Network Layer
Introduction to TCP/IP
Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
Network Layer IS250 Spring 2010
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
Chapter Overview TCP/IP Protocols IP Addressing.
Virtual LANs. VLAN introduction VLANs logically segment switched networks based on the functions, project teams, or applications of the organization regardless.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5 Sandra Coleman, CCNA, CCAI.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
IP Addressing Basics LAB 8.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 OSI Network Layer Network Fundamentals – Chapter 5.
Chapter 4: Managing LAN Traffic
思科网络技术学院理事会. 1 OSI Network Layer Network Fundamentals – Chapter 5.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Connecting to the Network Networking for Home and Small Businesses.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
TCOM 515 IP Routing Lab Lecture 1. Class information Instructor: Wei Wu –Lecture and Lab session 2 – Instructor:
Network Devices.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
The Routing Table Last Update Copyright Kenneth M. Chipps Ph.D.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
CHAPTER 5 TCP/IP PROTOCOLS. P ROTOCOL STANDARDS Protocols are formal rules of behavior When computers communicate, it is necessary to define a set of.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI Network Layer Network Fundamentals – Chapter 5.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
First, by sending smaller individual pieces from source to destination, many different conversations can be interleaved on the network. The process.
William Stallings Data and Computer Communications
CCNA Exploration Network Fundamentals Chapter 05 Network Layer 1 KC KHOR, Multimedia Univ. Cyberjaya.
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Linux Operations and Administration Chapter Eight Network Communications.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
CCNA1-1 Chapter 5 Week 6 OSI Network Layer. CCNA1-2 Chapter 5 Identify the role of the Network layer as it describes communication from one end device.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
01_NF_Ch05 – OSI Network Layer Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo) 1.
2016/3/16 1 Network Layer. 2016/3/ Layer 3 Functionalities The Network layer provides services to exchange the individual pieces of data over the.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
1 28-Sep-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI network layer CCNA Exploration Semester 1 Chapter 5.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI network layer CCNA Exploration Semester 1 – Chapter 5.
Introduction to Networks v6.0
Instructor Materials Chapter 6: Network Layer
Network Fundamentals – Chapter 5 Modified by Tony Chen
Instructor Materials Chapter 5: Ethernet
Network Fundamentals – Chapter 5
Virtual LANs.
Net 323: NETWORK Protocols
Network Fundamentals – Chapter 5
CS 457 – Lecture 10 Internetworking and IP
Chapter 5 OSI Network Layer.
TCP/IP Protocol Suite: Review
Network Layer 2019/1/13.
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Network Layer: Control/data plane, addressing, routers
Delivery, Forwarding, and Routing of IP Packets
Network Fundamentals – Chapter 5
Presentation transcript:

Network Layer 1

OSI network layer  OSI model layer 3  TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical Application Transport Internet Network Access TCP, UDP IP Ethernet, WAN technologies HTTP, FTP, TFTP, SMTP etc Segment Packet Frame Bits Data stream 2

Network Layer  Provides services to exchange the individual pieces of data over the network between identified end devices.. 3

Basic Processes Of Network Layer  Addressing  Encapsulation  Routing  Decapsulation 4

Network layer encapsulation Segment from transport layer. Packet header added to make IP packet. Sent to data link layer for further encapsulation into a frame. 5

 Internet Protocol Version 4 (IPV4) is the most widely used version of IP.  Only Layer 3 protocol used on the Internet.  Focus of this course. Network Layer Protocols 6

 IP version 6 (IPv6) is developed and being implemented in some areas.  IPv6 will operate alongside IPv4 and may replace it in the future.  IP provides Services Packet header structure Contents  Which is specified by either IPv4 protocol or IPv6 protocol. The IP v4 and IP v6 Protocol 7

The IP v4 Protocol 8

The IPv4 Protocol-Connectionless 9

10

 IP does not have the capability to manage, and recover from, undelivered or corrupt packets.  Protocols at other layers can manage reliability.  IP then can function very efficiently at the Network layer. The IPv4 Protocol-Best Effort 11

The IPv4 Protocol-Best Effort 12

 The transport of IP packets is not limited to any particular medium. Except…. The IPv4 Protocol-Media Independent 13

 One major characteristic of the media : Maximum Transmission Unit (MTU).  The Data Link layer passes the MTU upward to the Network layer.  In some cases, an intermediary device will need to split up a packet when forwarding with a smaller MTU.  This process is called fragmenting the packet or fragmentation. The IPv4 Protocol-Media Independent 14

Media Independent MTU = 1,518 bytes.  Copper Ethernet: MTU = 1,518 bytes. Frame Relay MTU = 512 bytes.  Copper Serial: Frame Relay MTU = 512 bytes. ATM MTU = 17,966 bytes.  Optical Fiber: ATM MTU = 17,966 bytes MTU = 2272 bytes.  Wireless: MTU = 2272 bytes. 15

Packaging the Transport Layer PDU In TCP/IP based networks, the Network Layer PDU is the IP Packet. 16

IPv4 packet header fields IP address of source host, needed so reply can be sent. IP address of destination host, needed so routers can find route. 17

IPv4 packet header fields Reduced by 1 at each router. Packet dropped if it goes to 0. TCP or UDP used in Transport layer. 18

IPv4 packet header fields Priority for QoS. E.g. voice data has higher priority than . For checking if header has been corrupted. 19

IPv4 packet header fields Shows if packet has been fragmented or must not be fragmented. If router has to split a packet, this gives order for putting pieces together. 20

IPv4 packet header fields Version 4. Length of whole packet.Header length. 21

Typical IPv4 Packet 22

OSI Network Layer Networks: Dividing Hosts into Groups 23

Dividing Hosts into Groups As networks grow, they become too unwieldy to manage as a single entity. Often, the solution is to divide the large network into several more manageable sub-networks. The question is…..HOW? 24

Dividing Hosts into Groups Should it be divided geographically? 25

Dividing Hosts into Groups Should it be divided based on purpose? 26

Dividing Hosts into Groups Should it be divided based on ownership? 27

Why Separate Hosts into Networks?  Performance  Security  Address Management 28

Performance  Large numbers of hosts on a single network: Actual Data Actual Data Overhead Overhead  A big part of the overhead is  A big part of the overhead is broadcasts.  In this context, each network is called a.  In this context, each network is called a broadcast domain.  Switches forward broadcasts to each device connected to a switch port.  If we can reduce broadcast overhead, it would improve performance on the network. A 29

Performance unless specifically configured to forward them.  Routers block broadcasts unless specifically configured to forward them.  Replacing the switch in the diagram with a router, creates  Replacing the switch in the diagram with a router, creates two separate IP sub-networks and two broadcast domains.  Broadcasts are now contained within each network. AB XX 30

Security 31

Grouping Devices into Networks and Hierarchical Addressing  Employee Name  Cisco Systems, Inc.  170 West Tasman Drive  San Jose, CA  USA 32

Dividing Networks from Networks IP Version 4 addresses are in length. IP Version 4 addresses are 32 bits in length. Divided into four separate groups of 8 bits each –. Divided into four separate groups of 8 bits each – 4 Octets. Convert from binary to decimal – Convert from binary to decimal – Dotted Decimal Notation. 33

Dividing Networks from Networks  An IP Version 4 address has two parts: Network number Host number The network portion of the address is the same for all hosts on the network. Each device is identified by a unique host portion.  This hierarchy means that routers only need to know the network portion – not the address of each individual host. 34

OSI Network Layer Routing: How Data Packets Are Handled 35

Address Types  Two address types: MAC address: address of the host  Physical address of the host  Burned in to the NIC address  Layer 2 address Network Address:  Logical address of the host  Assigned by network administrator  Layer 3 address 36

Each Host Has Two Addresses  Physical (MAC): The physical address uniquely identifies the host from all other hosts on all other networks at Layer 2. The physical address uniquely identifies the host from all other hosts on all other networks at Layer 2. This is the address that is absolutely necessary to get the information into the host. The IP address by itself won't accomplish that. This is the address that is absolutely necessary to get the information into the host. The IP address by itself won't accomplish that. 37

Each Host Has Two Addresses  Logical (IP): The logical address uniquely identifies the host and the network to which it belongs at The logical address uniquely identifies the host and the network to which it belongs at Layer 3. Routers base their decisions on the of the IP address when determining the best path for the packet. Routers base their decisions on the NETWORK PORTION of the IP address when determining the best path for the packet. 38

Default Gateway Message for /24, Same network, send it direct. Message for /24, Different network, send it to Default gateway. 39

Default Gateway-The way out of our network 40

Default gateway  Each PC is configured with an IP address and a default gateway.  The default gateway is the IP address of a router port on the same network as the PC.  It is the router’s job to handle messages to other networks.  Each router port is on a different network and has a different IP address. 41

Confirming Gateway Settings  ipconfig or route commands 42

IP Packets-Carrying Data End to End 43

Route/Hops  No packet can be forwarded without a route.  Whether the packet is originating in a host or being forwarded by an intermediary device, the device must have a route to identify where to forward the packet.  A packet may pass through many routers on its journey.  The trip from one router to the next is called a hop and the next router is called the next hop router. 44

Routing Table  Each router has a routing table.  Stores information about Connected and Remote networks.  Connected networks are directly attached to one of the router interfaces.  Remote networks are networks that are not directly connected to the router. Can be manually configured on the router by the network administrator or learned automatically using dynamic routing protocols. 45

Network /24 C /24 is directly connected, FastEthernet 0/1 Routing Table 46

Routing Table  Routes in a routing table have three main features: Destination network Next-hop Metric Exit Interface 47

Host Routing Table  Using netstat -r, route, or route PRINT commands.  Other Commands route ADD route DELETE route CHANGE 48

Directly connected The networks of the router’s own interfaces go into the routing table. 49

Routing table entries Directly connected shown by C 50

Directly Connected Routes Network /24 Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/1 Routing Table of Local Router : Routing Table of Remote Router : Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 51

Other networks  Routes to other networks can be configured by an administrator (static routes)  Or they can be learned from another router using a routing protocol (dynamic routes)  A router can have a default route. Packets for unknown networks go on this route instead of being dropped. 52

Routing Table Entries: Dynamic Routes Learned from another router using RIP routing protocol, shown by R 53

Dynamic Routes Network /24 Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/0 Routing Table of Local Router : Routing Table of Remote Router : Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/2 Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1C /24 is directly connected, FastEthernet 0/2 Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/0 54

Dynamic Routes Network /24 Routing Table of Local Router :Routing Table of Remote Router : Gateway of last resort is not set /24 is subnetted, 2 subnets R [120/1] via ,00:00:08, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/0 Gateway of last resort is not set. R [120/1] via ,00:00:20, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/2 55

Routing table entries: Static Routes Static, configured by administrator, shown by S 56

Static Routes Network /24 Routing Table of Remote Router : Gateway of last resort is not set. R [120/1] via ,00:00:20, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/2 Gateway of last resort is not set. C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/2 S [1/0] via Routing Table of Remote Router : 57

Default Routes Network /24 Gateway of last resort is to network R [120/1] via ,00:00:20, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/0 C /24 is directly connected, FastEthernet 0/1 C /24 is directly connected, FastEthernet 0/2 S* /0 [1/0] via Routing Table of Remote Router : Internet ISP 58

Routing Table Entries: Default Routes Default, configured by administrator, shown by S* 59

Routing protocols  Routers learn routes from each other and put them in their routing tables.  A routing protocol is the set of rules they use to swap information.  These routes are dynamic routes 60

Static routes Dynamic routes  Entered by administrator  Time consuming, different for each router  Must be updated if routes change  Little processing  No bandwidth used  Gives nothing away  Learned from other routers  Start the protocol then it runs by itself  Automatically updates when routes change  More processing  Uses bandwidth  Gives away information 61

Packet Forwarding: Route Found L2IPTCPDATAL2 IPTCPDATA Data for Host / 24 Network Network L2IPTCPDATAL2 IP Address is on network

Packet Forwarding: Default Route L2IPTCPDATAL2 IPTCPDATA Data for Host / 24 Network Network L2IPTCPDATAL2 IP Address is on network

Packet Forwarding: Route Not Found L2IPTCPDATAL2 IPTCPDATA Data for Host / 24 Network Network IP Address is on network ? 64

65