HANNAM UNIVERSITY 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand.

Slides:



Advertisements
Similar presentations
Network Layer Delivery Forwarding and Routing
Advertisements

Delivery and Forwarding of
1 Chapter 22 Network layer Delivery, Forwarding and Routing.
Chapter 18 Introduction to Network Layer 18.# 1
ECE 4110 – Internetwork Programming TCP/IP Protocol (cont’d)
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
Delivery, Forwarding, and Routing
7/3/2015 Unit-3 : Network Layer 1 CS 1302 Computer Networks — Unit - 3 — — Network Layer — Text Book Behrouz.A. Forouzan, “Data communication and Networking”,
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
18-WAN Technologies and Dynamic routing Dr. John P. Abraham Professor UTPA.
Copyright © Lopamudra Roychoudhuri
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
Delivery, Forwarding, and Routing of IP Packets
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 27/03/2007.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 6 Delivery and Routing of IP Packets.
Chapter 18 Introduction to Network Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 6 Delivery and Forwarding of IP Packets
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 6 Delivery and Routing of IP Packets.
HANNAM UNIVERSITY TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing.
Delivery, Forwarding, and Routing of IP Packets
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer: 19.1 Internetworks 19.2 Addressing Classful, Classless addressing, NAT 19.3 Routing.
TCP/IP Protocol Suite 1 Chapter 10 Upon completion you will be able to: Internet Group Management Protocol Know the purpose of IGMP Know the types of IGMP.
Internet Protocol: Routing IP Datagrams Chapter 8.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
1 Chapter 6 Delivery Forwarding, and Routing of IP Packets Chapter 6 Delivery Forwarding, and Routing of IP Packets Mi-Jung Choi Dept. of Computer Science,
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
IP Logical Networks COMP 3270 Computer Networks Computing Science Thompson Rivers University.
22.1 Network Layer Delivery, Forwarding, and Routing.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
UNIT 4 NETWORK LAYER. Position of network layer 7/8/2016 UNIT-3 : NETWORK LAYER 2.
Configuration for routing example
Subnetting and Supernetting
Chapter 18 Introduction to Network Layer
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Internet Protocol Suite
Chapter 6 Delivery & Forwarding of IP Packets
Forwarding and Routing IP Packets
PART IV Network Layer.
Chapter 6 – Routing.
Chapter 6 Delivery & Forwarding of IP Packets
5 Network Layer Part II Computer Networks Tutun Juhana
Delivery, Forwarding, and Routing
Chapter 6 Delivery & Forwarding of IP Packets
UNIT III ROUTING.
Delivery, Forwarding, and Routing
Delivery and Routing of IP Packets
Delivery, Forwarding, and Routing of IP Packets
Delivery and Forwarding of
18-WAN Technologies and Dynamic routing
Net 323 D: Networks Protocols
Delivery, Forwarding, and Routing of IP Packets
Example 9 (Continued) 1. The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network.
Figure 6.11 Configuration for Example 4
Delivery, Forwarding, and Routing of IP Packets
Figure 6.6 Default routing
Longest Mask Matching What happens if one of the organizations is not geographically close to the others, like in Figure No problem, as long as the.
See Next Slide Example 13 (continued)
Introduction to Network
Presentation transcript:

HANNAM UNIVERSITY 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of delivery and the connection Understand forwarding techniques in classful addressing Understand forwarding techniques in classless addressing Understand how a routing table works Understand the structure of a router Objectives

HANNAM UNIVERSITY 2 CONTENTS DELIVERY ROUTING METHODS STATIC AND DYNAMIC ROUTING ROUTING TABLE AND MODULE CLASSLESS ADDRESSING

HANNAM UNIVERSITY DELIVERY The network layer supervises delivery, the handling of the packets by the underlying physical networks. Two important concepts are the type of connection and direct versus indirect delivery. The topics discussed in this section include: Connection Types Direct Versus Indirect Delivery

HANNAM UNIVERSITY 4  연결유형 (Connection type)  연결형 서비스 (Connection-oriented Service)  비연결형 서비스 (Connectionless Service) 6.1 DELIVERY

HANNAM UNIVERSITY 5 In a connection-oriented situation, the network layer protocol first makes a connection. In a connectionless situation, the network layer protocol treats each packet independently, with each packet having no relationship to any other packet. 6.1 DELIVERY

