OSPF Header OSPF HEADER OSPF HEADER for this project Types we will use

Slides:



Advertisements
Similar presentations
EIGRP routing protocol Omer ben-shalom Omer Ben-Shalom: Must show how EIGRP is dealing with count to infinity problem Omer Ben-Shalom: Must.
Advertisements

Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
1 ELEN 602 Lecture 20 More on Routing RIP, OSPF, BGP.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Unicast Routing Protocols: RIP, OSPF, and BGP
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network.
CCNP Network Route OSPF Part -I OSPF: Open Shortest Path First Concept of OSPF: 1. It is a link state routing protocol. 2. There are basically only 2 ISIS.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Open Shortest Path First Protocol (OSPF) Sudarshan Vasudevan
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
Ogier - 1 OSPF Database Exchange Summary List Optimization draft-ietf-ospf-dbex-opt-00.txt Richard Ogier Presented by Acee Lindem March 19, 2007 IETF 68.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 13 Routing Protocols (RIP, OSPF, BGP)
資 管 Lee Lesson 10 RIP, OSPF, and BGP. 資 管 Lee Routing in Internet An internet is divided into autonomous systems. An autonomous system(AS) is a group.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
1 of of 35 Single Area OSPF Concepts 3 of 35 OSPF Basics.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
OSPF Topology-Transparent Zone Huaimo Chen, Renwei Li (Huawei) Gregory Cauchie (France Telecom) Ning So (Verizon)
CSS 432: Routing 1 CSS432 Routing Textbook Ch3.3 Professor: Munehiro Fukuda.
Overview of Internet Routing (I) Fall 2004 CS644 Advanced Topics in Networking Sue B. Moon Division of Computer Science Dept. of EECS KAIST.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – 10 EIGRP 1.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
Open Shortest Path First (OSPF)
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
Dynamic Routing Protocols II OSPF
LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
Unicast Routing in IPv6 Babu Ram Dawadi.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
CCNP Routing Semester 5 Chapter 4 OSPF.
University of Delaware CPEG 4191 Distance Vector Routing – Dynamic Programming zLimited state information. Just the next hop and cost. A B D G F C H E.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Open Shortest Path First (OSPF) Uses Link State routing Each node acquires complete topology information using link state updates Link-state - what it.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
1 CMPT 471 Networking II OSPF © Janice Regan,
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
IGP Troubleshooting 3.
Dynamic Routing Protocols II OSPF
Link State Routing protocol
Routing Protocols (RIP, OSPF, BGP)
OSPF (Open Shortest Path First)
Static and Dynamic Routing
13.3 OSPF: Open Shortest Path First.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Link State Algorithm Alternative to distance-vector
Dynamic Routing Protocols II OSPF
ECE 544 Protocol Design Project 2016
CCNA 3 v3 JEOPARDY Module 2 CCNA3 v3 Module 2 K. Martin.
Viet Nguyen Jianqing Liu Yaqin Tang
Dynamic Routing Protocols part3 B
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

OSPF Header OSPF HEADER OSPF HEADER for this project Types we will use Version (1 byte) Pkt type (1 byte) Length of Pkt (2 bytes) Source Router ID (4 bytes) Area ID (4 bytes) Checksum (2 bytes) Authentication type (2 bytes) Authentication data (8 bytes) 2 Type don’t care IP:PORT (8 bytes!!) Don’t care Type = 1 -> HELLO Type = 3 -> link state request Type = 4 -> link state update Type = 5 -> link state ACK Types we will use

HELLO Packet standard this project OSPF Header with Type = 1 (HELLO) OSPF Header with Type = 1 (HELLO) Network Mask (4 bytes) Don’t care (4 bytes) Hello Interval (2 bytes) 10 (2 bytes) standard Neighbors are the Ids (IP:Port) that have been send a HELLO since the in the previous 40 seconds (dead interval). Put the senders ID last as a delimiter. options priority this project Don’t care Dead interval (4 bytes) 40 (4 bytes) Designated router (4 bytes) Don’t care (4 bytes) Backup designated router (4 bytes) Don’t care (4 bytes) 1st recent neighbor ID (4 bytes) 1st Neighbor ID (8 bytes) last recent neighbor ID (4 bytes) SENDER ID (8 bytes)

