The Project Please read the project’s description first. Each router will have a unique ID, with your router’s ID of 0 Any two connected routers will have.

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

Números.
Un percorso realizzato da Mario Malizia
C) between 18 and 27. D) between 27 and 50.
1 A B C
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
PDAs Accept Context-Free Languages
Network Layer Delivery Forwarding and Routing
AP STUDY SESSION 2.
EuroCondens SGB E.
Worksheets.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Slide 1Fig 25-CO, p.762. Slide 2Fig 25-1, p.765 Slide 3Fig 25-2, p.765.
Slide 1Fig 24-CO, p.737. Slide 2Fig 24-1, p.740 Slide 3Fig 24-2, p.741.
& dding ubtracting ractions.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Addition and Subtraction Equations
Introduction to IP Routing Geoff Huston. Routing How do packets get from A to B in the Internet? A B Internet.
Multiplication X 1 1 x 1 = 1 2 x 1 = 2 3 x 1 = 3 4 x 1 = 4 5 x 1 = 5 6 x 1 = 6 7 x 1 = 7 8 x 1 = 8 9 x 1 = 9 10 x 1 = x 1 = x 1 = 12 X 2 1.
Division ÷ 1 1 ÷ 1 = 1 2 ÷ 1 = 2 3 ÷ 1 = 3 4 ÷ 1 = 4 5 ÷ 1 = 5 6 ÷ 1 = 6 7 ÷ 1 = 7 8 ÷ 1 = 8 9 ÷ 1 = 9 10 ÷ 1 = ÷ 1 = ÷ 1 = 12 ÷ 2 2 ÷ 2 =
ALGEBRA Number Walls
We need a common denominator to add these fractions.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
1 1  1 =.
27  9 =.
CHAPTER 18 The Ankle and Lower Leg
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Grade D Number - Decimals – x x x x x – (3.6 1x 5) 9.
The 5S numbers game..
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Media-Monitoring Final Report April - May 2010 News.
Break Time Remaining 10:00.
The basics for simulations
Factoring Quadratics — ax² + bx + c Topic
EE, NCKU Tien-Hao Chang (Darby Chang)
PP Test Review Sections 6-1 to 6-6
Look at This PowerPoint for help on you times tables
Regression with Panel Data
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Progressive Aerobic Cardiovascular Endurance Run
Biology 2 Plant Kingdom Identification Test Review.
CSE 6007 Mobile Ad Hoc Wireless Networks
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
Lesson 10.2: Arithmetic Sequences & Series
Midterm Review Part II Midterm Review Part II 40.
Before Between After.
Slide R - 1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Prentice Hall Active Learning Lecture Slides For use with Classroom Response.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Static Equilibrium; Elasticity and Fracture
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Resistência dos Materiais, 5ª ed.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
& dding ubtracting ractions.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
Presentation transcript:

The Project Please read the project’s description first. Each router will have a unique ID, with your router’s ID of 0 Any two connected routers will have an associated cost between them R0R0 R5R5 R4R4 R2R2 R3R3 R7R7 R1R1 R8R8 R6R6 Server

Your Router Your router is always Router 0. Your router should have a socket, which connects to the test program. The test program will send you two kinds of messages. R0R0 LAN

Phases The project will be completed in two phases: 1.You will receive an update message from the server, based on which you will construct your routing table using Dijkstra algorithm. 2.After the first phase is done, you move into phase II.

Phase I In Phase I, you will do the following: 1.Using the socket, you will receive a routing update from the server which will contain the number of networks, the costs of the links (cost matrix) and the IP range for each router. 2.Based on the cost matrix and the routers directly connected to router 0, using Dijkstra’s algorithm, you will construct the routing table: the next- hop to reach any other router in the network.

First step first As the first step, you will be provided with example networks to practice how Dijkstras algorithm works based on which you can code the algorithm (which is an essential part of the project). Here we provide one example. It is also one of the two test cases.

Format of routing update Based on the project description, using the socket, the server will send you three strings, respectively. The first string is a number (but it is still a string), telling you how many routers there are in the network (including yourself). Example: “3”. The second string is an NxN matrix. All valid costs will be positive integers (or zero), determining thecost to get from Router i to Router j. Example: “0, 1, 2, 3, 0, 4, 5, 6, 0”.

The third string is a denition of IP range, telling you which router is serving what range of IP addresses. Example: “ ”.

An Example In the next few slides, we will go through an example of how to construct the routing table. Assuming that the server sends the routing update as shown in the next slide. We show in the subsequent slide the connections and costs for the first 3 rows. – Can you complete the rest of the network?

Example routing update “8” “0, 1, 12, -1, -1, 18, -1, 63, -20, 0, 28, -12, -24, 12, 64, 62, -11, 68, 0, -15, 17, 10, 47, -24, 75, 33, 50, 0, 70, 54, 66, -19, 6, 17, 56, 56, 0, 65, 68, 0, 18, -1, 30, 5, -13, 0, 28, 12, 27, -4, 72, 32, 43, 6, 0, 6, 9, 63, 32, -11, 13, -3, 17, 0” “ ”

Cost matrix (re-written) [0, 1, 12, -1, -1, 18, -1, 63, -20, 0, 28, -12, -24, 12, 64, 62, -11, 68, 0, -15, 17, 10, 47, -24, 75, 33, 50, 0, 70, 54, 66, -19, 6, 17, 56, 56, 0, 65, 68, 0, 18, -1, 30, 5, -13, 0, 28, 12, 27, -4, 72, 32, 43, 6, 0, 6, 9, 63, 32, -11, 13, -3, 17, 0]

Connection and cost for the first 3 rows R0R0 R5R5 R7R7 R2R2 R1R R6R R4R R3R3

Dijkstra Algorithm The running result for the algorithm. How can we construct next hop table from this? Packet destined to Router Previous Router 0N/A

Routing Table Packet destined to Router Previous RouterNext-hop Router 0N/A

Phase II In this phase, the test program will send you several IP addresses. One at a time. You need to first check which router you should forward it to, and then choose the correct next hop. You router can exit after receiving “END”.

Phase II

One more thing… How to determine which router an IP address belongs to?