HANNAM UNIVERSITY 6 IP is a connectionless protocol. Note: 6.1 DELIVERY

HANNAM UNIVERSITY 7  최종 목적지까지 패킷을 전달하는 방법 1. 직접 전달 (direct delivery)  최종 목적지가 전달자 (deliverer) 와 같은 네트워크에 연결되어 있는 호스트  패킷의 발신지와 목적지가 같은 네트워크에 위치  최종 라우터와 목적지 호스트 사이에 수행  목적지 주소에서 netid 를 추출한 후 네트워크 주소와 비교  같으면 직접 전달 수행  송신자는 목적지 IP 주소를 이용하여 목적지 물리 주소를 찾아 서 (ARP 이용 ) 데이터 링크 계층으로 보내어 패킷을 전달 6.1 DELIVERY

HANNAM UNIVERSITY 8  직접 전달 (Direct delivery) 6.1 DELIVERY

HANNAM UNIVERSITY 간접 전달 (indirect delivery)  최종 목적지가 같은 네트워크에 있지 않은 호스트  최종 목적지와 같은 네트워크에 연결된 라우터에 도달 할 때 까지 여러 라우터를 경유해서 전달  목적지 IP 주소와 라우팅 테이블을 이용하여 패킷이 전달 되어야 하는 다음 라우터의 IP 주소를 찾는다 6.1 DELIVERY

HANNAM UNIVERSITY 10  간접 연결 (Indirect delivery) 6.1 DELIVERY

HANNAM UNIVERSITY FORWARDING Forwarding means to place the packet in its route to its destination. Forwarding requires a host or a router to have a routing table.. The topics discussed in this section include: Forwarding Techniques Forwarding with Classful Addressing Forwarding with Classless Addressing Combination

HANNAM UNIVERSITY 12  라우팅 테이블 이용  포워딩 기술  다음 홉 (Next-Hop) 방법  네트워크 지정 (Network-Specific) 방법  호스트 지정 (Host-Specific) 방법  디폴트 (Default) 방법 6.2 FORWARDING

HANNAM UNIVERSITY 13  다음 홉 방법  라우팅 테이블의 크기를 작게 만드는 기술 중 하나  전체 경로에 대한 정보 대신 다음 홉 주소만 저장 6.2 FORWARDING

HANNAM UNIVERSITY 14  네트워크 지정 방법  네트워크에 연결된 모든 호스트에 대해 각 호스트별 엔트리 대신에 네트워크에 대한 엔트리만 저장 6.2 FORWARDING

HANNAM UNIVERSITY 15  호스트 지정 방법  라우팅 테이블에 호스트 주소 저장  관리자가 라우팅 테이블을 제어할 때 사용  경로 점검이나 보안성 제공에 매우 좋음 6.2 FORWARDING

HANNAM UNIVERSITY 16  기본 라우팅 (Default Routing) 6.2 FORWARDING

HANNAM UNIVERSITY 17  클래스 기반 주소 체계에서의 포워딩  서브넷팅이 없는 경우  서브넷팅이 있는 경우 6.2 FORWARDING

HANNAM UNIVERSITY 18  서브넷팅 없는 경우 포워딩 6.2 FORWARDING

HANNAM UNIVERSITY 19 Figure 6.8 shows an imaginary part of the Internet. Show the routing tables for router R1. Example 1

HANNAM UNIVERSITY 20  Configuration for routing, Example FORWARDING

HANNAM UNIVERSITY 21 Solution Figure 6.9 shows the three tables used by router R1. Note that some entries in the next-hop address column are empty because in these cases, the destination is in the same network to which the router is connected (direct delivery). In these cases, the next- hop address used by ARP is simply the destination address of the packet as we will see in Chapter 7. Example 1

HANNAM UNIVERSITY 22  Tables for Example FORWARDING

HANNAM UNIVERSITY 23 Router R1 in Figure 6.8 receives a packet with destination address Show how the packet is forwarded. Example 2 Solution The destination address in binary is A copy of the address is shifted 28 bits to the right. The result is or 12. The destination network is class C. The network address is extracted by masking off the leftmost 24 bits of the destination address; the result is The table for Class C is searched. The network address is found in the first row. The next-hop address and the interface m0 are passed to ARP.

