摘要:
Embodiments of the present invention provide a packet sending method, a router, and a service switching entity. According to the packet sending method provided in the embodiments of the present invention, a router determines a flow group identifier of a service packet and information about a next-hop service switching entity according to a user identifier and IP 5-tuple information; and forwards the packet to the next-hop service switching entity according to the information about the next-hop service switching entity, so that the next-hop service switching entity determines a corresponding destination service instance according to the user identifier, the flow group identifier, a router identifier, and a processing result, and forwards the packet to the destination service instance, to perform corresponding service processing, thereby implementing service packet forwarding among service instances. The router in the method provided in the embodiments has a flow steering function, and steers a flow to a specified path to perform node-by-node processing.
摘要:
Embodiments of the present invention disclose a packet forwarding method and device. The method includes: obtaining, by a packet forwarding device, a feature character included in a packet to be forwarded, where the feature character is obtained by parsing, according to a preset packet content parsing policy, other content included in the packet to be forwarded except a 5-tuple; determining, according to a correspondence between different feature characters and corresponding routing information, routing information corresponding to the obtained feature character; and sending, according to the determined routing information, the packet to be forwarded. The solution provided in the embodiments of the present invention is also capable of implementing forwarding of different packets to different routes. Therefore, a problem in the prior art that different http requests including a same 5-tuple cannot be separately forwarded according to different paths is solved.