CN101094155B - Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices - Google Patents

Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices Download PDF

Info

Publication number
CN101094155B
CN101094155B CN2007101198876A CN200710119887A CN101094155B CN 101094155 B CN101094155 B CN 101094155B CN 2007101198876 A CN2007101198876 A CN 2007101198876A CN 200710119887 A CN200710119887 A CN 200710119887A CN 101094155 B CN101094155 B CN 101094155B
Authority
CN
China
Prior art keywords
message
ipv4
ipv6
tunnel
layers
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.)
Active
Application number
CN2007101198876A
Other languages
Chinese (zh)
Other versions
CN101094155A (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.)
Hewlett Packard Development Co LP
Original Assignee
Hangzhou H3C Technologies 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 H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2007101198876A priority Critical patent/CN101094155B/en
Publication of CN101094155A publication Critical patent/CN101094155A/en
Application granted granted Critical
Publication of CN101094155B publication Critical patent/CN101094155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is used to realize the transparent transmission of layer-two IPv6 message in IPv4 network so as to realize the IPv6 message to cross over IPv4 network.

Description

Set up method, IPv6 tunnel communication method and the IPv4 edge device in IPv6 tunnel
Technical field
The present invention relates to data communication technology field, be specifically related to a kind of IPv6 (IPv6 that sets up, Internet Protocol version 6) method in tunnel, IPv6 tunnel communication method and Internet Protocol Version 4 (IPv4, Internet Protocol version 4) edge device.
Background technology
At present, the deployment of IPv6 network launches in the world, along with the IPv6 networks development, has occurred the IPv6 network of many parts in the existing network, and these IPv6 networks may be continuous by the backbone network of operation IPv4 agreement.In order to make these isolated " IPv6 islands " UNICOM mutually, a solution that prior art proposes is to adopt the IPv6 tunneling technique, realizes the communication that the IPv6 message passes through the IPv4 network.
The IPv6 tunneling technique is that the IPv6 message is encapsulated in the IPv4 message, communicates thereby make the IPv6 message can pass the IPv4 network.For the edge device that adopts the IPv6 tunneling technique, porch in the tunnel, the IPv6 message need be encapsulated into IPv4 message, the source address of this IPv4 message and destination address are respectively the IPv4 addresses of tunnel portal and tunnel exit, thereby this IPv4 message can be routed to tunnel exit in the IPv4 network; Exit in the tunnel is taken out IPv6 message wherein, and is forwarded to destination node, realizes that the IPv6 message passes through the IPv4 network.
Existing IPv6 tunneling technique specifically has: manual configuration tunnel, 6to 4 tunnels and automatic tunnel technology (ISATAP, Intra-Site Automatic Tunnel Addressing Protocol) etc.The shortcoming of existing IPv6 tunneling technique is: can only provide point-to-point tunnel usually; Require edge device to support multiprotocol label switching (MPLS, Multi Protocol Label Switch) technology or IPv4/IPv6 dual stack technology (promptly supporting IPv4 message and IPv6 message to transmit and the respective protocol message processing capability simultaneously), and, generally need change or upgrade the hardware of existing edge device for making edge device can support MPLS technology or IPv4/IPv6 dual stack technology; Existing tunneling technique all is that the later part of the header of IPv6 message (comprising header) is encapsulated into IPv4 message, and can only provide the tunnel of point-to-point, and, the tunneling technique that wherein has need dispose the IPv6 address of specific format for edge device, this has more increased the configuration difficulty, has also limited its application.
Summary of the invention
Technical problem to be solved by this invention provides method, IPv6 tunnel communication method and the IPv4 edge device in a kind of IPv6 of foundation tunnel, need not the IPv4 edge device and support IPv4/IPv6 dual stack or MPLS technology, can realize that the IPv6 message passes through the communication of IPv4 network.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
A kind of method of setting up the IPv6 tunnel, be used between the IPv4 edge device, setting up the IPv6 tunnel, described IPv4 edge device is arranged on the edge of IPv4 network, be connected with the IPv4 network with the IPv6 network respectively, and connect by the IPv4 network between the IPv4 edge device, this method disposes the IP address information of at least one far-end in this IPv6 tunnel on local IPv4 edge device, described IPv6 tunnel is used to transmit the IPv4 message that is packaged with two layers of IPv6 message, and carries in the described IPv4 message and be used to indicate the indication information that self is packaged with two layers of IPv6 message.
In the method for setting up the IPv6 tunnel of the present invention, described IPv6 tunnel is the IPv6 tunnel of point to multiple spot;
The IP address information of at least one far-end in this IPv6 tunnel of described configuration is: the IP address information of a plurality of far-ends of this end points of configuration on the IPv4 edge device of each end points in this IPv6 tunnel.
A kind of IPv6 tunnel communication method in the IPv6 tunnel that is applied to set up according to claim 1, may further comprise the steps:
A, after the IPv4 edge device receives two layers of IPv6 message, described two layers of IPv6 message are encapsulated in the IPv4 message, and the IPv4 message after will encapsulating is sent to its tunnel far-end, described two layers of IPv6 message are the IPv6 message on the data link layer, carry in the IPv4 message after the described encapsulation to be used to indicate the indication information that himself is packaged with two layers of IPv6 message;
B, the IPv4 edge device of tunnel far-end carries out decapsulation to the IPv4 message that includes described indication information that it receives, and transmits in this locality after obtaining described two layers of IPv6 message.
In the IPv6 tunnel communication method of the present invention,
In the described steps A, the IPv4 message after described will the encapsulation is sent to its tunnel far-end and is, the IP address of the destination address of the IPv4 message after the described encapsulation for its tunnel far-end is set, and transmits according to the IPv4 message of local routing table after with described encapsulation.
In the IPv6 tunnel communication method of the present invention, described IPv6 tunnel arrives the IPv6 tunnel of multiple spot for point; In the described steps A, the IPv4 message after described will the encapsulation is sent to its tunnel far-end and is, the IPv4 message after the described encapsulation is sent to all far-ends that it puts the IPv6 tunnel of multiple spot.
In the IPv6 tunnel communication method of the present invention, in the described steps A, described IPv4 edge device receives two layers of IPv6 message and is, according to the type field of the frame head that receives two layer message, judges whether this two layer message is two layers of IPv6 message.
In the IPv6 tunnel communication method of the present invention, in the described steps A, describedly encapsulate two layers of IPv6 message into that the IPv4 message is, described two layers of IPv6 message are encapsulated in the net load zone of IPv4 message.
In the IPv6 tunnel communication method of the present invention, in the described steps A, described indication information is a predetermined value of protocol fields in the header of the IPv4 message after the described encapsulation.
In the IPv6 tunnel communication method of the present invention, among the described step B, describedly transmit described two layers of IPv6 message in this locality and be: described two layers of IPv6 message are flooded in this locality.
In the IPv6 tunnel communication method of the present invention, in the described steps A, when described two layers of IPv6 message surpass predetermined length, the IPv4 edge device further carries out burst to described two layers of IPv6 message, encapsulates into the fragment of described two layers of IPv6 message of obtaining in the IPv4 message respectively and is sent to its tunnel far-end;
Among the described step B, the IPv4 edge device of tunnel far-end is further recombinated to the fragment of two layers of IPv6 message obtaining the IPv4 message after described encapsulation, obtains described two layers of IPv6 message.
In the IPv6 tunnel communication method of the present invention, the IPv4 edge device is from the vlan information of its tunnel far-end study MAC Address and this MAC correspondence, and the maintenance of far end MAC address entries, the corresponding relation between the MAC Address that comprises tunnel information in the described far-end MAC address entries, acquires from this tunnel far-end, the vlan information of this MAC Address correspondence;
In the described steps A, after the IPv4 edge device receives two layers of IPv6 message, further search the far-end MAC address entries that it is safeguarded according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of described IPv4 edge device.
In the IPv6 tunnel communication method of the present invention, the IPv4 edge device is from the vlan information of local port study MAC Address and this MAC Address correspondence, and safeguard the local mac list item, the corresponding relation the MAC Address that comprises local port in the described local mac list item, learns from this local port, the vlan information of this MAC Address correspondence;
Among the described step B, describedly transmit described two layers of IPv6 message in this locality and comprise:
The IPv4 edge device of tunnel far-end is searched the local mac list item that it is safeguarded according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then described two layers of IPv6 message are transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
A kind of IPv4 edge device comprises:
The unit is set up in the tunnel, be used to dispose and preserve the IP address information of at least one far-end in IPv6 tunnel under this IPv4 edge device, described IPv6 tunnel is used to transmit the IPv4 message that is packaged with two layers of IPv6 message, and carries in the described IPv4 message and be used to indicate the indication information that self is packaged with two layers of IPv6 message.
Equipment of the present invention, wherein, the IP address information that the unit is further used for disposing and preserve a plurality of far-ends in the IPv6 tunnel of putting multiple spot under this IPv4 edge device is set up in described tunnel.
Equipment of the present invention wherein, is characterized in that also comprising:
IPv6 message receiving element, be used to receive two layers of IPv6 message, two layers of IPv6 message that receive are encapsulated into IPv4 message, and be provided for indicating the indication information that is packaged with two layers of IPv6 message in this IPv4 message in the IPv4 message after encapsulation, wherein, described two layers of IPv6 message are the IPv6 message on the data link layer;
The IPv4 packet sending unit is used for setting up according to described tunnel the IPv6 tunnel of configuration of cells, and the IPv4 message after the described encapsulation that described IPv6 message receiving element is obtained is sent to the tunnel far-end.
Equipment of the present invention, wherein, described IPv6 message receiving element is further used for described two layers of IPv6 message are encapsulated in the net load zone of IPv4 message, and the predetermined value that protocol fields in the header of the IPv4 message after the described encapsulation is set is described indication information.
Equipment of the present invention, wherein,
Described IPv4 packet sending unit is further used for setting up according to described tunnel the IP address of the tunnel far-end of configuration of cells, and the destination address of the IPv4 message after the described encapsulation is set, and transmits according to the IPv4 message of local routing table after with described encapsulation.
Equipment of the present invention, wherein, the IP address information that the unit further disposed and preserved a plurality of far-ends in the IPv6 tunnel of putting multiple spot under this IPv4 edge device is set up in described tunnel; Described IPv4 packet sending unit is further used for the IPv4 message after the described encapsulation is sent to all far-ends that a little arrive the IPv6 tunnel of multiple spot.
Equipment of the present invention wherein also comprises:
IPv4 message receiving element is used to receive the IPv4 message from the tunnel far-end, and according to whether carrying described indication information in the IPv4 message that receives, and judges the IPv4 message after the described encapsulation and carries out decapsulation, obtains two layers of IPv6 message wherein;
IPv6 message retransmission unit is used for transmitting in this locality described two layers of IPv6 message that described IPv4 message receiving element obtains.
Equipment of the present invention, wherein also comprise far-end MAC address entries maintenance unit, be used for from the vlan information of tunnel far-end study MAC Address and this MAC correspondence, and the corresponding relation between the vlan information of record tunnel information, the MAC Address of acquiring from this tunnel far-end, this MAC Address correspondence;
Described IPv4 packet sending unit, further according to the target MAC (Media Access Control) address of described two layers of IPv6 message, search described far-end MAC address entries maintenance unit,, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence if wherein there is described target MAC (Media Access Control) address; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of described IPv4 edge device.
Equipment of the present invention, wherein also comprise local mac list item maintenance unit, be used for from the vlan information of local port study MAC Address and this MAC Address correspondence, and the corresponding relation the vlan information of record local port, the MAC Address of learning from this local port, this MAC Address correspondence;
Described IPv6 message retransmission unit, be further used for searching described local mac list item maintenance unit according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then described two layers of IPv6 message are transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
From the above as can be seen, method, IPv6 tunnel communication method and the IPv4 edge device of setting up the IPv6 tunnel provided by the invention, after two layers of IPv6 message that will comprise frame head encapsulate into the IPv4 message, by the IPv4 Network Transmission behind the tunnel far-end, two layers of IPv6 message that extract are wherein transmitted in this locality again, thereby need not network edge device is carried out HardwareUpgring, also need not IP address, can realize that the IPv6 message passes through the communication of IPv4 network into edge device configuration specific format.The present invention also can set up the IPv6 tunnel that a little arrives multiple spot, realizes the communication of point to multiple spot.And the present invention also provides the burst processing method to overlength IPv6 message.
Description of drawings
Fig. 1 is a kind of structure chart of using the network of the described IPv6 tunnel communication of embodiment of the invention method;
Fig. 2 is the flow chart of the described IPv6 tunnel communication of embodiment of the invention method;
Fig. 3 is the structural representation of the described IPv4 edge device of the embodiment of the invention.
Embodiment
The invention provides method, IPv6 tunnel communication method and the IPv4 edge device in a kind of IPv6 of foundation tunnel, by two layers of IPv6 message of transparent transmission in the IPv4 network, thereby need not the IPv4 edge device and support IPv4/IPv6 dual stack technology or MPLS technology, can realize of the communication of IPv6 terminal by the IPv4 network.The present invention is described in detail by specific embodiment below in conjunction with accompanying drawing.
Figure 1 shows that a kind of structure chart of using the network of the described IPv6 tunnel communication of embodiment of the invention method.IPv6 network 1~3 and an IPv4 network of comprising 3 parts among Fig. 1 have 3 operation IPv4 protocol of I Pv4 edge device A, B and C in the edge of IPv6 network and IPv4 network.Wherein, IPv6 equipment a1 and a2 belong to IPv6 network 1, and are connected with IPv4 edge device A respectively; IPv6 equipment b1 and b2 belong to IPv6 network 2, and are connected with IPv4 edge device B respectively; IPv6 equipment c1 and c2 belong to IPv6 network 3, and are connected with IPv4 edge device C respectively.Here, for convenience of description, media interviews control (MAC, MediaAccess Control) address of supposing a1, a2, b1, b2, c1 and c2 is respectively: 0000-0000-00A1,0000-0000-00A2,0000-0000-00B 1,0000-0000-00B2,0000-0000-00C 1 and 0000-0000-00C2; The IPv4 address of A, B and C is respectively: 1.1.1.1,1.1.1.2 and 1.1.1.3.Below at first the method for setting up the IPv6 tunnel is described:
The described method of setting up the IPv6 tunnel of the invention process by the IP address information of at least one far-end in this IPv6 tunnel of configuration on local IPv4 edge device, is set up the IPv6 tunnel between the IPv4 edge device.Unlike the prior art be that the IPv4 edge device at two ends, tunnel need not to support MPLS to transmit or IPv4/IPv6 dual stack technology in the present embodiment.Here, between operation IPv4 protocol of I Pv4 edge device, set up the tunnel, the two ends in tunnel, promptly this locality and far-end all are the IPv4 edge devices.When setting up the tunnel, need on the IPv4 edge device, dispose the IP address information of its tunnel far-end.With Fig. 1 is example, when between A, B, setting up the tunnel, need respectively the IP address 1.1.1.2 of its far-end of configuration B on the A and on B the IP address 1.1.1.1 of its far-end of configuration A.
Here, all right collocation point is to the IPv6 tunnel of multiple spot, pass through point-to-multi-point tunnel, message can arrive a plurality of far-ends simultaneously: set up the IP address information of these all far-ends of end points of each endpoint configurations of point-to-multi-point tunnel respectively at needs, in order to set up full annexation between each end points of this point-to-multi-point tunnel.With Fig. 1 is example, suppose between A, B and C, to set up point-to-multi-point tunnel, can be by the IP address of configuration this tunnel far-end B and C on A, the IP address of configuration this tunnel far-end A and C on B, the IP address of configuration this tunnel far-end A and B on C, thereby form A and arrive the full annexation of the point of (A and B) to (A and C) and C to multiple spot to (B and C), B.
Below in conjunction with Fig. 1 the described IPv6 tunnel communication of embodiment of the invention method is described, as shown in Figure 2, the described IPv6 tunnel communication of embodiment of the invention method comprises 3 steps:
Step 21 is set up the IPv6 tunnel between the IPv4 edge device, the described IPv6 of foundation tunnel is included in the IP address information that the IPv4 edge device disposes its tunnel far-end.
Step 22, after the IPv4 edge device receives two layers of IPv6 message, described two layers of IPv6 message are encapsulated in the IPv4 message, and the IPv4 message after will encapsulating is sent to its tunnel far-end, carries in the IPv4 message after the described encapsulation to be used to indicate the indication information that himself is packaged with two layers of IPv6 message.
Here, described two layers of IPv6 message are the IPv6 messages on the data link layer, comprise Ethernet frame head and postamble, wherein comprise target MAC (Media Access Control) address, source MAC in the frame head again, also may comprise VLAN (VLAN, Virtual Local Area Network) information (as VLAN sign ID) etc.
Whether here, the IPv4 edge device is for the two layer message that receives (ethernet frame), can be 0x86DD according to type (Type) field of the frame head of this two layer message, judges whether this two layer message is two layers of IPv6 message.The IPv4 edge device encapsulates the into net load of IPv4 message (Payload) zone with two layers of IPv6 message, and be provided with that agreement (Protocol) field is a predetermined value in the header of the IPv4 message after the described encapsulation, be used for being packaged with the indication information of two layers of IPv6 message as this IPv4 message of indication, the purpose IP address that IPv4 message after the described encapsulation is set simultaneously is the IP address of tunnel far-end, transmits by the IPv4 message of local routing table after with described encapsulation.
Here, when described IPv4 edge device had been configured to put the IPv6 tunnel of multiple spot, the IPv4 message after the described encapsulation can be all far-ends that are sent to this tunnel.Be example with Fig. 1 still, if disposed the IPv6 tunnel of putting multiple spot between A, B and the C, when A receives 2 layers of IPv6 message, this message encapsulated into the IPv4 message after, be sent to far-end B and C respectively.
Step 23, whether the IPv4 edge device of tunnel far-end carries described indication information according in the IPv4 message that receives, judge the IPv4 message after the described encapsulation, and the IPv4 message after the described encapsulation is carried out decapsulation, transmit in this locality after obtaining described two layers of IPv6 message.
Here, the IPv4 message after the described encapsulation is routed to the tunnel far-end in the IPv4 network.Behind the IPv4 message after the described encapsulation that the IPv4 edge device of tunnel far-end receives, only transmit, no longer be sent to other remote equipment by the tunnel in this locality.
The IPv4 message of the IPv4 edge device of tunnel far-end after to described encapsulation carries out decapsulation, obtain two layers of IPv6 message wherein after, can further on local all of the port, flood to described two layers of IPv6 message.Continuation is example with Fig. 1, if disposed the tunnel between A and the B, when A receives 2 layers of IPv6 message, just can this message be encapsulated in the IPv4 message according to step 22, is sent to B; Behind the IPV4 message of B after receiving described encapsulation, 2 layers of IPv6 message are wherein obtained in decapsulation, and flood on local all of the port.
It is pointed out that if the IPv4 edge device receives two layers of IPv6 message that surpass predetermined length, in step 22, then these two layers of IPv6 messages can't be encapsulated in the IPv4 message.At this moment, can carry out burst, then each fragment be encapsulated into IPv4 message respectively, and send to the tunnel far-end by the tunnel to these two layers of IPv6 messages; After receiving these IPv4 messages on the far-end IP v4 edge device, obtain the fragment of two layers of IPv6 message wherein and recombinate, thereby obtain two layers of complete IPv6 message.
By above step, present embodiment comprises two layers of IPv6 message of frame head by transparent transmission in the IPv4 network, can realize the communication between " IPv6 island ".When described two layers of IPv6 message were L 2 broadcast message or Layer 2 Multicast message, the described IPv6 tunnel communication of embodiment of the invention method can be carried out according to above-mentioned steps; When described two layers of IPv6 message are two layers of unicast message, can also be in the described IPv6 tunnel communication of the embodiment of the invention method further by on the IPv4 of endpoint of a tunnel edge device, safeguarding local mac list item and far-end MAC address entries, selectively transmit IPv4 message after the encapsulation according to the target MAC (Media Access Control) address of described two layers of IPv6 message, more effectively to send the IPv6 message, below be explained by the IPv4 network.
At first, the MAC Address of the IPv4 edge device study tunnel far-end on the endpoint of a tunnel and the information such as VLAN of this MAC Address correspondence, the maintenance of far end MAC address entries, described far-end MAC address entries is as shown in table 1, the corresponding relation between the MAC Address that is used to write down tunnel information (as the IP address of tunnel far-end), acquires from this tunnel far-end, the vlan information (as VLAN ID) of this MAC Address correspondence.Simultaneously, the IPv4 edge device is also by the vlan information from local port study MAC Address and this MAC Address correspondence, safeguard the local mac list item, described local mac list item is as shown in table 2, the corresponding relation the MAC Address that is used to write down local port, learns from this local port, the vlan information (as VLAN ID) of this MAC Address correspondence.Here, can also in described far-end MAC address entries and local mac list item, MAC address aging time Age be set for the MAC Address of learning, if in ageing time, do not receive the frame of source address, then from described list item, delete the corresponding informance of this MAC Address for this MAC Address.
MAC Address VLAN ID The tunnel Age
0000-0000-0001 10 (1.1.1.1 far-end IP address) 300s
Table 1
MAC Address VLAN ID Local port Age
0000-0000-0001 10 G1/1/1 300s
Table 2
In step 22, after the IPv4 edge device receives two layers of IPv6 message, further learn the vlan information of source MAC, corresponding port (receiving the local port of described two layers of IPv6 message) and this source MAC correspondence of described two layers of IPv6 message, and be recorded in the local mac list item, search the far-end MAC address entries that it is safeguarded simultaneously, judge the target MAC (Media Access Control) address that wherein whether has described two layers of IPv6 message, if exist, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of this IPv4 edge device.
Here, described IPv4 edge device, can also further search and judge the target MAC (Media Access Control) address that whether has described two layers of IPv6 message in its local mac list item, if exist, show that then described two layers of IPv6 message do not need to send by the tunnel, only need to transmit on the local port of this target MAC (Media Access Control) address learning; If there is no, then, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
In step 23, the IPv4 message of the IPv4 edge device of tunnel far-end after by the described encapsulation of decapsulation, after obtaining described two layers of IPv6 message, further learn the source MAC of described two layers of IPv6 message, corresponding tunnel information (receiving the IP address of far-end in the tunnel of the IPv4 message after the described encapsulation) and vlan information, and be recorded in the far-end MAC address entries, simultaneously, search the local mac list item that it is safeguarded, judge the target MAC (Media Access Control) address and the corresponding port that wherein whether there are described two layers of IPv6 message, if exist, then described two layers of IPv6 message transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
Still for example, above-mentioned IP v6 message forwarding is done more specifically explanation below with the network among Fig. 1.
Suppose that it is 10 VLAN that a1, a2, b1, b2, c1 and c2 belong to VLAN ID; Between A, B and C, dispose point-to-multi-point tunnel, set up full annexation; And, all safeguarding local mac list item and far-end MAC address entries on A, B and the C separately.
First two layers of IPv6 messages enter A (by the port G1/1/1 of A) from a1, and the target MAC (Media Access Control) address of these two layers of IPv6 messages is 0000-0000-00B1 (MAC Address of b1), and source MAC is 0000-0000-00A1 (MAC Address of a1); A learns the source MAC (0000-0000-00A1) of these two layers of IPv6 messages, corresponding port (G1/1/1) and vlan information (VLAN ID:10), and is recorded in the local mac list item, and is as shown in table 3; A searches its local mac list item and far-end MAC address entries according to the target MAC (Media Access Control) address of these two layers of IPv6 messages, because still do not have respective record in local mac list item and the far-end MAC address entries this moment, therefore do not find corresponding MAC forwarding-table item, so, A floods to these two layers of IPv6 messages on all local ports of 10, here, because a1 and the same VLAN of a2, therefore A is transmitted to a2 (because the target MAC (Media Access Control) address of described two layers of IPv6 message is not the MAC Address of a2, so a2 does not respond described two layers of IPv6 message) with described two layers of IPv6 message by the port that is connected with a2; Simultaneously, A also is encapsulated into described two layers of IPv6 message in the net load zone of IPv4 message, and the IPv4 message after will encapsulating sends to the B and the C (the purpose IP address of the IPv4 message after the described encapsulation is the IP address of B or C, and protocol fields is carried described indication information in the header of the IPv4 message after described encapsulation) of its tunnel far-end respectively.
MAC Address VLAN ID Local port Age
[0075]
0000-0000-00A 1 10 G1/1/1 300s
Table 3
IPv4 message after the described encapsulation is routed to B and C in the IPv4 network.After B receives IPv4 message after the described encapsulation, the indication information that carries according to its header is judged it and is carried two layers of IPv6 message, therefore deblocking takes on described two layers of IPv6 message, and the source MAC in described two layers of IPv6 message, corresponding tunnel information (the IP address 1.1.1.1 of tunnel far-end A) and vlan information learnt in the far-end MAC address entries of B, as shown in table 4; Simultaneously, B searches its local mac list item according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if this moment, the local mac list item of B did not still have respective record, then according to the vlan information of described two layers of IPv6 message, be on all local ports of 10 these two layers of IPv6 messages to be flooded at VLAN ID, thereby b1, b2 can receive described two layers of IPv6 message.On the C to the processing of the IPv4 message after the described encapsulation also similarly, c1, c2 also can receive described two layers of IPv6 message, repeat no more.
MAC VLAN ID The tunnel Age
0000-0000-00A 1 10 (1.1.1.1 far-end IP address) 300s
Table 4
By above process, two layers of IPv6 message of the transparent transmission first time in the IPv4 network have been realized.After said process, if b1 need respond described two layers of IPv6 message, b1 sends two layers of IPv6 response message, the source MAC (being the MAC Address of a1) that described two layers of IPv6 response message purpose MAC are described two layers of IPv6 messages.B is after receiving two layers of IPv6 response message that b1 sends, search local mac list item and far-end MAC address entries, discovery has the IP address (the IP address 1.1.1.1 of A) of the tunnel far-end of corresponding MAC Address and this MAC Address correspondence in far-end MAC address entries (table 4), so B encapsulates described two layers of IPv6 response message in the IPv4 response message, the purpose IP address of described IPv4 response message is the IP address of A, then the clean culture of described IPv4 response message is sent to A; A receives after the described IPv4 response equally by decapsulation, obtain two layers of IPv6 response message wherein, and search local mac list item (table 3) according to the target MAC (Media Access Control) address of these two layers of IPv6 response messages, this time can find corresponding MAC Address (MAC Address of a1), so, A transmits described two layers of IPv6 response message to a1 by this MAC Address corresponding port in this locality, thereby has realized that once more the IPv6 message passes through the IPv4 network.
Based on above-mentioned IPv6 tunnel communication method, present embodiment also provides a kind of IPv4 edge device, as shown in Figure 3, this IPv4 edge device 30 comprises: unit 31, IPv6 message receiving element 32, IPv4 packet sending unit 33, IPv4 message receiving element 34 and IPv6 message retransmission unit 35 are set up in the tunnel
Wherein, unit 31 is set up in the tunnel, is used to this IPv4 edge device 30 configuration of IP v6 tunnels.Here, configuration of IP v6 tunnel comprises the IP address information of configuration of IP v6 tunnel far-end.Here, unit 31 is set up in described tunnel can also be used for the IPv6 tunnel of collocation point to multiple spot, and the IP address information of preserving described all far-ends of point-to-multi-point tunnel.
Wherein, IPv6 message receiving element 32, be used to receive two layers of IPv6 message, two layers of IPv6 message that receive are encapsulated into IPv4 message, and be provided for indicating the indication information that is packaged with two layers of IPv6 message in this IPv4 message in the IPv4 message after encapsulation, wherein, described two layers of IPv6 message are the IPv6 message on the data link layer.Here, described IPv6 message receiving element 32 can also be further used for described two layers of IPv6 message are encapsulated in the net load zone of IPv4 message, and the predetermined value that protocol fields in the header of the IPv4 message after the described encapsulation is set is described indication information.
Wherein, IPv4 packet sending unit 33 is used for setting up according to described tunnel the IPv6 tunnel of unit 31 configuration, and the IPv4 message after the described encapsulation that described IPv6 message receiving element is obtained is sent to the tunnel far-end.Here, described IPv4 packet sending unit 33, be further used for setting up the IP address of the tunnel far-end of configuration of cells, the destination address of the IPv4 message after the described encapsulation is set, and transmit according to the IPv4 message of local routing table after with described encapsulation according to described tunnel.Set up unit 31 in described tunnel and disposed when putting multiple spot IPv6 tunnel, described IPv4 packet sending unit 33 also is further used for the IPv4 message after the described encapsulation is sent to all far-ends that a little arrive the IPv6 tunnel of multiple spot.
Wherein, IPv4 message receiving element 34 is used to receive the IPv4 message from the tunnel far-end, and according to whether carrying described indication information in the IPv4 message that receives, judge the IPv4 message after the described encapsulation and carry out decapsulation, obtain two layers of IPv6 message wherein.
Wherein, IPv6 message retransmission unit 35 is used for transmitting in this locality described two layers of IPv6 message that described IPv4 message receiving element 34 obtains.
Here, described IPv4 edge device 30 can further include far-end MAC address entries maintenance unit 36 and local mac list item maintenance unit 37.
Wherein, described far-end MAC address entries maintenance unit 36, be used for from the vlan information of tunnel far-end study MAC Address and this MAC correspondence, and the corresponding relation between the vlan information of record tunnel information, the MAC Address of acquiring from this tunnel far-end, this MAC Address correspondence.Described IPv4 packet sending unit 33, further according to the target MAC (Media Access Control) address of described two layers of IPv6 message, search described far-end MAC address entries maintenance unit 36, if wherein there is described target MAC (Media Access Control) address, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of described IPv4 edge device.
Wherein, local mac list item maintenance unit 37, be used for from the vlan information of local port study MAC Address and this MAC Address correspondence, and the corresponding relation the vlan information of record local port, the MAC Address of learning from this local port, this MAC Address correspondence.Described IPv6 message retransmission unit 35, be further used for searching described local mac list item maintenance unit 37 according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then described two layers of IPv6 message are transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
In sum, in the embodiment of the invention described IPv6 tunnel communication method and IPv6 edge device, two layers of IPv6 message that can transparent transmission comprise frame head need not the IPv4 edge device and support IPv4/IPv6 dual stack or MPLS technology, the communication that can realize passing through the IPv4 network.And the present invention can also realize the communication of point to multiple spot by set up the IPv6 tunnel of point to multiple spot between the IPv4 edge device.
Method, IPv6 tunnel communication method and the IPv6 edge device of setting up the IPv6 tunnel of the present invention, be not restricted to listed utilization in specification and the execution mode, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.

