Movatterモバイル変換


[0]ホーム

URL:


CN103634415A - System, device and method for reducing network address header number - Google Patents

System, device and method for reducing network address header number
Download PDF

Info

Publication number
CN103634415A
CN103634415ACN201210301622.9ACN201210301622ACN103634415ACN 103634415 ACN103634415 ACN 103634415ACN 201210301622 ACN201210301622 ACN 201210301622ACN 103634415 ACN103634415 ACN 103634415A
Authority
CN
China
Prior art keywords
address
network
package
gauge outfit
network communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210301622.9A
Other languages
Chinese (zh)
Other versions
CN103634415B (en
Inventor
胡志锭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ambit Microsystems Shanghai Ltd
Original Assignee
Ambit Microsystems Shanghai Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ambit Microsystems Shanghai Ltd, Hon Hai Precision Industry Co LtdfiledCriticalAmbit Microsystems Shanghai Ltd
Priority to CN201210301622.9ApriorityCriticalpatent/CN103634415B/en
Publication of CN103634415ApublicationCriticalpatent/CN103634415A/en
Application grantedgrantedCritical
Publication of CN103634415BpublicationCriticalpatent/CN103634415B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

一种减少网络地址表头的方法,执行于网络通信装置。所述网络通信装置取得网络通信封包时,转换所述封包的IPv4表头中的第一地址成为第一映像索引。根据所述第一映像索引以产生所述封包的IPv6表头中地址字段中的最低有效区段,藉以利用所述IPv6表头对所述封包进行封装。利用IPv6表头中地址字段中的最低有效区段可以还原所述封包的IPv4表头,所以在发送所述封包时可以选择是否移除IPv4表头。本发明还提供了一种减少网络地址表头的系统及装置。上述减少网络地址表头的系统、装置及方法可以减少网络地址表头,增加封包承载有效资料的效率。

Figure 201210301622

A method for reducing network address headers is implemented in a network communication device. When the network communication device acquires a network communication packet, it converts the first address in the IPv4 header of the packet into a first mapping index. generating the least effective segment in the address field of the IPv6 header of the packet according to the first mapping index, so as to encapsulate the packet with the IPv6 header. The IPv4 header of the packet can be restored by using the least effective segment in the address field of the IPv6 header, so it is possible to choose whether to remove the IPv4 header when sending the packet. The invention also provides a system and device for reducing network address headers. The above-mentioned system, device and method for reducing the network address header can reduce the network address header and increase the efficiency of packets carrying effective data.

Figure 201210301622

Description

Translated fromChinese
减少网络地址表头的系统、装置及方法System, device and method for reducing network address headers

技术领域technical field

本发明涉及一种网络通信技术,尤其涉及于一种减少网络地址表头的系统、装置及方法。The invention relates to a network communication technology, in particular to a system, device and method for reducing network address headers.

背景技术Background technique

网络通信协议第四版(Internet protocol version 4,简称IPv4)长久以来已作为因特网寻址标准。IPv4地址的数量虽多却是有限的,在不久的几年内地址用完的问题就即将浮现。网络通信协议第六版(Internet protocol version 4,简称IPv6)已被开发出来以解决IPv4的因特网地址不足的问题。IPv6具有128位(bit)的地址,较简洁的表头结构,改良的服务质量(quality of service,简称QoS)及安全性。Internet protocol version 4 (IPv4 for short) has long served as the Internet addressing standard. Although the number of IPv4 addresses is large, it is limited, and the problem of running out of addresses will soon emerge in the next few years. Internet protocol version 4 (IPv6 for short) has been developed to solve the shortage of IPv4 Internet addresses. IPv6 has a 128-bit (bit) address, a simpler header structure, improved quality of service (QoS for short) and security.

然而越长的封包地址表头会降低路由器和网络节点的处理速度,进而影响因特网的整体运作效能。特别是多媒体数据流,例如网络电话(Voice Over InternetProtocol,简称VoIP)或视频会议(video conference)被网络传送延迟及抖动(jitter)影响甚大。However, a longer packet address header will reduce the processing speed of routers and network nodes, thereby affecting the overall operating performance of the Internet. In particular, multimedia data streams, such as Voice Over Internet Protocol (VoIP for short) or video conference (video conference), are greatly affected by network transmission delay and jitter.

实际上,因为IPv4现行应用广泛,所以短时间内IPv4为基楚的因特网难以直接转换到IPv6。在IPv4网络逐渐被IPv6取代的过程中,IPv4与IPv6网络会暂时共存。In fact, because IPv4 is currently widely used, it is difficult to directly convert the IPv4-based Internet to IPv6 in a short period of time. During the gradual replacement of IPv4 networks by IPv6, IPv4 and IPv6 networks will temporarily coexist.

IPv4与IPv6的主机、路由器同时存在于IPv4与IPv6结合的网络,于封包传送过程会有IPv4与IPv6表头同时存在的情形,举例来说在IPv4建构在IPv6上的环境(IPv4 over IPv6)或在IPv6建构在IPv4(IPv6 over IPv4)上的环境。IPv4与IPv6表头同时存在会加剧表头地址处理的问题。IPv4 and IPv6 hosts and routers exist in the network combining IPv4 and IPv6 at the same time. During the packet transmission process, there will be cases where IPv4 and IPv6 headers exist at the same time. For example, in the environment where IPv4 is built on IPv6 (IPv4 over IPv6) or An environment where IPv6 is built on IPv4 (IPv6 over IPv4). Simultaneous existence of IPv4 and IPv6 table headers will aggravate the problem of header address processing.

发明内容Contents of the invention

为了解决上述问题,本发明实施例提供一种减少网络地址表头的方法,执行于网络通信装置,该方法包括下列步骤:In order to solve the above problems, an embodiment of the present invention provides a method for reducing network address headers, which is implemented in a network communication device, and the method includes the following steps:

取得从源装置至目的装置的通信中的第一封包,其中从所述源装置至所述目的装置的所述通信通过具有第一寻址方法的第一网络及具有第二寻址方法的第二网络。若所述第一封包具有用以表示第一地址的第一表头,且所述第一地址符合所述第一寻址方法,则取得并转换所述第一封包的第一地址成为第一映像索引。根据所述第一映像索引以产生符合所述第二寻址方法的第二地址的最低有效区段,藉以利用表示所述第二地址的第二表头对所述第一封包进行封装。其中根据所述第二寻址方法的封包选路工作是利用所述第二地址的较高有效区段而非所述最低有效区段,并且所述最低有效区段包含用以取得所述第一地址的主要键值。移除所述第一封包的所述第一表头。传送所述第一封包。本发明实施例更提供一种行动装置,其使用一种远程控制方法,以让使用者能以更容易、更直觉的方式来实现电子装置的远程操控与管理。retrieving a first packet in a communication from a source device to a destination device, wherein the communication from the source device to the destination device passes through a first network with a first addressing method and a second network with a second addressing method Two networks. If the first packet has a first header for representing a first address, and the first address conforms to the first addressing method, obtaining and converting the first address of the first packet into a first image index. A least significant segment of a second address conforming to the second addressing method is generated according to the first mapping index, so as to encapsulate the first packet with a second header representing the second address. wherein routing of packets according to said second addressing method utilizes the more significant segment of said second address rather than said least significant segment, and said least significant segment includes a The primary key value of an address. removing the first header of the first packet. Send the first packet. An embodiment of the present invention further provides a mobile device, which uses a remote control method to allow users to realize remote control and management of electronic devices in an easier and more intuitive manner.

优选地,所述第一寻址方法为网络通信协议第四版,以及所述第二寻址方法网络通信协议第六版,所述方法还包含:移除所述第一封包的所述第一表头。Preferably, the first addressing method is the fourth version of the network communication protocol, and the second addressing method is the sixth version of the network communication protocol, and the method further includes: removing the first packet of the first packet A header.

优选地,所述第二地址的所述最低有效区段构成所述第二表头中的地址字段的接口识别字段的多个最低有效位。Preferably, said least significant segment of said second address constitutes a plurality of least significant bits of an interface identification field of an address field in said second header.

优选地,所述第一封包通过所述网络通信装置的用以连接网络通信协议第六版网络的端口以进行传送。Preferably, the first packet is transmitted through a port of the network communication device for connecting to a network communication protocol version 6 network.

优选地,所述方法还包含:对所述第一地址执行地址互换操作以产生符合所述第一寻址方式的第一转向地址,其中在所述第一地址中的源地址及目的地址的排列位置,在所述第一转向地址中已被交换。根据所述第一转向地址以产生第一相对索引。在接收到具有所述第一相对索引的第一后续封包时,根据所述第一相对索引以恢复所述第一转向地址,其中所述第一转向地址构成符合所述第一寻址方法的第三地址,其中所述第一相对索引构成符合所述第二寻址方法的第四地址的最低有效区段,且所述第一后续封包的第四表头表示所述第四地址。利用表示所述第一转向地址的第三表头对所述第一后续封包进行封装。移除所述第一后续封包的所述第四表头。传送所述第一后续封包。Preferably, the method further includes: performing an address swap operation on the first address to generate a first diversion address conforming to the first addressing mode, wherein the source address and destination address in the first address The permutation positions of , which have been exchanged in the first redirection address. A first relative index is generated according to the first steering address. recovering the first diversion address according to the first relative index when receiving the first subsequent packet having the first relative index, wherein the first diversion address constitutes a address conforming to the first addressing method A third address, wherein the first relative index constitutes the least significant segment of a fourth address conforming to the second addressing method, and the fourth header of the first subsequent packet represents the fourth address. Encapsulating the first subsequent packet with a third header representing the first redirection address. removing the fourth header of the first subsequent packet. Transmitting the first subsequent packet.

优选地,所述第一后续封包通过所述网络通信装置的用以连接网络通信协议第六版网络的端口以进行接收。Preferably, the first subsequent packet is received through a port of the network communication device for connecting to a network communication protocol version 6 network.

优选地,所述方法还包含:通过所述网络通信装置的用以连接网络通信协议第四版网络的端口以传送所述第一后续封包。Preferably, the method further includes: transmitting the first subsequent packet through a port of the network communication device for connecting to a network communication protocol version 4 network.

本发明实施例提供一种减少网络地址表头的网络通信装置,包括通信单元及处理器。所述通信单元取得从源装置至目的装置的通信中的第一封包,其中从所述源装置至所述目的装置的所述通信通过具有第一寻址方法的第一网络及具有第二寻址方法的第二网络。所述处理器连接所述单信元,并执行减少网络地址表头的方法,所述方法包含:若所述第一封包具有用以表示第一地址的第一表头,且所述第一地址符合所述第一寻址方法,则取得并转换所述第一封包的第一地址成为第一映像索引。根据所述第一映像索引以产生符合所述第二寻址方法的第二地址的最低有效区段,藉以利用表示所述第二地址的第二表头对所述第一封包进行封装,其中根据所述第二寻址方法的封包选路工作是利用所述第二地址的较高有效区段而非所述最低有效区段,并且所述最低有效区段包含用以取得所述第一地址的主要键值。传送所述第一封包。An embodiment of the present invention provides a network communication device with reduced network address headers, including a communication unit and a processor. The communication unit obtains a first packet in a communication from a source device to a destination device, wherein the communication from the source device to the destination device passes through a first network with a first addressing method and with a second addressing method. address method for the second network. The processor connects the single cell, and executes a method for reducing network address headers, the method comprising: if the first packet has a first header indicating a first address, and the first If the address conforms to the first addressing method, the first address of the first packet is obtained and converted into a first mapping index. generating a least significant segment of a second address conforming to the second addressing method according to the first mapping index, thereby encapsulating the first packet with a second header representing the second address, wherein Packet routing according to the second addressing method utilizes the more significant field of the second address rather than the least significant field, and the least significant field contains The primary key value of the address. Send the first packet.

优选地,所述第一寻址方法为网络通信协议第四版,以及所述第二寻址方法网络通信协议第六版,所述方法还包含:移除所述第一封包的所述第一表头。Preferably, the first addressing method is the fourth version of the network communication protocol, and the second addressing method is the sixth version of the network communication protocol, and the method further includes: removing the first packet of the first packet A header.

优选地,其中所述第二地址的所述最低有效区段构成所述第二表头中的地址字段的接口识别字段的多个最低有效位。Preferably, the least significant segment of the second address constitutes a plurality of least significant bits of the interface identification field of the address field in the second header.

优选地,其中所述第一封包通过所述网络通信装置的用以连接网络通信协议第六版网络的端口以进行传送。Preferably, the first packet is transmitted through a port of the network communication device for connecting to a network of version 6 of the network communication protocol.

优选地,所述方法还包含:对所述第一地址执行地址互换操作以产生符合所述第一寻址方式的第一转向地址,其中在所述第一地址中的源地址及目的地址的排列位置,在所述第一转向地址中已被交换。根据所述第一转向地址以产生第一相对索引。在接收到具有所述第一相对索引的第一后续封包时,根据所述第一相对索引以恢复所述第一转向地址,其中所述第一转向地址构成符合所述第一寻址方法的第三地址,其中所述第一相对索引构成符合所述第二寻址方法的第四地址的最低有效区段,且所述第一后续封包的第四表头表示所述第四地址。利用表示所述第一转向地址的第三表头对所述第一后续封包进行封装。移除所述第一后续封包的所述第四表头。传送所述第一后续封包。Preferably, the method further includes: performing an address swap operation on the first address to generate a first diversion address conforming to the first addressing mode, wherein the source address and destination address in the first address The permutation positions of , which have been exchanged in the first redirection address. A first relative index is generated according to the first steering address. recovering the first diversion address according to the first relative index when receiving the first subsequent packet having the first relative index, wherein the first diversion address constitutes a address conforming to the first addressing method A third address, wherein the first relative index constitutes the least significant segment of a fourth address conforming to the second addressing method, and the fourth header of the first subsequent packet represents the fourth address. Encapsulating the first subsequent packet with a third header representing the first redirection address. removing the fourth header of the first subsequent packet. Transmitting the first subsequent packet.

优选地,其中所述第一后续封包通过所述网络通信装置的用以连接网络通信协议第六版网络的端口以进行接收。Preferably, the first subsequent packet is received through a port of the network communication device for connecting to a version 6 network of the network communication protocol.

优选地,所述方法还包含:通过所述网络通信装置的用以连接网络通信协议第四版网络的端口以传送所述第一后续封包。Preferably, the method further includes: transmitting the first subsequent packet through a port of the network communication device for connecting to a network communication protocol version 4 network.

本发明实施例提供一种减少网络地址表头的网络系统,包括第一网络通信装置。所述第一网络通信装置取得从源装置至目的装置的通信中的第一封包,其中从所述源装置至所述目的装置的所述通信通过具有第一寻址方法的第一网络及具有第二寻址方法的第二网络,并执行减少网络地址表头的方法,所述方法包含:An embodiment of the present invention provides a network system for reducing network address headers, including a first network communication device. The first network communication device obtains a first packet in a communication from a source device to a destination device, wherein the communication from the source device to the destination device passes through a first network with a first addressing method and with A second network of the second addressing method, and performing a method of reducing network address headers, the method comprising:

若所述第一封包具有用以表示第一地址的第一表头,且所述第一地址符合所述第一寻址方法,则取得并转换所述第一封包的第一地址成为第一映像索引。根据所述第一映像索引以产生符合所述第二寻址方法的第二地址的最低有效区段,藉以利用表示所述第二地址的第二表头对所述第一封包进行封装,其中根据所述第二寻址方法的封包选路工作是利用所述第二地址的较高有效区段而非所述最低有效区段,并且所述最低有效区段包含用以取得所述第一地址的主要键值。传送所述第一封包。If the first packet has a first header for representing a first address, and the first address conforms to the first addressing method, obtaining and converting the first address of the first packet into a first image index. generating a least significant segment of a second address conforming to the second addressing method according to the first mapping index, thereby encapsulating the first packet with a second header representing the second address, wherein Packet routing according to the second addressing method utilizes the more significant field of the second address rather than the least significant field, and the least significant field contains The primary key value of the address. Send the first packet.

优选地,所述第一寻址方法为网络通信协议第四版,以及所述第二寻址方法网络通信协议第六版,所述方法还包含:移除所述第一封包的所述第一表头。Preferably, the first addressing method is the fourth version of the network communication protocol, and the second addressing method is the sixth version of the network communication protocol, and the method further includes: removing the first packet of the first packet A header.

优选地,其中所述第二地址的所述最低有效区段构成所述第二表头中的地址字段的接口识别字段的多个最低有效位。Preferably, the least significant segment of the second address constitutes a plurality of least significant bits of the interface identification field of the address field in the second header.

优选地,所述方法还包含:对所述第一地址执行地址互换操作以产生符合所述第一寻址方式的第一转向地址,其中在所述第一地址中的源地址及目的地址的排列位置,在所述第一转向地址中已被交换。根据所述第一转向地址以产生第一相对索引。在接收到具有所述第一相对索引的第一后续封包时,根据所述第一相对索引以恢复所述第一转向地址,其中所述第一转向地址构成符合所述第一寻址方法的第三地址,其中所述第一相对索引构成符合所述第二寻址方法的第四地址的最低有效区段,且所述第一后续封包的第四表头表示所述第四地址。利用表示所述第一转向地址的第三表头对所述第一后续封包进行封装。移除所述第一后续封包的所述第四表头。传送所述第一后续封包。Preferably, the method further includes: performing an address swap operation on the first address to generate a first diversion address conforming to the first addressing mode, wherein the source address and destination address in the first address The permutation positions of , which have been exchanged in the first redirection address. A first relative index is generated according to the first steering address. recovering the first diversion address according to the first relative index when receiving the first subsequent packet having the first relative index, wherein the first diversion address constitutes a address conforming to the first addressing method A third address, wherein the first relative index constitutes the least significant segment of a fourth address conforming to the second addressing method, and the fourth header of the first subsequent packet represents the fourth address. Encapsulating the first subsequent packet with a third header representing the first redirection address. removing the fourth header of the first subsequent packet. Transmitting the first subsequent packet.

优选地,所述之网络系统还包含:第二网络通信装置执行网络地址表头的复原方法,所述复原方法包含:利用所述第二地址的所述最低有效区段作为所述主要键,记录所述第一地址与所述最低有效区段的对应关系于一数据库。Preferably, the network system further includes: the second network communication device executes a restoration method of the network address header, the restoration method includes: using the least effective segment of the second address as the primary key, Recording the corresponding relationship between the first address and the least effective segment in a database.

优选地,所述复原方法包含:若所述第一封包的所述第一表头已移除,利用所述第二地址的所述最低有效区段作为所述主要键,在所述数据库中找到所述第一地址。利用所述第一地址以恢复所述第一封包的所述第一表头。Preferably, the restoring method comprises: if the first header of the first packet has been removed, using the least significant segment of the second address as the primary key in the database Find the first address. The first address is used to restore the first header of the first packet.

上述减少网络地址表头的系统、装置及方法可以减少网络地址表头,增加封包承载有效资料的效率。The above-mentioned system, device and method for reducing network address headers can reduce network address headers and increase the efficiency of packets carrying effective data.

通过以下对具体实施方式详细的描述结合附图,将可轻易的了解所述内容及此项发明之诸多优点。Through the following detailed description of specific embodiments combined with the accompanying drawings, the content and many advantages of this invention can be easily understood.

附图说明Description of drawings

图1系显示本发明实施例之减少网络地址表头的网络通信装置架构图。FIG. 1 is a structural diagram of a network communication device with reduced network address headers according to an embodiment of the present invention.

图2系显示本发明实施例之减少网络地址表头的网络系统示意图。FIG. 2 is a schematic diagram of a network system showing reduced network address headers according to an embodiment of the present invention.

图3系显示本发明实施例之减少网络地址表头的方法的步骤流程图。FIG. 3 is a flow chart showing the steps of the method for reducing network address headers according to an embodiment of the present invention.

图4系显示本发明实施例之网络封包及表头的示意图。FIG. 4 is a schematic diagram showing network packets and headers according to an embodiment of the present invention.

图5系显示本发明实施例之网络封包及表头的示意图。FIG. 5 is a schematic diagram showing network packets and headers according to an embodiment of the present invention.

图6系显示本发明实施例之网络通信协议第四版地址表头的复原方法的步骤流程图。FIG. 6 is a flow chart showing the steps of the method for restoring the address header of the fourth version of the network communication protocol according to the embodiment of the present invention.

图7系显示本发明实施例之网络封包及表头的示意图。FIG. 7 is a schematic diagram showing network packets and headers according to an embodiment of the present invention.

图8系显示本发明实施例之网络封包及表头的示意图。FIG. 8 is a schematic diagram showing network packets and headers according to an embodiment of the present invention.

主要元件符号说明Description of main component symbols

网络通信装置           100,100A,100BNetwork communication device 100,100A,100B

端口                   101,101A,101B,102,102A,102BPorts 101,101A,101B,102,102A,102B

处理器                 151Processor 151

主存储器               152main memory 152

非易失性内存           153Non-volatile memory 153

通信单元               156Communication Unit 156

转换模块               160Conversion module 160

地址互换操作           161Address swap operation 161

数据库                 165,166Database 165,166

网络网关装置           200A,200BNetwork gateway device 200A, 200B

网络终端装置           220A,220BNetworkterminal device 220A, 220B

IPv4网络            202A,202BIPv4 network 202A, 202B

IPv6网络            206IPv6 network 206

封包                300,300B,300CPacket 300,300B,300C

有效承载数据        301Effective bearer data 301

IPv4表头            310IPv4 header 310

第一转向地址        310AFirst turnaddress 310A

IPv4表头            310B,310DIPv4 header 310B, 310D

源IPv4地址          311Source IPv4 address 311

目的IPv4地址        312,320BDestination IPv4 address 312,320B

映像索引            320image index 320

第一相对索引        320AFirst Relative Index 320A

IPv6表头            330,330BIPv6 header 330,330B

源IPv6地址          331Source IPv6 address 331

目的IPv6地址        332Destination IPv6 address 332

全域选路前缀        3311Global routing prefix 3311

子网识别码          3312Subnet ID 3312

接口识别字段        3313Interface identification field 3313

全域选路前缀        3321Global routing prefix 3321

子网识别码          3322Subnet ID 3322

接口识别字段        3323Interface identification field 3323

记录                410,430Record 410,430

对应关系            420Correspondence 420

具体实施方式Detailed ways

为了让本发明之特征及特点能更明显易懂,下文特举较佳实施例,并配合所附图式图1至图8,做详细之说明。本发明说明书提供不同的实施例来说明本发明不同实施方式的技术特征。其中,实施例中的各组件之配置系为说明之用,并非用于限制本发明。且实施例中图式标号之部分重复,系为了简化说明,并非意指不同实施例之间的关联性。In order to make the features and characteristics of the present invention more obvious and easy to understand, preferred embodiments are given below, together with the accompanying drawings, FIGS. 1 to 8 , for detailed description. The description of the present invention provides different examples to illustrate the technical features of different implementations of the present invention. Wherein, the configuration of each component in the embodiment is for illustration, not for limiting the present invention. In addition, the partial repetition of the symbols in the figures in the embodiments is for the purpose of simplifying the description, and does not imply the relationship between different embodiments.

本发明减少网络地址表头的系统、装置及方法实施方说明如下:The present invention reduces the system, device and method implementation of the network address header as follows:

本发明所揭露的减少网络地址表头的系统及网络装置可以实作成单独一台装置,或整合于各种不同的网络网关装置或网络终端装置中。所述网络网关装置包含桥接器(bridge)、路由器(router)、网络交换机(switch)或无线网络接入装置(access point)。所述网络终端装置如机顶盒、移动电话、平板个人计算机(tabletpersonal computer)、膝上型计算机(laptop computer)、多媒体播放器、数字摄影机、个人数字助理(personal digital assistant,简称PDA)、导航装置或移动上网装置(mobile internet device,MID)。The system and network device for reducing network address headers disclosed in the present invention can be implemented as a single device, or integrated into various network gateway devices or network terminal devices. The network gateway device includes a bridge, a router, a network switch or a wireless network access point. The network terminal device is such as a set-top box, a mobile phone, a tablet personal computer (tablet personal computer), a laptop computer (laptop computer), a multimedia player, a digital camera, a personal digital assistant (personal digital assistant, PDA for short), a navigation device or Mobile internet device (mobile internet device, MID).

参照图1,处理器151为网络通信装置100的中央处理器,可以由集成电路(Integrated Circuit,简称IC)组成,用以处理数据及执行计算机程序。网络通信装置100的组件连接方式如图1所示,可用串行或并行总线、或无线通信信道构成。Referring to FIG. 1, theprocessor 151 is the central processing unit of thenetwork communication device 100, which may be composed of an integrated circuit (Integrated Circuit, IC for short), and is used to process data and execute computer programs. The connection method of the components of thenetwork communication device 100 is shown in FIG. 1 , which can be composed of a serial or parallel bus, or a wireless communication channel.

通信单元156建立通信信道,使网络通信装置100通过所述通信信道以连接至远程及近端主机,并与所述远程及近端主机用封包进行网络通信。举例来说,通信单元156通过端口102以连接广域网络与远程主机,并通过端口101以连接局域网络与近端主机。Thecommunication unit 156 establishes a communication channel so that thenetwork communication device 100 is connected to the remote and local hosts through the communication channel, and performs network communication with the remote and local hosts using packets. For example, thecommunication unit 156 connects the wide area network and the remote host through theport 102 , and connects the local area network and the local host through theport 101 .

所述通信单元156可以通过有线连接以建立有线网络通信信道以连接因特网或所述远程服务器。所述通信单元156包含建立有线网络通信信道所需的软件组件及硬件组件。所述软件组件包含电子计算器可执行的程序代码。所述硬件组件包含电路、IC、及网络连接端口。Thecommunication unit 156 can establish a wired network communication channel through a wired connection to connect to the Internet or the remote server. Thecommunication unit 156 includes software components and hardware components required to establish a wired network communication channel. The software components include program codes executable by electronic calculators. The hardware components include circuits, ICs, and network connection ports.

另外,通信单元156可以建立无线通信信道,使移动设备,例如网络终端装置,通过所述无线通信信道以连接至网络通信装置100并交换数据。所述通信单元156可以包含天线、基频(base band)及射频(radio frequency,简称RF)芯片组用以进行无线局域网络(wireless local area network,简称wireless LAN)通信、红外线通信及/或蜂巢式通信系统通信,例如宽带分码多重进接(Wideband CodeDivision Multiple Access,简称W-CDMA)及高速下行封包存取(High SpeedDownlink Packet Access,简称HSDPA)。通过所述建立的无线通信信道,所述网络通信装置100可以作为无线局域网络的接入点,使移动设备可以通过所述接入点以连接因特网(Internet)。In addition, thecommunication unit 156 can establish a wireless communication channel, so that mobile devices, such as network terminal devices, can connect to thenetwork communication device 100 and exchange data through the wireless communication channel. Thecommunication unit 156 may include an antenna, a base band, and a radio frequency (radio frequency, referred to as RF) chipset for wireless local area network (wireless local area network, referred to as wireless LAN) communication, infrared communication and/or cellular communication systems, such as Wideband Code Division Multiple Access (W-CDMA for short) and High Speed Downlink Packet Access (HSDPA for short). Through the established wireless communication channel, thenetwork communication device 100 can serve as an access point of a wireless local area network, so that mobile devices can connect to the Internet (Internet) through the access point.

所述处理器151可以是由单颗封装的IC所组成,或连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器151可以仅包含中央处理器(CentralProcessing Unit,简称CPU),或者是CPU、数字信号处理器(digital signal processor,简称DSP)、及通信控制器(例如通信单元156)的控制芯片的组合。所述通信控制器可以包含以太网络(EthernetTM)、蜂巢式通信系统通信、红外线、蓝芽(BluetoothTM)或无线局域网络的通信控制装置。CPU可以是单运算核心或多运算核心的CPU。所述的通信控制器用以控制网络通信装置100中的各组件的通信,或网络通信装置100与外部装置的通信,并且可以支持直接内存存取(DirectMemory Access)。Theprocessor 151 may be composed of a single packaged IC, or may be composed of multiple packaged ICs with the same function or different functions. For example, theprocessor 151 may only include a central processing unit (Central Processing Unit, CPU for short), or be controlled by a CPU, a digital signal processor (DSP for short), and a communication controller (such as the communication unit 156). Combination of chips. The communication controller may include communication control devices of Ethernet (EthernetTM ), cellular communication system communication, infrared ray, Bluetooth (BluetoothTM ) or wireless local area network. The CPU may be a CPU with a single computing core or multiple computing cores. The communication controller is used to control the communication of each component in thenetwork communication device 100, or the communication between thenetwork communication device 100 and external devices, and can support Direct Memory Access (DirectMemory Access).

非易失性内存153储存处理器151所执行的操作系统及应用程序。所述处理器151从所述非易失性内存153加载运行程序与数据数据到主存储器152。该主存储器152可以是动态随机存取内存(Random Access Memory,简称RAM),例如静态随机存取内存(Static RAM,简称SRAM)或是动态随机存取内存(Dynamic RAM,简称DRAM)。该非易失性内存153可以是电子可清除可规划只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM)或闪存(flash memory),例如反或(NOR)闪存或是反及(NAND)闪存。Thenon-volatile memory 153 stores the operating system and application programs executed by theprocessor 151 . Theprocessor 151 loads running programs and data from thenon-volatile memory 153 to themain memory 152 . Themain memory 152 may be a dynamic random access memory (Random Access Memory, RAM for short), such as a static random access memory (Static RAM, SRAM for short) or a dynamic random access memory (Dynamic RAM, DRAM for short). Thenon-volatile memory 153 can be Electronically Erasable Programmable Read-Only Memory (EEPROM for short) or flash memory (flash memory), such as NOR flash memory or NAND flash.

