CN104253876A - Mapping table of stateful IPv6 and IPv4 communication and management method - Google Patents

Mapping table of stateful IPv6 and IPv4 communication and management method Download PDF

Info

Publication number
CN104253876A
CN104253876A CN201310269298.1A CN201310269298A CN104253876A CN 104253876 A CN104253876 A CN 104253876A CN 201310269298 A CN201310269298 A CN 201310269298A CN 104253876 A CN104253876 A CN 104253876A
Authority
CN
China
Prior art keywords
ipv6
ipv4
mapping item
hardware
message
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
CN201310269298.1A
Other languages
Chinese (zh)
Other versions
CN104253876B (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.)
BITWAY NETWORK TECHNOLOGY Co Ltd
Original Assignee
BITWAY NETWORK TECHNOLOGY 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 BITWAY NETWORK TECHNOLOGY Co Ltd filed Critical BITWAY NETWORK TECHNOLOGY Co Ltd
Priority to CN201310269298.1A priority Critical patent/CN104253876B/en
Publication of CN104253876A publication Critical patent/CN104253876A/en
Application granted granted Critical
Publication of CN104253876B publication Critical patent/CN104253876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of IPv6 network communication, in particular to a mapping table of stateful IPv6 and IPv4 communication and a mapping table management method. According to the mapping table of stateful IPv6 and IPv4 communication, IPv6 destination addresses, IPv6 message destination terminal numbers, IPv4 source addresses and IPv4 message source numbers are reduced in the data portion, IPv6 addresses, IPv6 message source numbers, IPv4 source addresses and IPv4 message source numbers are reduced in the result portion, all information are integrated in one mapping table, so that the hardware storage space is saved greatly, and maintenance cost is reduced.

Description

