30
Network Layer Part II Computer Networks Tutun Juhana Telecommunication Engineering School of Electrical Engineering & Informatics Institut Teknologi Bandung 5

Et3003 sem2-1314-5 network layers ii (intro to routing)

Embed Size (px)

DESCRIPTION

Introduction to Routing protocol

Citation preview

Page 1: Et3003 sem2-1314-5 network layers ii (intro to routing)

Network Layer Part II

Computer Networks

Tutun JuhanaTelecommunication EngineeringSchool of Electrical Engineering & InformaticsInstitut Teknologi Bandung

5

Page 2: Et3003 sem2-1314-5 network layers ii (intro to routing)

DELIVERY AND FORWARDINGOF IP PACKETS

Page 3: Et3003 sem2-1314-5 network layers ii (intro to routing)

3

Direct Delivery

Page 4: Et3003 sem2-1314-5 network layers ii (intro to routing)

4

Indirect Delivery

Page 5: Et3003 sem2-1314-5 network layers ii (intro to routing)

5

Forwarding

• Forwarding means to place the packet in its route to its destination– to deliver the packet to the next hop (which can be

the final destination or the intermediate connecting device)

• Two kinds of forwarding1. The destination address –based forwarding (when

IP is used as a connectionless protocol)

2. Label-based forwarding (when the IP is used as a connection-oriented protocol)

Page 6: Et3003 sem2-1314-5 network layers ii (intro to routing)

6

FORWARDING BASED ON DESTINATION ADDRESS

Page 7: Et3003 sem2-1314-5 network layers ii (intro to routing)

7

Forwarding Techniques

1. Next-Hop Method

2. Network-Specific Method

3. Host-Specific Method

4. Default Method

To make the size of the routing table manageable

Page 8: Et3003 sem2-1314-5 network layers ii (intro to routing)

8

Next-Hop Method

• The routing table holds only the address of the next hop instead of information about the complete route

Page 9: Et3003 sem2-1314-5 network layers ii (intro to routing)

9

Network-Specific Method

Page 10: Et3003 sem2-1314-5 network layers ii (intro to routing)

10

Host-Specific Method

Page 11: Et3003 sem2-1314-5 network layers ii (intro to routing)

11

Default Method

Page 12: Et3003 sem2-1314-5 network layers ii (intro to routing)

12

FORWARDING WITH CLASSFUL ADDRESSING

Page 13: Et3003 sem2-1314-5 network layers ii (intro to routing)

13

Forwarding without Subnetting

Page 14: Et3003 sem2-1314-5 network layers ii (intro to routing)

14

Page 15: Et3003 sem2-1314-5 network layers ii (intro to routing)

15

• Example 6.2Router R1 in Figure 6.8 receives a packet with destination address 192.16.7.14. Show how the packet is forwarded

Solution

The destination address in binary is 11000000 00010000 00000111 00001110. A copy of the address is shifted 28 bits to the right. The result is 00000000 00000000 00000000 00001100 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 192.16.7.0. The table for Class C is searched. The network address is found in the first row. The next-hop address 111.15.17.32. and the interface m0 are passed to ARP

Page 16: Et3003 sem2-1314-5 network layers ii (intro to routing)

16

Page 17: Et3003 sem2-1314-5 network layers ii (intro to routing)

17

Forwarding with Subnetting

Page 18: Et3003 sem2-1314-5 network layers ii (intro to routing)

18

Page 19: Et3003 sem2-1314-5 network layers ii (intro to routing)

19

Forwarding with Classless Addressing

Page 20: Et3003 sem2-1314-5 network layers ii (intro to routing)

20

Page 21: Et3003 sem2-1314-5 network layers ii (intro to routing)

21

Page 22: Et3003 sem2-1314-5 network layers ii (intro to routing)

22

Page 23: Et3003 sem2-1314-5 network layers ii (intro to routing)

23

Address Aggregation

• In classful addressing, there is only one entry in the routing table for each site outside the organization

• In classless addressing, it is likely that the number of routing table entries will increase The increased size of the table results in an increase in the amount of time needed to search the table to alleviate the problem, the idea of address aggregation was designed

Page 24: Et3003 sem2-1314-5 network layers ii (intro to routing)

24

Page 25: Et3003 sem2-1314-5 network layers ii (intro to routing)

25

Longest Mask Matching

The routing table is sorted from the longest mask to the

shortest mask

Packet arrives with dest. add.140.24.7.200

By longest mask matching correctly routed to Organization 4

Page 26: Et3003 sem2-1314-5 network layers ii (intro to routing)

26

STRUCTURE OF A ROUTER

Page 27: Et3003 sem2-1314-5 network layers ii (intro to routing)

27

Componentsperforms the functions of the network layer

Page 28: Et3003 sem2-1314-5 network layers ii (intro to routing)

28

Switching Fabrics

Page 29: Et3003 sem2-1314-5 network layers ii (intro to routing)

29

Page 30: Et3003 sem2-1314-5 network layers ii (intro to routing)

30