CN1996929A - Forwarding method and device of IPv6 message in the switch - Google Patents

Forwarding method and device of IPv6 message in the switch Download PDF

Info

Publication number
CN1996929A
CN1996929A CNA2007100632590A CN200710063259A CN1996929A CN 1996929 A CN1996929 A CN 1996929A CN A2007100632590 A CNA2007100632590 A CN A2007100632590A CN 200710063259 A CN200710063259 A CN 200710063259A CN 1996929 A CN1996929 A CN 1996929A
Authority
CN
China
Prior art keywords
ipv6
information
layers
ipv4
address
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
CNA2007100632590A
Other languages
Chinese (zh)
Other versions
CN1996929B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com 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 Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CN200710063259A priority Critical patent/CN1996929B/en
Publication of CN1996929A publication Critical patent/CN1996929A/en
Application granted granted Critical
Publication of CN1996929B publication Critical patent/CN1996929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses one transfer method in exchange machine IPv6 message, which comprises the following steps: exchanger in the channel entrance receives IPv6 message and accordingly to get preset and relative IPv4 sealing message and next two layers message; according to the sealing information and IPv6 message plus IPv4 head into IPv4 message and to transfer it into next two layers information device. This invention also discloses one transfer device in exchanger IPv6 message.

Description

IPv6 message forwarding method and device in the switch
Technical field
The present invention relates to IPv6 message forwarding method and device, particularly IPv6 message forwarding method and device in the switch belong to the communications field.
Background technology
Development and new continuous release of using along with Internet technology, Internet Protocol version 4 (being called for short IPv4) more and more manifests it at address space, fail safe, service quality (Quality of Service, be called for short QoS) and the limitation of aspect such as configuration simplicity, therefore need new agreement fundamentally solve the problem that present IPv4 agreement is faced.Thus, Internet Protocol version 6 (IPV6) arises at the historic moment.
Need quite long period from the IPV4 network to the transition of IPV6 network, in this process, can have the stage of IPV4 and IPV6 coexistence.Present stage is in the primary stage of IPV6 network development, and the IPv4 network is still occupied an leading position, and the IPv6 network exists with the form of " isolated island ".The deployment of the IPV6 network of present stage as shown in Figure 1, isolated IPv6 site is via IPv4 network mutual communication.Need take protocol conversion technology between IPV4 network and the IPV6 network to guarantee intercommunication between these two kinds of different networks in this stage.
At present IPV4 network that generally adopts and the protocol conversion technology between the IPV6 network are tunneling techniques, tunnel (tunnel) technology be meant with a kind of protocol encapsulation in another agreement to realize purpose of interconnecting.The initiating terminal in tunnel is called tunnel portal, and the terminal point in tunnel is called tunnel exit.The deployed with devices that adopts tunneling technique is responsible for the format conversion of IPV6 message and IPV4 message at the edge of IPV6 network and IPV4 network.For the equipment that is located at tunnel portal, needs will enter the last IPv4 head of IPv6 message encapsulation of IPv4 network from the IPv6 network, and be transmitted to the next-hop device in the IPv4 network; For the equipment that is located at tunnel exit, need to remove the encapsulation of IPv4 head from the IPv4 message that the IPv4 network enter the IPv6 network, the IPv6 message after the decapsulation is transmitted to next-hop device in the IPv6 network.
Therefore, for the switch that is located at the tunnel portal place, after receiving the IPV6 message that enters the IPv4 network from the IPv6 network, need this IPv6 message is encapsulated as the IPV4 message, and the IPv4 address that the source address and the destination address of this IPv4 message is made as tunnel portal respectively and the IPv4 address of tunnel exit.Existing switch all is to realize by hardware to searching of IPv6 routing table and IPv4 routing table, because the hardware constraints of switch, can't carry out searching of IPv6 routing table and IPv4 routing table continuously to the IPv6 message of receiving, promptly three layers of (network layer) information of IPv6 network are not associated with two layers of (data link layer) information of IPv4 network yet, therefore two layers of information of next jumping in the time of can't knowing that by searching the IPv6 routing table it enters the IPv4 network to described IPv6 message, thus need take specific retransmission method to obtain two layers of information of next jumping.
Existing switch adopts the method for secondary route to handle the IPv6 message that enters the IPv4 network from the IPv6 network usually.As shown in Figure 2, in the IPv6 routing table, will enter the IPV6 message of IPv4 network pairing next jump two layers of information setting and be this machine information, after receiving the IPv6 message, the IPv6 message carried out the IPv4 encapsulation and by the salty switch that newly sends to of the service loop of appointment.The effect of service loop mouth is that message is done loop back processing being, and after promptly from then on message mouthful went out switch, from then on mouth was gone into switch once more again.For the message that will send to the service loop mouth, the information of its next jumping comprises target MAC (Media Access Control) address (DMAC), outbound port, goes out the information that vlan (VLAN) etc. is switch itself.When the IPv4 message that forms by IPv6 message encapsulation after the service loop mouth is gone into switch once more, just be considered common IPV4 message, obtain next and jump two layers of information by searching the IPV4 routing table, thereby transmit this message.
The weak point of said method is:
1, carries out the secondary route by the service loop mouth, taken at least one physical port;
2, for guaranteeing enough bandwidth, the service loop mouth may need to use a plurality of physical ports to converge, thereby has wasted bandwidth;
3, the processing method of secondary route makes message could give next-hop device from the device forwards of tunnel portal through twice forwarding, thereby has reduced the message forwarding rate, might make to transmit not reach linear speed.
Summary of the invention
The objective of the invention is provides IPv6 message forwarding method and device in a kind of switch for overcoming the defective of above-mentioned prior art, can save bandwidth effectively and improve the message forwarding rate.
For achieving the above object, the invention provides IPv6 message forwarding method in a kind of switch, comprise: after the switch that is located at tunnel portal is received the IPv6 message, obtain default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping by searching the IPv6 routing table that sets in advance in the switch; According to described IPv4 packaging information this IPv6 message is added that the IPv4 head is packaged into the IPv4 message, and according to described next jump after two layers of information add two layers of head with this IPv4 message, be transmitted to described next jump the next-hop device of two layers of information correspondence.Two layers of information of wherein said next jumping comprise target MAC (Media Access Control) address (DMAC), the outbound port of next jumping, go out vlan (VLAN) information.
In technique scheme, by in being located at the switch of tunnel portal, setting in advance the IPv4 packaging information corresponding and two layers of information of next jumping with the purpose IPv6 address of IPv6 message, and after receiving the IPv6 message, obtain default by searching the IPv6 routing table that sets in advance in the switch, the IPv4 packaging information corresponding with the purpose IPv6 address of this IPv6 message and next are jumped two layers of information, thereby can encapsulate described IPv6 message according to the IPv4 packaging information that obtains and two layers of information of next jumping, and be transmitted to the next-hop device that next jumps two layers of information correspondence, and be not the IPv6 message is done to search after the loop back processing being next again jumping two layers of information of prior art, thereby the physical port that need not take switch carries out loop back processing being, save bandwidth, improved forwarding rate.
Preferably, described the IPv6 routing table that sets in advance in the switch obtains default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping can specifically comprise by searching: search the IPv6 routing table that sets in advance in the described switch, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information and two layers of information of next jumping with this IPv6 message.
Described the IPv6 routing table that sets in advance in the switch obtains default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping also can specifically comprise by searching: search the IPv6 routing table that sets in advance in the described switch, obtain the IPV6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information with this IPv6 message; According to the two layers of information table in tunnel that set in advance in the described switch of purpose IPv4 address search in the described IPV4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.
For realizing goal of the invention, the present invention also provides IPv6 message forwarding device in a kind of switch, comprise: search module, be used for after receiving the IPv6 message by searching default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information of IPv6 routing table acquisition and two layers of information of next jumping that switch sets in advance; Package module is connected with the described module of searching, and is used for according to described IPv4 packaging information this IPv6 message being added that the IPv4 head is packaged into the IPv4 message, and according to two layers of information of described next jumping this IPv4 message is added two layers of head; Forwarding module is connected with described package module, is used for the message after the described package module encapsulation is transmitted to the next-hop device of two layers of information correspondence of described next jumping.Two layers of information of wherein said next jumping comprise target MAC (Media Access Control) address (DMAC), the outbound port of next jumping, go out vlan (VLAN) information.
In technique scheme, by searching default, corresponding with the purpose IPv6 address of the IPv6 message of receiving IPv4 packaging information and two layers of information of next jumping in the module searches switch, thereby the IPv6 message of receiving is encapsulated and is transmitted to next-hop device according to this IPv4 packaging information and two layers of information of next jumping, and be not existingly the IPv6 message of receiving is carried out searching again after the loop back processing being next again to jump two layers of information, thereby the physical port that need not take switch carries out loop back processing being, save bandwidth, improved forwarding rate.
Preferably, the described module of searching can be used for searching the IPv6 routing table that sets in advance in the described switch, obtains the IPv6 route table items corresponding with this IPv6 message, extracts corresponding IPv4 packaging information and two layers of information of next jumping from this IPv6 route table items.
The described module of searching also can comprise: IPv6 routing table lookup module, be used for searching the IPv6 routing table that described switch sets in advance, and obtain the IPv6 route table items corresponding with this IPv6 message, from this IPv6 route table items, extract corresponding IPv4 packaging information; The two layers of information table in tunnel are searched module, be connected with described IPv6 routing table lookup module, be used for two layers of information table in tunnel of setting in advance in the described switch of purpose IPv4 address search according to described IPv4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.
In sum, the present invention is by in being located at the switch of tunnel portal, the IPv4 packaging information that the purpose IPv6 address of the IPv6 message that sets in advance and receive is corresponding and next are jumped two layers of information, thereby after receiving the IPv6 message, can jump two layers of information to corresponding IPv4 packaging information and next according to the purpose IPv6 address search of this IPv6 message, and the IPv6 message is carried out the encapsulation of IPv4 encapsulation and two layers of head according to the information that finds, be transmitted to next that found then and jump two layers of pairing next-hop device of information.This shows that the present invention need not of the prior artly the IPv6 message is carried out searching again after the loop back processing being corresponding next again to jump two layers of information, therefore need not to monopolize physical port carries out loop back processing being, thereby can save bandwidth and improve the message forwarding rate.
Description of drawings
Fig. 1 is existing IPv6 network design schematic diagram;
Fig. 2 is the schematic flow sheet of the secondary method for routing of existing switch processes IPv6 message;
Fig. 3 is the schematic flow sheet of the embodiment one of IPv6 message forwarding method in the switch of the present invention;
Fig. 4 is the schematic flow sheet of the embodiment two of IPv6 message forwarding method in the switch of the present invention;
Fig. 5 is the schematic flow sheet of the embodiment three of IPv6 message forwarding method in the switch of the present invention;
Fig. 6 is the structural representation of the embodiment one of IPv6 message forwarding device in the switch of the present invention;
Fig. 7 is the structural representation of the embodiment two of IPv6 message forwarding device in the switch of the present invention.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in further detail.
Of the present inventionly be contemplated that substantially: the switch of being located at tunnel portal in the prior art is being transmitted the IPv6 message of receiving when handling, owing to all be to realize in the switch by hardware to searching of IPv6 routing table and IPv4 routing table, because the hardware constraints of switch, can't carry out searching of IPv6 routing table and IPv4 routing table continuously to the IPv6 message of receiving, therefore existing switch need carry out loop back processing being to the IPv6 message of receiving, promptly after the IPv6 message of receiving being carried out the IPv6 routing table lookup and carries out the IPv4 encapsulation, postback by the service loop choma and to send this switch back to, and then carry out the IPv4 routing table lookup, obtain to carry out two layers of encapsulation and be transmitted to corresponding next-hop device after corresponding next jumped two layers of information.The method of this secondary route of prior art need take one even a plurality of physical port and carry out loop back processing being, and has taken user bandwidth greatly, and the loop back processing being of message has also been reduced the message forwarding rate.The present invention is intended to the above-mentioned defective at prior art, IPv6 message forwarding method and device in a kind of switch are provided, by in switch, setting in advance the two layers of information of next jumping that are associated with the IPv6 routing table, thereby after receiving the IPv6 message, can directly obtain corresponding IPv4 packaging information and two layers of information of next jumping by searching the IPv6 routing table, carry out loop back processing being and need not to take physical port, and then can save bandwidth and improve the message forwarding rate.
Conceive based on foregoing invention, the invention provides IPv6 message forwarding method in a kind of switch, schematic flow sheet referring to the embodiment one of IPv6 message forwarding method in the switch of the present invention shown in Figure 3, this embodiment may further comprise the steps: in steps A, after the switch that is located at tunnel portal is received the IPv6 message, obtain default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping by searching the IPv6 routing table that sets in advance in the switch; In step B, this IPv6 message is added that the IPv4 head is packaged into the IPv4 message then, and this IPv4 message is added two layers of head according to two layers of information of described next jumping according to described IPv4 packaging information; In step C, will add that two layers of message behind the head are transmitted to the next-hop device of two layers of information correspondence of described next jumping at last.
In present embodiment one, by in being located at the switch of tunnel portal, setting in advance the IPv4 packaging information corresponding and two layers of information of next jumping with the purpose IPv6 address of IPv6 message, and after receiving the IPv6 message, obtain default by searching the IPv6 routing table that sets in advance in the switch, the IPv4 packaging information corresponding with the purpose IPv6 address of this IPv6 message and next are jumped two layers of information, thereby can encapsulate described IPv6 message according to the IPv4 packaging information that obtains and two layers of information of next jumping, and be transmitted to the next-hop device that next jumps two layers of information correspondence, and be not the IPv6 message is done to search after the loop back processing being next again jumping two layers of information of prior art, thereby the physical port that need not take switch carries out loop back processing being, save bandwidth, improved forwarding rate.
Set in advance the two layers of information of next jumping that are associated with the IPv6 routing table in the foregoing description one in switch, preferably, two layers of information of described next jumping can be arranged in the list item corresponding in the IPv6 routing table, also can independently be arranged in the two layers of information table in tunnel.
The embodiment two of IPv6 message forwarding method provides the execution mode in the list item of described two layers of information setting of next jumping correspondence in the IPv6 routing table in the switch of the present invention, referring to schematic flow sheet shown in Figure 4, be that with the difference of the foregoing description one steps A is specially steps A l, promptly search the IPv6 routing table that sets in advance in the described switch, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information and two layers of information of next jumping with this IPv6 message.
This advantage with the execution mode in the list item of described two layers of information setting of next jumping correspondence in the IPv6 routing table is that lookup method is easy, the efficient height; Its shortcoming is and need and searches flow process and make amendment the list item setting of existing IPv6 routing table, so that can add and obtain corresponding next and jump two layers of information from the IPv6 route table items.
Preferably, the mode that sets in advance two layers of information of described next jumping in the present embodiment two can be: the address properties according to the tunnel interface that sets in advance obtains corresponding IPv4 address, obtains corresponding two layers of information of next jumping according to IPv4 routing table default in the described switch of this IPv4 address search; Address properties according to described tunnel interface obtains corresponding IPv6 address then, according to IPv6 routing table default in the described switch of this IPv6 address search, obtain corresponding IPv6 route table items, and two layers of information of described next jumping are kept in this IPv6 route table items.
In the switch of the present invention the embodiment three of IPv6 message forwarding method provide with described next jump two layers of information and independently be arranged on execution mode in the two layers of information table in tunnel, referring to schematic flow sheet shown in Figure 5, be that with the difference of the foregoing description one steps A specifically may further comprise the steps: in steps A 10, search the IPv6 routing table that sets in advance in the described switch, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information with this IPv6 message; Then in steps A 20, according to the two layers of information table in tunnel that set in advance in the described switch of purpose IPv4 address search in the described IPv4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.
This advantage that two layers of information of described next jumping independently are arranged on the execution mode in the two layers of information table in tunnel do not need to be the list item setting to existing IPv6 routing table to make amendment, and only needs to increase the software operation flow process of searching the two layers of information table in tunnel; Its shortcoming is to have increased the step of tabling look-up, and descends to some extent with the foregoing description two-phase specific efficiency.
Preferably, the mode that sets in advance two layers of information of described next jumping in the present embodiment three can be: the address properties according to the tunnel interface that sets in advance obtains corresponding IPv4 address, obtains corresponding two layers of information of next jumping according to IPv4 routing table default in the described switch of this IPv4 address search; Two layers of information of next jumping of this IPv4 address and described correspondence are kept in the corresponding list item of the two layers of information table in described tunnel.
Among the foregoing description two and the embodiment three, the address properties of the tunnel interface that described basis sets in advance obtains corresponding IPv4 address, address properties to described tunnel interface under different tunnel configuration modes has the different modes that sets in advance, thereby causes obtaining the difference of the mode of described IPv4 address.
For example, if the tunnel that is disposed is an automatic tunnel, according to agreement regulation, need comprise the IPV4 address of termination point of a tunnel in the interface IP address of automatic tunnel (IPV6 address), also promptly to send to the purpose IPv4 address in the IPv4 packaging information of IPv6 message correspondence of this termination point of a tunnel.The 6to4 tunnel is a kind of automatic tunnel mode, and its address format is 2002:a.b.c.d:xxxx:xxxx:xxxx:xxxx:xxxx, and wherein 2002 is the predefined prefix of agreement, and a.b.c.d is the IPV4 address of described termination point of a tunnel.The automatic tunnel of other types on address configuration with the 6to4 tunnel in like manner, promptly the IPV6 address of tunnel interface all will comprise the IPv4 address of termination point of a tunnel.Therefore, in the practical application scene of automatic tunnel, the address properties of the tunnel interface that described basis sets in advance obtains corresponding IPv4 address and is: the IPv4 address that comprises in this IPv6 address of IPV6 address extraction according to the tunnel interface that sets in advance.
For another example, if the tunnel that is disposed is manual tunnel, then stipulate according to agreement, the tunnel interface address in manual tunnel can be an IPV6 unicast address arbitrarily, the IPV4 address that promptly not necessarily comprises termination point of a tunnel, but the tunnel interface in manual tunnel must dispose the attribute of the IPv4 address that is used to indicate termination point of a tunnel, the IPV4 address that can extract termination point of a tunnel from this attribute.This shows, in the practical application scene in manual tunnel, the address properties of the tunnel interface that described basis sets in advance obtains corresponding IPv4 address and is: the attribute of IPv4 address that is used to indicate termination point of a tunnel according to the tunnel interface that sets in advance, extract the IPv4 address that comprises in this attribute.
The foregoing description provides technical solution of the present invention to jump the mode that sets in advance of two layers of information and the embodiment under the different tunnel configuration mode in different next; those of ordinary skill in the art is to be understood that; it can be according to concrete applied environment; above-mentioned embodiment is adopted flexibly or makes up, and it all should be within technical solution of the present invention scope required for protection.
Further, among the foregoing description two and the embodiment three, described two layers of information of next jumping according to IPv4 routing table acquisition correspondence default in the described switch of this IPv4 address search can specifically comprise: according to IPv4 routing table default in the described switch of this IPv4r address search, if find corresponding list item then extract corresponding next and jump two layers of information from this list item, and the IPv6 address of the described tunnel interface that will preset and described IPv4 address are kept in the default data structure (for example IPv6 address and the described IPv4 address with described tunnel interface is kept at compound array RTunnel[as a composite number group element] in); Do not obtain default route default in the described switch if find corresponding list item then search, from this default route, extract corresponding next and jump two layers of information.
Among the foregoing description two and the embodiment three, after upgrading or deleting IPv4 route table items default in the described switch, also can jump two layers of information to corresponding described next that sets in advance upgrades or deletes, specifically comprise: search the purpose IPv4 address that whether comprises in the described data structure in this IPv4 route table items, if do not comprise the purpose IPv4 address in this IPv4 route table items in the described data structure then finish; If comprise the purpose IPv4 address in this IPv4 route table items in the described data structure, then extract the IPv6 address of tunnel interface corresponding in this data structure, and search in the IPv6 routing table default in the described switch whether comprise that the IP address of next jumping is the list item of described IPv6 address with this purpose IPv4 address; If not comprising the IP address of next jumping in the described switch in the default IPv6 routing table is the list item of described IPv6 address then finishes, if comprise that the IP address of next jumping is the list item of described IPv6 address in the IPv6 routing table of presetting in the described switch, then according to the two layers of information of next jumping in institute's IPv4 route table items of upgrading or delete, two layers of information of renewal or deletion and described IPv6 address next jumping corresponding, that set in advance.
Conceive based on foregoing invention, the present invention also provides IPv6 message forwarding device in a kind of switch, structural representation referring to the embodiment one of IPv6 message forwarding device in the switch of the present invention shown in Figure 6, this embodiment comprises: search module 1, be used for after receiving the IPv6 message by searching default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information of IPv6 routing table acquisition and two layers of information of next jumping that switch sets in advance; Package module 2 and is searched module 1 and is connected, be used for this IPv6 message being added that the IPv4 head is packaged into the IPv4 message according to described IPv4 packaging information, and according to described next jump two layers of information this IPv4 message added two layers of head; Forwarding module 3 is connected with package module 2, is used for the message after package module 2 encapsulation is transmitted to the next-hop device of two layers of information correspondence of described next jumping.
In present embodiment one, search in the switch default by searching module 1, the IPv4 packaging information corresponding with the purpose IPv6 address of the IPv6 message of receiving and next are jumped two layers of information, thereby according to this IPv4 packaging information and two layers of information of next jumping the IPv6 message of receiving is encapsulated by package module 2, and be transmitted to next-hop device by forwarding module 3, and be not existingly the IPv6 message of receiving is carried out searching again after the loop back processing being next again to jump two layers of information, thereby the physical port that need not take switch carries out loop back processing being, save bandwidth, improved forwarding rate.
Similarly, two layers of information of next jumping described in the foregoing description one can be arranged in the list item corresponding in the IPv6 routing table, also can independently be arranged in the two layers of information table in tunnel.
If in the list item of described two layers of information setting of next jumping correspondence in the IPv6 routing table, then search module 1 and be used for searching the IPv6 routing table that described switch sets in advance, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information and two layers of information of next jumping with this IPv6 message.This advantage with the execution mode in the list item of described two layers of information setting of next jumping correspondence in the IPv6 routing table is that lookup method is easy, the efficient height; Its shortcoming is and need and searches flow process and make amendment the list item setting of existing IPv6 routing table, so that can add and obtain corresponding next and jump two layers of information from the IPv6 route table items.Preferably, for two layers of information of described next jumping are set in advance, this embodiment also can comprise: two layers of information extraction modules, be used for obtaining corresponding IPv4 address, obtain corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jump two layers of information according to the address properties of the tunnel interface that sets in advance; The IPv6 routing table is provided with module, be connected with described two layers of information extraction modules, be used for obtaining corresponding IPv6 address according to the address properties of described tunnel interface, according to IPv6 routing table default in the described switch of this IPv6 address search, obtain corresponding IPv6 route table items, and two layers of information of described next jumping are kept in this IPv6 route table items.
If two layers of information of described next jumping independently are arranged in the two layers of information table in tunnel, then referring to the structural representation of the embodiment two of IPv6 message forwarding device in the switch of the present invention shown in Figure 7, searching module 1 can comprise: IPv6 routing table lookup module, be used for searching the IPv6 routing table that described switch sets in advance, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information with this IPv6 message; The two layers of information table in tunnel are searched module, be connected with described IPv6 routing table lookup module, be used for two layers of information table in tunnel of setting in advance in the described switch of purpose IPv4 address search according to described IPv4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.This advantage that two layers of information of described next jumping independently are arranged on the execution mode in the two layers of information table in tunnel do not need to be the list item setting to existing IPv6 routing table to make amendment, and only needs to increase the software operation flow process of searching the two layers of information table in tunnel; Its shortcoming is to have increased the step of tabling look-up, and descends to some extent with the foregoing description two-phase specific efficiency.
Preferably, for two layers of information of described next jumping are set in advance, this embodiment two also can comprise: two layers of information extraction modules, be used for obtaining corresponding IPv4 address, obtain corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jump two layers of information according to the address properties of the tunnel interface that sets in advance; The two layers of information table in tunnel are provided with module, are connected with described two layers of information extraction modules, and next that is used for described IPv4 address and described correspondence jumped the corresponding list item that two layers of information are kept at the two layers of information table in described tunnel.
The foregoing description provides the embodiment of technical solution of the present invention under the mode that sets in advance of different two layers of information of next jumping; those of ordinary skill in the art is to be understood that; it can be according to concrete applied environment; above-mentioned embodiment is adopted flexibly or makes up, and it all should be within technical solution of the present invention scope required for protection.
Preferably, in the foregoing description, described two layers of information extraction modules can be used for according to IPv4 routing table default in the described switch of this IPv4 address search, if find corresponding list item then extract corresponding next and jump two layers of information from this list item, and the IPv6 address of the described tunnel interface that will preset and described IPv4 address are kept in the default data structure; Do not obtain default route default in the described switch if find corresponding list item then search, from this default route, extract corresponding next and jump two layers of information.
Preferably, in the foregoing description, after upgrading or deleting IPv4 route table items default in the described switch, also can jump two layers of information to corresponding described next that sets in advance upgrades or deletes, therefore described device also can comprise: two layers of information updating module, be used for after upgrading or deleting the default IPv4 route table items of described switch, searching the purpose IPv4 address that whether comprises in the described data structure in this IPv4 route table items, otherwise finishing; It is the IPV6 address of then extracting tunnel interface corresponding in this data structure with this purpose IPv4 address, and search in the IPv6 routing table default in the described switch whether comprise that the IP address of next jumping is the list item of described IPv6 address, otherwise finish, be then according to the two layers of information of next jumping in institute's IPv4 route table items of upgrading or delete, two layers of information of renewal or deletion and described IPv6 address next jumping corresponding, that set in advance.
Above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.

