






技术领域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
处理器 151
主存储器 152
非易失性内存 153
通信单元 156
转换模块 160
地址互换操作 161
数据库 165,166Database 165,166
网络网关装置 200A,200B
网络终端装置 220A,220BNetwork
IPv4网络 202A,202B
IPv6网络 206
封包 300,300B,300CPacket 300,300B,300C
有效承载数据 301
IPv4表头 310
第一转向地址 310AFirst turn
IPv4表头 310B,310D
源IPv4地址 311
目的IPv4地址 312,320BDestination IPv4 address 312,320B
映像索引 320
第一相对索引 320A
IPv6表头 330,330BIPv6 header 330,330B
源IPv6地址 331
目的IPv6地址 332
全域选路前缀 3311
子网识别码 3312
接口识别字段 3313
全域选路前缀 3321
子网识别码 3322
接口识别字段 3323
记录 410,430Record 410,430
对应关系 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, the
通信单元156建立通信信道,使网络通信装置100通过所述通信信道以连接至远程及近端主机,并与所述远程及近端主机用封包进行网络通信。举例来说,通信单元156通过端口102以连接广域网络与远程主机,并通过端口101以连接局域网络与近端主机。The
所述通信单元156可以通过有线连接以建立有线网络通信信道以连接因特网或所述远程服务器。所述通信单元156包含建立有线网络通信信道所需的软件组件及硬件组件。所述软件组件包含电子计算器可执行的程序代码。所述硬件组件包含电路、IC、及网络连接端口。The
另外,通信单元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, the
所述处理器151可以是由单颗封装的IC所组成,或连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器151可以仅包含中央处理器(CentralProcessing Unit,简称CPU),或者是CPU、数字信号处理器(digital signal processor,简称DSP)、及通信控制器(例如通信单元156)的控制芯片的组合。所述通信控制器可以包含以太网络(EthernetTM)、蜂巢式通信系统通信、红外线、蓝芽(BluetoothTM)或无线局域网络的通信控制装置。CPU可以是单运算核心或多运算核心的CPU。所述的通信控制器用以控制网络通信装置100中的各组件的通信,或网络通信装置100与外部装置的通信,并且可以支持直接内存存取(DirectMemory Access)。The
非易失性内存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)闪存。The
图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. The
所述网络通信装置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的实例The
参照图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 , the
所述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. The
如图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 the
参照图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 , the
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 the
在产生所述映像索引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 the
若有与所述映像索引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 the
所述处理器151通过端口102传送所述第一封包至IPv6网络。在此实施方式中,所述网络通信装置100A的处理器151通过端口102A传送所述第一封包300至IPv6网络(步骤S16)。The
参照图6,所述网络通信装置100在接收封包时执行减少网络地址表头的方法中的表头复原流程。以下将以所述网络通信装置100B作为所述网络通信装置100的实例作说明。下列步骤由所述网络通信装置的处理器151执行。Referring to FIG. 6 , the
所述网络通信装置100B接收到所述第一封包300时,撷取第一封包300的IPv6表头330中的映像索引(例如所述映像索引320)(步骤S20),并判别是否成功取得IPv6表头330中的映像索引(步骤S22)。When the
在图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 the
若成功取得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 the
若有与所述映像索引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 the
在图6的实施方式中虽然以上述第一封包300的IPv4表头310及地址说明,然而在其它实施方式中也可以用上述第一封包300的用户数据报协议(UDP)表头取代。In the embodiment of FIG. 6 , although the
参照图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 the
参照图4,所述网络通信装置100A对所述第一封包300的IPv4表头310中的IPv4地址执行地址互换操作161以产生如所述IPv4表头310B的第一转向地址310A,其中在所述地址互换操作中交换所述第一封包300的IPv4表头310中的源地址及目的地址的排列位置以产生所述第一转向地址310A。Referring to FIG. 4 , the
所述网络通信装置100A将所述第一转向地址310A输入所述转换模块160以产生第一相对索引320A。因为所述第一转向地址310A相同于所述IPv4表头310B,所述第一相对索引320A相同于映像索引320B。The
参照图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 the
总之,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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210301622.9ACN103634415B (en) | 2012-08-22 | 2012-08-22 | Reduce system, the device and method of network address gauge outfit |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210301622.9ACN103634415B (en) | 2012-08-22 | 2012-08-22 | Reduce system, the device and method of network address gauge outfit |
| Publication Number | Publication Date |
|---|---|
| CN103634415Atrue CN103634415A (en) | 2014-03-12 |
| CN103634415B CN103634415B (en) | 2018-01-12 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210301622.9AActiveCN103634415B (en) | 2012-08-22 | 2012-08-22 | Reduce system, the device and method of network address gauge outfit |
| Country | Link |
|---|---|
| CN (1) | CN103634415B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107483457A (en)* | 2017-08-28 | 2017-12-15 | 常熟理工学院 | A kind of multimedia data communication method based on internet of things |
| CN107547173A (en)* | 2017-08-28 | 2018-01-05 | 常熟理工学院 | A kind of Internet of Things multimedia data communication method based on cloud |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1717911A (en)* | 2002-11-29 | 2006-01-04 | 新加坡国立大学 | Method and device for communicating over a communication network |
| US20110310898A1 (en)* | 2010-06-17 | 2011-12-22 | Microsoft Corporation | 4to6 network stack for ipv4 applications |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1717911A (en)* | 2002-11-29 | 2006-01-04 | 新加坡国立大学 | Method and device for communicating over a communication network |
| US20110310898A1 (en)* | 2010-06-17 | 2011-12-22 | Microsoft Corporation | 4to6 network stack for ipv4 applications |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107483457A (en)* | 2017-08-28 | 2017-12-15 | 常熟理工学院 | A kind of multimedia data communication method based on internet of things |
| CN107547173A (en)* | 2017-08-28 | 2018-01-05 | 常熟理工学院 | A kind of Internet of Things multimedia data communication method based on cloud |
| CN107483457B (en)* | 2017-08-28 | 2019-08-09 | 常熟理工学院 | A kind of multimedia data communication method based on internet of things |
| CN107547173B (en)* | 2017-08-28 | 2020-03-24 | 常熟理工学院 | Cloud-based internet of things multimedia data communication method |
| Publication number | Publication date |
|---|---|
| CN103634415B (en) | 2018-01-12 |
| Publication | Publication Date | Title |
|---|---|---|
| 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 |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer 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. |