图2显示本发明减少网络地址表头的系统的实施方式示意图。网络通信装置100A及100B为网络通信装置100的二个实例。所述网络通信装置100A通过端口102A连接IPv6网络206,并通过所述IPv6网络206连接所述网络通信装置100B的端口102B。FIG. 2 shows a schematic diagram of an embodiment of a system for reducing network address headers according to the present invention. Thenetwork communication devices 100A and 100B are two examples of thenetwork communication device 100 . Thenetwork communication device 100A is connected to theIPv6 network 206 through theport 102A, and is connected to theport 102B of thenetwork communication device 100B through theIPv6 network 206 .

所述网络通信装置100A通过端口101A连接IPv4网络202A中的网络网关装置200A。所述网络网关装置200A连接网络终端装置220A。所述网络通信装置100B通过端口101B连接IPv4网络202B中的网络网关装置200B。所述网络网关装置200B连接网络终端装置220B。所述网络通信装置100通过端口101连接IPv4网络,以及通过端口102连接IPv6网络。所述端口101A及101B为所述端口101的实例。所述端口102A及102B为所述端口102的实例Thenetwork communication device 100A is connected to thenetwork gateway device 200A in theIPv4 network 202A through theport 101A. Thenetwork gateway device 200A is connected to anetwork terminal device 220A. Thenetwork communication device 100B is connected to the network gateway device 200B in theIPv4 network 202B through theport 101B. The network gateway device 200B is connected to thenetwork terminal device 220B. Thenetwork communication device 100 is connected to the IPv4 network through theport 101 and connected to the IPv6 network through theport 102 . Theports 101A and 101B are examples of theport 101 . Theports 102A and 102B are instances of theport 102

