How to implement blog trackbacks?

I’m writing a blog system and I find many blog systems have trackbacks, like msn spaces.
But I don’t know how to implement trackbacks. Can anybody give me some idea?