HELLO Protocol Every hello interval (10 sec) you must send out a hello to ALL neighbors. The HELLOs are even sent across links that seem to be down. During initialization, a HELLO is sent to all neighbors. If a HELLO is received and 1. The receiving node is listed in the recent neighbors list and 2. the sending node’s BIDIRECTIONAL flag is zero, then set it to one and send immediately respond with a HELLO, with, of course, the node that just sent the HELLO on the recent neighbors list. If a HELLO is received and the receiving node is not listed in the recent neighbors list, then immediately respond with a HELLO, with, of course, the node that just sent the HELLO on the recent neighbors list. Whenever a HELLO is received, set the sending node’s LAST_HELLO_TIME to the current time.

The Link State Update packet LSA OSPF Header with Type = 4 (update) LSA Age options LS type Link State ID 4 bytes Number of LSAs LSA1 Advertising router 4 bytes LSA Header LS Sequence Number 4 bytes LSA2 checksum length router type Number of Links Link ID 4 bytes Link Data 6 bytes Link 1 Link type TOS metric

The Link State Update Packet for Project LSA LSA Age Don’t care OSPF Header with Type = 4 (update) Link State ID 8 bytes don’t care 4 bytes Number of LSAs LSA Header LS Sequence Number 4 bytes LSA1 don’t care don’t care LSA2 Don’t care Number of Links Link ID 8 bytes Link Data 6 bytes Link 1 Link type TOS metric

Database Exchange This is not according to the OSPF standard. It will generate more control traffic than the standard, and will not work in all situations. But, it is simpler to program and will suffice for this project. When a link switches to bidirectional, a full database exchange should take place. Suppose that node A has switched its bidirectional flag to node B to one, then node A initializes a database exchange: Node A sends an OSPF link state request packet to node B. Node B responds by all its LSA’s in one packet. If A does not get a LSA from B within 2 seconds, A resends an OSPF link state request packet to node B until either it gets an LSA or the link is no longer BIDIRECTIONAL. When A receives the LSA database, it responds with a link state ACK packet. If B fails to get a link state ACK within 2 seconds, B retransmits the LSA database. (Remember to not miss sending and receiving HELLO messages while sending a database). B continues to retransmit the LSA database until the link is no longer BIDIRECTIONAL or the entire database has been sent. Note, since both ends will switch the link to bidirectional, both ends will initiate a database exchange

Reception of link state update A link state update is made up of one or more LSAs When an link state update arrives, send a link state ACK to sending node (not quite the standard). For each in the LSA in the update if the sequence number is larger than the sequence number in the current database then If the Link State ID of in the LSA is not the same as this node’s ID, then Update link state database Flood this LSA to all neighbor except the one that sent it. else Generate a new LSA with sequence number equal to one plus the sequence number in the arrived LSA. Flood this LSA to ALL neighbors. If the LSA sequence number is less than or equal to the one currently in the database, then don’t do anything.

Reliable Flooding When a packet is to be flooded, put it in the ToBeFlooded list. This list should contain the packet to be flooded, the address to where it should be sent and the time out, the next time it should be resent. Hint: Since you should check periodically if packets need to be resent, you can initially put the packet in the list with an expired time out. When you get an ACK, the packet should be removed from the ToBeFlooded list.

yes yes Initialize Send HELLOs wait for packet arrival (but don’t wait more than 2 sec) receive LS update receive HELLO Possibly clear WaitingForUpdate flag Forward data packet receive LS ACK Clear entry on ToBeFlooded List receive LS request Reply to HELLO ? does update contains new LSAs? Reply to HELLO Set Bidirectional? update LSA database Set compute new routing table flag Set Bidirectional and Request LS update Set waiting for LS update from XXX flag0 Add to ToBeFlooded List Any LS update request need to be resent? Send HELLOs if needed Make new routing table If needed send ToBeFlooded list entries yes Delete link Set compute new routing table flag Any overdue HELLOs? Generate new LSA Add to be flooded list yes Clear LSA with MAXAGE and add ToBeFlooded list Age LSA Any overdue LSA?