A method for transmitting information, comprising: determining, by a controller, a work path and a protection path, wherein a start node of the work path and the protection path is a first apparatus, an end node of the work path and the protection path is a second apparatus, the work path corresponds to a first tag, and the protection path corresponds to a second tag; transmitting, by the controller, first information to the first apparatus, wherein the first information comprises a first flow entry and a first group entry; the first flow entry comprises a match field and an instruction field, wherein the match field comprises a destination identifier, and the instruction field comprises a first group action, an operand of the first group action is a first group identifier, the first group action is used for instructing the first apparatus to associate the first flow entry with the first group entry, the first group entry comprises a first action bucket and a second action bucket, a group type of the first group entry is ALL; wherein the first action bucket is used for instructing the first apparatus to push the first tag into a first message matching the first flow entry to generate a second message, and transmit the second message to the second apparatus via the work path, the second action bucket is used for instructing the first apparatus to push the second tag into a third message to generate a fourth message, and transmit the fourth message to the second apparatus via the protection path, the third message is the same as the first message; transmitting, by the controller, second information to the second apparatus, wherein the second information comprises a second flow entry; the second flow entry comprises a work path flow entry and a protection path flow entry; wherein a match field of the work path flow entry comprises the first tag, and an instruction field of the work path flow entry is used for instructing the second apparatus to pop the first tag of the second message and output the first message; a match field of the protection path flow entry comprises the second tag, and an instruction field of the protection path flow entry comprises a drop action, wherein the drop action is used for instructing the second apparatus to drop the fourth message. determining, by a controller, a work path and a protection path, wherein a start node of the work path and the protection path is a first apparatus, an end node of the work path and the protection path is a second apparatus, the work path corresponds to a first tag, and the protection path corresponds to a second tag; transmitting, by the controller, first information to the first apparatus, wherein the first information comprises a first flow entry and a first group entry; the first flow entry comprises a match field and an instruction field, wherein the match field comprises a destination identifier, and the instruction field comprises a first group action, an operand of the first group action is a first group identifier, the first group action is used for instructing the first apparatus to associate the first flow entry with the first group entry, the first group entry comprises a first action bucket and a second action bucket, a group type of the first group entry is ALL; wherein the first action bucket is used for instructing the first apparatus to push the first tag into a first message matching the first flow entry to generate a second message, and transmit the second message to the second apparatus via the work path, the second action bucket is used for instructing the first apparatus to push the second tag into a third message to generate a fourth message, and transmit the fourth message to the second apparatus via the protection path, the third message is the same as the first message; transmitting, by the controller, second information to the second apparatus, wherein the second information comprises a second flow entry; the second flow entry comprises a work path flow entry and a protection path flow entry; wherein a match field of the work path flow entry comprises the first tag, and an instruction field of the work path flow entry is used for instructing the second apparatus to pop the first tag of the second message and output the first message; a match field of the protection path flow entry comprises the second tag, and an instruction field of the protection path flow entry comprises a drop action, wherein the drop action is used for instructing the second apparatus to drop the fourth message.