Invention Grant
- Patent Title: Network address translation
-
Application No.: US17041217Application Date: 2019-03-22
-
Publication No.: US10965642B2Publication Date: 2021-03-30
- Inventor: Shaoliang An
- Applicant: New H3C Technologies Co., Ltd.
- Applicant Address: CN Zhejiang
- Assignee: New H3C Technologies Co., Ltd.
- Current Assignee: New H3C Technologies Co., Ltd.
- Current Assignee Address: CN Zhejiang
- Agency: Greenblum & Bernstein, P.L.C.
- Priority: CN201810253605.X 20180326
- International Application: PCT/CN2019/079157 WO 20190322
- International Announcement: WO2019/184803 WO 20191003
- Main IPC: G06F15/16
- IPC: G06F15/16 ; G06F9/54 ; H04L29/06 ; H04L29/12 ; H04L12/743

Abstract:
A Network Address Translation (NAT) method, apparatus and device are provided. Based on the method, a target IP address and its reference port are obtained from a NAT resource pool, wherein the reference port is a port in a consecutive port range of the target IP address; a first five-tuple corresponding to a packet is generated based on the target IP address, the reference port and an original five-tuple of the packet, and a second five-tuple is obtained by masking first-class bits of two classes of ports of the first five-tuple respectively; a target five-tuple is determined in a plurality of consecutive hash buckets of a hash table based on a hash result of the second five-tuple; and the target five-tuple and the original five-tuple are recorded in the hash table and a corresponding result table, and the packet is NAT-processed based on the target five-tuple.
Public/Granted literature
- US20210014194A1 NETWORK ADDRESS TRANSLATION Public/Granted day:2021-01-14
Information query