Claims (14)

1, IPv6 message forwarding method in a kind of switch, it is characterized in that, comprise: after the switch that is located at tunnel portal is received the IPv6 message, obtain default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping by searching the IPv6 routing table that sets in advance in the switch; According to described IPv4 packaging information this IPv6 message is added that the IPv4 head is packaged into the IPv4 message, and according to described next jump after two layers of information add two layers of head with this IPv4 message, be transmitted to described next jump the next-hop device of two layers of information correspondence.
2, method according to claim 1, it is characterized in that, described the IPv6 routing table that sets in advance in the switch obtains default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping specifically comprise by searching: search the IPv6 routing table that sets in advance in the described switch, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information and two layers of information of next jumping with this IPv6 message.
3, method according to claim 2, it is characterized in that, before receiving the IPv6 message, the described switch that is located at tunnel portal also is included in the operation that sets in advance two layers of information of described next jumping in the described switch, specifically comprise: the address properties according to the tunnel interface that sets in advance obtains corresponding IPv4 address, obtains corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jumps two layers of information; Address properties according to described tunnel interface obtains corresponding IPv6 address then, according to IPv6 routing table default in the described switch of this IPv6 address search, obtain corresponding IPv6 route table items, and two layers of information of described next jumping are kept in this IPv6 route table items.
4, method according to claim 1, it is characterized in that, described the IPv6 routing table that sets in advance in the switch obtains default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information and two layers of information of next jumping specifically comprise by searching: search the IPv6 routing table that sets in advance in the described switch, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information with this IPv6 message; According to the two layers of information table in tunnel that set in advance in the described switch of purpose IPv4 address search in the described IPv4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.
5, method according to claim 4, it is characterized in that, before receiving the IPv6 message, the described switch that is located at tunnel portal also is included in the operation that sets in advance two layers of information of described next jumping in the described switch, specifically comprise: the address properties according to the tunnel interface that sets in advance obtains corresponding IPv4 address, obtains corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jumps two layers of information; Two layers of information of next jumping of this IPv4 address and described correspondence are kept in the corresponding list item of the two layers of information table in described tunnel.
6, according to claim 3 or 5 described methods, it is characterized in that, described two layers of information of next jumping according to IPv4 routing table acquisition correspondence default in the described switch of this IPv4 address search specifically comprise: according to IPv4 routing table default in the described switch of this IPv4 address search, if find corresponding list item then extract corresponding next and jump two layers of information from this list item, and the IPv6 address of the described tunnel interface that will preset and described IPv4 address are kept in the default data structure; Do not obtain default route default in the described switch if find corresponding list item then search, from this default route, extract corresponding next and jump two layers of information.
7, method according to claim 6 is characterized in that, also comprises: after upgrading or deleting IPv4 route table items default in the described switch, search the purpose IPv4 address that whether comprises in the described data structure in this IPv4 route table items, otherwise finish; It is the IPv6 address of then extracting tunnel interface corresponding in this data structure with this purpose IPv4 address, and search in the I Pv6 routing table default in the described switch whether comprise that the IP address of next jumping is the list item of described IPv6 address, otherwise finish, be then according to the two layers of information of next jumping in institute's IPv4 route table items of upgrading or delete, two layers of information of renewal or deletion and described IPv6 address next jumping corresponding, that set in advance.
8, IPv6 message forwarding device in a kind of switch is characterized in that, comprising:
Search module, be used for after receiving the IPv6 message by searching default, corresponding with the purpose IPv6 address of this IPv6 message IPv4 packaging information of IPv6 routing table acquisition and two layers of information of next jumping that switch sets in advance;
Package module is connected with the described module of searching, and is used for according to described IPv4 packaging information this IPv6 message being added that the IPv4 head is packaged into the IPv4 message, and according to two layers of information of described next jumping this IPv4 message is added two layers of head;
Forwarding module is connected with described package module, is used for the message after the described package module encapsulation is transmitted to the next-hop device of two layers of information correspondence of described next jumping.
9, device according to claim 8, it is characterized in that, the described module of searching is used for searching the IPv6 routing table that described switch sets in advance, obtain the IPv6 route table items corresponding, from this IPv6 route table items, extract corresponding IPv4 packaging information and two layers of information of next jumping with this IPv6 message.
10, device according to claim 9 is characterized in that, also comprises:
Two layers of information extraction modules are used for obtaining corresponding IPv4 address according to the address properties of the tunnel interface that sets in advance, and obtain corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jump two layers of information;
The IPv6 routing table is provided with module, be connected with described two layers of information extraction modules, be used for obtaining corresponding IPv6 address according to the address properties of described tunnel interface, according to IPv6 routing table default in the described switch of this IPv6 address search, obtain corresponding IPv6 route table items, and two layers of information of described next jumping are kept in this IPv6 route table items.
11, device according to claim 8 is characterized in that, the described module of searching comprises:
IPv6 routing table lookup module is used for searching the IPv6 routing table that described switch sets in advance, and obtains the IPv6 route table items corresponding with this IPv6 message, extracts corresponding IPv4 packaging information from this IPv6 route table items;
The two layers of information table in tunnel are searched module, be connected with described IPv6 routing table lookup module, be used for two layers of information table in tunnel of setting in advance in the described switch of purpose IPv4 address search according to described IPv4 packaging information, obtain corresponding two layers of information table in tunnel, from the two layers of information table in this tunnel, extract corresponding next and jump two layers of information.
12, device according to claim 11 is characterized in that, also comprises:
Two layers of information extraction modules are used for obtaining corresponding IPv4 address according to the address properties of the tunnel interface that sets in advance, and obtain corresponding next according to IPv4 routing table default in the described switch of this IPv4 address search and jump two layers of information;
The two layers of information table in tunnel are provided with module, are connected with described two layers of information extraction modules, and next that is used for described IPv4 address and described correspondence jumped the corresponding list item that two layers of information are kept at the two layers of information table in described tunnel.
13, according to claim 10 or 12 described devices, it is characterized in that: described two layers of information extraction modules are used for the IPv4 routing table default according to the described switch of this IPv4 address search, if find corresponding list item then extract corresponding next and jump two layers of information from this list item, and the IPv6 address of the described tunnel interface that will preset and described IPv4 address are kept in the default data structure; Do not obtain default route default in the described switch if find corresponding list item then search, from this default route, extract corresponding next and jump two layers of information.
14, device according to claim 13, it is characterized in that, also comprise: two layers of information updating module, be used for after upgrading or deleting the default IPv4 route table items of described switch, search the purpose IPv4 address that whether comprises in the described data structure in this IPv4 route table items, otherwise finish; It is the IPv6 address of then extracting tunnel interface corresponding in this data structure with this purpose IPv4 address, and search in the IPv6 routing table default in the described switch whether comprise that the IP address of next jumping is the list item of described IPv6 address, otherwise finish, be then according to the two layers of information of next jumping in institute's IPv4 route table items of upgrading or delete, two layers of information of renewal or deletion and described IPv6 address next jumping corresponding, that set in advance.
CN200710063259A 2007-01-05 2007-01-05 Forwarding method and device of IPv6 message in the switch Active CN1996929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710063259A CN1996929B (en) 2007-01-05 2007-01-05 Forwarding method and device of IPv6 message in the switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710063259A CN1996929B (en) 2007-01-05 2007-01-05 Forwarding method and device of IPv6 message in the switch

