Passive and Active Network Analysis and Synthesis