A method for automatically restoring node resource state in the Dense Wavelength Division Multiplexing Based Automatic Switched Optical Network, 'WSON', system, comprising the steps of: using any node in the WSON system as an initiation node, regularly sending packed resource state of the initiation node to a neighboring node; the neighboring node comparing the received resource state of the initiation node with the resource state of the neighboring node; and under the condition that the resource state of the initiation node and that of the neighboring node are inconsistent, determining one of the initiation node and the neighboring node to be the node whose resource is occupied, and releasing the resource of the node whose resource is occupied, wherein the initiation node notifies the resource state thereof to the neighboring node regularly, wherein the resource refers to wavelength resource and the resource state refers to a wavelength using state, and wherein the step that the neighboring node compares the received resource state of the initiation node with the resource state of its own comprises the steps of: the neighboring node compares the received wavelength using state in the sending direction of the initiation node with the using state of the same wavelength in the receiving direction of the neighboring node wave by wave (S102-2); the neighboring node compares the wavelength using state in the receiving direction of the initiation node with the using state of the same wavelength in the sending direction of the neighboring node wave by wave; and if an inconsistency of the resource states is found in the comparison, inconsistency information is recorded and the initiation node is required to resend the wavelength using state thereof, and the comparison is processed once again; if the inconsistency of the resource states still exists, the inconsistency between the wavelength using state of the initiation node and that of the neighboring node is determined. using any node in the WSON system as an initiation node, regularly sending packed resource state of the initiation node to a neighboring node; the neighboring node comparing the received resource state of the initiation node with the resource state of the neighboring node; and under the condition that the resource state of the initiation node and that of the neighboring node are inconsistent, determining one of the initiation node and the neighboring node to be the node whose resource is occupied, and releasing the resource of the node whose resource is occupied, wherein the initiation node notifies the resource state thereof to the neighboring node regularly, wherein the resource refers to wavelength resource and the resource state refers to a wavelength using state, and the neighboring node compares the received wavelength using state in the sending direction of the initiation node with the using state of the same wavelength in the receiving direction of the neighboring node wave by wave (S102-2); the neighboring node compares the wavelength using state in the receiving direction of the initiation node with the using state of the same wavelength in the sending direction of the neighboring node wave by wave; and if an inconsistency of the resource states is found in the comparison, inconsistency information is recorded and the initiation node is required to resend the wavelength using state thereof, and the comparison is processed once again; if the inconsistency of the resource states still exists, the inconsistency between the wavelength using state of the initiation node and that of the neighboring node is determined.