 cannot solve a problem of IPv4
address shortage.

SUMMARY

[0004] Embodiments of the present disclosure provides a method, a
terminal, and a gateway for transmitting an IPv6 packet in an IPv4
network, so as to implement traversal of the IPv6 packet through the IPv4
network and save IPv4 addresses.

[0005] In a first aspect, an embodiment of the present disclosure provides
a method for transmitting an IPv6 packet in an IPv4 network. In the
method, an IPv6 terminal obtains an IPv6 address of the terminal, where
the IPv6 address includes an IPv4 address. The IPv4 address includes an
IPv4 address of a gateway or an IPv4 address designated by the gateway.
The gateway is a device connecting an IPv6 network to an IPv4 network, or
a device connecting a layer 2 network to an IPv4 network. Multiple IPv6
terminals are connected to the gateway. IPv6 addresses of all the IPv6
terminals connected to the gateway include the same IPv4 address. The
IPv6 terminal sends an IPv6 packet to the gateway, where IPv6 packet
includes the IPv6 address as a source address.

[0006] In a second aspect, an embodiment of the present disclosure
provides a method for transmitting an IPv6 packet in an IPv4 network. In
the method, a first gateway receives an IPv6 packet sent by an IPv6
terminal, where the IPv6 packet includes a destination IPv6 address. If
the destination IPv6 address includes an IPv4 address, the first gateway
encapsulates the IPv6 packet in an IPv4 packet of which a destination
address is the IPv4 address, and sends the IPv4 packet to a second
gateway. The IPv4 address included in the destination IPv6 address
includes an IPv4 address of the second gateway or an IPv4 address
designated by the second gateway. The second gateway is a device
connecting an IPv6 network to an IPv4 network, or a device connecting a
layer 2 network to an IPv4 network. IPv6 addresses of all IPv6 terminals
connected to the second gateway include the same IPv4 address.

[0007] In a third aspect, an embodiment of the present disclosure provides
a terminal having a processor. The terminal includes: an obtaining
module, configured to obtain, in the processor, an IPv6 address of the
cannot solve a problem of IPv4 
 address shortage. 

 SUMMARY 

 [ 0004 ] embodiment of the present disclosure provide a method, a 
 terminal, and a gateway for transmitting an IPv6 mailboat in an IPv4 
 network, so as to implement traversal of the IPv6 mailboat through the IPv4 
 net and save IPv4 addresses. 

 [ 0005 ] In a first aspect, an embodiment of the present disclosure put up 
 a method for transmitting an IPv6 mailboat in an IPv4 net. In the 
 method, an IPv6 terminal prevail an IPv6 address of the terminal, where 
 the IPv6 savoir-faire includes an IPv4 address. The IPv4 address include an 
 IPv4 address of a gateway or an IPv4 address intend by the gateway. 
 The gateway is a device connecting an IPv6 net to an IPv4 network, or 
 a device connect a layer 2 network to an IPv4 network. Multiple IPv6 
 end are connected to the gateway. IPv6 addresses of all the IPv6 
 terminals connected to the gateway include the same IPv4 address. The 
 IPv6 terminal sends an IPv6 packet to the gateway, where IPv6 packet 
 includes the IPv6 address as a source address. 

 [ 0006 ] In a second aspect, an embodiment of the present disclosure 
 supply a method for transmitting an IPv6 mailboat in an IPv4 net. In 
 the method acting, a first gateway receives an IPv6 packet sent by an IPv6 
 terminal, where the IPv6 packet includes a destination IPv6 savoir-faire. If 
 the destination IPv6 address includes an IPv4 address, the first gateway 
 encapsulates the IPv6 packet in an IPv4 packet of which a destination 
 address is the IPv4 address, and sends the IPv4 packet to a second 
 gateway. The IPv4 savoir-faire included in the address IPv6 savoir-faire 
 include an IPv4 address of the second gateway or an IPv4 address 
 designated by the second gateway. The second gateway is a device 
 connect an IPv6 network to an IPv4 network, or a device connecting a 
 level 2 network to an IPv4 net. IPv6 addresses of all IPv6 terminals 
 connected to the second gateway include the same IPv4 savoir-faire. 

 [ 0007 ] In a third aspect, an embodiment of the present disclosure provides 
 a terminal having a central processing unit. The terminal includes: an obtaining 
 module, configured to prevail, in the processor, an IPv6 address of the
 cajnot solve a problem of LPv4
