The invention relates to the technical field of
passive optical network (PON), is applied to
fiber to room (FTTR), enterprise-level
fiber to room-
Bus (FTTR-B) and
broadband fusion terminal products, and particularly relates to an OUN gateway optimization method, device, equipment and medium based on a PON network, by obtaining a spatial
radio frequency map and a resource availability state of a
mobile agent node in a target area, the OUN gateway optimization method, device and equipment based on the PON network can be used for optimizing an OUN gateway, and the OUN gateway optimization method, device and medium based on the PON network can be used for optimizing the OUN gateway according to the spatial
radio frequency map and the resource availability state of the
mobile agent node in the target area. And determining whether to trigger a network coverage optimization process according to the first network quality parameter and the resource availability state and the first network quality parameter and the real-
time space coordinate of the target terminal device, if so, determining an optimal moving path of the
mobile agent node based on the spatial
radio frequency map and the real-
time space coordinate, and if not, determining the optimal moving path of the mobile agent node. And the mobile agent node is controlled to move to the target deployment position according to the optimal moving path, and the network access connection is completed by using the preset protocol, so that the intelligent path planning and dynamic network optimization of the mobile agent node are realized, and the network coverage can actively adapt to the actual position and demand of the user.