Claims (21)

1. method of setting up the IPv6 tunnel, be used between the IPv4 edge device, setting up the IPv6 tunnel, described IPv4 edge device is arranged on the edge of IPv4 network, be connected with the IPv4 network with the IPv6 network respectively, and connect by the IPv4 network between the IPv4 edge device, it is characterized in that, the IP address information of at least one far-end in this IPv6 tunnel of configuration on local IPv4 edge device, described IPv6 tunnel is used to transmit the IPv4 message that is packaged with two layers of IPv6 message, and carries in the described IPv4 message and be used to indicate the indication information that self is packaged with two layers of IPv6 message.
2. the method for claim 1 is characterized in that, described IPv6 tunnel arrives the IPv6 tunnel of multiple spot for point;
The IP address information of at least one far-end in this IPv6 tunnel of described configuration is: the IP address information of a plurality of far-ends of this end points of configuration on the IPv4 edge device of each end points in this IPv6 tunnel.
3. an IPv6 tunnel communication method in the IPv6 tunnel that is applied to set up according to claim 1, is characterized in that, may further comprise the steps:
A, after the IPv4 edge device receives two layers of IPv6 message, described two layers of IPv6 message are encapsulated in the IPv4 message, and the IPv4 message after will encapsulating is sent to its tunnel far-end, described two layers of IPv6 message are the IPv6 message on the data link layer, carry in the IPv4 message after the described encapsulation to be used to indicate the indication information that himself is packaged with two layers of IPv6 message;
B, the IPv4 edge device of tunnel far-end carries out decapsulation to the IPv4 message that includes described indication information that it receives, and transmits in this locality after obtaining described two layers of IPv6 message.
4. method as claimed in claim 3 is characterized in that,
In the described steps A, the IPv4 message after described will the encapsulation is sent to its tunnel far-end and is, the IP address of the destination address of the IPv4 message after the described encapsulation for its tunnel far-end is set, and transmits according to the IPv4 message of local routing table after with described encapsulation.
5. method as claimed in claim 4 is characterized in that, described IPv6 tunnel arrives the IPv6 tunnel of multiple spot for point; In the described steps A, the IPv4 message after described will the encapsulation is sent to its tunnel far-end and is, the IPv4 message after the described encapsulation is sent to all far-ends that it puts the IPv6 tunnel of multiple spot.
6. method as claimed in claim 3 is characterized in that, in the described steps A, described IPv4 edge device receives two layers of IPv6 message and is, according to the type field of the frame head that receives two layer message, judges whether this two layer message is two layers of IPv6 message.
7. method as claimed in claim 3 is characterized in that, in the described steps A, describedly encapsulates two layers of IPv6 message into that the IPv4 message is, described two layers of IPv6 message is encapsulated in the net load zone of IPv4 message.
8. method as claimed in claim 3 is characterized in that, in the described steps A, described indication information is a predetermined value of protocol fields in the header of the IPv4 message after the described encapsulation.
9. method as claimed in claim 3 is characterized in that, among the described step B, describedly transmits described two layers of IPv6 message in this locality and is: in this locality described two layers of IPv6 message are flooded.
10. method as claimed in claim 3, it is characterized in that, in the described steps A, when described two layers of IPv6 message surpass predetermined length, the IPv4 edge device further carries out burst to described two layers of IPv6 message, encapsulates into the fragment of described two layers of IPv6 message of obtaining in the IPv4 message respectively and is sent to its tunnel far-end;
Among the described step B, the IPv4 edge device of tunnel far-end is further recombinated to the fragment of two layers of IPv6 message obtaining the IPv4 message after described encapsulation, obtains described two layers of IPv6 message.
11. method as claimed in claim 3, it is characterized in that, the IPv4 edge device is from the vlan information of its tunnel far-end study MAC Address and this MAC correspondence, and the maintenance of far end MAC address entries, the corresponding relation between the MAC Address that comprises tunnel information in the described far-end MAC address entries, acquires from this tunnel far-end, the vlan information of this MAC Address correspondence;
In the described steps A, after the IPv4 edge device receives two layers of IPv6 message, further search the far-end MAC address entries that it is safeguarded according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of described IPv4 edge device.
12. method as claimed in claim 3, it is characterized in that, the IPv4 edge device is from the vlan information of local port study MAC Address and this MAC Address correspondence, and safeguard the local mac list item, the corresponding relation the MAC Address that comprises local port in the described local mac list item, learns from this local port, the vlan information of this MAC Address correspondence;
Among the described step B, describedly transmit described two layers of IPv6 message in this locality and comprise:
The IPv4 edge device of tunnel far-end is searched the local mac list item that it is safeguarded according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then described two layers of IPv6 message are transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
13. an IPv4 edge device is characterized in that, comprising:
The unit is set up in the tunnel, be used to dispose and preserve the IP address information of at least one far-end in IPv6 tunnel under this IPv4 edge device, described IPv6 tunnel is used to transmit the IPv4 message that is packaged with two layers of IPv6 message, and carries in the described IPv4 message and be used to indicate the indication information that self is packaged with two layers of IPv6 message.
14. equipment as claimed in claim 13 is characterized in that, the IP address information that the unit is further used for disposing and preserve a plurality of far-ends in the IPv6 tunnel of putting multiple spot under this IPv4 edge device is set up in described tunnel.
15. equipment as claimed in claim 13 is characterized in that, it is characterized in that also comprising:
IPv6 message receiving element, be used to receive two layers of IPv6 message, two layers of IPv6 message that receive are encapsulated into IPv4 message, and be provided for indicating the indication information that is packaged with two layers of IPv6 message in this IPv4 message in the IPv4 message after encapsulation, wherein, described two layers of IPv6 message are the IPv6 message on the data link layer;
The IPv4 packet sending unit is used for setting up according to described tunnel the IPv6 tunnel of configuration of cells, and the IPv4 message after the described encapsulation that described IPv6 message receiving element is obtained is sent to the tunnel far-end.
16. equipment as claimed in claim 15, it is characterized in that, described IPv6 message receiving element, be further used for described two layers of IPv6 message are encapsulated in the net load zone of IPv4 message, and the predetermined value that protocol fields in the header of the IPv4 message after the described encapsulation is set is described indication information.
17. equipment as claimed in claim 15 is characterized in that,
Described IPv4 packet sending unit is further used for setting up according to described tunnel the IP address of the tunnel far-end of configuration of cells, and the destination address of the IPv4 message after the described encapsulation is set, and transmits according to the IPv4 message of local routing table after with described encapsulation.
18. equipment as claimed in claim 15 is characterized in that, the IP address information that the unit further disposed and preserved a plurality of far-ends in the IPv6 tunnel of putting multiple spot under this IPv4 edge device is set up in described tunnel; Described IPv4 packet sending unit is further used for the IPv4 message after the described encapsulation is sent to all far-ends that a little arrive the IPv6 tunnel of multiple spot.
19. equipment as claimed in claim 15 is characterized in that also comprising:
IPv4 message receiving element is used to receive the IPv4 message from the tunnel far-end, and according to whether carrying described indication information in the IPv4 message that receives, and judges the IPv4 message after the described encapsulation and carries out decapsulation, obtains two layers of IPv6 message wherein;
IPv6 message retransmission unit is used for transmitting in this locality described two layers of IPv6 message that described IPv4 message receiving element obtains.
20. equipment as claimed in claim 19, it is characterized in that also comprising far-end MAC address entries maintenance unit, be used for from the vlan information of tunnel far-end study MAC Address and this MAC correspondence, and the corresponding relation between the vlan information of record tunnel information, the MAC Address of acquiring from this tunnel far-end, this MAC Address correspondence;
Described IPv4 packet sending unit, further according to the target MAC (Media Access Control) address of described two layers of IPv6 message, search described far-end MAC address entries maintenance unit,, then the IPv4 message after the described encapsulation is sent to the tunnel far-end of described target MAC (Media Access Control) address correspondence if wherein there is described target MAC (Media Access Control) address; Otherwise, the IPv4 message after the described encapsulation is sent to all tunnel far-ends of described IPv4 edge device.
21. as claim 19 or 20 described equipment, it is characterized in that also comprising local mac list item maintenance unit, be used for from the vlan information of local port study MAC Address and this MAC Address correspondence, and the corresponding relation the vlan information of record local port, the MAC Address of learning from this local port, this MAC Address correspondence;
Described IPv6 message retransmission unit, be further used for searching described local mac list item maintenance unit according to the target MAC (Media Access Control) address of described two layers of IPv6 message, if wherein there is described target MAC (Media Access Control) address, then described two layers of IPv6 message are transmitted by the local port of described target MAC (Media Access Control) address correspondence; Otherwise,, on all local ports of this VLAN correspondence, described two layers of IPv6 message are flooded according to the vlan information of described two layers of IPv6 message.
CN2007101198876A 2007-08-02 2007-08-02 Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices Active CN101094155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101198876A CN101094155B (en) 2007-08-02 2007-08-02 Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101198876A CN101094155B (en) 2007-08-02 2007-08-02 Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices

