-
公开(公告)号:US20130259060A1
公开(公告)日:2013-10-03
申请号:US13902284
申请日:2013-05-24
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Yanfei Liu , Qi Lin
IPC: H04L12/46
CPC classification number: H04L12/4633 , H04L12/6418 , H04L45/00 , H04L45/22
Abstract: Embodiments of the present invention relate to a method and an apparatus for sending a packet. The method for sending a packet includes: receiving an original packet; querying a pre-configured GRE forwarding entry including next-hop address information and outbound interface information, and obtaining next-hop address information and outbound interface information of a GRE tunnel used to send the original packet; encapsulating the original packet into a GRE packet; encapsulating the GRE packet into an outer layer protocol packet; and selecting a sending path in the GRE tunnel according to the next-hop address information and outbound interface information, and sending the outer layer protocol packet through the sending path. Therefore, according to the method and apparatus, a packet sending path may be independently selected, thereby reasonably configuring and efficiently using each path of a GRE tunnel, and improving packet sending efficiency.
Abstract translation: 本发明的实施例涉及一种用于发送分组的方法和装置。 发送分组的方法包括:接收原始分组; 查询包括下一跳地址信息和出接口信息的预配置GRE转发表项,并获取用于发送原始报文的GRE隧道的下一跳地址信息和出接口信息; 将原始报文封装成GRE报文; 将GRE报文封装成外层协议报文; 并根据下一跳地址信息和出接口信息选择GRE隧道中的发送路径,并通过发送路径发送外层协议报文。 因此,根据该方法和装置,可以独立地选择分组发送路径,从而合理地配置和有效地使用GRE隧道的每个路径,并提高分组发送效率。