The mapping item having IPv6 and the IPv4 of state to communicate and management method
Technical field
The present invention relates to IPv6 network communication technology field, particularly a kind of have IPv6 and the IPv4 of state to communicate mapping item and mapping item management method.
Background technology
The development of computer network just experienced by the time of short decades grows out of nothing, from simple to complexity, from a room to the process spread all over the world.Network has brought abundant information and brand-new service, also brings new study, Working and life styles simultaneously.Along with the continuous growth of host number of access Internet and network can provide the continuous expansion extension of service range, supporting network run with the procotol of providing services on the Internet also constantly develop and perfect in, present Internet by IPv4 agreement to IPv6 Protocol interim.But in the computer network system in modern times, router is most crucial connection device.The develop rapidly of the Internet be unable to do without the technological innovation of router.Next Generation Internet proposes new demand to ip router architecture of future generation.The router of support IPv4 network and the IPv6 network interconnection is the main flow direction that ip router of future generation develops.
In the router architecture supporting IPv4 network and the IPv6 network interconnection, how the mapping item had between the IPv4 data flow of state and IPv6 data flow rationally arranged and manage, thus the utilance improving hardware table item always is the hot issue of research.Current mapping item is generally stored on hardware device, and often costly, and the list item that can store also is limited to the price of hardware device.When having the IPv4 data flow of state and IPv6 data flow to carry out intercommunication, on the router supporting IPv4 network and the IPv6 network interconnection, need to record the mapping relations between a large amount of IPv4 data flow and IPv6 data flow.
Have the IPv6 network of state and the complete process of IPv4 network service to be all dimeric usually, namely IPv6 goes to IPv4 direction, and IPv4 goes to IPv6 direction, and the mapping item therefore for a data flow is two list items.The setting of mapping item is divided into data division and result part.The information of data division is used for mating with the feature field extracted in flow, and the design principle of list item is required hit data flow that can be unique.Result part is used to conversion and the transmission of carrying out IPv4 data flow and IPv6 data flow, therefore must can provide the transmission information of the transitional information of IPv6 or IPv4 agreement and IPv4 or the IPv6 message after changing.Mapping item generation method conveniently, the data division that IPv6 goes to the mapping item in IPv4 direction is IPv6 address, five-tuple < source, object IPv6 address, IPv6 message source port numbers, IPv6 message destination slogan, IPv6 message protocol >, result part is IPv4 address, < source, object IPv4 address, IPv4 message source port numbers, IPv4 message destination slogan, IPv4 outgoing interface >; The data division that IPv4 goes to the mapping item in IPv6 direction is five-tuple < object IPv4 address, IPv4 address, source, IPv4 message destination slogan, IPv4 message source port numbers, IPv4 message protocol >, result part is turn rear < object IPv6 address, IPv6 address, source, IPv6 message destination slogan, IPv6 message source port numbers, IPv6 outgoing interface >.If mapping item generation method conveniently, need for each data flow safeguards two mapping tables simultaneously, these two mapping tables need to take larger hardware device memory headroom, and the entry of mapping item also will be very huge when the IPv6 network and the IPv4 network service that have state, have the IPv6 network of state and IPv4 network service to have timeliness feature simultaneously, there will be list item use a period of time after can not again by situation about using.
Therefore how taking into account to meet has the IPv6 network of state and IPv4 network service needs and avoids hardware table item capacity overload to be prevent from propping up the key issue that system bottleneck appears in the IPv6 network of held state and IPv4 network service router.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, there is provided a kind of have IPv6 and the IPv4 of state to communicate mapping item and mapping item management method, have the IPv6 network of state and IPv4 network service needs and the object avoiding hardware table item capacity overload for realizing taking into account meeting.
(2) technical scheme
Technical solution of the present invention is as follows:
There is an IPv6 and IPv4 network service mapping item for state, comprise data division and result part;
Described data division comprises: IPv6 address, source, IPv6 source port number, IPv6 protocol number, object IPv4 address, IPv4 message destination slogan and IPv4 protocol number;
Described result part comprises: IPv4 address, source, source IPv4 port numbers, IPv4 next hop address, IPv4 outgoing interface number, object IPv6 address, IPv6 message destination slogan, IPv6 next hop address, IPv6 outgoing interface number and hardware register address.
Based on a mapping item management method for above-mentioned mapping item, comprising:
S1. the memory headroom of initialization mapping item and hardware keep-alive register;
S2. receive IPv4 message or IPv6 message, extract and generate mapping item information;
S3. be hardware keep-alive register assignment 1 and add mapping item to router hardware.
Preferably, also comprise after described step S3:
S4. after mapping item time-out, it is reclaimed in router hardware.
Preferably, described step S2 comprises:
Judge type of message:
If IPv4 message: then extract the object IPv4 address of message, IPv4 message destination slogan and IPv4 protocol number;
If IPv6 message: then extract the IPv6 address, source of message, IPv6 source port number and IPv6 protocol number.
Preferably, described step S3 comprises:
Judge that whether the memory headroom of mapping item is full:
Be: then point out user memory space full;
No: then to obtain hardware keep-alive register address, for hardware keep-alive register assignment 1 and to router hardware interpolation mapping item.
Preferably, described step S4 comprises:
Read whether the value judging hardware keep-alive register is-1:
Be: then continue to read judgement;
No: whether then read the value judging hardware keep-alive register is 1:
Be: then hardware keep-alive register is set to 0;
No: then delete the mapping item in router hardware when timestamp and current time differ by more than the scheduled time, and the value resetting hardware keep-alive register to be-1.
Preferably, the described scheduled time is 10s.
(3) beneficial effect
IPv6 and the IPv4 network service mapping item having state provided by the present invention, comprises data division and result part; Data division comprises: IPv6 address, source, IPv6 source port number, IPv6 protocol number, object IPv4 address, IPv4 message destination slogan and IPv4 protocol number; Result part comprises: IPv4 address, source, source IPv4 port numbers, IPv4 next hop address, IPv4 outgoing interface number, object IPv6 address, IPv6 message destination slogan, IPv6 next hop address, IPv6 outgoing interface number and hardware register address; Compared with designing with traditional mapping item, the present invention decreases object IPv6 address, IPv6 message destination slogan, IPv4 address, source and IPv4 message source port numbers at data division, IPv6 address, source, IPv6 message source port numbers, IPv4 address, source and IPv4 message source port numbers is decreased in result part, and because all information fusion are in a mapping table, therefore greatly save hardware memory space, also reduce maintenance cost simultaneously.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of IPv6 and the IPv4 network service mapping item having state in the embodiment of the present invention;
Fig. 2 is IPv6 and the IPv4 network service mapping item managerial structure topology schematic diagram having state in the embodiment of the present invention;
Fig. 3 is the router software some work schematic flow sheet of mapping item management method in the embodiment of the present invention;
Fig. 4 is the router hardware some work schematic flow sheet of mapping item management method in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described further.Following examples only for illustration of the present invention, but are not used for limiting the scope of the invention.
In prior art, the storage of the IPv6 network of state and the mapping item of IPv4 network service is had to need to spend a large amount of hardware memory space, therefore can by simplifying mapping item content and providing corresponding management method to reach the object using less hardware memory space.In the present embodiment, provide firstly a kind of IPv6 and IPv4 network service mapping item having state, as shown in fig. 1, this mapping item comprises data division and result part;
Wherein data division comprises: IPv6 address, source, IPv6 source port number, IPv6 protocol number, object IPv4 address, IPv4 message destination slogan and IPv4 protocol number;
Wherein result part comprises: IPv4 address, source, source IPv4 port numbers, IPv4 next hop address, IPv4 outgoing interface number, object IPv6 address, IPv6 message destination slogan, IPv6 next hop address, IPv6 outgoing interface number and hardware register address.
Compared with designing with traditional mapping item, mapping item in the present invention decreases object IPv6 address, IPv6 message destination slogan, IPv4 address, source and IPv4 message source port numbers at data division, IPv6 address, source, IPv6 message source port numbers, IPv4 address, source and IPv4 message source port numbers is decreased in result part, and because all information fusion are in a mapping table, therefore greatly save hardware memory space, also reduce maintenance cost simultaneously.
Additionally provide a kind of mapping item management method based on above-mentioned mapping item in the present embodiment, comprising:
S1. the memory headroom of initialization mapping item and hardware keep-alive register;
S2. receive IPv4 message or IPv6 message, extract and generate mapping item information;
Wherein, step S2 comprises:
Judge type of message:
If IPv4 message: then extract the object IPv4 address of message, IPv4 message destination slogan and IPv4 protocol number;
If IPv6 message: then extract the IPv6 address, source of message, IPv6 source port number and IPv6 protocol number.
S3. be hardware keep-alive register assignment 1 and add mapping item to router hardware.
Wherein, also comprise after step S3:
Wherein, step S3 comprises:
Judge that whether the memory headroom of mapping item is full:
Be: then point out user memory space full;
No: then to obtain hardware keep-alive register address, for hardware keep-alive register assignment 1 and to router hardware interpolation mapping item.
S4. after mapping item time-out, it is reclaimed in router hardware.
Wherein, step S4 comprises:
Read whether the value judging hardware keep-alive register is-1:
Be: then continue to read judgement;
No: whether then read the value judging hardware keep-alive register is 1:
Be: then hardware keep-alive register is set to 0;
No: then delete the mapping item in router hardware when timestamp and current time differ by more than the scheduled time, and the value resetting hardware keep-alive register to be-1.
Wherein, the scheduled time is 10s.
The workflow of said method in the IPv6 network having state as shown in Figure 2 and IPv4 network service mapping item management topologies is as shown in Fig. 3 and Fig. 4.
Based on the mapping item management method of the IPv6 network and IPv4 network service that have state router software some work flow process as shown in Figure 3, this management method that what this figure was more detailed set forth is in the concrete behavior of router software and operation: wherein, steps A 1 and steps A 2 complete router software needs initialized two tables after powering, mapping item keep-alive table and hardware mapping item memory headroom service condition table respectively, router software receives the ipv6 traffic message going to IPv4 network and the IPv4 traffic messages going to IPv6 network, extraction to mapping item information and generation is completed by steps A 3, the interpolation to hardware mapping item is completed by steps A 4 and steps A 5, the recovery to overtime hardware mapping item is completed by steps A 6.Wherein the direction of arrow represents the direction that router software performs.
Based on the mapping item management method of the IPv6 network and IPv4 network service that have state router hardware some work flow process as shown in Figure 4, this management method that what this figure was more detailed set forth is in the concrete behavior of router hardware and operation: wherein complete router hardware after starting shooting by the memory headroom of initiating hardware mapping item and hardware keep-alive register by steps A 8 and steps A 9, router hardware is after the data message receiving IPvA4 and IPvA6 network service, completed by steps A 10 and operation is hit to the mapping item of flow, and to the assignment of hardware keep-alive register.Wherein the direction of arrow represents the direction that router hardware performs.
The present invention be the router needing the IPv4 data flow of real standing state and IPv6 data flow to carry out passing through provide one not only economy but also take into account efficiently meet and have the IPv6 network of state and IPv4 network service needs and the solution avoiding hardware table item capacity overload.The present invention passes through having in state I Pv4 data flow and IPv6 data flow communication, can the feature field of unique hiting data stream simplify, meet have the IPv4 data flow of state and the demand of IPv6 data flow communication under, that takes into account again decreases mapping item occupying hardware memory space, effectively alleviates the problem that hardware memory space is limited.Simultaneously, the present invention is coordinated by router hardware and router software, hardware mapping item service condition is detected, thus the hardware mapping item internal memory be not hit for a long time is released, can effectively solve the limited and mapping item of hardware memory space increase between contradiction.
Above execution mode is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification, therefore all equivalent technical schemes also belong to protection category of the present invention.

