US 12,149,601 B2
Method for converting network packets and circuit system
Tsung-Yin Su, Hsinchu (TW); and Tsung-Yu Lee, Hsinchu (TW)
Assigned to REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed by REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed on Oct. 3, 2022, as Appl. No. 17/958,622.
Claims priority of application No. 110136976 (TW), filed on Oct. 5, 2021.
Prior Publication US 2023/0107822 A1, Apr. 6, 2023
Int. Cl. H04L 69/08 (2022.01); H04L 61/251 (2022.01); H04L 61/255 (2022.01); H04L 69/167 (2022.01)
CPC H04L 69/08 (2013.01) [H04L 61/251 (2013.01); H04L 61/255 (2013.01); H04L 69/167 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A method for converting network packets, used to convert a first protocol packet to a second protocol packet, comprising:
inserting a length field of a second protocol packet header of the second protocol packet recorded in a content table into a prefix of a first protocol packet header of the first protocol packet;
updating the length field of the second protocol packet header being inserted into the prefix of the first protocol packet header according to a length field of the second protocol packet header recorded in a control table;
determining a destination IP address of the second protocol packet according to whether or not a forwarding mapping rule (FMR) table is specified; and
updating a portion in the destination IP address of the second protocol packet relating to the first protocol packet, so as to complete a conversion from the first protocol packet to the second protocol packet, and, according to a requirement for routing the first protocol packets, a process of mapping of address and port using encapsulation (MAP-E) or a process of mapping of address and port using translation (MAP-T) is adopted in an output interface;
wherein, in the process of mapping of address and port using encapsulation (MAP-E), when the destination IP address of the second protocol packet is determined, the destination IP address of the second protocol packet is updated according to an address field of the second protocol packet recorded in an FMR table; in response to the FMR table being specified, the destination IP address of the second protocol packet is updated according to a second protocol packet prefix address field recorded in the FMR table; and in response to the FMR table being not specified, the destination IP address of the second protocol packet is not to be updated;
wherein, in the step for determining the destination IP address of the second protocol packet that adopts the process of mapping of address and port using translation (MAP-T), if the FMR table is specified, the destination IP address of the second protocol packet is updated according to a second protocol packet prefix address field recorded in the FMR table; wherein, if the FMR table is not specified, the destination IP address of the second protocol packet is modified according to a prefix length field in the process of mapping of address and port using translation (MAP-T) in the control table of a default mapping rule (DMR) table and a destination IP address of the first protocol packet.