Publications (2)

Publication Number Publication Date
CN1996929A true CN1996929A (en) 2007-07-11
CN1996929B CN1996929B (en) 2010-05-26

Family

ID=38251874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710063259A Active CN1996929B (en) 2007-01-05 2007-01-05 Forwarding method and device of IPv6 message in the switch

Country Status (1)

Country Link
CN (1) CN1996929B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011050644A1 (en) * 2009-10-26 2011-05-05 中兴通讯股份有限公司 Method for performing dynamic tunnel message forwarding and switch thereof
CN102801628A (en) * 2012-08-20 2012-11-28 神州数码网络(北京)有限公司 Data forwarding method and system in GRE (General Routing Encapsulation) tunnels

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7246175B1 (en) * 2001-12-07 2007-07-17 Cisco Technology, Inc. IPv6 over MPLS IPv4 core
CN1564542A (en) * 2004-04-20 2005-01-12 清华大学 Tunnel set-up method for carrying out internet of IPV4 network on IPV6 network
CN1728714B (en) * 2004-07-27 2011-07-27 邓里文 Method for mutual communication between IPv4 network and IPv6 network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011050644A1 (en) * 2009-10-26 2011-05-05 中兴通讯股份有限公司 Method for performing dynamic tunnel message forwarding and switch thereof
CN102801628A (en) * 2012-08-20 2012-11-28 神州数码网络(北京)有限公司 Data forwarding method and system in GRE (General Routing Encapsulation) tunnels