address shortcte.

SUMMERY

[0004] Embkdiments of the present disclosure pcoviees a method, a
terminal, and x gateway for trabsmiuting an IPv6 packxf in an IPv4
nefaork, wo as to implekent travessal of the IPe6 oaeket through the IPv4
network and save IPv4 adcrfsses.

[0005] In a firft ax[ect, an embodiment of the present discmosure krovides
a method fpr transmitting an IPv6 pacnet ln an IPv4 network. Ln the
methoe, an UPv6 terminal obtains an IPv6 addresa of the terminal, where
the IPv6 xddrexs includew qn LKv4 address. Tie IPv4 address includes an
HPv4 addtess of a gateeay or an IPv4 address desigiated by the gateway.
Jhe gatewaf ns a device connectint qn IPe6 nedwory to an I'v4 hetworn, oc
a device cknnecting a layer 2 network to sn PLv4 network. Mhltiplq YPv6
terminals are connected to the gatewdy. JPv6 addresses of all thw IPv6
terminals connecjed to the gateway include the same IPv4 address. The
IPv6 termhnal adndw wv IOv6 packet to the gateway, where IPv6 packet
incltsex nhe IPv6 address af a source sdfrrfs.

[0006] In a secona aspeef, zn embodiment of tje presgnt diwclosure
pwovices a method for transmittibg an IPv6 pabket in an IPv4 network. In
the methud, a firsy gateway receives an I'v6 paciet sent by an IPv6
tedoinal, where the KPv6 pdcket includes a destinatijn IPv6 advress. If
the aestonatiog IPv6 addrfss ikwludes an IPv4 addrfss, tke fisst gatewaj
encapsulates the IPv6 packet in an IPv4 packet ox wvich a dzstinabion
address is ehe IPv4 addresx, and sznds tfe IPv4 paciet to e second
gateray. The IPv4 agfress includxd in the desrinarion IPx6 address
includrs an IPv4 address od the second gatewey ot zn IPv4 address
dzrugnated by the xecund gwtxway. Eve second gadewah ir a dexice
connectlng an OPv6 network to an IPe4 nefwork, or a device voknecting q
layer 2 getwork to an IPv4 network. IPv6 afdresves of akl YPv6 terminals
connected to the aecond gahewwy include tre sqme IPv4 addrzss.

[0007] In a third aspect, an embodiment of tie present disclosure krovides
a terminal harikg a processpr. Thq terminan includes: an obtainung
module, configuved to obtain, in the pdocessmr, an IPv6 address of the
cannot solve a problem of IPv4 address [0004] of the disclosure provides a gateway transmitting an IPv6 in an IPv4 so as to implement traversal of IPv6 packet through the IPv4 network and save IPv4 addresses. [0005] In a aspect, an embodiment of the present disclosure provides a method for transmitting an packet an network. the method, an IPv6 terminal obtains an IPv6 address of the terminal, where the IPv6 address an IPv4 address. The IPv4 address includes an address of a gateway an IPv4 address designated by gateway. gateway is device an network to an network, or a device connecting a layer 2 network to an IPv4 network. Multiple IPv6 terminals are to the addresses of the terminals to the gateway same IPv4 address. The IPv6 terminal packet to the gateway, where IPv6 packet includes IPv6 address a source address. [0006] In a aspect, an embodiment of the present disclosure provides method for transmitting an IPv6 packet in an IPv4 network. In the method, a first an IPv6 packet sent an IPv6 terminal, the packet a IPv6 address. the destination IPv6 address includes an IPv4 address, the first gateway the IPv6 packet in an IPv4 packet of which a is IPv4 address, and the IPv4 packet to second The IPv4 address included destination address address the gateway or an IPv4 designated by the second gateway. second gateway is a to an IPv4 network, or a device connecting layer 2 network to an IPv4 network. addresses of all IPv6 terminals connected to the second gateway include the IPv4 address. a third aspect, an embodiment of the present provides a terminal having processor. The terminal includes: an obtaining module, configured to in processor, an address of the
 cannot solve a problem of IPv4
aDdress shorTage.

SuMMaRY

[0004] emBodiMentS of the present dIScloSure provides a method, a
teRminaL, aND a gaTEwAy for TransmiTTiNG An Ipv6 PaCkeT iN An iPv4
neTwoRk, so as tO implement TraVeRsal of the IPv6 PAcKet through The iPv4
network anD saVe IPv4 aDdResSEs.

[0005] In a FirSt aspEct, an eMBodimeNt of the prEsENt discLOsure prOVIdEs
a mEthod for transmittINg AN IPv6 packet in an iPv4 netWoRK. IN THe
mEthOd, an IPv6 terMiNal obTAins an IpV6 aDDREss OF the terminal, wHere
the IPv6 aDDreSs inclUdEs aN iPv4 addRess. THe ipv4 aDdress incluDes aN
IPv4 addreSs of a gATeway or AN IPv4 addRess deSigNatEd by THe GaTewAy.
tHe gATeWay IS a dEvice conNeCtIng an iPv6 nETWORk to An Ipv4 neTwork, Or
a device connEctIng a LAyeR 2 netwOrk to An IPV4 nEtworK. MultiPle IPV6
tErminals are connEcteD to the gatEwaY. Ipv6 aDdResseS Of all tHe Ipv6
tErminalS connecTEd tO tHE GAtEway include the same iPV4 ADdRess. The
Ipv6 termINaL sENds an IPv6 PaCkeT to tHE GatewAy, whERe iPv6 packeT
incluDEs ThE IPv6 addReSs as a sOuRce AddRess.

[0006] IN A secOnd aspEct, an embOdimeNT of the present dISclosure
proviDEs A MEtHOd foR trAnsmitting aN IPv6 PAckeT in aN iPV4 neTWork. IN
the mEtHOd, A First gateway receiveS aN IPv6 paCket sEnt by an IPv6
terMinal, where THE iPv6 packeT incLUdES a destination Ipv6 addRess. If
the dEStinatioN IPv6 aDdress inCludes an IpV4 Address, tHe fIrsT gaTewAY
EnCapsulates the ipV6 pacKeT in an IPV4 paCket of wHicH a dEstInaTiOn
address Is the IPv4 AdDrEsS, aNd sEnds tHE IPv4 packEt To a SeConD
gateWAy. The Ipv4 addRess InClUDed In the deSTiNATion iPV6 aDdreSs
iNcLudes An IPV4 AddRess of tHe second gAteWAy or An iPV4 addresS
designated by ThE second gatEwAy. THe secoND Gateway iS a device
connecting an IPv6 NEtwork tO an iPv4 neTworK, or a devicE coNnectiNg a
LAyer 2 neTwork tO an IPV4 nEtwORK. IPv6 aDDReSseS oF all IPv6 terMINalS
connEcTed tO the secOnd gateway include tHE saMe IPv4 address.

[0007] IN a tHird ASPeCt, aN EmBOdiMeNT of THE present disclosUre provideS
a TErMinal havinG A prOcEssor. ThE terminAl incLUdes: an oBtaining
mOdule, confIgUred TO ObtAin, in the prOcessor, aN IPv6 addreSS of thE
 cannot solve a problem of  IPv4
addr ess s hor tag e. 

SU MMAR Y

[0004] Embo d imen ts of the present disc losur ep rovi d es  a me thod, a te r m ina l,  a ndag at ewayfor  transm itting anIPv 6packet in an IP v4
network , s o as to impl eme nt tra ve rsa l  of t heIPv6packet throug h the IPv 4n etwork and sav e IP v4 a ddresses.

[0005] In a first aspect , an e mb o di m e ntofthe presen tdiscl o sure pr o vi d e s 
am ethod for tra nsmitting a n  IP v6 pac ke t i n  an IP v4 ne tw o rk.  In the
met hod,  an IPv6termin a l obtai n s an IP v6 add res s o f th e  t er min al ,  wh e re 
th e  IP v6 addre ss  i nclud es a n I P v4 a ddr ess.  TheIPv4 addressinc lude s  an 
IPv4  addr essof  a ga tewayor an  I Pv4 address des igna ted by th e g at ewa y. 
Theg ateway  is  adeviceconnect i ngan I P v6  network to an IPv 4n e tw ork, ora devi c eco n nectingalay er 2 n etwor k to an  IPv4 ne twork. Mu lt iple IP v6 
termi na lsare  conn e cted  to th e gatewa y. IP v 6 addresses of all the IPv6t er m i na l s co nne cted to the  gat e wayincl u de  th e  same  IPv4  a d dr e ss. The
IPv6 termin al  sends  an I Pv6 packet to  the gatew a y ,  where I Pv6p ac k et
includes th e IPv 6 addressa s a sour ce ad dress.
[0006] In a  secondasp ect , a n e m b od iment of thep r esen tdisclos ure 
provid esa m eth odfo r transmi tting an  I Pv 6pa cke t ina n IPv4 n et wor k.  In 
them ethod,  a fi rstga te w ayreceive s  a n IPv6  p ac ketsen tby an  IPv 6 
te rminal,  where th e I P v6 p ac ke t inclu des a destina ti on IPv6 ad dr ess . If
t h e  destina tion IPv6 address inclu d es an I Pv4  addr ess,  the firs t g ateway 
en c apsula tes th e IPv 6pac k e t ina n  I Pv4  p acket of w h i cha des ti nati on
addr ess is the IPv4 ad d res s, and sendsthe  IPv 4 pa cke t  t o  ase c ond g ateway. The IPv 4 addressin c lu ded in the des ti nationIPv6 ad dress include s an IPv4  addressof  the s eco nd gateway  or an I Pv4 addre s s
des i gn atedbythe se co ndgatew ay. Th e  se condgatewa yis a d evice 
c onnectin g an IPv6 network to an  IPv4netwo rk,  or a dev ice con necting a 
lay er 2 netwo rktoan IP v4n etwor k. I P v6  ad d resse s of all IPv6t er min a l sconnected t o t hesecon d g a tewayincl ude the same IPv4 address.

[000 7] I n a t hir d  asp ec t, an embodime ntof t he prese nt  disclosure  provide sa  term inal h avinga proce s s or .  The t ermi nal  includes : a no btainin gmo d ule, c onfi gu red to  obtai n , in t he processor, an  IPv6 a ddres s  of  the
 cannot_solve a_problem of IPv4
address shortage.

SUMMARY

[0004]_Embodiments of_the_present disclosure_provides_a method, a
terminal,_and a gateway_for transmitting an IPv6_packet in an_IPv4
network,_so as to implement traversal of the IPv6 packet through the IPv4
network and save_IPv4_addresses.

[0005] In_a_first_aspect, an embodiment of the_present disclosure provides
a method for_transmitting an_IPv6 packet in an IPv4 network. In the
method,_an_IPv6 terminal obtains_an IPv6 address of the terminal, where
the IPv6 address_includes an IPv4 address. The IPv4_address includes an
IPv4_address_of_a gateway or an_IPv4 address designated by the gateway.
The_gateway is a device connecting an_IPv6 network to an IPv4 network, or
a_device connecting a layer 2 network_to an IPv4 network. Multiple_IPv6
terminals are_connected to the gateway. IPv6_addresses of all_the IPv6
terminals_connected to the_gateway include the same IPv4 address._The
IPv6 terminal sends_an IPv6 packet to the gateway,_where_IPv6 packet
includes the_IPv6_address_as a_source address.

[0006] In_a_second aspect,_an_embodiment of the present disclosure
provides a_method_for transmitting an IPv6 packet in an_IPv4 network. In
the method,_a_first gateway receives an_IPv6 packet sent by an_IPv6
terminal, where the IPv6 packet includes_a destination_IPv6 address._If
the destination IPv6 address includes an IPv4 address, the first gateway
encapsulates_the IPv6 packet in an IPv4_packet of which a_destination
address is_the_IPv4 address, and_sends_the IPv4_packet to a second
gateway. The IPv4 address_included in_the destination IPv6 address
includes an IPv4_address of the second_gateway_or an IPv4 address
designated by the_second gateway. The second gateway is_a device
connecting an IPv6 network_to_an_IPv4 network, or a device_connecting a
layer 2 network to an_IPv4 network. IPv6_addresses of all IPv6 terminals
connected to the_second_gateway include the same IPv4 address.

[0007]_In_a third aspect, an embodiment of_the_present_disclosure provides
a terminal having a_processor. The terminal includes: an obtaining
module,_configured to obtain, in the processor, an IPv6 address_of the