A method of transmitting a service, characterized in that the method comprises: switching , when a first physical port for transmitting the service fails, the service to a second physical port in which no service is transmitted, wherein the second physical port is a physical port that is bound to a first Flex Ethernet, FlexE, Client and other than the first physical port, and the first FlexE Client is a FlexE Client that the service corresponds to; or switching , when a first physical port for transmitting the service fails, the service to a third physical port in which no service is transmitted, wherein the third physical port is a physical port that is bound to a second FlexE Client differing from the first FlexE Client, wherein switching, when a first physical port for transmitting the service fails, the service to a second physical port or a third physical port in which no service is transmitted for being transmitted comprises: switching, when there is the second physical port in which no service is transmitted and the second physical port in which no service is transmitted is normal, the service to the second physical port in which no service is transmitted, the method further comprises: switching, when there is the second physical port in which no service is transmitted but the second physical port in which no service is transmitted is abnormal or when there is no the second physical port in which no service is transmitted, the service to the third physical port in which no service is transmitted, a priority of which is lower than that of the first physical port. switching , when a first physical port for transmitting the service fails, the service to a second physical port in which no service is transmitted, wherein the second physical port is a physical port that is bound to a first Flex Ethernet, FlexE, Client and other than the first physical port, and the first FlexE Client is a FlexE Client that the service corresponds to; or switching , when a first physical port for transmitting the service fails, the service to a third physical port in which no service is transmitted, wherein the third physical port is a physical port that is bound to a second FlexE Client differing from the first FlexE Client, wherein switching, when a first physical port for transmitting the service fails, the service to a second physical port or a third physical port in which no service is transmitted for being transmitted comprises: switching, when there is the second physical port in which no service is transmitted and the second physical port in which no service is transmitted is normal, the service to the second physical port in which no service is transmitted, the method further comprises: switching, when there is the second physical port in which no service is transmitted but the second physical port in which no service is transmitted is abnormal or when there is no the second physical port in which no service is transmitted, the service to the third physical port in which no service is transmitted, a priority of which is lower than that of the first physical port. switching, when there is the second physical port in which no service is transmitted and the second physical port in which no service is transmitted is normal, the service to the second physical port in which no service is transmitted, the method further comprises: switching, when there is the second physical port in which no service is transmitted but the second physical port in which no service is transmitted is abnormal or when there is no the second physical port in which no service is transmitted, the service to the third physical port in which no service is transmitted, a priority of which is lower than that of the first physical port. <EOS>