参照图3,所述网络通信装置100在传送封包时执行减少网络地址表头的方法。以下将以所述网络通信装置100A作为所述网络通信装置100的实例作说明。下列步骤由所述网络通信装置的处理器151执行。所述处理器151取得从源装置至目的装置的通信中的第一封包300时,判别4over6功能是否启动(步骤S2)。所述源装置可以是所述网络通信装置100本身或所述网络通信装置100所连接的装置。在图2的网络通信装置100A例子中,网络通信装置100A中的处理器151可以从端口101A取得所述第一封包300。所述第一封包300可以是从所述网络网关装置200A或所述网络终端装置220A发出的封包,并传送至网络网关装置200B或所述网络终端装置220B。因此具有所述第一封包300的所述通信要通过具有IPv4寻址方法的第一网络及具有IPv6寻址方法的第二网络。Referring to FIG. 3 , thenetwork communication device 100 performs a method for reducing network address headers when transmitting packets. Thenetwork communication device 100A will be described below as an example of thenetwork communication device 100 . The following steps are executed by theprocessor 151 of the network communication device. When theprocessor 151 obtains thefirst packet 300 in the communication from the source device to the destination device, it determines whether the 4over6 function is enabled (step S2). The source device may be thenetwork communication device 100 itself or a device connected to thenetwork communication device 100 . In the example of thenetwork communication device 100A in FIG. 2 , theprocessor 151 in thenetwork communication device 100A can obtain thefirst packet 300 from theport 101A. Thefirst packet 300 may be a packet sent from thenetwork gateway device 200A or thenetwork terminal device 220A, and transmitted to the network gateway device 200B or thenetwork terminal device 220B. Thus said communication with saidfirst packet 300 goes through a first network with IPv4 addressing method and a second network with IPv6 addressing method.

