发明名称 Method, device, and system for forwarding packet
摘要 The embodiments of the present invention provide a method, a device, and a system for forwarding a packet. The method includes: receiving an IPv6 packet sent by a gateway, and obtaining a flow label of the IPv6 packet, where the flow label of the IPv6 packet is corresponding to a link identity of customer premise equipment in one-to-one correspondence; decapsulating the IPv6 packet; performing network address translation on a decapsulated packet according to the flow label; and forwarding the decapsulated packet according to a translated network address. When multiple links between the gateway and an AFTR are corresponding to the same tunnel for network address translation, in the case that IP addresses of terminal users are overlapping or are the same, different terminal users can be distinguished, so that a terminal user that sends a packet can receive feedback, thus improving customer satisfaction.
申请公布号 US9100352(B2) 申请公布日期 2015.08.04
申请号 US201213674924 申请日期 2012.11.12
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 Zha Min;Zou Ting;Zhou Qian;Huang Jing
分类号 H04L12/28;H04L12/56;H04L12/46;H04L12/66;H04L29/12;H04L12/781 主分类号 H04L12/28
代理机构 Huawei Technologies Co., Ltd. 代理人 Huawei Technologies Co., Ltd.
主权项 1. A method performed by a network router connecting an Internet Protocol Version 6 (IPv6) network and an Internet Protocol Version 4 (IPv4) public network for forwarding a received data packet, the method comprising: receiving, through a tunnel across the IPv6 network and formed between a gateway and the network router, a first IPv6 packet sent by the gateway; obtaining a first flow label of the first IPv6 packet, wherein the first IPv6 packet is a packet encapsulated for transmission through the tunnel and comprises a first IPv6 packet header placed before a first IPv4 packet, and the first IPv6 packet header comprises the first flow label; decapsulating the first IPv6 packet to obtain the first IPv4 packet; obtaining a first public IPv4 address by using the first flow label to search a correspondence relationship between internal network address information of an IPv4 private network connected by the gateway to the IPv6 network and external network address information pertaining to the IPv4 public network, wherein the internal network address information comprises: the first flow label, a tunnel identity of the tunnel, and an internal network port number; and wherein the external network address information comprises the first public IPv4 address and an external network port number; performing network address translation on the first IPv4 packet by translating a source IP address of the first IPv4 packet from a first private IPv4 address to the first public IPv4 address; and forwarding the first IPv4 packet with the translated source IP address to the public IPv4 network.
地址 Shenzhen CN