Presentation is loading. Please wait.

Presentation is loading. Please wait.

Routing Going from one network to the next. Where is routing handled? IP serves the functions of –routing –universal naming Identification is easiest.

Similar presentations


Presentation on theme: "Routing Going from one network to the next. Where is routing handled? IP serves the functions of –routing –universal naming Identification is easiest."— Presentation transcript:

1 Routing Going from one network to the next

2 Where is routing handled? IP serves the functions of –routing –universal naming Identification is easiest if naming has uniformity Need a function/service to map IP addresses to MAC (e.g. ethernet) addresses Transport layer hands data to IP and lets IP worry about how to carry to the right machine

3 Thinking about the problem Consider the routing problem by identifying three possibilities for each message –(1) message is for itself –(2) message is for a directly connected machine –(3) message is for a machine on another segment Router 128.81.5.2 AB 128.81.10.1128.81.8.2 C D 195.1.2.1195.1.2.3 195.1.2.8 Consider messages from A (1) (2) (3)

4 How does it know if it is for self? –Knows own IP How does it know if on own segment? –Compare own subnet with the subnet of the destination address How does it deal with other routes? –Often only one (DEFAULT) place to route info, (in previous case (R)) –If more than one router available, more tricky based on what’s behind the router –Router addresses frequently hard coded (1) (2) (3)

5 Where is routing in OSI? Consider TCP/IP instead Application Presentation Session Transport(TCP) Network (IP) Data Link Physical Data Link not used in TCP/IP Cooperate to handle routing although done at Network (IP) Consider only the Transport/Network/Physical layers

6 Typical path Application Transport Network (IP) Physical Application Transport Network (IP) Physical Network (IP) Physical Router 128.81.5.2 AB 128.81.10.1128.81.8.2 C D 195.1.2.1195.1.2.3 195.1.2.8

7 When for itself? A couple of cases exist: consider the simple case Application Transport Network (IP) Physical A 128.81.10.1 To: 128.81.10.1 From:128.81.10.1 Already There! Info

8 Someone on it’s segment AB 128.81.10.1128.81.8.2 (2) Application Transport Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 Info To: 128.81.8.2 From:128.81.10.1 Info To:????? From:80:3:12:2:1:0 IP 80:3:12:2:1:0 What is the MAC level address? All packets at the physical level must have the ethernet address. How can A find out B’s address? Transport IP MAC(ethernet) Legend A

9 ARP to the rescue an IP level protocol Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 To: ff:ff:ff:ff:ff:ff From:80:3:12:2:1:0 ARP What’s your MAC address? 80:3:12:2:1:0 Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 To: ff:ff:ff:ff:ff:ff From:80:3:12:2:1:0 ARP What’s your MAC address? 4:7:10:2:7f:2 Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 To: ff:ff:ff:ff:ff:ff From:80:3:12:2:1:0 ARP What’s your MAC address? c0:3:2:21:1:0 A- 128.81.10.1 B- 128.81.8.2 Router - 128.81.5.2 NOT ME! To: 128.81.8.2 From:128.81.10.1 What’s your MAC address? YES ME! What’s your MAC address? To: 128.81.8.2 From:128.81.10.1 A sends the same request to all machines ARP

10 ARP to the rescue Network (IP) Physical To: 128.81.10.1 From:128.81.8.2 To: 80:3:12:2:1:0 From: 4:7:10:2:7f:2 ARP 4:7:10:2:7f:2 80:3:12:2:1:0 Network (IP) Physical To: 128.81.10.1 From:128.81.8.2 To: 80:3:12:2:1:0 From: 4:7:10:2:7f:2 ARP 4:7:10:2:7f:2 Network (IP) Physical ARP c0:3:2:21:1:0 YES ME! 4:7:10:2:7f:2 To: 128.81.10.1 From:128.81.8.2 B responds to A A- 128.81.10.1 B- 128.81.8.2 Router - 128.81.5.2 ARP To: 128.81.10.1 From:128.81.8.2 4:7:10:2:7f:2

11 Someone on it’s segment CONTINUED AB 128.81.10.1128.81.8.2 (2) Application Transport Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 Info To: 128.81.8.2 From:128.81.10.1 Info To: 4:7:10:2:7f:2 From:80:3:12:2:1:0 IP 80:3:12:2:1:0 Now A know B’s Mac address! Thanks to ARP. Continue with the message. A Application Transport Network (IP) Physical To: 128.81.8.2 From:128.81.10.1 Info To: 128.81.8.2 From:128.81.10.1 Info To: 4:7:10:2:7f:2 From:80:3:12:2:1:0 IP 4:7:10:2:7f:2 B Yes ME!

12 Router 128.81.5.2195.1.2.8 Someone on another segment C 195.1.2.1 A 128.81.10.1 Application Transport Network (IP) Physical To: 195.1.2.1 From:128.81.10.1 Info To: 195.1.2.1 From:128.81.10.1 Info To: c0:3:2:21:1:0 From:80:3:12:2:1:0 IP 80:3:12:2:1:0 Network (IP) Physical To: 195.1.2.1 From:128.81.10.1 Info To: 195.1.2.1 From:128.81.10.1 Info To: 4:7:10:2:7f:2 From:80:3:12:2:1:0 IP c0:3:2:21:1:0 Application Transport Network (IP) Physical To: 195.1.2.1 From:128.81.10.1 Info To: 195.1.2.1 From:128.81.10.1 Info To: ba:5:2:7:6:4 From: 40:3:7:21:1:0 IP ba:5:2:7:6:4 To: 195.1.2.1 From:128.81.10.1 Info To: ba:5:2:7:6:4 From: 40:3:7:21:1:0 IP 40:3:7:21:1:0 Not for ME! For ME! 128.81.5.2 -Router - 195.1.2.8 A- 128.81.10.1 C- 195.1.2.1

13 Things to note (previous slide) The IP addresses were consistent across the transmission (END-TO-END) The ARP process between Router C has not been shown APR caches responses to save time later Router only functions at IP and below if not intended for Router. If for Router instead of C, IP would be Router’s Router has 2 interfaces->2 protocol stacks Protocol stack is actually a tree structure Ethernet indicates if IP or ARP or … going up.


Download ppt "Routing Going from one network to the next. Where is routing handled? IP serves the functions of –routing –universal naming Identification is easiest."

Similar presentations


Ads by Google