Publications (2)

Publication Number Publication Date
CN101094155A CN101094155A (en) 2007-12-26
CN101094155B true CN101094155B (en) 2010-11-03

Family

ID=38992195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101198876A Active CN101094155B (en) 2007-08-02 2007-08-02 Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices

Country Status (1)

Country Link
CN (1) CN101094155B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741926B (en) * 2009-12-16 2012-12-19 中兴通讯股份有限公司 Method for realizing intra site automatic tunnel addressing protocol and device thereof
CN102143241B (en) * 2010-07-30 2014-07-09 华为技术有限公司 Access method, device and system between hosts
CN102368724A (en) * 2011-09-08 2012-03-07 华为技术有限公司 Message forwarding method and apparatus thereof
CN102916881B (en) * 2012-06-29 2015-09-02 杭州华三通信技术有限公司 Message transmitting method and routing device
CN102801819B (en) * 2012-07-17 2016-04-20 杭州华三通信技术有限公司 A kind of method of transparent transmission IPv6 address in network access control system
CN102904814B (en) * 2012-10-19 2015-09-16 福建星网锐捷网络有限公司 Data transmission method, source PE, object PE and data transmission system
CN102946353A (en) * 2012-11-08 2013-02-27 中兴通讯股份有限公司 Virtual private local area network service network message forwarding method and edge device
CN103841023B (en) * 2012-11-22 2017-03-08 华为技术有限公司 The method and apparatus of data forwarding
CN103889019A (en) * 2012-12-20 2014-06-25 联想(北京)有限公司 Method and device for sending data
WO2015003379A1 (en) * 2013-07-12 2015-01-15 华为技术有限公司 Data communication method, device and system
CN103533100B (en) * 2013-10-15 2016-09-21 中国联合网络通信集团有限公司 Message transmitting method and node device
CN109600326B (en) * 2018-12-24 2021-11-19 华为技术有限公司 Method, node and system for forwarding data or message
CN112787923A (en) * 2019-11-07 2021-05-11 华为技术有限公司 Message processing method, device and system
CN114070817A (en) * 2020-07-29 2022-02-18 小鱼视讯(北京)科技有限公司 IPv4 and IPv6 bidirectional translation method and device applied to SDN network Overlay layer

