Slides from Lecture 10 of 8 October 2002: 10-ospf.pdf

Do read RFC 2328; it's the OSPF RFC.