HANNAM UNIVERSITY 24 Router R1 in Figure 6.8 receives a packet with destination address Show how the packet is forwarded. Example 3 Solution The destination address in binary is A copy of the address is shifted 28 bits to the right. The result is or 10. The class is B. The network address can be found by masking off 16 bits of the destination address, the result is The table for Class B is searched. No matching network address is found. The packet needs to be forwarded to the default router (the network is somewhere else in the Internet). The next-hop address and the interface number m0 are passed to ARP.

HANNAM UNIVERSITY 25  서브넷팅 있는 경우 포워딩 6.2 FORWARDING

HANNAM UNIVERSITY 26 Figure 6.11 shows a router connected to four subnets. Example 4

HANNAM UNIVERSITY 27 Example 4 Note several points. First, the site address is /16 (a class B address). Every packet with destination address in the range to is delivered to the interface m4 and distributed to the final destination subnet by the router. Second, we have used the address x.y.z.t/n for the interface m4 because we do not know to which network this router is connected. Third, the table has a default entry for packets that are to be sent out of the site. The router is configured to apply the mask /18 to any destination address.

HANNAM UNIVERSITY 28  Configuration for Example FORWARDING

HANNAM UNIVERSITY 29 The router in Figure 6.11 receives a packet with destination address Show how the packet is forwarded. Example 5 Solution The mask is /18. After applying the mask, the subnet address is The packet is delivered to ARP with the next-hop address and the outgoing interface m0.

HANNAM UNIVERSITY 30 A host in network in Figure 6.11 has a packet to send to the host with address Show how the packet is routed. Example 6 Solution The router receives the packet and applies the mask (/18). The network address is The table is searched and the address is not found. The router uses the address of the default router (not shown in figure) and sends the packet to that router.

HANNAM UNIVERSITY 31 In classful addressing we can have a routing table with three columns; in classless addressing, we need at least four columns. Note: 6.2 FORWARDING

HANNAM UNIVERSITY 32  클래스 없는 주소 체계에서 단순화된 포워딩 6.2 FORWARDING

HANNAM UNIVERSITY 33 Make a routing table for router R1 using the configuration in Figure Example 7 Solution Table 6.1 shows the corresponding table. See Next Slide See the table after the figure.

HANNAM UNIVERSITY 34  Configuration for Example FORWARDING

HANNAM UNIVERSITY 35 Table 6.1 Routing table for router R1 in Figure FORWARDING

HANNAM UNIVERSITY 36 Show the forwarding process if a packet arrives at R1 in Figure 6.13 with the destination address Example 8 Solution The router performs the following steps: 1. The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network address.

HANNAM UNIVERSITY 37 Example 8 2. The second mask (/25) is applied to the destination address. The result is , which matches the corresponding network address. The next-hop address (the destination address of the packet in this case) and the interface number m0 are passed to ARP for further processing.

HANNAM UNIVERSITY 38 Show the forwarding process if a packet arrives at R1 in Figure 6.13 with the destination address Example 9 Solution The router performs the following steps:

HANNAM UNIVERSITY The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network address (row 1). 2. The second mask (/25) is applied to the destination address. The result is , which does not match the corresponding network address (row 2). 3. The third mask (/24) is applied to the destination address. The result is , which matches the corresponding network address. The destination address of the package and the interface number m3 are passed to ARP. Example 9

HANNAM UNIVERSITY 40 Show the forwarding process if a packet arrives at R1 in Figure 6.13 with the destination address Example 10 Solution This time all masks are applied to the destination address, but no matching network address is found. When it reaches the end of the table, the module gives the next-hop address and interface number m2 to ARP. This is probably an outgoing package that needs to be sent, via the default router, to some place else in the Internet.

HANNAM UNIVERSITY 41 Now let us give a different type of example. Can we find the configuration of a router, if we know only its routing table? The routing table for router R1 is given in Table 6.2. Can we draw its topology? Example 11

HANNAM UNIVERSITY 42 Table 6.2 Routing table for Example FORWARDING

