A method for label automatic allocation in ring network protection, wherein: after physical topology configuration of ring network protection is completed, testing connectivity between adjacent nodes, if a first node is an intermediate node of a ring tunnel, and connectivity detection between a downstream node and the first node is UP, receiving, by the first node, a first label distribution message sent by the downstream node, wherein the first label distribution message includes: an identifier of a ring bearing the ring tunnel, an identifier of a tail node of the ring tunnel, an identifier indicating that a tail node label is ready, and a first label allocated by the downstream node for the ring tunnel; according to the identifier indicating that the tail node label is ready in the first label distribution message, when connectivity detection between the first node and an upstream node is UP, sending, by the first node, a second label distribution message to the upstream node, wherein the second label distribution message includes: the identifier of the ring bearing the ring tunnel, the identifier of the tail node of the ring tunnel, the identifier indicating that the tail node label is ready, and a second label allocated by the first node for the ring tunnel; so that the upstream node learns, according to the identifier indicating that the tail node label is ready, that label allocation for all nodes on the ring tunnel between the first node and the tail node corresponding to the identifier of the tail node of the ring tunnel is completed; and if the upstream node is not a head node on the ring tunnel, according to the identifier indicating that the tail node label is ready in the second label distribution message, when connectivity detection between the upstream node and a second node is UP, sending, by the upstream node, a third label distribution message to the second node, until the head node on the ring tunnel receives a fourth label distribution message sent by a downstream adjacent node of the head node on the ring tunnel, and learns, according to the identifier indicating that the tail node label is ready in the fourth label distribution message, that label allocation of all nodes on the ring tunnel except the head node is completed, and starting, by the ring tunnel, to bear a service, wherein, the second node is an adjacent upstream node of the upstream node on the ring tunnel, the upstream node and the first node are adjacent nodes on the ring tunnel, and the first node and the downstream node are adjacent nodes on the ring tunnel. after physical topology configuration of ring network protection is completed, testing connectivity between adjacent nodes, if a first node is an intermediate node of a ring tunnel, and connectivity detection between a downstream node and the first node is UP, receiving, by the first node, a first label distribution message sent by the downstream node, wherein the first label distribution message includes: an identifier of a ring bearing the ring tunnel, an identifier of a tail node of the ring tunnel, an identifier indicating that a tail node label is ready, and a first label allocated by the downstream node for the ring tunnel; according to the identifier indicating that the tail node label is ready in the first label distribution message, when connectivity detection between the first node and an upstream node is UP, sending, by the first node, a second label distribution message to the upstream node, wherein the second label distribution message includes: the identifier of the ring bearing the ring tunnel, the identifier of the tail node of the ring tunnel, the identifier indicating that the tail node label is ready, and a second label allocated by the first node for the ring tunnel; so that the upstream node learns, according to the identifier indicating that the tail node label is ready, that label allocation for all nodes on the ring tunnel between the first node and the tail node corresponding to the identifier of the tail node of the ring tunnel is completed; and if the upstream node is not a head node on the ring tunnel, according to the identifier indicating that the tail node label is ready in the second label distribution message, when connectivity detection between the upstream node and a second node is UP, sending, by the upstream node, a third label distribution message to the second node, until the head node on the ring tunnel receives a fourth label distribution message sent by a downstream adjacent node of the head node on the ring tunnel, and learns, according to the identifier indicating that the tail node label is ready in the fourth label distribution message, that label allocation of all nodes on the ring tunnel except the head node is completed, and starting, by the ring tunnel, to bear a service, wherein, the second node is an adjacent upstream node of the upstream node on the ring tunnel, the upstream node and the first node are adjacent nodes on the ring tunnel, and the first node and the downstream node are adjacent nodes on the ring tunnel.