Claims (7)

1. the mapping item having IPv6 and the IPv4 of state to communicate, is characterized in that, comprises data division and result part;
Described data division comprises: IPv6 address, source, IPv6 source port number, IPv6 protocol number, object IPv4 address, IPv4 message destination slogan and IPv4 protocol number;
Described result part comprises: IPv4 address, source, source IPv4 port numbers, IPv4 next hop address, IPv4 outgoing interface number, object IPv6 address, IPv6 message destination slogan, IPv6 next hop address, IPv6 outgoing interface number and hardware register address.
2., based on a mapping item management method for mapping item according to claim 1, it is characterized in that, comprising:
S1. the memory headroom of initialization mapping item and hardware keep-alive register;
S2. receive IPv4 message or IPv6 message, extract and generate mapping item information;
S3. be hardware keep-alive register assignment 1 and add mapping item to router hardware.
3. mapping item management method according to claim 2, is characterized in that, also comprises after described step S3:
S4. after mapping item time-out, it is reclaimed in router hardware.
4. the mapping item management method according to Claims 2 or 3, is characterized in that, described step S2 comprises:
Judge type of message:
If IPv4 message: then extract the object IPv4 address of message, IPv4 message destination slogan and IPv4 protocol number;
If IPv6 message: then extract the IPv6 address, source of message, IPv6 source port number and IPv6 protocol number.
5. mapping item management method according to claim 4, is characterized in that, described step S3 comprises:
Judge that whether the memory headroom of mapping item is full:
Be: then point out user memory space full;
No: then to obtain hardware keep-alive register address, for hardware keep-alive register assignment 1 and to router hardware interpolation mapping item.
6. the mapping item management method according to claim 2-3 or 5, is characterized in that, described step S4 comprises:
Read whether the value judging hardware keep-alive register is-1:
Be: then continue to read judgement;
No: whether then read the value judging hardware keep-alive register is 1:
Be: then hardware keep-alive register is set to 0;
No: then delete the mapping item in router hardware when timestamp and current time differ by more than the scheduled time, and the value resetting hardware keep-alive register to be-1.
7. mapping item management method according to claim 6, is characterized in that, the described scheduled time is 10s.
CN201310269298.1A 2013-06-28 2013-06-28 The mapping item and management method that stateful IPv6 communicates with IPv4 Active CN104253876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310269298.1A CN104253876B (en) 2013-06-28 2013-06-28 The mapping item and management method that stateful IPv6 communicates with IPv4

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310269298.1A CN104253876B (en) 2013-06-28 2013-06-28 The mapping item and management method that stateful IPv6 communicates with IPv4

