The document analyzes and compares the performance of distance vector and link state routing protocols through simulation. It provides background on routing protocols and describes the operation of the distance vector and link state algorithms through pseudocode. The results of simulations run using the NS 2.3.5 network simulator are presented, showing that link state routing has better throughput than distance vector as network density increases, while distance vector has lower packet dropping. It concludes that distance vector is better for lower packet dropping while link state performs better in dense networks with high throughput.