Slides from Lecture 9 of 1 October 2002:
09-ospf.pdf
Do read
RFC 2328
; it's the OSPF RFC.