Publications (2)

Publication Number Publication Date
CN104253876A true CN104253876A (en) 2014-12-31
CN104253876B CN104253876B (en) 2017-12-01

Family

ID=52188397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310269298.1A Active CN104253876B (en) 2013-06-28 2013-06-28 The mapping item and management method that stateful IPv6 communicates with IPv4

Country Status (1)

Country Link
CN (1) CN104253876B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120601A (en) * 2018-07-24 2019-01-01 深圳市天威视讯股份有限公司 IPv4 and IPv6 interoperability methods and system based on program request signaling

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440168A (en) * 2003-03-31 2003-09-03 中国科学院计算机网络信息中心 IPV4 network logon layered switching network method
CN101977177A (en) * 2010-07-30 2011-02-16 北京星网锐捷网络技术有限公司 Method and device for establishing table entry of flow table and method and device for querying table entry of flow table
JP4670979B2 (en) * 2009-06-11 2011-04-13 株式会社日立製作所 PACKET GENERATION METHOD, INFORMATION PROCESSING DEVICE HAVING THE FUNCTION, AND RECORDING MEDIUM CONTAINING PACKET GENERATION PROGRAM
CN103167046A (en) * 2011-12-09 2013-06-19 华为技术有限公司 Method, device and system for acquiring multicast address

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440168A (en) * 2003-03-31 2003-09-03 中国科学院计算机网络信息中心 IPV4 network logon layered switching network method
JP4670979B2 (en) * 2009-06-11 2011-04-13 株式会社日立製作所 PACKET GENERATION METHOD, INFORMATION PROCESSING DEVICE HAVING THE FUNCTION, AND RECORDING MEDIUM CONTAINING PACKET GENERATION PROGRAM
CN101977177A (en) * 2010-07-30 2011-02-16 北京星网锐捷网络技术有限公司 Method and device for establishing table entry of flow table and method and device for querying table entry of flow table
CN103167046A (en) * 2011-12-09 2013-06-19 华为技术有限公司 Method, device and system for acquiring multicast address

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120601A (en) * 2018-07-24 2019-01-01 深圳市天威视讯股份有限公司 IPv4 and IPv6 interoperability methods and system based on program request signaling