所述4over6功能是在IPv6网络中建立信道让IPv4的封包通过的功能。若4over6功能未启动,则结束所述方法的流程。若4over6功能已启动,则执行步骤S3。所述处理器151在步骤S3中执行所述封包的有效承载数据(payload)及表头的处理(步骤S3)。举例来说,所述网络通信装置100若具有VoIP网关装置的功能,在连接电话机时,在步骤S3中将从所述电话机接收的音频转换以产生实时传送控制协议(Real-time Transport Protocol,RTP)封包作为有效承载数据,并产生所述RTP封包的IPv4表头。The 4over6 function is a function of establishing a channel in the IPv6 network to allow IPv4 packets to pass through. If the 4over6 function is not activated, the process of the method is ended. If the 4over6 function has been activated, step S3 is executed. Theprocessor 151 executes the processing of the payload and the header of the packet in step S3 (step S3 ). For example, if thenetwork communication device 100 has the function of a VoIP gateway device, when a telephone is connected, the audio received from the telephone is converted in step S3 to generate a Real-time Transport Protocol (RTP) , RTP) packet as effective bearer data, and generate the IPv4 header of the RTP packet.

如图4所示,若所述第一封包300具有用以表示符合IPv4的第一地址的IPv4表头310,在将所述第一封包300送至IPv6网络206以前,所述处理器151取得所述第一封包300并利用转换模块160以转换所述第一封包300的第一地址成为映像索引320(步骤S8)。所述第一地址包含所述第一封包300的源IPv4地址311及目的IPv4地址312。举例来说,所述映像索引320为32位的二进制数。转换模块160的实施方式包含杂凑(hash)函数用以将所述第一封包300的第一地址转换成为一笔映像索引320。在此实施方式中虽然以上述第一封包300的IPv4表头310通过上述转换模块160以产生映像索引320,然而在其它实施方式中也可以用上述第一封包300的用户数据报协议(User Datagram Protocol,UDP)表头通过上述转换模块160以产生映像索引320。As shown in FIG. 4 , if thefirst packet 300 has anIPv4 header 310 representing a first address conforming to IPv4, before sending thefirst packet 300 to theIPv6 network 206, theprocessor 151 obtains Thefirst packet 300 uses theconversion module 160 to convert the first address of thefirst packet 300 into an image index 320 (step S8). The first address includes a sourceIPv4 address 311 and adestination IPv4 address 312 of thefirst packet 300 . For example, themapping index 320 is a 32-bit binary number. An embodiment of theconversion module 160 includes a hash function for converting the first address of thefirst packet 300 into animage index 320 . In this embodiment, although theIPv4 header 310 of thefirst packet 300 is passed through theconversion module 160 to generate theimage index 320, the user datagram protocol (User Datagram Protocol) of thefirst packet 300 can also be used in other embodiments. Protocol, UDP) header passes through theconversion module 160 to generate theimage index 320 .

参照图5,所述处理器151根据所述映像索引320以产生符合IPv6寻址方法的第二地址的最低有效区段。图5中,所述处理器151利用IPv6表头330对所述第一封包300进行封装。所述IPv6表头330包含源IPv6地址331及目的IPv6地址332。IPv6的地址包含全域选路前缀(global routing prefix)、子网识别码(subnetidentification)及接口识别字段(interface identification)。因此,所述源IPv6地址331包含全域选路前缀3311、子网识别码3312及接口识别字段3313,而所述目的IPv6地址332包含全域选路前缀3321、子网识别码3322及接口识别字段3323。所述接口识别字段3313及3323分别为所述源IPv6地址331及所述目的IPv6地址332的最低有效区段。所述映像索引320可以构成所述接口识别字段3313或3323。Referring to FIG. 5 , theprocessor 151 generates the least significant segment of the second address conforming to the IPv6 addressing method according to themapping index 320 . In FIG. 5 , theprocessor 151 uses theIPv6 header 330 to encapsulate thefirst packet 300 . TheIPv6 header 330 includes a sourceIPv6 address 331 and adestination IPv6 address 332 . An IPv6 address includes a global routing prefix, a subnet identification code (subnet identification) and an interface identification field (interface identification). Therefore, the sourceIPv6 address 331 includes aglobal routing prefix 3311, asubnet identification code 3312 and aninterface identification field 3313, and thedestination IPv6 address 332 includes aglobal routing prefix 3321, asubnet identification code 3322 and aninterface identification field 3323 . Theinterface identification fields 3313 and 3323 are the least significant segments of the sourceIPv6 address 331 and thedestination IPv6 address 332 respectively. Theimage index 320 may constitute theinterface identification field 3313 or 3323 .

IPv6寻址方法中的封包选路工作是利用IPv6地址的较高有效区段而非所述最低有效区段。因此将所述映像索引320置入所述接口识别字段3313或3323中,可以不影响所述第一封包300在IPv6网络中的选路。Packet routing in the IPv6 addressing method works by utilizing the more significant segment of the IPv6 address rather than the least significant segment. Therefore, putting themapping index 320 into theinterface identification field 3313 or 3323 may not affect the routing of thefirst packet 300 in the IPv6 network.

在产生所述映像索引320后,所述处理器151检查数据库165中是否已有与所述映像索引320相同的索引存在(步骤S10)。若没有与所述映像索引320相同的索引存在于所述数据库165中,则表示所述第一封包300为介于所述源IPv4地址311与所述目的IPv4地址312之间的通信的第一个封包,所述处理器151需要在所述数据库165中建立所述第一封包300与所述映像索引320的记录410。并且,所述处理器151用所述映像索引320产生所述第一封包300的所述IPv6表头,并且要保留所述第一封包300的所述IPv4表头310,使接收所述第一封包300的网络通信装置(例如网络通信装置100B)可以记录所述IPv4表头310中的地址与所述映像索引320之间的对应关系(例如对应关系420)(步骤S14)。After generating theimage index 320, theprocessor 151 checks whether an index identical to theimage index 320 already exists in the database 165 (step S10). If no index identical to themapping index 320 exists in thedatabase 165, it means that thefirst packet 300 is the first communication between the sourceIPv4 address 311 and thedestination IPv4 address 312. packets, theprocessor 151 needs to create arecord 410 of thefirst packet 300 and theimage index 320 in thedatabase 165 . And, theprocessor 151 uses themapping index 320 to generate the IPv6 header of thefirst packet 300, and retains theIPv4 header 310 of thefirst packet 300, so that the first The network communication device (such as thenetwork communication device 100B) of thepacket 300 may record the correspondence (such as the correspondence 420 ) between the address in theIPv4 header 310 and the mapping index 320 (step S14 ).

若有与所述映像索引320相同的索引存在于所述数据库165中(例如记录410),则表示所述第一封包300不是介于所述源IPv4地址311与所述目的IPv4地址312之间的通信的第一个封包,所述处理器151不需要在所述数据库165中建立所述第一封包300与所述映像索引320的记录。并且,所述处理器151用所述映像索引320产生所述第一封包300的所述IPv6表头,移除所述第一封包300的所述IPv4表头310,使接收所述第一封包300的网络通信装置(例如网络通信装置100B)可以根据所述映像索引320从记录的对应关系(例如对应关系420)中再次取得所述IPv4表头310中的地址,并且恢复所述第一封包300的所述IPv4表头310(步骤S12)。步骤S12及S14中的所述IPv6表头是根据如图4及图5的方式产生,所述IPv6表头中地址字段的最低有效区段包含数据库165及166中用以取得所述IPv4表头310中的所述第一地址的主要键值。If an index identical to themapping index 320 exists in the database 165 (for example, a record 410), it means that thefirst packet 300 is not between the sourceIPv4 address 311 and thedestination IPv4 address 312 For the first packet of communication, theprocessor 151 does not need to create records of thefirst packet 300 and theimage index 320 in thedatabase 165 . And, theprocessor 151 uses themapping index 320 to generate the IPv6 header of thefirst packet 300, removes theIPv4 header 310 of thefirst packet 300, and receives the first packet The network communication device of 300 (such as thenetwork communication device 100B) can obtain the address in theIPv4 header 310 again from the recorded correspondence (such as the correspondence 420) according to themapping index 320, and restore thefirst packet 300 of the IPv4 header 310 (step S12). The IPv6 table header in steps S12 and S14 is generated according to the manner shown in Figure 4 and Figure 5, and the least effective segment of the address field in the IPv6 table header is included indatabases 165 and 166 to obtain the IPv4 table header The primary key value of the first address in 310 .

所述处理器151通过端口102传送所述第一封包至IPv6网络。在此实施方式中,所述网络通信装置100A的处理器151通过端口102A传送所述第一封包300至IPv6网络(步骤S16)。Theprocessor 151 transmits the first packet to the IPv6 network through theport 102 . In this embodiment, theprocessor 151 of thenetwork communication device 100A transmits thefirst packet 300 to the IPv6 network through theport 102A (step S16 ).

参照图6,所述网络通信装置100在接收封包时执行减少网络地址表头的方法中的表头复原流程。以下将以所述网络通信装置100B作为所述网络通信装置100的实例作说明。下列步骤由所述网络通信装置的处理器151执行。Referring to FIG. 6 , thenetwork communication device 100 executes the header restoration process in the method for reducing the network address header when receiving the packet. Thenetwork communication device 100B will be described as an example of thenetwork communication device 100 below. The following steps are executed by theprocessor 151 of the network communication device.

所述网络通信装置100B接收到所述第一封包300时,撷取第一封包300的IPv6表头330中的映像索引(例如所述映像索引320)(步骤S20),并判别是否成功取得IPv6表头330中的映像索引(步骤S22)。When thenetwork communication device 100B receives thefirst packet 300, it retrieves the mapping index (such as the mapping index 320) in theIPv6 header 330 of the first packet 300 (step S20), and determines whether the IPv6 Map index in header 330 (step S22).

在图2的例子中,若未成功取得IPv6表头330中的第一映像索引322,所述网络通信装置100B检查所述第一封包300是否具有所述IPv4表头310(步骤S30)。若所述第一封包300具有所述IPv4表头310,所述网络通信装置100B根据所述IPv4表头310为所述第一封包300选路(routing),并通过所述端口101B以传送所述第一封包300至IPv4网络202A,使所述第一封包300传送至其目的装置(步骤S36)。若所述第一封包300没有所述IPv4表头310,所述网络通信装置100B发出因特网控制信息协议(Internet Control Message Protocol,ICMP)封包以回报错误(步骤S32)。In the example of FIG. 2 , if the first mapping index 322 in theIPv6 header 330 is not obtained successfully, thenetwork communication device 100B checks whether thefirst packet 300 has the IPv4 header 310 (step S30 ). If thefirst packet 300 has theIPv4 header 310, thenetwork communication device 100B selects a route for thefirst packet 300 according to theIPv4 header 310, and transmits thefirst packet 300 through theport 101B. Thefirst packet 300 is sent to theIPv4 network 202A, and thefirst packet 300 is transmitted to its destination device (step S36). If thefirst packet 300 does not have theIPv4 header 310, thenetwork communication device 100B sends an Internet Control Message Protocol (Internet Control Message Protocol, ICMP) packet to report an error (step S32).

若成功取得IPv6表头330中的第一映像索引322,所述网络通信装置100B检查数据库166中是否已有与所述映像索引320相同的索引存在(步骤S24)。若没有与所述映像索引320相同的索引存在于所述数据库166中,则表示所述第一封包300为介于所述源IPv4地址311与所述目的IPv4地址312之间的通信的第一个封包,所述网络通信装置100B需要在所述数据库166中建立关联所述第一封包300与所述映像索引320的记录。并且,所述网络通信装置100B判别是否成功取得所述第一封包300的所述IPv4表头310(步骤S26)。若未成功取得所述第一封包300的所述IPv4表头310,所述网络通信装置100B发出ICMP封包以回报错误(步骤S32)。若成功取得所述第一封包300的所述IPv4表头310,所述网络通信装置100B根据所述IPv4表头310以记录所述IPv4表头310中的地址与所述映像索引320之间的对应关系(例如对应关系420)(步骤S28)。所述网络通信装置100B根据所述IPv4表头310为所述第一封包300选路(routing),并通过所述通过端口101B以传送所述第一封包300至IPv4网络202B,使所述第一封包300传送至其目的装置(步骤S36)。If the first mapping index 322 in theIPv6 header 330 is obtained successfully, thenetwork communication device 100B checks whether the same index as themapping index 320 already exists in the database 166 (step S24 ). If no index identical to themapping index 320 exists in thedatabase 166, it means that thefirst packet 300 is the first communication between the sourceIPv4 address 311 and thedestination IPv4 address 312. packets, thenetwork communication device 100B needs to create a record associating thefirst packet 300 with theimage index 320 in thedatabase 166 . And, thenetwork communication device 100B judges whether theIPv4 header 310 of thefirst packet 300 is obtained successfully (step S26 ). If theIPv4 header 310 of thefirst packet 300 is not obtained successfully, thenetwork communication device 100B sends an ICMP packet to report an error (step S32 ). If theIPv4 header 310 of thefirst packet 300 is obtained successfully, thenetwork communication device 100B records the address between theIPv4 header 310 and themapping index 320 according to theIPv4 header 310 Correspondence (for example, correspondence 420) (step S28). Thenetwork communication device 100B selects a route for thefirst packet 300 according to theIPv4 header 310, and transmits thefirst packet 300 to theIPv4 network 202B through theport 101B, so that thefirst A packet 300 is sent to its destination device (step S36).

若有与所述映像索引320相同的索引存在于所述数据库166中,则表示所述第一封包300不是介于所述源IPv4地址311与所述目的IPv4地址312之间的通信的第一个封包,所述网络通信装置100B不需要在所述数据库166中建立所述第一封包300与所述映像索引320的记录。并且,所述处理器151根据所述映像索引320从所述数据库166取得所述第一封包300的IPv4地址(步骤S34),即所述源IPv4地址311及目的IPv4地址312,并利用所述IPv4地址以恢复所述第一封包300的所述IPv4表头310(步骤S38)。所述网络通信装置100B根据所述IPv4表头310为所述第一封包300选路(routing),并通过所述端口101B以传送所述第一封包300至IPv4网络202B,使所述第一封包300传送至其目的装置(步骤S36)。所述IPv4网络202B根据所述第一封包300的IPv4表头为所述第一封包300选路。If the same index as themapping index 320 exists in thedatabase 166, it means that thefirst packet 300 is not the first communication between the sourceIPv4 address 311 and thedestination IPv4 address 312. packets, thenetwork communication device 100B does not need to create records of thefirst packet 300 and theimage index 320 in thedatabase 166 . And, theprocessor 151 obtains the IPv4 address of thefirst packet 300 from thedatabase 166 according to the mapping index 320 (step S34), that is, the sourceIPv4 address 311 and thedestination IPv4 address 312, and uses the IPv4 address to restore theIPv4 header 310 of the first packet 300 (step S38). Thenetwork communication device 100B selects a route for thefirst packet 300 according to theIPv4 header 310, and transmits thefirst packet 300 to theIPv4 network 202B through theport 101B, so that the first Thepacket 300 is sent to its destination device (step S36). TheIPv4 network 202B selects a route for thefirst packet 300 according to the IPv4 header of thefirst packet 300 .

在图6的实施方式中虽然以上述第一封包300的IPv4表头310及地址说明,然而在其它实施方式中也可以用上述第一封包300的用户数据报协议(UDP)表头取代。In the embodiment of FIG. 6 , although theIPv4 header 310 and the address of thefirst packet 300 are used for illustration, in other embodiments, the User Datagram Protocol (UDP) header of thefirst packet 300 may also be used instead.

参照图7,所述网络通信装置100B若从端口101B收到,从所述第一封包300的目的IPv4地址312至源IPv4地址311的第二封包300B时,可以根据图3的所述方法以处理所述第二封包300B,并将所述第二封包300B的IPv4表头310B输入转换模块160以产生所述第二封包300B的映像索引320B,以构成所述第二封包的IPv6表头330B的接口识别字段。所述网络通信装置100B根据图3的所述方法以处理所述第二封包300B以产生封包300C。由于相较于所述第一封包300,所述第二封包300B的IPv4表头310B中的所述目的IPv4地址312与所述源IPv4地址311已交换,所以所述转换模块160所产生的所述映像索引320B不同于所述映像索引320。所述网络通信装置100A难以根据所述映像索引320B取得所述第一封包300与所述第二封包300B的IPv4地址。针对这问题所述网络通信装置100A可以在产生映像索引320时依照下述方式产生第一相对索引320A。Referring to FIG. 7, if thenetwork communication device 100B receives thesecond packet 300B from thedestination IPv4 address 312 of thefirst packet 300 to the sourceIPv4 address 311 from theport 101B, it can use the method in FIG. processing thesecond packet 300B, and inputting theIPv4 header 310B of thesecond packet 300B into theconversion module 160 to generate animage index 320B of thesecond packet 300B to form anIPv6 header 330B of the second packet The interface identification field for . Thenetwork communication device 100B processes thesecond packet 300B according to the method shown in FIG. 3 to generate apacket 300C. Compared with thefirst packet 300, thedestination IPv4 address 312 in theIPv4 header 310B of thesecond packet 300B has been exchanged with the sourceIPv4 address 311, so theconversion module 160 generates Themapping index 320B is different from themapping index 320 . It is difficult for thenetwork communication device 100A to obtain the IPv4 addresses of thefirst packet 300 and thesecond packet 300B according to themapping index 320B. To solve this problem, thenetwork communication device 100A may generate the firstrelative index 320A in the following manner when generating themapping index 320 .

参照图4,所述网络通信装置100A对所述第一封包300的IPv4表头310中的IPv4地址执行地址互换操作161以产生如所述IPv4表头310B的第一转向地址310A,其中在所述地址互换操作中交换所述第一封包300的IPv4表头310中的源地址及目的地址的排列位置以产生所述第一转向地址310A。Referring to FIG. 4 , thenetwork communication device 100A performs anaddress exchange operation 161 on the IPv4 address in theIPv4 header 310 of thefirst packet 300 to generate afirst redirection address 310A such as theIPv4 header 310B, wherein in In the address exchange operation, the arrangement positions of the source address and the destination address in theIPv4 header 310 of thefirst packet 300 are exchanged to generate thefirst redirection address 310A.

