Presentation is loading. Please wait.

Presentation is loading. Please wait.

Routers and Redundancy

Similar presentations


Presentation on theme: "Routers and Redundancy"— Presentation transcript:

1 Routers and Redundancy
Lesson 1-10 AP Computer Science Principles

2 Objectives Students will be able to:
Describe the redundancy of routing between two points on the Internet. Send messages using a numeric addressing protocol with the Internet Simulator. Evaluate the benefits and security concerns associated with the use of a routed system of sending packets.

3 Journal Imagine you were going to send a letter to a friend living in another state. List the steps you imagine your letter would have to take through the different parts of the postal system.

4 Routers When we send messages through a network we don’t actually want everyone on the network to receive them. If we include information about who the message is intended for then we can allow portions of the network to focus on sorting and routing messages, so that they can continue on their way to their intended target.

5 Routers In the mail system, mail facilities, post offices, or a mail carrier fills this role. In a network of computers, certain computers called “routers” do the same thing, directing messages towards the target computer based on the IP addresses included in the message.

6 Internet Simulator Today’s activity introduces the newest incarnation of the Internet Simulator Messages now have “To” and “From” addresses in a format similar to IP addresses (just an 8-bit address instead of a full 32 bits) This allows messages to be sent to a single intended recipient. The Internet Simulator also simulates the routing of messages across a network, with messages possibly being routed across multiple routers in unpredictable sequences before finally being delivered. This is done to simulate the way traffic travelling across the Internet is constantly rebalanced in response to over- or under- usage of some channels. A message will usually make it to its destination, but we can’t know for sure how it will get there.

7 Internet Simulator Log into Code Studio and find today’s lesson.
Choose a Router: Add a router if you need more space. Then join a router with a few of the people sitting closest to you. Ideally, you’ll have 3-4 classmates with you on your router. Send a quick test message: Send a simple “hello” to a friend who is connected to the same router. Find friend’s (small) IP address Send a message to that address Friend should send a response

8 Activity Guide Follow the Activity Guide
Go to the Internet Simulator in Code Studio. In your groups connect to a router (at least 3 to a router)

9 Activity Guide Note that the simulator has changed.
You provide a “to” and the “Message” (the “from” field is filled in for you) Look at the left part of the screen and find the address of the others in your group. Start conversations with your group members. Note: Keep is clean and acceptable – this internet is in no way private. I will take action if I find unacceptable things in the log.

10 Activity Guide - Pause Check the router log
Answer the questions in the first part of the Activity Guide.

11 Activity Guide Routing messages functions very differently from broadcasting. The messages are only sent to the user they are intended for. This prevents users from having to scan all the traffic in the network to find messages intended for them. This is just like when you write a letter to a friend, where an address on the outside of the letter tells the mail service how to properly route your letter.

12 Activity Guide The router needs to read the header of the message to route it correctly, but the contents of the message are right there too, and if it wanted, a router could read all the messages going across it, just like you did. We'll talk more about this later. The view we have in this table of traffic wouldn't normally be available to a user on the network -- this is a simulation after all -- but it WOULD be visible to the router.

13 Continue the Simulation
Find a Classmate on a Different Router: The Internet Simulator can route messages between routers, allowing the entire class to communicate. Find two classmates on a different router and ask for their IP addresses.

14 Continue the Simulation
Have a Conversation: Conduct a short conversation with your two new partners Confirm that your messages are being received.

15 Activity Guide - Pause Check the router log
It is possible to read traffic across the entire network, not merely your router by clicking the “Show all routers” button. Answer the questions in the second part of the Activity Guide.

16 Routing If you trace carefully you'll notice that messages between two people don't always visit the same routers along the way. This is not a mistake; it’s modeled after the way the actual Internet was designed. Why might the Internet have been designed to be flexible about how messages get from one person to another? Why go through the trouble of creating multiple paths between users?

17 Reflection Answer the reflection questions at the bottom of the Activity Guide and turn it in.

18 Unit 1 – Stage 10 Finish the Stage 4 questions.


Download ppt "Routers and Redundancy"

Similar presentations


Ads by Google