Also Published As

Publication number Publication date
CN104253876B (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN101552803B (en) Method for maintaining network address translation address mapping table, media gateway and controller thereof
CN101005461B (en) IPv6 route list checking and repeating method
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN102137024B (en) Message processing method, exit routing device and border routing device
CN101753458B (en) Method and device for processing ND neighbor table entry
CN100505686C (en) Method for implementing communication of mobile IPv6 node and IPv4 communication buddy
CN102035738B (en) Method and device for acquiring routing information
CN103516612B (en) Distribution router generates method and the distribution router of route table items
CN110113264A (en) A kind of caching and route implementation method for naming data network
CN103248579B (en) UDP/IPv6 hardware protocol stacks based on FPGA and implementation method
CN107547364A (en) Route sending-down method, device and the network equipment
CN106487864A (en) The method for building up of data cube computation, service end and mobile terminal
CN103546572A (en) Cloud storage device and multi-cloud storage networking system and method
CN101159780A (en) Inter-network routing system and method of telecommunication integrated service access gateway
CN103384280A (en) Method and system for managing network address translation port resources
WO2022134671A1 (en) Data transmission method, electronic device, and storage medium
CN103457855A (en) Method and device for establishing classless inter-domain routing table and forwarding messages
CN104253876A (en) Mapping table of stateful IPv6 and IPv4 communication and management method
CN101795302A (en) Method and system for identifying group users
CN108494595B (en) High-efficiency new-generation big data network implementation method
CN104125310A (en) Semi-permanent address based message sending method
CN102891902A (en) Media access control address updating method and network equipment
CN108833284A (en) A kind of communication means and device of cloud platform and IDC network
CN103281242B (en) protocol stack routing table maintenance method and device
CN102082719A (en) Method and equipment for transmitting and caching mapping relationship

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant