The present invention discloses a method for secure isolation of the internal network of a
hospital based on an all-optical
network architecture, comprising the following steps: S1, dividing the internal network of the hospital into multiple virtual optical slices by using all-optical network
slicing technology; S2, performing time-domain isolation by using optical time-division
multiplexing technology and transmitting data on different optical wavelengths through
wavelength selective switching technology; S3, monitoring and managing
bandwidth allocation through a
software-defined
network control platform; S4, performing
traffic prediction and resource optimization based on a
decision tree ensemble
algorithm; S5, detecting potential anomalies and security threats by using a graph neural network; S6, detecting abnormal behaviors through an isolation forest
algorithm, marking and isolating abnormal traffic; S7, recording network traffic logs through
blockchain technology; S8, when a network failure occurs, automatically switching redundant
optical path resources and restoring the
optical path by using an intelligent self-healing mechanism. The present invention makes full use of all-optical network
slicing and
artificial intelligence technologies to achieve secure isolation and resource optimization of the internal network of the hospital.