| CPC H04L 47/72 (2013.01) [H04L 45/02 (2013.01)] | 7 Claims |

|
1. A method for establishing a service path, comprising:
receiving request information for establishing a path for a service, the request information comprising a service type and a resource reservation scheme;
computing a path for the service according to topology information of a Flexible Ethernet (FlexE) link through which the service is transmitted and the request information; and
reserving a resource and establishing a path for the service according to the service type and the resource reservation scheme, and a service type and a resource reservation scheme on a channel of the FlexE link through which the service is transmitted,
wherein before the reserving the resource and establishing the path for the service according to the service type and the resource reservation scheme, and the service type and the resource reservation scheme on the channel of the FlexE link through which the service is transmitted, the method further comprises:
marking a service type and a resource reservation scheme on the channel of the FlexE link through which the service is transmitted,
wherein when the resource reservation scheme is an exclusive type, the channel of the FlexE link carries the service solely; and when the resource reservation scheme is a convergence type, the channel of the FlexE link carries the service and other services of the same type as the service,
wherein the reserving the resource and establishing the path for the service according to the service type and the resource reservation scheme, and the service type and the resource reservation scheme on the channel of the FlexE link through which the service is transmitted comprises:
in a case where the resource reservation scheme is the exclusive type, when an idle and unused channel that meets a bandwidth requirement of the service is present on a next-hop FlexE link of a network apparatus, reserving a bandwidth resource desired for the service on the channel, and generating a forwarding table entry corresponding to the service; otherwise, sending a service path establishment failure message,
or, in a case where the resource reservation scheme is the convergence type, when the resource reservation scheme on the channel of a next-hop FlexE link of a network apparatus is marked as convergence, and meanwhile, the marked service type is consistent with the service type carried in the request information and residual available bandwidth on the channel meets a bandwidth requirement of the service, reserving a bandwidth resource desired for the service on the channel, and generating a forwarding table entry corresponding to the service; otherwise, judging whether an idle and unused channel meeting the bandwidth requirement of the service is present on the next-hop FlexE link of the network apparatus; reserving, when an idle and unused channel that meets the bandwidth requirement of the service is present on the next-hop FlexE link of the network apparatus, a bandwidth resource desired for the service on the channel, and generating a forwarding table entry corresponding to the service; and sending, when there is no qualified channel, a service path establishment failure message.
|