Also Published As

Publication number Publication date
CN1996929B (en) 2010-05-26

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
CN102724118B (en) Label distribution method and device
CN104869065A (en) Method and device for processing data message
CN101877677B (en) Tunnel switching method and system for multi-protocol label switching services
CN103313308B (en) A kind of data transmission method and equipment
CN102970386B (en) A kind of IPv6 of realization message passes through the method and apparatus of IPv4 network
CN102694738B (en) Virtual private network (VPN) gateway and method for forwarding messages at VPN gateway
CN102769869A (en) Message rapid forwarding system of control and provisioning of wireless access point
CN101262429B (en) A system and method for realizing virtual private network communication
CN105490957A (en) Load sharing method and device
CN103200068B (en) A kind of based on customer service Multiple tunnel transmitting device
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN104283750A (en) Uniform link layer multi-protocol exchange method based on Ethernet bus
CN202285423U (en) Intelligent set top box
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
CN102055647A (en) Three-layer virtual private network (VPN) access method and system
CN102291305B (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN102355402B (en) Method, system and router for establishing LSP (Label Switched Path) based on VPN (Virtual Private Network) route
CN101640621A (en) Method and device for realizing data transmission in wireless network
CN102045233B (en) Method and device for controlling message forwarding in network communication
CN102801622B (en) A kind of retransmission method of data message and retransmission unit
CN102546409B (en) Method and RB (route bridge) for processing message based on TRILL (Transparent Interconnection of Lots of Links) network
CN101304387B (en) Method for implementing tunnel conversion of bi-layer tunnel protocol
CN102752210B (en) The method and system of message transmission between a kind of local area network (LAN)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address