CN107580079A - A kind of message transmitting method and device - Google Patents
A kind of message transmitting method and device Download PDFInfo
- Publication number
- CN107580079A CN107580079A CN201710770629.8A CN201710770629A CN107580079A CN 107580079 A CN107580079 A CN 107580079A CN 201710770629 A CN201710770629 A CN 201710770629A CN 107580079 A CN107580079 A CN 107580079A
- Authority
- CN
- China
- Prior art keywords
- message
- ipv6 addresses
- address
- gateway
- gateway device
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application, which provides a kind of message transmitting method and device, this method, to be included:Data message to be sent is obtained, and determines the purpose IPv6 addresses of the data message;The first message for carrying the purpose IPv6 addresses is sent, the first message is used to make gateway device when it is determined that the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, responds the second message;The second message that the gateway device is sent is received, and the prefix network segment, the gateway address of the gateway device of the direct-connected carrier network distribution of the gateway device are parsed from second message;IPv6 addresses corresponding to the prefix network segment, and the IPv6 addresses that the source IP v6 addresses of the data message are arranged to obtain are obtained, and amended data message is sent according to the gateway address.By the technical scheme of the application, the resource of gateway device can be saved, mitigates the burden of gateway device, lifts the process performance of gateway device, improves the speed of terminal device access operator network.
Description
Technical field
The application is related to communication technical field, more particularly to a kind of message transmitting method and device.
Background technology
Enterprise customer or campus network users can access two carrier networks when accessing Internet, the two
Carrier network backups each other, and when a carrier network breaks down, can also access another carrier network.And
And carrier network can configure URPF (Unicast Reverse Path Forwarding, reversal path of unicast forwarding),
For preventing source address spoofing attack and distributed denial of service attack.Based on this, during terminal device access operator network, need
The address realm that use this carrier network to distribute.
Terminal device is by gateway device A access carrier network As, during by gateway device B access carrier network Bs,
Terminal device needs to use the server of the address realm access operator network A of carrier network A distribution, it is necessary to using operation
The server of the address realm access operator network B of business's network B distribution.
In order to realize above-mentioned function, then NAT (Network Address Translation, network are configured in gateway device
Address conversion) function.For example, gateway device A is configured with the address realm A of carrier network A distribution, gateway device A is being received
After the message sent to terminal device, NAT processing is carried out to message, i.e., is converted to the private net address of message in address realm A
Public network address, and the message after conversion is sent to carrier network A, because the source address of message is in address realm A
Public network address, therefore carrier network A can correctly handle the message.In addition, gateway device B processing is with gateway device A's
Handle similar.
But gateway device to all messages carry out NAT processing when, the ample resources of gateway device can be consumed, and aggravate
The burden of gateway device, but also can reduce the speed of terminal device access operator network.
The content of the invention
The application provides a kind of message transmitting method, and applied to terminal device, the terminal device passes through different gateways
Equipment accesses different carrier networks, and methods described includes:
Data message to be sent is obtained, and determines the purpose IPv6 addresses of the data message;
The first message for carrying the purpose IPv6 addresses is sent, the first message is used to make gateway device it is determined that the mesh
IPv6 addresses when being the IPv6 addresses of the direct-connected carrier network of this gateway device, respond the second message;
The second message that the gateway device is sent is received, and it is straight from second message to parse the gateway device
The prefix network segment, the gateway address of the gateway device of carrier network distribution even;
IPv6 addresses corresponding to the prefix network segment are obtained, and the source IP v6 addresses of the data message are arranged to obtain
IPv6 addresses, and amended data message is sent according to the gateway address.
The application provides a kind of message transmitting method, and applied to gateway device, terminal device passes through different gateway devices
Different carrier networks is accessed, methods described includes:
First message of the purpose IPv6 addresses for the carrying data message that receiving terminal apparatus is sent;
If the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of the gateway device, to the terminal
Equipment the second message of transmission, the prefix network segment of the direct-connected carrier network distribution of the second message carrying gateway device,
And the gateway address of the gateway device;
Wherein, second message is used to make the terminal device that the source IP v6 addresses of the data message are arranged into institute
IPv6 addresses corresponding to the prefix network segment are stated, amended data message is sent according to the gateway address.
The application provides a kind of message transmitting device, and applied to terminal device, the terminal device passes through different gateways
Equipment accesses different carrier networks, and described device includes:
Acquisition module, for obtaining data message to be sent, and determine the purpose IPv6 addresses of data message;
Sending module, the first message of the purpose IPv6 addresses is carried for sending;Wherein, first message is used for
Make gateway device when it is determined that the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, to described
Terminal device responds the second message;
Receiving module, the second message sent for receiving the gateway device, and parse from the second message described
The prefix network segment, the gateway address of the gateway device of the direct-connected carrier network distribution of gateway device;
The acquisition module, is additionally operable to obtain IPv6 addresses corresponding to the prefix network segment, and by the data message
Source IP v6 addresses are arranged to the IPv6 addresses obtained;
The sending module, it is additionally operable to send amended data message according to the gateway address.
The application provides a kind of message transmitting device, and applied to gateway device, terminal device passes through different gateway devices
Different carrier networks is accessed, methods described includes:
Receiving module, the first message of the purpose IPv6 addresses of the carrying data message sent for receiving terminal apparatus;
Sending module, for when the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of the gateway device, then to
The terminal device sends the second message, before second message carries the direct-connected carrier network distribution of the gateway device
Sew the gateway address of the network segment and the gateway device;
Wherein, second message is used to make the terminal device that the source IP v6 addresses of the data message are arranged into institute
IPv6 addresses corresponding to the prefix network segment are stated, amended data message is sent according to the gateway address.
Based on above-mentioned technical proposal, in the embodiment of the present application, in IPv6 dual-home networks, terminal device can use fortune
The IPv6 addresses sought in the address realm of business's network allocation, set the source IP v6 addresses of data message, and data message is sent
To gateway device.Gateway device is after data message is received, and without carrying out NAT processing to data message, i.e., need not incite somebody to action
The IPv6 addresses in the address realm of carrier network distribution are revised as in the source IP v6 addresses of data message, so as to save net
The resource of equipment is closed, mitigates the burden of gateway device, lifts the process performance of gateway device, terminal device is improved and accesses operation
The speed of business's network.
Brief description of the drawings
, below will be to the application in order to clearly illustrate the embodiment of the present application or technical scheme of the prior art
The required accompanying drawing used is briefly described in embodiment or description of the prior art, it should be apparent that, in describing below
Accompanying drawing is only some embodiments described in the application, for those of ordinary skill in the art, can also be according to this Shen
Please these accompanying drawings of embodiment obtain other accompanying drawings.
Fig. 1 is the application scenarios schematic diagram in a kind of embodiment of the application;
Fig. 2 is the flow chart of the message transmitting method in a kind of embodiment of the application;
Fig. 3 is the flow chart of the message transmitting method in the application another embodiment;
Fig. 4 is the structure chart of the message transmitting device in a kind of embodiment of the application;
Fig. 5 is the hardware structure diagram of the terminal device in a kind of embodiment of the application;
Fig. 6 is the structure chart of the message transmitting device in the application another embodiment;
Fig. 7 is the hardware structure diagram of the gateway device in a kind of embodiment of the application.
Embodiment
Purpose in the term that the embodiment of the present application uses merely for the sake of description specific embodiment, and this unrestricted Shen
Please." one kind " of singulative used in the application and claims, " described " and "the" are also intended to including more number forms
Formula, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to include one
Individual or multiple associated list items purposes any or all may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the embodiment of the present application
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example,
In the case where not departing from the application scope, the first information can also be referred to as the second information, and similarly, the second information can also
It is referred to as the first information.Depending on linguistic context, in addition, used word " if " can be construed to " ... when " or
" when ... " or " in response to determining ".
It is shown in Figure 1, it is the application scenarios schematic diagram of the embodiment of the present application, is said by taking two carrier networks as an example
Bright, in actual applications, the quantity of carrier network can be more, without limitation.In addition, the quantity of terminal device can be with
More, the handling process of each terminal device is identical, is subsequently illustrated by taking terminal device 101 as an example.Terminal device 101 passes through
The access carrier network 121 of gateway device 111, and the address realm access operator network distributed using carrier network 121
Server (such as server 131) in 121;Terminal device 101 is used by the access carrier network 122 of gateway device 112
The server (such as server 132) in address realm access operator network 122 that carrier network 122 distributes.
, can be in gateway in IPv4 (Internet Protocol Version 4, internet protocol version 4) network
Device configuration nat feature, when terminal device 101 accesses server 131, sent respectively to gateway device 111 and gateway device 112
Message, the source address of the message are the private net address of terminal device 101, and destination address is the address of server 131.Gateway device
112 after message is received, because destination address is not the address of the server of carrier network 122, therefore dropping packets.Gateway
Equipment 111 because destination address is the address of the server of carrier network 121, therefore is entered after the message is received to message
Row NAT processing.
For the process of " gateway device 111 carries out NAT processing to message ", operator can be configured in gateway device 111
The address realm (being illustrated by taking address realm 121 as an example) that network 121 distributes, the address realm 121 can include multiple public affairs
Net address.Gateway device 111 can select an idle public network address A out of this address realm 121, and by the source of message
Location (i.e. the private net address of terminal device 101) is converted to public network address A, and records the private net address of terminal device 101 with being somebody's turn to do
Public network address A corresponding relation, by public network address A labeled as busy, and the message after conversion is sent to operator's net
Network 121.
Equipment in carrier network 121 is after the message is received, because the source address of the message is address realm 121
Interior public network address, therefore the message can be correctly handled, and most the message is sent to server 131 at last.Server 131 to
When terminal device 101 sends the response message for the message, the destination address of the response message is public network address A.Gateway is set
Standby 111 after the response message is received, and is inquired about above-mentioned corresponding relation by public network address A, is obtained the private network of terminal device 101
Address, the destination address of the response message is converted to the private net address of terminal device 101, and the response message is sent to end
End equipment 101.
Obviously, by above-mentioned processing, nat feature can be not only realized, to solve the problems, such as that IPv4 address resources are limited, and
And the source address of message can also be converted to the address in address realm 121, so that carrier network 121 can be correct
Message is handled, avoids URPF inspection from the problems such as wrong occur.
, can also be in net in IPv6 (Internet Protocol Version 6, internet protocol version 6) network
Close the gateway device 112 of equipment 111/ and realize nat feature, change the source address of message so that the operator's net of carrier network 121/
Network 122 can correctly handle message, avoid URPF inspection from the problems such as wrong occur.Implementation and IPv4 in IPv6 networks
Implementation in network is similar, and it is no longer repeated herein.
, therefore, can be with when gateway device realizes nat feature due to the resource-constrained of IPv4 addresses in IPv4 networks
Save the resource of IPv4 addresses.In IPv6 networks, because the resource of IPv6 addresses is sufficient, therefore, even if not in gateway device
Nat feature is realized, the quantity of IPv6 addresses can also meet demand.
Based on this, a kind of message transmitting method is proposed in the embodiment of the present application, can apply in IPv6 dual-home networks,
I.e. terminal device accesses different carrier networks, and terminal device, gateway device, operator's net by different gateway devices
Network realizes message transmissions using IPv6 addresses.As shown in figure 1, terminal device 101, gateway device 111, gateway device 112, clothes
Business device 131, server 132 use IPv6 addresses.
Wherein, terminal device 101 does not have IPv6 addresses;The IPv6 addresses of gateway device 111 are FE80::2, this IPv6
Address FE80::2 are referred to as the gateway address of gateway device 111;The IPv6 addresses of gateway device 112 are FE80::3, this
Individual IPv6 addresses FE80::3 are referred to as the gateway address of gateway device 112;The IPv6 addresses of server 131 are 80::1,
And the IPv6 addresses of server 132 are 90::1.
Wherein, carrier network 121 can distribute the prefix network segment 10::, and by the prefix network segment 10::It is sent to gateway device
111, and the prefix net of carrier network 121 distribution direct-connected with this gateway device 111 can be locally stored in gateway device 111
Section 10::, the prefix network segment 10::The address realm that namely above-mentioned carrier network 121 distributes, as the source IP v6 of data message
Address belongs to the prefix network segment 10::When, each equipment in carrier network 121 just can normally handle the data message, and will
The data message is sent to server 131.
Wherein, carrier network 122 can distribute the prefix network segment 20::, and by the prefix network segment 20::It is sent to gateway device
112, and the prefix net of carrier network 122 distribution direct-connected with this gateway device 112 can be locally stored in gateway device 112
Section 20::, the prefix network segment 20::The address realm that namely above-mentioned carrier network 122 distributes, as the source IP v6 of data message
Address belongs to the prefix network segment 20::When, each equipment in carrier network 122 just can normally handle the data message, and will
The data message is sent to server 132.
In summary, gateway device 111 can get the prefix network segment 10 from carrier network 121::, and record prefix
The network segment 10::With the corresponding relation of carrier network 121.Gateway device 112 can get prefix net from carrier network 122
Section 20::, and record the prefix network segment 20::With the corresponding relation of carrier network 122.
It is shown in Figure 2 under above-mentioned application scenarios, it is the flow of the message transmitting method proposed in the embodiment of the present application
Figure, the message transmitting method can apply to terminal device, and this method can include:
Step 201, data message to be sent is obtained, and determines the purpose IPv6 addresses of the data message.
For example, when terminal device 101 needs to access server 131, terminal device 101 can get number to be sent
According to message, the purpose IPv6 addresses of the data message are the IPv6 addresses 80 of server 131::1.
In one example, it is determined that behind the purpose IPv6 addresses of the data message, it can be determined that whether this terminal device
It has recorded source IP v6 addresses corresponding with purpose IPv6 addresses and gateway address.If it is, the source IP v6 by the data message
Address is arranged to source IP v6 addresses corresponding with purpose IPv6 addresses, according to gateway address corresponding with purpose IPv6 addresses
Send amended data message.If not, perform step 202.
For example, when terminal device 101 accesses server 131 first, the purpose IPv6 addresses of data message are server
131 IPv6 addresses 80::1, and this terminal device 101 is currently without record and purpose IPv6 addresses 80::Source corresponding to 1
IPv6 addresses and gateway address, perform step 202.When terminal device 101 is not to access server 131 first, data message
Purpose IPv6 addresses be server 131 IPv6 addresses 80::1, and the current recorded and purpose of this terminal device 101
IPv6 addresses 80::Source IP v6 addresses and gateway address corresponding to 1, will be to the transmission process of this recording process and data message
Introduced in subsequent process.
Step 202, the first message for carrying purpose IPv6 addresses is sent, first message is used to make gateway device true
When fixed purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, the second message is responded, it is determined that should
When purpose IPv6 addresses are not the IPv6 addresses of the direct-connected carrier network of this gateway device, refusal responds the second message.Wherein, should
Second message can carry gateway device it is direct-connected carrier network distribution the prefix network segment, gateway device gateway address (i.e.
IPv6 addresses), purpose IPv6 addresses.
In one example, first message can include but is not limited to RS (Router Solicitation, route please
Ask) message, the RS messages can include source address selection request option (such as SASR options), and option is asked in source address selection
For carrying purpose IPv6 addresses.Second message can include but is not limited to RA (Router Advertisement, route
Notice) message, the RA messages can include source address selection announced options (such as SASA options), and choosing is noticed in source address selection
Item is used for the prefix network segment, the gateway address of gateway device, the purpose for carrying the direct-connected carrier network distribution of gateway device
IPv6 addresses.
For example, terminal device 101 is sent respectively to gateway device 111 and gateway device 112 carries purpose IPv6 addresses
80::First message of 1 (i.e. the IPv6 addresses of server 131).Gateway device 111 is after first message is received, due to mesh
IPv6 addresses 80::1 is the IPv6 addresses of the direct-connected carrier network 121 of this gateway device 111, and therefore, gateway device 111 can
To respond the second message to terminal device 101, second message can carry the carrier network direct-connected with this gateway device 111
The prefix network segment 10 of 121 distribution::, gateway device 111 gateway address FE80::2nd, purpose IPv6 addresses 80::1.Gateway is set
Standby 112 after first message is received, due to purpose IPv6 addresses 80::1 is not the direct-connected operator's net of this gateway device 112
The IPv6 addresses of network 122, therefore, gateway device 112 can refuse to respond the second message, terminate flow.
Step 203, the second message that gateway device is sent is received, and it is direct-connected from second message to parse gateway device
Carrier network distribution the prefix network segment, the gateway address of gateway device, purpose IPv6 addresses.
For example, terminal device 101 receive gateway device 111 transmission the second message after, can be from second message
In parse following content:The prefix network segment 10 that the carrier network 121 direct-connected with gateway device 111 distributes::, the gateway sets
Standby 111 gateway address FE80::2nd, purpose IPv6 addresses 80::1.
Step 204, IPv6 addresses corresponding to the prefix network segment are obtained, and the source IP v6 addresses of the data message are arranged to
The IPv6 addresses of acquisition, and amended data message is sent according to the gateway address.
For example, terminal device 101 parses the prefix network segment 10 from the second message::, gateway address FE80::2nd, purpose
IPv6 addresses 80::After 1, the prefix network segment 10 can be obtained::Corresponding IPv6 addresses, such as 10::123, and from local cache
Inquire and purpose IPv6 addresses 80::Data message corresponding to 1, the source IP v6 addresses of the data message are arranged to the prefix
The network segment 10::Corresponding IPv6 addresses 10::123, and according to gateway address FE80::2 send amended data message, will
Data message is sent to gateway device 111.Wherein, the source IP v6 addresses of the data message are 10::123, purpose IPv6 address are
80::1, the data message can be sent to carrier network 121 by gateway device 111 after the data message is received, by
In source IP v6 addresses 10::123 belong to the prefix network segment 10::, therefore, each equipment in carrier network 121 can be handled normally
The data message, without abandoning the data message, the final data message is sent to server 131.
In one example, before step 201, terminal device can also use broadcast mode to send the 3rd message (such as
RS messages), and the 3rd message is used to make gateway device respond the 4th message (such as RA messages), the 4th message can carry net
Close the prefix network segment, gateway address (i.e. IPv6 addresses), the dual-homed mark of gateway device of the direct-connected carrier network distribution of equipment
Note.Then, because each gateway device can receive the 3rd message, therefore, each gateway device can respond the 4th report
Text, that is to say, that terminal device can receive the 4th message that each gateway device is sent, and be parsed from the 4th message
Go out the prefix network segment, gateway address, the dual-homed mark of the gateway device of the direct-connected carrier network distribution of gateway device.
Wherein, after terminal device receives the 4th message that each gateway device is sent, each 4th message can be utilized
The prefix network segment generation IPv6 addresses of carrying, and in each IPv6 addresses of terminal device storage generation.
Wherein, after terminal device receives the 4th message that each gateway device is sent, road can be added in the routing table
By list item, the purpose IP address of the route table items is to specify IP address, and next hop address is the gateway address of each gateway device.
Moreover, after adding the route table items in the routing table, terminal device can also be that the route table items set dual-homed mark.And
And above-mentioned specified IP address can include:The IP address that can be matched with all IPv6 addresses, for example, specified IP address is
Full 0, and subnet mask is full 0.
For example, terminal device 101 sends the 3rd message using broadcast mode, gateway device 111 is receiving the 3rd report
After text, the 4th message is responded to terminal device 101, the 4th message can carry the operation direct-connected with this gateway device 111
The prefix network segment 10 that business's network 121 distributes::, gateway device 111 gateway address FE80::2nd, dual-homed mark.Gateway device
112 after the 3rd message is received, and responds the 4th message to terminal device 101, the 4th message can carry and Home Network
Close the prefix network segment 20 that the direct-connected carrier network 122 of equipment 112 distributes::, gateway device 112 gateway address FE80::3、
Dual-homed mark.
Further, terminal device can utilize the 4th report after the 4th message of the transmission of gateway device 111 is received
The prefix network segment 10 that text carries::IPv6 addresses are generated, such as generate IPv6 addresses 10::123, and described in the storage of this terminal device
IPv6 addresses 10::123.In addition, terminal device after the 4th message of the transmission of gateway device 112 is received, can utilize this
The prefix network segment 20 that four messages carry::IPv6 addresses are generated,
Such as generate IPv6 addresses 20::123, and store the IPv6 addresses 20 in this terminal device::123.
In addition, terminal device is after gateway device 111, the 4th message that gateway device 112 is sent is received, can be with
Route table items are added in the routing table, the purpose IP address of the route table items is to specify IP address, such as 0:0:0:0:0:0:0:0,
And next hop address is the gateway address FE80 of gateway device 111::2nd, the gateway address FE80 of gateway device 112::3, and be
The route table items set dual-homed mark, example as shown in table 1.Wherein, the route table items have minimum priority, only
, just can be with route table items when the purpose IPv6 addresses of data message do not match with other route table items in routing table
Match somebody with somebody, forwarded based on the route table items.
Table 1
In one example, for the process of " the prefix network segment carried using the 4th message generates IPv6 addresses ", terminal
Equipment can generate IPv6 addresses according to the prefix network segment and interface identifier (i.e. the mark of the receiving interface of the 4th message), to this
IPv6 addresses generating process is not limited.For example, first 64 of IPv6 addresses are the prefix network segments, latter 64 are interface identifier, should
Interface identifier can be generated based on the MAC of 48 (Media Access Control, medium access control) address.Wherein, it is sharp
A strategy example of the interface identifier of 64 is generated with the MAC Address of 48 to be:Hexadecimal number 0xFF-FE is inserted
To between the third and fourth byte of MAC Address, and to " global/local " position, (MAC Address start byte second is minimum
Position) negate, if 1, then 0 is set to, if it is 0, is set to 1.For example, for MAC Address 00-60-08-
52-F9-D8, hexadecimal number 0xFF-FE is inserted into 0x08 (the 3rd byte) between 0x52 (nybble), forms 64 ground
Location 00-60-08-FF-FE-52-F9-D8;Then, to " global/local " position (i.e. 0x00 (first byte) second lowest order)
Negate, be 1 because 0,x00 second lowest order is 0, therefore after negating, i.e., first character section 0x00 become into 0x02, to sum up,
Interface identifier corresponding to MAC Address 00-60-08-52-F9-D8 is 02-60-08-FF-FE-52-F9-D8.
, in step 204, can for the process of " obtaining IPv6 addresses corresponding to the prefix network segment " by above-mentioned processing
With including:From each IPv6 addresses of terminal device storage, IPv6 addresses corresponding with the prefix network segment are inquired.For example, by
IPv6 addresses 10 are stored with terminal device::123 and IPv6 addresses 20::123, looked into from the IPv6 addresses of terminal device storage
Ask and the prefix network segment 10::Corresponding IPv6 addresses 10::123.
In step 202, for the process of the first message of purpose IPv6 addresses " send carry ", terminal device can be from
The route table items matched with purpose IPv6 addresses are inquired in routing table, and with utilizing the next-hop of the route table items inquired
Location sends the first message for carrying purpose IPv6 addresses.For example, terminal device passes through purpose IPv6 addresses 80::1 query routing
Table, obtain and purpose IPv6 addresses 80::The route table items (the last item route table items of table 1) of 1 matching, therefore can utilize
Next hop address (the i.e. FE80 of the route table items::2、FE80::3) send and carry purpose IPv6 addresses 80::1 the first message,
That is, the first message is sent to FE80::Gateway device 111 and FE80 corresponding to 2::Gateway device corresponding to 3
112。
In step 202, for " being sent with carrying purpose IPv6 using the next hop address of the route table items inquired
The process of first message of location ", can include:If the route table items inquired are provided with dual-homed mark, using inquiring
The next hop address of route table items send the first message for carrying purpose IPv6 addresses.If the route table items inquired are not set
Dual-homed mark is put, then is directly sent datagram using the next hop address of route table items inquired, rather than sends the
One message, its handling process repeat no more.
In above process, the effect for setting dual-homed mark for route table items is:It is dual-homed to mark for setting terminal
The number is carried for when getting the data message matched with the route table items, utilizing the next hop address of the route table items to send
According to the first message of the purpose IPv6 addresses of message.Therefore, terminal device is getting data message, determines the data message
Behind purpose IPv6 addresses, if route table items corresponding with purpose IPv6 addresses are provided with dual-homed mark, the routing table is utilized
The next hop address of item sends the first message for carrying purpose IPv6 addresses.If route table items corresponding with purpose IPv6 addresses
Dual-homed mark is not provided with, then is not to send the first message, but directly sent using the next hop address of the route table items
Data message.
In one example, for step 204, after amended data message is sent according to gateway address, terminal
Equipment can also record the purpose IPv6 addresses, the source IP v6 addresses of the data message, pair of the gateway address of the data message
It should be related to.For example, terminal device 101 can record purpose IPv6 addresses 80 in forwarding-table item::1st, source IP v6 addresses 10::123、
Gateway address FE80::2 corresponding relation.
For step 201, when terminal device 101 accesses server 131 again, terminal device 101 can get and treat
The data message of transmission, the purpose IPv6 addresses of the data message are the IPv6 addresses 80 of server 131::1.Then, due to end
Purpose IPv6 addresses 80 are had been recorded with the forwarding-table item of end equipment::1st, source IP v6 addresses 10::123rd, gateway address
FE80::The source IP v6 addresses of the data message directly can be arranged to forward by 2 corresponding relation, therefore, terminal device 101
10 in list item::123, and according to the gateway address FE80::2 send amended data message, and no longer perform above-mentioned
Step 202- steps 204.
Based on above-mentioned technical proposal, in the embodiment of the present application, in IPv6 dual-home networks, terminal device can use fortune
The IPv6 addresses sought in the address realm of business's network allocation, set the source IP v6 addresses of data message, and data message is sent
To gateway device.Gateway device, i.e., need not be by number without carrying out NAT processing to data message after data message is received
The IPv6 addresses being revised as according to the source IP v6 addresses of message in the address realm of carrier network distribution, so as to save gateway
The resource of equipment, mitigate the burden of gateway device, lift the process performance of gateway device, improve terminal device access operator
The speed of network.
In one example, for some agreements, such as File Transfer Protocol, may also be wrapped in the data load of data message
Address containing IPv6, therefore, terminal device, can also be by above-mentioned source IP v6 addresses 10 before sending datagram::123 additions
Into the data load of data message, this process is not limited.
Conceived based on the application same with the above method, another message transmitting method also proposed in the embodiment of the present application,
It is shown in Figure 3, it is the flow chart of another message transmitting method proposed in the embodiment of the present application, the message transmitting method can
With applied to gateway device, and this method can include:
Step 301, the first message of the purpose IPv6 addresses for the carrying data message that receiving terminal apparatus is sent.
Step 302, if purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, to terminal
Equipment sends the second message, and the second message carries the prefix network segment, the Yi Jiben of the direct-connected carrier network distribution of this gateway device
The gateway address of gateway device;Wherein, the second message is used to make terminal device that the source IP v6 addresses of data message are arranged into this
IPv6 addresses corresponding to the prefix network segment, and amended data message is sent according to the gateway address.If purpose IPv6 addresses
It is not the IPv6 addresses of the direct-connected carrier network of this gateway device, then refuses to send the second message to terminal device, and at end
Manage flow.
In one example, the first message of the purpose IPv6 addresses of the carrying data message sent in receiving terminal apparatus
Before, the 3rd message that can be sent with receiving terminal apparatus with broadcast mode, and to terminal device send the 4th message, the 4th
Message carries the prefix network segment, the gateway address of this gateway device of the direct-connected carrier network distribution of this gateway device;4th report
The prefix network segment that text is used to make terminal device be carried according to each 4th message generates IPv6 addresses, and according to each 4th message
The gateway address generation route table items of carrying.
Below in conjunction with concrete application scene, the message transmitting method in the embodiment of the present application is illustrated.
Step 1, terminal device 101 send the 3rd message (RS messages) when reaching the standard grade, using broadcast mode.
Step 2, gateway device 111 respond the 4th message (RA after the 3rd message is received, to terminal device 101
Message), the 4th message can carry the prefix network segment 10 that the carrier network 121 direct-connected with this gateway device 111 distributes::、
The gateway address FE80 of gateway device 111::2nd, dual-homed mark.
Step 3, gateway device 112 respond the 4th message (RA after the 3rd message is received, to terminal device 101
Message), the 4th message can carry the prefix network segment 20 that the carrier network 122 direct-connected with this gateway device 112 distributes::、
The gateway address FE80 of gateway device 112::3rd, dual-homed mark (SAMH).
After step 4, terminal device 101 receive gateway device 111, the 4th message that gateway device 112 is sent, the is utilized
The prefix network segment 10 that four messages carry::Generate IPv6 addresses 10::123, the prefix network segment 20 carried using the 4th message::It is raw
Into IPv6 addresses 20::123, and store IPv6 addresses 10::123 and 20::123.
Step 5, terminal device 101 add route table items in the routing table, and the purpose IP address of the route table items is 0:0:
0:0:0:0:0:0, next hop address is the gateway address FE80 of gateway device 111::2nd, the gateway address of gateway device 112
FE80::3, and dual-homed mark is set for the route table items, as shown in table 1.
Step 6, when terminal device 101 needs to access server 131, data message to be sent can be obtained, and really
The purpose IPv6 addresses of the fixed data message are the IPv6 addresses 80 of server 131::1.
Step 7, terminal device 101 judge whether terminal device 101 have recorded and purpose IPv6 addresses 80::Corresponding to 1
Source IP v6 addresses and gateway address.If it is, perform step 16;If not, perform step 8.
Step 8, terminal device 101 inquire and purpose IPv6 addresses 80 from routing table::The route table items of 1 matching;
If the route table items are not provided with dual-homed mark, the data message is sent using the route table items;If the route table items are set
Dual-homed mark is equipped with, then can cache the data message, and perform step 9.
Step 9, terminal device 101 are sent with carrying purpose IPv6 using the next hop address of the route table items inquired
First message of location.Specifically, next hop address (i.e. FE80 of the terminal device 101 using the route table items::2、FE80::3)
Send and carry purpose IPv6 addresses 80::1 the first message, that is to say, that the first message is sent to FE80::Net corresponding to 2
Close equipment 111 and FE80::Gateway device 112 corresponding to 3.
Wherein, first message can include RS messages, and the RS messages can include source address selection request option (such as
SASR options), and source address selection request option is used to carry purpose IPv6 addresses 80::1.
Step 10, gateway device 111 are after the first message is received, due to purpose IPv6 addresses 80::1 is gateway device
The second message is responded in the IPv6 addresses of 111 direct-connected carrier networks 121, therefore, gateway device 111 to terminal device 101, and this
Two messages can carry the prefix network segment 10 that the carrier network 121 direct-connected with gateway device 111 distributes::, gateway device 111
Gateway address FE80::2nd, purpose IPv6 addresses 80::1.Gateway device 112 is after the first message is received, due to purpose
IPv6 addresses 80::1 is not the IPv6 addresses of the direct-connected carrier network 122 of gateway device 112, and therefore, gateway device 112 is refused
Respond the second message.
Wherein, second message can include but is not limited to RA messages, and the RA messages can include source address selection notice
Option (such as SASA options), and source address selection announced options are used to carry the direct-connected carrier network distribution of gateway device
The prefix network segment, the gateway address of gateway device, purpose IPv6 addresses.
Step 11, terminal device 101, can be from second reports after the second message of the transmission of gateway device 111 is received
Following content is parsed in text:The prefix network segment 10 that the carrier network 121 direct-connected with gateway device 111 distributes::, the gateway
The gateway address FE80 of equipment 111::2nd, purpose IPv6 addresses 80::1.
Step 12, terminal device 101 are parsing the prefix network segment 10 from the second message::Afterwards, deposited from terminal device 101
In each IPv6 addresses of storage, inquire and the prefix network segment 10::Corresponding IPv6 addresses 10::123.
Step 13, terminal device 101 inquire and the purpose IPv6 addresses 80 from local cache::Data corresponding to 1
Message, and the source IP v6 addresses of the data message are arranged to IPv6 addresses 10::123.
Step 14, terminal device 101 are according to gateway address FE80::2 send amended data messages, you can with by number
Gateway address FE80 is sent to according to message::Gateway device 111 corresponding to 2.Wherein, the source IP v6 addresses of the data message are
10::123, purpose IPv6 address are 80::1, and gateway device 111 is after the data message is received, can be by the data
Message is sent to carrier network 121, due to source IP v6 addresses 10::123 belong to the prefix network segment 10::, therefore, carrier network
Each equipment in 121 can normally handle the data message, may finally be by the datagram without abandoning the data message
Text is sent to server 131.
Step 15, terminal device 101 can record the purpose IPv6 addresses 80 of the data message in forwarding-table item::1st, should
The source IP v6 addresses 10 of data message::123 and gateway address FE80::2 corresponding relation.
Step 16, it have recorded and purpose IPv6 addresses 80 due to terminal device 101::Source IP v6 addresses 10 corresponding to 1::
123 and gateway address FE80::2, therefore, the source IP v6 addresses of the data message are arranged to 10 by terminal device 101::123, and
According to the gateway address FE80::2 send amended data message.
Conceived based on the application same with the above method, a kind of message transmitting device is proposed in the embodiment of the present application, applied
In terminal device, the terminal device accesses different carrier networks by different gateway devices, as shown in figure 4, being this
Apply for the structure chart of message transmitting device proposed, described device includes:
Acquisition module 401, for obtaining data message to be sent, determine the purpose IPv6 addresses of data message;
Sending module 402, the first message of the purpose IPv6 addresses is carried for sending;Wherein, first message
Gateway device be may be used to it is determined that the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device
When, respond the second message to the terminal device;
Receiving module 403, the second message sent for receiving the gateway device, parsed from the second message described
The prefix network segment, the gateway address of the gateway device of the direct-connected carrier network distribution of gateway device;
The acquisition module 401, is additionally operable to obtain IPv6 addresses corresponding to the prefix network segment, and by the data message
Source IP v6 addresses be arranged to obtain IPv6 addresses;
The sending module 402, it is additionally operable to send amended data message according to the gateway address.
In one example, the message transmitting device also includes (in Fig. 4 not depending on going out):
Judge module, behind the purpose IPv6 addresses for determining data message in the acquisition module, judge the terminal
Whether equipment have recorded source IP v6 addresses corresponding with the purpose IPv6 addresses and gateway address;
The sending module 402, it is additionally operable to when the judged result of the judge module is is, then by the data message
Source IP v6 addresses be arranged to source IP v6 addresses corresponding with the purpose IPv6 addresses, and according to the purpose IPv6 addresses
Corresponding gateway address sends amended data message;When the judged result of the judge module is no, then sends and carry
First message of the purpose IPv6 addresses;
The message transmitting device also includes (in Fig. 4 not depending on going out):Logging modle, for the sending module according to
After the gateway address sends amended data message, the purpose IPv6 addresses of the data message, the data are recorded
The source IP v6 addresses of message, the corresponding relation of the gateway address.
The sending module 402, before being additionally operable to obtain data message to be sent in the acquisition module, with broadcaster
Formula sends the 3rd message, and the 3rd message is used to make gateway device respond the 4th message;
The receiving module 403, it is additionally operable to receive the 4th message that each gateway device is sent, wherein, the 4th report
Text carries the prefix network segment of the direct-connected carrier network distribution of gateway device;
The message transmitting device also includes (not depending on going out in figure):Generation module, it is every for being received using receiving module
The prefix network segment generation IPv6 addresses that individual 4th message carries, store each IPv6 addresses of generation;
The acquisition module 401, specifically for during IPv6 addresses corresponding to the prefix network segment are obtained, being set from terminal
In each IPv6 addresses of standby storage, IPv6 addresses corresponding with the prefix network segment are inquired.
4th message also carries the gateway address of gateway device;The generation module, it is additionally operable to add in the routing table
Add route table items, the purpose IP address of the route table items is to specify IP address, and next hop address is that the receiving module connects
The gateway address for the gateway device that each 4th message received carries;Wherein, the specified IP address includes:Can be with owning
The IP address that IPv6 addresses match;
The sending module 402, specifically for during the first message for carrying the purpose IPv6 addresses is sent,
The route table items matched with the purpose IPv6 addresses are inquired from the routing table, and utilize the route table items inquired
Next hop address sends the first message for carrying the purpose IPv6 addresses.
The generation module, it is additionally operable to after adding route table items in the routing table, dual-homed mark is set for route table items;
Wherein, it is described it is dual-homed mark for making the sending module when getting the data message matched with the route table items,
The first message of the purpose IPv6 addresses for carrying the data message is sent using the next hop address of the route table items;
The sending module 402, mesh is carried specifically for being sent in the next hop address using the route table items inquired
IPv6 addresses the first message during, if the route table items inquired are provided with dual-homed mark, utilize what is inquired
The next hop address of route table items sends the first message for carrying purpose IPv6 addresses.
In one example, first message includes RS messages, and the RS messages include source address selection request option,
And the source address selection request option is used to carry the purpose IPv6 addresses;
Second message includes RA messages, and the RA messages include source address selection announced options, and the source address
Selection announced options are used to carry the prefix network segment, the gateway address of the gateway device.
The terminal device that the embodiment of the present application provides, for hardware view, its hardware structure schematic diagram can specifically join
As shown in Figure 5.Including:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicate, stored in reading and execution machinable medium described with machinable medium
Instruction code, realize that message transmissions disclosed in the application above-mentioned example operate.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with
Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom
Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard
Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they
Combination.
Conceived based on the application same with the above method, a kind of message transmitting device is proposed in the embodiment of the present application, applied
In gateway device, terminal device accesses different carrier networks by different gateway devices, as shown in fig. 6, being the application
The structure chart of the message transmitting device of proposition, described device include:
Receiving module 601, the first report of the purpose IPv6 addresses of the carrying data message sent for receiving terminal apparatus
Text;Sending module 602, for being the IPv6 addresses of the direct-connected carrier network of the gateway device when the purpose IPv6 addresses
When, then the second message is sent to the terminal device, second message carries the direct-connected carrier network of the gateway device
The prefix network segment of distribution and the gateway address of the gateway device;
Wherein, second message is used to make the terminal device that the source IP v6 addresses of the data message are arranged into institute
IPv6 addresses corresponding to the prefix network segment are stated, amended data message is sent according to the gateway address.
The receiving module 601, it is additionally operable to the 3rd message that receiving terminal apparatus is sent with broadcast mode;Wherein, it is described
3rd message is used to make gateway device respond the 4th message;
The sending module 602, it is additionally operable to send the 4th message to the terminal device, described in the 4th message carries
Gateway device direct-connected the prefix network segment of carrier network distribution and the gateway address of the gateway device;Wherein, described
The prefix network segment that four messages are used to make the terminal device be carried according to each 4th message generates IPv6 addresses, and according to each
The gateway address generation route table items that 4th message carries.
The gateway device that the embodiment of the present application provides, for hardware view, its hardware structure schematic diagram can specifically join
As shown in Figure 7.Including:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicate, stored in reading and execution machinable medium described with machinable medium
Instruction code, realize that message transmissions disclosed in the application above-mentioned example operate.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with
Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom
Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard
Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they
Combination.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the embodiment of the present application can use wherein includes computer usable program code in one or more
The computer that computer-usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It is generally understood that by each in computer program instructions implementation process figure and/or block diagram
Flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer journeys can be provided
Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with
Produce a machine so that produce and be used for by the instruction of computer or the computing device of other programmable data processing devices
Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Put.
Moreover, these computer program instructions can also be stored in computer or other programmable datas can be guided to handle and set
In the standby computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces
Manufacture including command device, the command device are realized in one flow of flow chart or multiple flows and/or block diagram one
The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer
Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram
The step of function of being specified in one square frame or multiple square frames.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the scope of claims hereof.
Claims (14)
1. a kind of message transmitting method, it is characterised in that applied to terminal device, the terminal device is set by different gateways
Standby to access different carrier networks, methods described includes:
Data message to be sent is obtained, and determines the purpose IPv6 addresses of the data message;
The first message for carrying the purpose IPv6 addresses is sent, the first message is used to make gateway device it is determined that the purpose
When IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, the second message is responded;
The second message that the gateway device is sent is received, and it is direct-connected from second message to parse the gateway device
The prefix network segment, the gateway address of the gateway device of carrier network distribution;
IPv6 addresses corresponding to the prefix network segment are obtained, and the source IP v6 addresses of the data message are arranged to what is obtained
IPv6 addresses, and amended data message is sent according to the gateway address.
2. according to the method for claim 1, it is characterised in that
After the purpose IPv6 addresses for determining the data message, methods described also includes:
Judge whether the terminal device have recorded source IP v6 addresses corresponding with the purpose IPv6 addresses and gateway address;Such as
Fruit is that the source IP v6 addresses of the data message then are arranged into source IP v6 addresses corresponding with the purpose IPv6 addresses, and
Amended data message is sent according to gateway address corresponding with the purpose IPv6 addresses;Taken if it is not, then performing transmission
The process of the first message with the purpose IPv6 addresses;
After sending amended data message according to the gateway address, methods described also includes:The mesh of record data message
IPv6 addresses, the source IP v6 addresses of data message, the corresponding relation of the gateway address.
3. according to the method for claim 1, it is characterised in that
Before acquisition data message to be sent, methods described also includes:3rd message is sent with broadcast mode, described the
Three messages are used to make gateway device respond the 4th message;Receive the 4th message that each gateway device is sent, the 4th message
Carry the prefix network segment of the direct-connected carrier network distribution of gateway device;The prefix network segment carried using each 4th message is generated
IPv6 addresses, and store each IPv6 addresses of generation;
The process for obtaining IPv6 addresses corresponding to the prefix network segment, is specifically included:From the every of terminal device storage
In individual IPv6 addresses, IPv6 addresses corresponding with the prefix network segment are inquired.
4. according to the method for claim 3, it is characterised in that
4th message also carries the gateway address of gateway device;It is described receive the 4th message that each gateway device sends it
Afterwards, methods described also includes:Route table items are added in the routing table, and the purpose IP address of the route table items is with specifying IP
Location, and next hop address is the gateway address of each gateway device;
Wherein, the specified IP address includes:The IP address that can be matched with all IPv6 addresses;
The process for sending the first message for carrying the purpose IPv6 addresses, is specifically included:
The route table items matched with the purpose IPv6 addresses are inquired from the routing table, and utilize the routing table inquired
The next hop address of item sends the first message for carrying the purpose IPv6 addresses.
5. according to the method for claim 4, it is characterised in that described after the route table items of addition in the routing table
Method also includes:For the route table items, dual-homed mark is set;Wherein, dual-homed mark is used to make the terminal device
When getting the data message matched with the route table items, send to carry using the next hop address of the route table items and be somebody's turn to do
First message of the purpose IPv6 addresses of data message;
The next hop address using the route table items inquired sends the first message of the carrying purpose IPv6 addresses
Process, specifically include:If the route table items inquired are provided with dual-homed mark, the next of the route table items inquired is utilized
Jump address and send the first message for carrying the purpose IPv6 addresses.
6. a kind of message transmitting method, it is characterised in that applied to gateway device, terminal device is connect by different gateway devices
Enter different carrier networks, methods described includes:
First message of the purpose IPv6 addresses for the carrying data message that receiving terminal apparatus is sent;
If the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of the gateway device, to the terminal device
Send the second message, second message carry the direct-connected carrier network distribution of the gateway device the prefix network segment and
The gateway address of the gateway device;
Wherein, second message is used for before making the terminal device that the source IP v6 addresses of the data message are arranged into described
Sew IPv6 addresses corresponding to the network segment, amended data message is sent according to the gateway address.
7. according to the method for claim 6, it is characterised in that the carrying data message that the receiving terminal apparatus is sent
Before first message of purpose IPv6 addresses, methods described also includes:
The 3rd message that receiving terminal apparatus is sent with broadcast mode;Wherein, the 3rd message is used to respond gateway device
4th message;
The 4th message is sent to the terminal device, the 4th message carries the gateway device direct-connected carrier network point
The prefix network segment and the gateway address of the gateway device matched somebody with somebody;
Wherein, the prefix network segment that the 4th message is used to make the terminal device be carried according to each 4th message generates IPv6
Address, and the gateway address carried according to each 4th message generates route table items.
8. a kind of message transmitting device, it is characterised in that applied to terminal device, the terminal device is set by different gateways
Standby to access different carrier networks, described device includes:
Acquisition module, for obtaining data message to be sent, and determine the purpose IPv6 addresses of data message;
Sending module, the first message of the purpose IPv6 addresses is carried for sending;Wherein, first message is used to make net
Equipment is closed when it is determined that the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of this gateway device, to the terminal
Equipment responds the second message;
Receiving module, the second message sent for receiving the gateway device, and the gateway is parsed from the second message
The prefix network segment, the gateway address of the gateway device of the direct-connected carrier network distribution of equipment;
The acquisition module, is additionally operable to obtain IPv6 addresses corresponding to the prefix network segment, and by the source of the data message
IPv6 addresses are arranged to the IPv6 addresses obtained;
The sending module, it is additionally operable to send amended data message according to the gateway address.
9. device according to claim 8, it is characterised in that the message transmitting device also includes:
Judge module, behind the purpose IPv6 addresses for determining data message in the acquisition module, judge the terminal device
Whether with the purpose IPv6 address corresponding source IP v6 address and gateway address have recorded;
The sending module, it is additionally operable to when the judged result of the judge module is is, then by the source of the data message
IPv6 addresses are arranged to source IP v6 addresses corresponding with the purpose IPv6 addresses, and according to corresponding with the purpose IPv6 addresses
Gateway address send amended data message;When the judged result of the judge module is no, then send described in carrying
First message of purpose IPv6 addresses;
The message transmitting device also includes:Logging modle, repaiied for being sent in the sending module according to the gateway address
After data message after changing, the purpose IPv6 addresses, the source IP v6 addresses of the data message, institute of the data message are recorded
State the corresponding relation of gateway address.
10. device according to claim 8, it is characterised in that
The sending module, before being additionally operable to obtain data message to be sent in the acquisition module, sent with broadcast mode
3rd message, the 3rd message are used to make gateway device respond the 4th message;
The receiving module, it is additionally operable to receive the 4th message that each gateway device is sent, wherein, the 4th message carries net
Close the prefix network segment of the direct-connected carrier network distribution of equipment;
The message transmitting device also includes:Generation module, each 4th message for being received using the receiving module are taken
The prefix network segment generation IPv6 addresses of band, and store each IPv6 addresses of generation;
The acquisition module, specifically for during IPv6 addresses corresponding to the prefix network segment are obtained, from terminal device
In each IPv6 addresses of storage, IPv6 addresses corresponding with the prefix network segment are inquired.
11. device according to claim 10, it is characterised in that
4th message also carries the gateway address of gateway device;The generation module, it is additionally operable to add road in the routing table
By list item, the purpose IP address of the route table items is to specify IP address, and next hop address is what the receiving module received
The gateway address for the gateway device that each 4th message carries;Wherein, the specified IP address includes:Can with all IPv6
The IP address that location matches;
The sending module, specifically for during the first message for carrying the purpose IPv6 addresses is sent, from described
The route table items matched with the purpose IPv6 addresses are inquired in routing table, and utilize the next-hop of the route table items inquired
Address sends the first message for carrying the purpose IPv6 addresses.
12. device according to claim 11, it is characterised in that the generation module, be additionally operable to add in the routing table
After route table items, dual-homed mark is set for the route table items;Dual-homed mark is used to make the sending module exist
When getting the data message matched with the route table items, sent using the next hop address of the route table items and carry the number
According to the first message of the purpose IPv6 addresses of message;
The sending module, the purpose is carried specifically for being sent in the next hop address using the route table items inquired
During first message of IPv6 addresses, if the route table items inquired are provided with dual-homed mark, utilize what is inquired
The next hop address of route table items sends the first message for carrying purpose IPv6 addresses.
13. a kind of message transmitting device, it is characterised in that applied to gateway device, terminal device passes through different gateway devices
Different carrier networks is accessed, described device includes:
Receiving module, the first message of the purpose IPv6 addresses of the carrying data message sent for receiving terminal apparatus;
Sending module, for when the purpose IPv6 addresses are the IPv6 addresses of the direct-connected carrier network of the gateway device,
The second message then is sent to the terminal device, second message carries the direct-connected carrier network distribution of the gateway device
The prefix network segment and the gateway device gateway address;
Wherein, second message is used for before making the terminal device that the source IP v6 addresses of the data message are arranged into described
Sew IPv6 addresses corresponding to the network segment, amended data message is sent according to the gateway address.
14. device according to claim 13, it is characterised in that
The receiving module, it is additionally operable to the 3rd message that receiving terminal apparatus is sent with broadcast mode;Wherein, the 3rd message
For making gateway device respond the 4th message;
The sending module, it is additionally operable to send the 4th message to the terminal device, the 4th message carries the gateway and set
The prefix network segment and the gateway address of the gateway device that standby direct-connected carrier network distributes;Wherein, the 4th message
For making the prefix network segment that the terminal device carries according to each 4th message generate IPv6 addresses, and according to each 4th report
The gateway address generation route table items that text carries.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710770629.8A CN107580079B (en) | 2017-08-31 | 2017-08-31 | Message transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710770629.8A CN107580079B (en) | 2017-08-31 | 2017-08-31 | Message transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107580079A true CN107580079A (en) | 2018-01-12 |
CN107580079B CN107580079B (en) | 2020-12-29 |
Family
ID=61030137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710770629.8A Active CN107580079B (en) | 2017-08-31 | 2017-08-31 | Message transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107580079B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450905A (en) * | 2018-11-20 | 2019-03-08 | 郑州云海信息技术有限公司 | Transmit the method and apparatus and system of data |
CN109831378A (en) * | 2019-01-31 | 2019-05-31 | 新华三技术有限公司 | A kind of message time-out response method and device |
CN110962778A (en) * | 2019-11-28 | 2020-04-07 | 安徽江淮汽车集团股份有限公司 | Gateway device of automobile and automobile |
CN111988441A (en) * | 2020-07-24 | 2020-11-24 | 下一代互联网关键技术和评测北京市工程研究中心有限公司 | Networking access method and system based on IPv6 |
CN112583705A (en) * | 2019-09-30 | 2021-03-30 | 华为技术有限公司 | Communication method, device and system of hybrid network |
CN114500258A (en) * | 2021-12-14 | 2022-05-13 | 四川天邑康和通信股份有限公司 | Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway |
CN114765600A (en) * | 2020-12-31 | 2022-07-19 | 华为技术有限公司 | IPv6 address configuration method and routing equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030076833A1 (en) * | 2001-10-24 | 2003-04-24 | Shin Hyun Soon | Method for summarizing default address of PNNI lowest level node in ATM switching system |
US20050286553A1 (en) * | 2004-06-25 | 2005-12-29 | Patrick Wetterwald | Arrangement for reaching IPv4 public network nodes by a node in an IPv4 private network via an IPv6 access network |
CN101026547A (en) * | 2006-02-22 | 2007-08-29 | 中兴通讯股份有限公司 | Method and system for accessing Intranct IPv6 host into global IPv6 network |
CN102932371A (en) * | 2012-11-20 | 2013-02-13 | 杭州华三通信技术有限公司 | Method for realizing communication between IPv6 private network node and public network node and routing forwarding equipment |
CN104796333A (en) * | 2015-03-31 | 2015-07-22 | 桂林电子科技大学 | IPv6-based wireless sensor network and Internet multi-gateway interconnection scheme |
-
2017
- 2017-08-31 CN CN201710770629.8A patent/CN107580079B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030076833A1 (en) * | 2001-10-24 | 2003-04-24 | Shin Hyun Soon | Method for summarizing default address of PNNI lowest level node in ATM switching system |
US20050286553A1 (en) * | 2004-06-25 | 2005-12-29 | Patrick Wetterwald | Arrangement for reaching IPv4 public network nodes by a node in an IPv4 private network via an IPv6 access network |
CN101026547A (en) * | 2006-02-22 | 2007-08-29 | 中兴通讯股份有限公司 | Method and system for accessing Intranct IPv6 host into global IPv6 network |
CN102932371A (en) * | 2012-11-20 | 2013-02-13 | 杭州华三通信技术有限公司 | Method for realizing communication between IPv6 private network node and public network node and routing forwarding equipment |
CN104796333A (en) * | 2015-03-31 | 2015-07-22 | 桂林电子科技大学 | IPv6-based wireless sensor network and Internet multi-gateway interconnection scheme |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450905A (en) * | 2018-11-20 | 2019-03-08 | 郑州云海信息技术有限公司 | Transmit the method and apparatus and system of data |
CN109450905B (en) * | 2018-11-20 | 2021-05-04 | 郑州云海信息技术有限公司 | Method, device and system for transmitting data |
CN109831378A (en) * | 2019-01-31 | 2019-05-31 | 新华三技术有限公司 | A kind of message time-out response method and device |
CN112583705B (en) * | 2019-09-30 | 2023-07-11 | 华为技术有限公司 | Communication method, equipment and system of hybrid network |
CN112583705A (en) * | 2019-09-30 | 2021-03-30 | 华为技术有限公司 | Communication method, device and system of hybrid network |
US11706324B2 (en) | 2019-09-30 | 2023-07-18 | Huawei Technologies Co., Ltd. | Hybrid network communication method, device, and system |
CN110962778A (en) * | 2019-11-28 | 2020-04-07 | 安徽江淮汽车集团股份有限公司 | Gateway device of automobile and automobile |
CN111988441A (en) * | 2020-07-24 | 2020-11-24 | 下一代互联网关键技术和评测北京市工程研究中心有限公司 | Networking access method and system based on IPv6 |
CN111988441B (en) * | 2020-07-24 | 2023-05-12 | 下一代互联网关键技术和评测北京市工程研究中心有限公司 | IPv 6-based networking access method and system |
CN114765600A (en) * | 2020-12-31 | 2022-07-19 | 华为技术有限公司 | IPv6 address configuration method and routing equipment |
CN114765600B (en) * | 2020-12-31 | 2023-10-20 | 华为技术有限公司 | IPv6 address configuration method and routing equipment |
CN114500258A (en) * | 2021-12-14 | 2022-05-13 | 四川天邑康和通信股份有限公司 | Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway |
CN114500258B (en) * | 2021-12-14 | 2023-08-15 | 四川天邑康和通信股份有限公司 | Automatic internet configuration method for ipv6 under wifi6 router under home intelligent gateway |
Also Published As
Publication number | Publication date |
---|---|
CN107580079B (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107580079A (en) | A kind of message transmitting method and device | |
US9825860B2 (en) | Flow-driven forwarding architecture for information centric networks | |
CN103339901B (en) | Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node | |
US8989196B2 (en) | Method and apparatus for providing host node awareness for multiple NAT64 environments | |
US9948576B2 (en) | Mechanism for enabling layer two host addresses to be shielded from the switches in a network | |
KR101995145B1 (en) | Method operating in a fixed access network and ues | |
KR102134454B1 (en) | Communication method of node overhearing contents in a content centric network and the node | |
KR20140093423A (en) | Method of transmitting data packet by contents provider in a content centric network and the contents provider | |
CN103118147A (en) | Method, equipment and system for accessing intranet server | |
CN101656765A (en) | Address mapping system and data transmission method of identifier/locator separation network | |
CN103200281A (en) | Method, device and system for accessing intranet server | |
CN107547346B (en) | Message transmission method and device | |
US20150088995A1 (en) | Method and apparatus for sharing contents using information of group change in content oriented network environment | |
Iannone et al. | Implementing the locator/id separation protocol: Design and experience | |
CN103618801A (en) | Method, device and system for sharing P2P (Peer-to-Peer) resources | |
CN107920020A (en) | Message processing method and gateway | |
JP2016111703A (en) | Content arrangement in information centric network | |
Cha et al. | A mobility link service for ndn consumer mobility | |
US9049140B2 (en) | Backbone network with policy driven routing | |
CN111464443B (en) | Message forwarding method, device, equipment and storage medium based on service function chain | |
CN101924698A (en) | Method, system and equipment for balancing two-layer domain load based on IP unicast route | |
WO2023024663A1 (en) | Routing method and apparatus, cloud resource registration method and apparatus, storage medium, and electronic apparatus | |
CN107547687A (en) | A kind of message transmitting method and device | |
CN115834472A (en) | Message processing method, forwarding strategy obtaining method and device | |
US20180367452A1 (en) | Information centric networking over multi-access network interfaces |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |