01_NF_Ch05 – OSI Network Layer Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo) 1.

Slides:



Advertisements
Similar presentations
IPv4 - The Internet Protocol Version 4
Advertisements

Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.
CCNA – Network Fundamentals
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Routing Fundamentals and Subnetting
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Chapter 5 OSI Network Layer
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5 Sandra Coleman, CCNA, CCAI.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 OSI Network Layer Network Fundamentals – Chapter 5.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Internet Protocol (IP)
思科网络技术学院理事会. 1 OSI Network Layer Network Fundamentals – Chapter 5.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
Copyright 2003 CCNA 1 Chapter 8 Routing Fundamentals and Subnets By Joe Parisien.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
CCNA 1 Module 10 Routing Fundamentals and Subnets.
10/8/2015CST Computer Networks1 IP Routing CST 415.
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.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Dr. John P. Abraham Professor UTPA
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
Chapter 6: Objectives Explain how network layer protocols and services support communications across data networks. Explain how routers enable end-to-end.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Chapter-8 Network Layer in the Internet. IP Protocol: IP V4 At network layer, internet can be viewed as a collection of sub-networks or Autonomous Systems.
CCNA Exploration Network Fundamentals Chapter 05 Network Layer 1 KC KHOR, Multimedia Univ. Cyberjaya.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
Linux Operations and Administration Chapter Eight Network Communications.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
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.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Sem1 - Module 10 Routing Fundamentals and Subnets
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.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Network Architecture Lecture 7: OSI Model Layers Examples II 1 26/12/2012.
Network Layer 1. OSI network layer  OSI model layer 3  TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical.
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.
Network Fundamentals – Chapter 5 Modified by Tony Chen
Network layer Jarkom Dasar – Week 6 Aisyatul Karima, 2012.
Network Fundamentals – Chapter 5
Network Fundamentals – Chapter 5
Chapter 5 OSI Network Layer.
Internet Protocol (IP)
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
Dr. John P. Abraham Professor UTPA
Network Layer 2019/1/13.
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
Network Fundamentals – Chapter 5
NET 323D: Networks Protocols
Presentation transcript:

01_NF_Ch05 – OSI Network Layer Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo) 1

2 OSI – Network Layer IPv4 Networks – Dividing Hosts into Groups Routing – How Our Data Packets are Handled

3 IPv4 Communication from Host to Host Protocols involved in Network layer IP - connectionless IP - Best Effort Service (Unreliable) IP – Media Independent Packaging the Transport Layer PDU IPv4 Packet Header Other IPv4 Header

4 Communication from Host to Host The Network layer provides services to exchange the individual pieces of data over the network between identified end devices. To accomplish this end-to-end transport, Layer 3 uses four basic processes: - Addressing - Encapsulation (Data-Segment-…Bits) - Routing ( 選路 ) (need intermediary devices: router) - Decapsulation (Bits…Data) 4

5 Protocols involved in Network layer Internet Protocol version 4 (IPv4) – most common Internet Protocol version 6 (IPv6) Novell Internetwork Packet Exchange (IPX) AppleTalk Connectionless Network Service (CLNS/DECNet) 5

6 The Internet Protocol was designed as a protocol with low overhead. It provides only the functions that are necessary to deliver a packet from a source to a destination over an interconnected system of networks. The protocol was not designed to track and manage the flow of packets. 6

7 IPv4 basic characteristics: - Connectionless - No connection is established before sending data packets. - Best Effort (unreliable) - No overhead is used to guarantee packet delivery. - Media Independent - Operates independently of the medium carrying the data. 7

8 IP - connectionless 8 Connectionless packet delivery may, however, result in packets arriving at the destination out of sequence. The upper layer services will have to resolve these issues

9 IP - Best Effort Service (Unreliable) The mission of Layer 3 is to transport the packets between the hosts while placing as little burden on the network as possible. Layer 3 is not concerned with or even aware of the type of communication contained inside of a packet IP is often referred to as an unreliable protocol. Unreliable means simply that IP does not have the capability to manage, and recover from, undelivered or corrupt packets. 9

10 IP – Media Independent The Network layer is also not burdened with the characteristics of the media on which packets will be transported Any individual IP packet can be communicated electrically over cable, as optical signals over fiber, or wirelessly as radio signals. It is the responsibility of the OSI Data Link layer to take an IP packet and prepare it for transmission over the communications medium. 10

11 However, Network layer considers: the maximum size of PDU that each medium can transport - Maximum Transmission Unit (MTU). Part of the control communication between the Data Link layer and the Network layer is the establishment of a maximum size for the packet. The Data Link layer passes the MTU upward to the Network layer. The Network layer then determines how large to create the packets In some cases, router will need to split up a packet when forwarding it from one media to a media with a smaller MTU. This process is called fragmenting the packet or fragmentation. 11

12 Packaging the Transport Layer PDU The process of encapsulating data by layer enables the services at the different layers to develop and scale without affecting other layers. Routers can implement these different Network layer protocols to operate concurrently over a network to and from the same or different hosts. The routing performed by these intermediary devices only considers the contents of the packet header that encapsulates the segment.

13 IPv4 Packet Header 6 key fields of IPv4: IP Source Address, IP Destination Address, Time-to-Live (TTL), Type-of- Service (ToS), Protocol, Fragment Offset 13

14 IP Destination Address IP Source Address Time-to-Live (TTL) - an 8-bit binary value that indicates the remaining "life" of the packet. The TTL value is decreased by at least one each time the packet is processed by a router (a hop). When the value becomes zero, the router discards or drops the packet. Protocol - enables the Network layer to pass the data to the appropriate upper-layer protocol. Ex: 01 ICMP, 06 TCP, 17 UDP 14

