compile with pthread lib
started working on link state routing