Also Published As

Publication number Publication date
CN101094155A (en) 2007-12-26

Similar Documents

Publication Publication Date Title
CN101094155B (en) Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices
CN102413061B (en) Message transmission method and equipment
CN102868614B (en) Message forwarding method in TRILL network and route-bridge
CN103841023B (en) The method and apparatus of data forwarding
US9525563B2 (en) Forwarding packets in an edge device
CN101674249B (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN101588293B (en) Full IP communication interconnection system of Ad Hoc network and IPv6 network
CN101719877B (en) Message forwarding device, network equipment and method
EP2100406B1 (en) Method and apparatus for implementing multicast routing
CN101877671B (en) Sending method of mirror image message, switch chip and Ethernet router
CN103685006A (en) Packet forwarding method for edge device and edge device
CN103179228A (en) Internet protocol address analysis method and edge node
JP6722816B2 (en) Packet transfer
JPWO2006093299A1 (en) Tunneling device, tunnel frame sorting method used therefor, and program therefor
CN105812259A (en) Packet forwarding method and device
CN102724118A (en) Label distribution method and device
RU2007109068A (en) WAYS AND DEVICES FOR SUPPORTING VPN WITH MOBILITY MANAGEMENT
CN102316028A (en) Method and apparatus for sending internet protocol packet
CN105490957A (en) Load sharing method and device
CN102413060A (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN101141385B (en) Mobile ethernet foreign agent, home agent, mobile node, system and data transmission method
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN107547340A (en) A kind of message forwarding method and device
CN102882781A (en) Method, route bridge and system for transmitting message
CN103780470A (en) IS-IS information synchronization method and device

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
TR01 Transfer of patent right

Effective date of registration: 20200604

Address after: American Texas

Patentee after: HEWLETT-PACKARD DEVELOPMENT Co.,L.P.

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

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right