The invention discloses an industrial
control network topological graph generation method based on active and
passive detection, and the method comprises the steps: S1, capturing network flow data in a
passive detection mode, carrying out analysis and formatting of traffic data, and storing traffic data in a
database; S2, providing an IP in the traffic data for
active detection; S3, performing
active detection, firstly performing survival scanning, and recording a current survival IP and port; S4, scanning the currently survived IP and port through an industrial control protocol script, performing
route tracking, analyzing and formatting a scanning result and
route information, and storing the scanning result and the
route information in a
database; S5, extracting data from the
database according to the filtering condition of the user to draw a
topological graph and the like; The network
topological graph of the detailed route can be generated for the network environment, the fault node can be found through the topological graph, the network problem can be rapidly and accurately solved, and a path can be provided for better managing and optimizing the network.