A method for routing and forwarding, comprising: receiving a content request packet, wherein the content request packet carries a content name of requested content and container information of the requested content, wherein the container information of the requested content comprises a container identifier used to identify a container that stores the requested content, wherein the container is a storage space used to store a group of content; determining whether any forwarding entry that matches the content name of the requested content exists in a forwarding information base FIB; determining whether any forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB when no forwarding entry that matches the content name of the requested content exists in the FIB, wherein a forwarding entry in the FIB comprises a preset container identifier and a port corresponding to the preset container identifier; and when a forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB, sending the content request packet according to a port in the matched forwarding entry; wherein the container information further comprises a resolution identifier corresponding to the container identifier, wherein the resolution identifier is used to identify whether the container corresponding to the container identifier is resolvable; and the step of determining whether any forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB comprises: acquiring, by resolution according to the resolution identifier, container identifiers of access containers of all resolvable containers of the requested content; and matching the container identifier in the container information of the requested content and the container identifiers of the access containers of all the resolvable containers of the requested content with the preset container identifiers in the FIB to determine whether any forwarding entry that matches the container identifier in the container information of the requested content and the container identifier of the access container exists in the FIB. receiving a content request packet, wherein the content request packet carries a content name of requested content and container information of the requested content, wherein the container information of the requested content comprises a container identifier used to identify a container that stores the requested content, wherein the container is a storage space used to store a group of content; determining whether any forwarding entry that matches the content name of the requested content exists in a forwarding information base FIB; determining whether any forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB when no forwarding entry that matches the content name of the requested content exists in the FIB, wherein a forwarding entry in the FIB comprises a preset container identifier and a port corresponding to the preset container identifier; and when a forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB, sending the content request packet according to a port in the matched forwarding entry; wherein the container information further comprises a resolution identifier corresponding to the container identifier, wherein the resolution identifier is used to identify whether the container corresponding to the container identifier is resolvable; and the step of determining whether any forwarding entry that matches the container identifier in the container information of the requested content exists in the FIB comprises: acquiring, by resolution according to the resolution identifier, container identifiers of access containers of all resolvable containers of the requested content; and matching the container identifier in the container information of the requested content and the container identifiers of the access containers of all the resolvable containers of the requested content with the preset container identifiers in the FIB to determine whether any forwarding entry that matches the container identifier in the container information of the requested content and the container identifier of the access container exists in the FIB. acquiring, by resolution according to the resolution identifier, container identifiers of access containers of all resolvable containers of the requested content; and matching the container identifier in the container information of the requested content and the container identifiers of the access containers of all the resolvable containers of the requested content with the preset container identifiers in the FIB to determine whether any forwarding entry that matches the container identifier in the container information of the requested content and the container identifier of the access container exists in the FIB.