15 Type-of-Service - contains an 8-bit binary value that is used to determine the priority of each packet Fragment offset - identifies the order in which to place the packet fragment in the reconstruction The More Fragments (MF) flag - a single bit in the Flag field used with the Fragment Offset for the fragmentation and reconstruction of packets Don't Fragment (DF) flag - a single bit in the Flag field that indicates that fragmentation of the packet is not allowed 15

16 Other IPv4 Header Version - Contains the IP version number (4) Header Length (IHL) - Specifies the size of the packet header. Packet Length - This field gives the entire packet size, including header and data, in bytes. Identification - This field is primarily used for uniquely identifying fragments of an original IP packet Header Checksum - The checksum field is used for error checking the packet header. Options - There is provision for additional fields in the IPv4 header to provide other services but these are rarely used. 16

17 Networks – Dividing Hosts into Groups Dividing networks into Common Groups  By location  By purpose  By ownership Why separating networks? Hierarchical addressing

18 Dividing networks into common groups One of the major roles of the Network layer is to provide a mechanism for addressing hosts. Rather than having all hosts everywhere connected to one vast global network, it is more practical and manageable to group hosts into specific networks (smaller networks / subnets). Networks can be grouped based on factors that include: Geographic location, Purpose & Ownership 18

19 Group by locations

20 Group by purpose

21 Group by ownership

22 Why separating networks? Common issues with large networks are: - Performance degradation (network resources may be stretch; broadcast messages) - Security issues (Dividing a network based on user access) - Address Management (reduces the unnecessary overhead of all hosts needing to know all addresses) 22

23 Hierarchical addressing To be able to divide networks, we need hierarchical addressing. A hierarchical address uniquely identifies each host. It also has levels that assist in forwarding packets across internetworks, which enables a network to be divided based on those levels. Ex: IPv4 address The first three octets, ( ), can identify the network portion of the address, and the last octet, (57) identifies the host. To divide a network, the network portion of the address is extended to use bits from the host portion of the address (subnetting) 23

24 Routing Introduction Supporting Communication Outside Our Network IP Packets – Carrying data end to end Configure default gateway - The Way Out of Our Network The Path to a Network  Routing Table and Host Routing Table Destination Networks The Next Hop Packet Forwarding How routes are learned?

25 Routing - Introduction It is not feasible for a particular host to know the address of every device on the Internet with which it may have to communicate. To communicate with a device on another network, a host uses the address of this gateway, or default gateway, to forward a packet outside the local network The router also needs a route that defines where to forward the packet next. This is called the next-hop address. 25

26 Supporting Communication Outside Our Network

27 IP Packets – Carrying data end to end An IP packet is constructed Layer 3 to transport the Layer 4 PDU. If the destination host is in the same network as the source host, the packet is delivered between the two hosts on the local media without the need for a router. However, if the destination host and source host are not in the same network, the packet may be carrying a Transport layer PDU across many networks and through many routers. 27

28 Configure default gateway – The Way Out of Our Network

29

30 A router makes a forwarding decision for each packet that arrives at the gateway interface. The destination network may be a number of routers or hops away from the gateway. The route to that network would only indicate the next- hop router to which the packet is to be forwarded, not the final router KC KHOR, Multimedia Univ. Cyberjaya 30

31 The Path to a Network – Routing Table The routing table stores information about connected and remote networks. Routes in a routing table have three main features: - Destination network - Next-hop (next router) - Metric ( 評量值 ) The router matches the destination address in the packet header with the destination network of a route in the routing table and forwards the packet to the next-hop router specified by that route. 31

32

33 The router may also use a default route to forward the packet. The default route is used when the destination network is not represented by any other route in the routing table. It is not likely to have a route to every possible network on the Internet. A default route is a route that will match all destination networks. The default route is also known as the Gateway of Last Resort ( 最後憑藉 ).

34 The Path to a Network – Host Routing Table A host creates the routes used to forward the packets it originates. These routes are derived from the connected network and the configuration of the default gateway. Hosts automatically add all connected networks to the routes. Command: netstat - r 34

35

36 Destination Networks The destination network shown in a routing table entry, called a route, represents a range of host addresses and sometimes a range of network and host addresses. 36

37 The Next Hop A next-hop is the address of the device that will process the packet next. 37 Some routes can have multiple next-hops. This indicates that there are multiple paths to the same destination network.

38 Packet Forwarding Routing is done packet-by-packet and hop- by-hop. Each packet is treated independently in each router along the path. At each hop, the router examines the destination IP address for each packet and then checks the routing table for forwarding information The router will do one of 3 things with the packet: Forward it to the next-hop router, Forward it to the destination host or Drop it 38

39 How routes are learned? Routing protocols Routing Protocols – Sharing the Routes Costs of using routing protocols

40 How routes are learned? Route information can be manually configured on the router or learned dynamically from other routers in the same internetwork. Static route – manually configured Dynamic routing – using routing protocols Maintaining the routing table by manual static configuration is not always feasible. Therefore, dynamic routing protocols are used. 40

41 Routing protocols Are the set of rules by which routers dynamically share their routing information. When a router receives information about new or changed routes, it updates its own routing table and, in turn, passes the information to other routers Ex: Routing Information Protocol (RIP), Enhanced Interior Gateway Protocol (EIGRP), Open Shortest Path First (OSPF)

42 Routing Protocols – Sharing the Routes

43 Costs of using routing protocols Firstly, the exchange of route information adds overhead that consumes network bandwidth. Secondly, routers employing these protocols must have sufficient processing capacity to both implement the protocol's algorithms and to perform timely packet routing and forwarding The cost for static routing is only the administrative - the manual configuration. 43