所述网络通信装置100A将所述第一转向地址310A输入所述转换模块160以产生第一相对索引320A。因为所述第一转向地址310A相同于所述IPv4表头310B,所述第一相对索引320A相同于映像索引320B。Thenetwork communication device 100A inputs thefirst forwarding address 310A into theconversion module 160 to generate a firstrelative index 320A. Because thefirst redirection address 310A is the same as theIPv4 header 310B, the firstrelative index 320A is the same as themapping index 320B.

参照图8,所述网络通信装置100A在接收到具有与所述第一相对索引320A相同的所述映像索引320B的所述第二封包300C时,根据其IPv6表头中所述第一相对索引320A找到所述数据库165中的记录430,根据所述记录430以恢复所述第一转向地址310A,其中所述第一转向地址310A构成符合IPv4表头310D,且恢复所述第二封包300C的IPv4表头310D以表示所述第一转向地址310A。亦即所述网络通信装置100A利用表示所述第一转向地址310A的IPv4表头310D对所述第二封包300C进行封装,以产生第二封包300D。所述网络通信装置100A移除所述第二封包300D的IPv6表头。所述网络通信装置100A通过端口101A以传送所述第二封包300D至IPv4网络202A。Referring to FIG. 8 , when thenetwork communication device 100A receives thesecond packet 300C having thesame mapping index 320B as the firstrelative index 320A, according to the first relative index in its IPv6 header, 320A finds the record 430 in thedatabase 165, restores thefirst redirection address 310A according to therecord 430, wherein thefirst redirection address 310A complies with theIPv4 header 310D, and restores thesecond packet 300CThe IPv4 header 310D represents thefirst forwarding address 310A. That is, thenetwork communication device 100A uses theIPv4 header 310D representing thefirst forwarding address 310A to encapsulate thesecond packet 300C to generate asecond packet 300D. Thenetwork communication device 100A removes the IPv6 header of thesecond packet 300D. Thenetwork communication device 100A transmits thesecond packet 300D to theIPv4 network 202A through theport 101A.

总之,IPv6寻址方法中的封包选路工作是利用IPv6地址的较高有效区段而非所述最低有效区段。因此将所述映像索引置入IPv6表头中的所述接口识别字段,可以不影响封包在IPv6网络中的选路。所述IPv6表头中地址字段的最低有效区段包含数据库中用以取得所述IPv4表头中的IPv4地址的主要键值。利用IPv6表头中地址字段中的最低有效区段可以还原所述封包的IPv4表头,故在发送所述封包时可选择是否移除IPv4表头。In summary, packet routing in the IPv6 addressing method works by utilizing the more significant segment of the IPv6 address rather than the least significant segment. Therefore, putting the mapping index into the interface identification field in the IPv6 header may not affect the route selection of the packet in the IPv6 network. The least significant section of the address field in the IPv6 header contains the primary key used to obtain the IPv4 address in the IPv4 header in the database. The IPv4 header of the packet can be restored by using the least effective section in the address field of the IPv6 header, so it is optional to remove the IPv4 header when sending the packet.

Claims (20)

CN201210301622.9A2012-08-222012-08-22Reduce system, the device and method of network address gauge outfitActiveCN103634415B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210301622.9ACN103634415B (en)2012-08-222012-08-22Reduce system, the device and method of network address gauge outfit

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210301622.9ACN103634415B (en)2012-08-222012-08-22Reduce system, the device and method of network address gauge outfit

Publications (2)

Publication NumberPublication Date
CN103634415Atrue CN103634415A (en)2014-03-12
CN103634415B CN103634415B (en)2018-01-12

Family

ID=50215031

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210301622.9AActiveCN103634415B (en)2012-08-222012-08-22Reduce system, the device and method of network address gauge outfit

Country Status (1)

CountryLink
CN (1)CN103634415B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107483457A (en)*2017-08-282017-12-15常熟理工学院 A kind of multimedia data communication method based on internet of things
CN107547173A (en)*2017-08-282018-01-05常熟理工学院A kind of Internet of Things multimedia data communication method based on cloud

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1717911A (en)*2002-11-292006-01-04新加坡国立大学 Method and device for communicating over a communication network
US20110310898A1 (en)*2010-06-172011-12-22Microsoft Corporation4to6 network stack for ipv4 applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1717911A (en)*2002-11-292006-01-04新加坡国立大学 Method and device for communicating over a communication network
US20110310898A1 (en)*2010-06-172011-12-22Microsoft Corporation4to6 network stack for ipv4 applications

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107483457A (en)*2017-08-282017-12-15常熟理工学院 A kind of multimedia data communication method based on internet of things
CN107547173A (en)*2017-08-282018-01-05常熟理工学院A kind of Internet of Things multimedia data communication method based on cloud
CN107483457B (en)*2017-08-282019-08-09常熟理工学院 A kind of multimedia data communication method based on internet of things
CN107547173B (en)*2017-08-282020-03-24常熟理工学院Cloud-based internet of things multimedia data communication method

Also Published As

Publication numberPublication date
CN103634415B (en)2018-01-12

Similar Documents

PublicationPublication DateTitle
US20190245809A1 (en)System and method for message handling in a network device
US9172775B2 (en)Network communication system, device, and method for reducing a network addressing header
TWI717619B (en)Method and apparatus for avoiding packet fragmentation
Babatunde et al.A comparative review of internet protocol version 4 (ipv4) and internet protocol version 6 (ipv6)
CN104954245A (en)Service function chaining (SFC) processing method and device
CN114826918A (en)Message forwarding method, message processing method and device
CN111464879B (en)Data communication method and device
US12068952B2 (en)Routing information publishing method, apparatus, and system
CN116566897A (en)Addressing routing method, device, equipment and medium
CN103051544B (en)Realize method and the access device of IPv4 private network access IPv6 network
CN103634415B (en)Reduce system, the device and method of network address gauge outfit
CN107483369A (en) A message processing method and a virtual switch
US20240283738A1 (en)Packet Processing Method, Apparatus, and System
CN106953849A (en) A data packet matching method and device based on IPv6 address
CN115428415A (en)System and method for forwarding packets in a hierarchical network architecture using variable length addresses
CN118784401A (en) Data transmission method and device
CN104363176A (en)Message control method and equipment
CN103986637A (en)Error message processing method and tunnel device
CN101686265A (en)Network equipment, network system and method for establishing data communication
US8634429B2 (en)Communication system and method
CN115996185B (en) Data sending method, data receiving method, switch and gateway server
WO2016037417A1 (en)Method for acquiring fqdn, terminal, server and dual-stack tunnel establishment system
CN101909042A (en) Method and system for host with IPv4 application to communicate through IPv6 network
CN118075196A (en)Message transmission method, device and equipment
CN117178538A (en)Encapsulating SCTP packets in UDP packets

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20180226

Address after:Shanghai City, Songjiang Export Processing Zone South Road No. 1925

Patentee after:Ambit Microsystems (Shanghai) Co., Ltd.

Address before:201613 Shanghai City, Songjiang District Songjiang Export Processing Zone South Road No. 1925

Co-patentee before:Hon Hai Precision Industry Co., Ltd.

Patentee before:Ambit Microsystems (Shanghai) Co., Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp