Invention Grant
- Patent Title: Network address translation
-
Application No.: US17041198Application Date: 2019-03-22
-
Publication No.: US11159483B2Publication Date: 2021-10-26
- 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: CN201810252611.3 20180326
- International Application: PCT/CN2019/079161 WO 20190322
- International Announcement: WO2019/184804 WO 20191003
- Main IPC: G06F15/16
- IPC: G06F15/16 ; G06F9/54 ; H04L29/06 ; H04L29/12

Abstract:
A NAT method, apparatus and device are provided. According to the method, a target IP address and its reference port are obtained from a NAT resource pool, the reference port being a port in a corresponding consecutive port range. A first five-tuple 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 the reference port of the first five-tuple. Based on a hash result of the second five-tuple, a target bit indicating a non-conflicting state is determined from a pre-constructed bitmap. The state indicated by the target bit is set to be a conflicting state, and a target five-tuple is generated based on the target bit. The target five-tuple and the original five-tuple are recorded in a session table, and the packet is NAT-processed based on the target five-tuple.
Public/Granted literature
- US11201852B2 Network address translation Public/Granted day:2021-12-14
Information query