Patent ID: 9338230
Filing Date: 2016-05-10
CPC Classification: H04L

Claim Text:
1. A Layer 2 (L2) label switching method implemented by a first routing entity for forwarding resources, comprising: performing, by the first routing entity, content-based routing at the L2 level between a resource request entity and a resource providing entity according to a resource identifier comprised within a frame header of a received resource request message, wherein the resource identifier uniquely identifies a resource requested by the resource request entity, the first routing entity is an intermediate routing entity between the resource request entity and the resource providing entity; generating, by the first routing entity, information indicating content-based forwarding during routing, wherein the information indicating content-based forwarding comprises a corresponding relationship between a request source identifier and a content source identifier, the request source identifier being an attribute of an entity for receiving the resource and one-to-one corresponding to the resource identifier, the content source identifier being an attribute of an entity for sending the resource and one-to-one corresponding to the resource identifier; creating a resource-content-based forwarding path at the L2 level between the resource request entity and the resource providing entity according to the information indicating content-based forwarding; receiving a data packet of the resource sent by the resource providing entity, wherein a header frame of the data packet carrying the content source identifier and resource content; determining an item pertains to the information indicating content-based forwarding matching with the content source identifier carried in the header frame of the data packet, the item being identical to the content source identifier carried in the data packet; obtaining the request source identifier in the item; and forwarding the data packet to a request source indicated by the request source identifier in the item.