HANNAM UNIVERSITY 43 Example 11 Solution We know some facts but we don’t have all for a definite topology. We know that router R1 has three interfaces: m0, m1, and m2. We know that there are three networks directly connected to router R1. We know that there are two networks indirectly connected to R1. There must be at least three other routers involved (see next-hop column). We know to which networks these routers are connected by looking at their IP addresses. So we can put them at their appropriate place.

HANNAM UNIVERSITY 44 Example 11 We know that one router, the default router, is connected to the rest of the Internet. But there is some missing information. We do not know if network is directly connected to router R2 or through a point-to-point network (WAN) and another router. We do not know if network is connected to router R3 directly or through a point-to-point network (WAN) and another router. Point-to-point networks normally do not have an entry in the routing table because no hosts are connected to them. Figure 6.14 shows our guessed topology.

HANNAM UNIVERSITY 45  Guessed topology for Example FORWARDING

HANNAM UNIVERSITY 46  Address aggregation 6.2 FORWARDING

HANNAM UNIVERSITY 47  Longest mask matching 6.2 FORWARDING

HANNAM UNIVERSITY 48 As an example of hierarchical routing, let us consider Figure A regional ISP is granted addresses starting from The regional ISP has decided to divide this block into four subblocks, each with 4096 addresses. Three of these subblocks are assigned to three local ISPs, the second subblock is reserved for future use. Note that the mask for each block is /20 because the original block with mask /18 is divided into 4 blocks. Example 12

HANNAM UNIVERSITY 49  Hierarchical routing with ISPs 6.2 FORWARDING

HANNAM UNIVERSITY 50 The first local ISP has divided its assigned subblock into 8 smaller blocks and assigned each to a small ISP. Each small ISP provides services to 128 households (H001 to H128), each using four addresses. Note that the mask for each small ISP is now /23 because the block is further divided into 8 blocks. Each household has a mask of /30, because a household has only 4 addresses (2 32−30 is 4). The second local ISP has divided its block into 4 blocks and has assigned the addresses to 4 large organizations (LOrg01 to LOrg04). Note that each large organization has 1024 addresses and the mask is /22. Example 12

HANNAM UNIVERSITY 51 The third local ISP has divided its block into 16 blocks and assigned each block to a small organization (SOrg01 to SOrg15). Each small organization has 256 addresses and the mask is /24. There is a sense of hierarchy in this configuration. All routers in the Internet send a packet with destination address to to the regional ISP. The regional ISP sends every packet with destination address to to Local ISP1. Local ISP1 sends every packet with destination address to to H001. Example 12

HANNAM UNIVERSITY ROUTING Routing deals with the issues of creating and maintaining routing tables. The topics discussed in this section include: Static Versus Dynamic Routing Tables Routing Table

HANNAM UNIVERSITY 53  Common fields in a routing table 6.3 ROUTING

HANNAM UNIVERSITY 54 One utility that can be used to find the contents of a routing table for a host or router is netstat in UNIX or LINUX. The following shows the listing of the contents of the default server. We have used two options, r and n. The option r indicates that we are interested in the routing table and the option n indicates that we are looking for numeric addresses. Note that this is a routing table for a host, not a router. Although we discussed the routing table for a router throughout the chapter, a host also needs a routing table. Example 13

HANNAM UNIVERSITY 55 $ netstat -rn Kernel IP routing table Destination Gateway Mask Flags Iface U eth U lo UG eth0. Example 13

HANNAM UNIVERSITY 56 More information about the IP address and physical address of the server can be found using the ifconfig command on the given interface (eth0). Example 13 $ ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:B0:D0:DF:09:5D inet addr: Bcast: Mask: From the above information, we can deduce the configuration of the server as shown in Figure 6.19.

HANNAM UNIVERSITY 57  Configuration of the server for Example ROUTING

HANNAM UNIVERSITY STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table to find the departing output port, and sends the packet from this output port. The topics discussed in this section include: Components

HANNAM UNIVERSITY 59  Router components 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 60  Input port 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 61  Output port 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 62  Crossbar switch 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 63  A banyan switch 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 64  Examples of routing in a banyan switch 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 65  Batcher-banyan switch 6.4 STRUCTURE OF A ROUTER

HANNAM UNIVERSITY 66 연습문제 풀이해서 Report 로 다음주까지 ( 일주일 후 ) 제출해 주세요 ! 알림