CN103889019A - Method and device for sending data - Google Patents
Method and device for sending data Download PDFInfo
- Publication number
- CN103889019A CN103889019A CN201210560730.8A CN201210560730A CN103889019A CN 103889019 A CN103889019 A CN 103889019A CN 201210560730 A CN201210560730 A CN 201210560730A CN 103889019 A CN103889019 A CN 103889019A
- Authority
- CN
- China
- Prior art keywords
- data
- mobile device
- protocol version
- supported
- address information
- 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.)
- Pending
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a method and device for sending data. The method is applied to a first mobile device. The first mobile device is provided with a first protocol version and a second mobile device is provided with a second protocol version. The first protocol version and the second protocol version are different. The first mobile device is connected with the second mobile device through a routing device. The method includes: the second protocol version sent by the routing device is received; according to the second protocol version, first package is performed on first data and second data supported by the second protocol version is obtained, wherein the second data includes address information of the second mobile device; according to the first protocol version, second package is performed on the second data and third data supported by the first protocol version is obtained; and according to the address information of the first mobile device, the third data is sent to the routing device so that the third data is de-packaged by the routing device and then sent to the second mobile device.
Description
Technical field
The present invention relates to mobile communication technology field, particularly a kind of method and device that sends data.
Background technology
Along with the development of the communication technology, the mobile communication of getting up based on development communication technologies and the Internet have become two large main flow business, therefore, the application of the mobile Internet that mobile communication and the Internet combine, penetrate into life, the every aspects such as work, such as the application of the mobile Internets such as note, bell figure download, mobile music, mobile phone games, Video Applications, mobile-phone payment, location-based service, are just changing the social direction of information age.
And mobile interconnected core technology is that mobile device is interconnected and intercom mutually, if two interconnected equipment all have public network IP address, between equipment, interconnected interoperability is very convenient so, by mutually exchanging IP address, can carry out the link between equipment, then carry out subsequent operation.
But, at present a lot of equipment is present among family lan or company intranet, multiple equipment has used a public IP, when with the Internet in other equipment while linking, need to use STUN server (User Datagram Protoco (UDP) simple traversal network address translater), make equipment in equipment and the Internet net of local area network (LAN) inside can realize equipment room and carry out end-to-end communication, and this technical scheme, because using STUN server, needs carry out transfer, therefore, there is length consuming time, and inefficient technical problem.
In order to solve this technical problem, for the development of current IPv6, prior art has proposed the technical scheme that uses IPv6 to communicate, in the time using IPV6 to communicate, such as the equipment B in device A and local area network (LAN) all has IPV6 address, both communication is used STUN server to carry out transfer with regard to not needing, and can directly communicate.
And the applicant is in the process that realizes the application, find that prior art at least exists following technical problem:
In the prior art, the network that most of equipment uses is generally all the network of IPv4, has the network ip address of IPv4, such as the equipment B in local area network (LAN) is gathered around while having plenty of IPv4 address, have the device A of IPv6 address and equipment B in the time communicating, cannot communicate.
Be that prior art exists the technical problem that cannot communicate between the equipment in equipment and the IPV6 network in IPV4 network.
Summary of the invention
The invention provides a kind of method and device that sends data, exist in prior art in order to solve, between the equipment in the equipment in IPV4 network and IPV6 network, the technical problem that cannot communicate.
On the one hand, the present invention, by the application's a embodiment, provides following technical scheme:
A kind of method that sends data, described method is applied to the first mobile device, described the first mobile device has the first protocol version, the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, described the first mobile device is connected with described the second mobile device by routing device, and described method comprises: receive the described second protocol version being sent by described routing device; According to described second protocol version, the first data are encapsulated for the first time, obtain the second data that described second protocol version is supported, in described the second data, comprise the second mobile device address information; According to described the first protocol version, described the second data are encapsulated for the second time, obtain the 3rd data that described the first protocol version is supported; According to the first mobile device address information, described the 3rd data are sent to described routing device, so that described routing device carries out described the 3rd data to send to described the second mobile device after decapsulation.
Preferably, described the first protocol version is specially IPV4 protocol version, and described second protocol version is specially IPV6 protocol version.
Preferably, described according to described second protocol version, the first data are encapsulated for the first time, obtain the second data that described second protocol version is supported, be specially: according to described second protocol version, by described the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device adds described the first data to encapsulate for the first time, obtain the second data that described second protocol version is supported.
Preferably, described according to the first mobile device address information, described the 3rd data are sent to described routing device after, described method also comprises: receive the 5th data that described routing device encapsulates and sends, the 4th data encapsulation that described the 5th data are sent by described the second mobile device obtains, and is supported by described the first protocol version.
On the other hand, the present invention provides by another embodiment of the application:
A kind of device that sends data, described device is present in the first mobile device, described the first mobile device has the first protocol version, the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, described the first mobile device is connected with described the second mobile device by routing device, and described device comprises: the first receiving element, for receiving the described second protocol version being sent by described routing device; The first encapsulation unit, for according to described second protocol version, encapsulates the first data for the first time, obtains the second data that described second protocol version is supported, comprises the second mobile device address information in described the second data; The second encapsulation unit, for according to described the first protocol version, encapsulates described the second data for the second time, obtains the 3rd data that described the first protocol version is supported; Transmitting element, for described the 3rd data are sent to described routing device, so that described routing device carries out sending to described the second mobile device after decapsulation to described the 3rd data.
Preferably, described the first encapsulation unit is specifically for according to described second protocol version, by described the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device adds described the first data to encapsulate for the first time, obtain the second data that described second protocol version is supported.
Preferably, described device also comprises: the second receiving element, for after described the 3rd data being sent to described routing device according to the first mobile device address information, receive the 5th data that described routing device encapsulates and sends, the 4th data encapsulation that described the 5th data are sent by described the second mobile device obtains, and is supported by described the first protocol version.
On the other hand, the present invention provides by another embodiment of the application:
A kind of method that sends data, described method is applied to routing device, described routing device is connected between the first mobile device and the second mobile device, described the first mobile device has the first view version, described the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, and described method comprises: receive the 3rd data that twice encapsulation of described the first mobile device obtains, described the 3rd data are supported by the first protocol version; From described the 3rd data, deblocking takes on the second data, and described the second data are supported by described second protocol version; According to described second protocol version, described the second data are sent to described the second mobile device.
Preferably, described the second data specifically comprise the first data, the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device.
Preferably, described according to described second protocol version, described the second data are sent to described the second mobile device, be specially: according to described second protocol version, the port of described the second mobile device, and the MAC Address of described the second mobile device, described the second data are sent to described the second mobile device.
Preferably, described, according to described the second mobile device address information, after described the first data are sent to described the second mobile device, described method also comprises: receive the 4th data that described the second mobile device sends; Be the 5th data that the first protocol version is supported by described the 4th data encapsulation, described the 5th data comprise the first mobile device address information; According to described the first mobile device address information, send described the 5th data to described the first mobile device.
On the other hand, the present invention provides by another embodiment of the application:
A kind of device that sends data, described device is present in routing device, described routing device is connected between the first mobile device and the second mobile device, described the first mobile device has the first view version, described the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, described device comprises: the first receiver module, the 3rd data that obtain for receiving twice encapsulation of described the first mobile device, described the 3rd data are supported by the first protocol version; Decapsulation module, takes on the second data for connecing from described the 3rd data deblocking, and described the second data are supported by described second protocol version; The first sending module, for according to described second protocol version, sends to described the second mobile device by described the second data.
Preferably, described the second data specifically comprise the first data, the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device.
Preferably, described the first transmitting element is specifically for according to described second protocol version, and the port of described the second mobile device, and the MAC Address of described the second mobile device, send to described the second mobile device by described the second data.
Preferably, described device also comprises: the second receiver module, for according to described the second mobile device address information, after described the first data are sent to described the second mobile device, receives the 4th data that described the second mobile device sends; The second package module, for being the 5th data that the first protocol version is supported by described the 4th data encapsulation, described the 5th data comprise the first mobile device address information; The second sending module, for according to described the first mobile device address information, sends described the 5th data to described the first mobile device.
One or more technical schemes in technique scheme, have following technique effect or advantage:
In one or more embodiment of the application, a kind of data transmission method for uplink is provided, further, the method is applied in the first mobile device, by the first data that will transmit are carried out to twice encapsulation, first be encapsulated as the second data that second protocol version is supported, and then be the 3rd data that the first protocol version is supported by the second data encapsulation, and send, transmitting, realized the effect that the transmission channel between different protocol versions also can be communicated by letter in the network of diversity of protocol versions.
Further, can also receive the data that sent by routing device by the second mobile device, the effect that also can communicate by letter with the transmission channel realizing between different protocol versions.
In addition, in one or more embodiment of the application, a kind of data transmission method for uplink is provided, further, the method is applied in routing device, carry out the operation of decapsulation by the 3rd data that the first mobile device is sent, then send to the second mobile device to process the second data that obtain after decapsulation, can make to need the data of transmission to transmit in the network of different editions agreement, realize the effect that the transmission channel between different protocol versions also can be communicated by letter.
Further, the data that can also receive the second mobile device transmission encapsulate and send to the first mobile device, transmit to reach in the network of different editions agreement, realized the effect that the transmission channel between different protocol versions also can be communicated by letter.
Brief description of the drawings
Fig. 1 is the first mobile device in the embodiment of the present application one, direct-connected structural representation between the second mobile device and routing device three;
Fig. 2 is the first mobile device in the embodiment of the present application one, the structural representation indirectly connecting between the second mobile device and routing device three;
Fig. 3 is the concrete implementing procedure figure that in the embodiment of the present application one, the first mobile device side sends data;
Fig. 4 is the device schematic diagram that in the embodiment of the present application two, the first mobile device side sends data;
Fig. 5 is the concrete implementing procedure figure that in the embodiment of the present application three, route equipment side sends data;
Fig. 6 is the device schematic diagram that in the embodiment of the present application four, route equipment side sends data.
Embodiment
Exist in prior art in order to solve, between the equipment in the equipment in IPV4 network and IPV6 network, the technical problem that cannot communicate, the embodiment of the present invention proposed a kind of method and device that sends data, and its solution general thought is as follows:
In this application, a kind of method and device that sends data proposed.
First, in the first mobile device side, by receiving the second protocol version being sent by routing device; According to second protocol version, the first data are encapsulated for the first time, obtain the second data that second protocol version is supported, in the second data, comprise the second mobile device address information; According to the first protocol version, the second data are encapsulated for the second time, obtain the 3rd data that the first protocol version is supported; According to the first mobile device address information, the 3rd data are sent to routing device, so that routing device carries out the 3rd data to send to the second mobile device after decapsulation.
In addition, in routing device side, the 3rd data that obtain by receiving twice encapsulation of the first mobile device, the 3rd data are supported by the first protocol version; From the 3rd data, deblocking takes on the second data, and the second data are supported by second protocol version; From the second data, deblocking takes on the first data and the second mobile device address information; According to the second mobile device address information, the first data are sent to the second mobile device.
In above-mentioned method, be the data that the second mobile device can be identified by encapsulating data in the first mobile device side, and, carry out decapsulation transmission by routing device, solve between the equipment in equipment and the IPV6 network in IPV4 network, the technical problem that cannot communicate, has realized the effect that the transmission channel between different protocol versions also can be communicated by letter.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, be to be understood that the specific features in the embodiment of the present invention and embodiment is the detailed explanation to technical solution of the present invention, instead of restriction to technical solution of the present invention, in the situation that not conflicting, the technical characterictic in the embodiment of the present invention and embodiment can combine mutually.Embodiment mono-:
Embodiment mono-:
In the embodiment of the present application, provide a kind of method that sends data.
Further, the method is applied to the first mobile device, more specifically, is the method that is sent data to the second mobile device by the first mobile device, and carries out transfer by routing device.
Concrete, in the embodiment of the present application, the first mobile device can be multiple mobile device, such as mobile phone, and PAD, notebook computer, all-in-one, desktop computer etc.
Further, the first mobile device has the first protocol version, and the second mobile device has second protocol version, and the first protocol version is different with second protocol version.
And in the embodiment of the present application, the first protocol version is specially IPV4 protocol version, can communicate by IPV4 network.
Second protocol version is specially IPV6 protocol version, can communicate by IPV6 network.
Further, the first mobile device is connected with the second mobile device by routing device.
Please refer to Fig. 1 below, if the first mobile device is computer 1, use IPV4 network to communicate; The second mobile device is computer 2, uses IPV6 network to communicate, and routing device is Router.
Further, computer 1 is connected by Router with computer 2, and Router is herein special Router, can be between IPV4 network and IPV6 network translation data.
Further, Router can be connected to one end of computer 1, also can be connected to one end of computer 2, and in Fig. 1, Router is connected to computer 2 these ends.
Further, except situation above, also have situation below, computer 1 can be connected with Router by Router1, and computer 2 can be connected with Router by Router2.
Further, what in Fig. 2, show is that computer 1 can be connected with Router by Router1, the situation that computer 2 can be connected with Router by Router2.
Router1 herein and Router2 are simple transfer of data routing devices.
In the embodiment of the present application, please refer to Fig. 3, the specific implementation process of the method for these transmission data is as follows, it should be noted that, implementation process is below to carry out according to the structure in Fig. 1, and more specifically, processing method in the time that network has the structure in Fig. 2, mode is below in fact identical or similar, and at this, the application repeats no more.
Please refer to Fig. 3 below:
S301, receives the second protocol version being sent by routing device.
S302, according to second protocol version, encapsulates the first data for the first time, obtains the second data that second protocol version is supported.
In the second data, comprise the second mobile device address information.
S303, according to the first protocol version, encapsulates the second data for the second time, obtains the 3rd data that the first protocol version is supported.
S304, sends to routing device according to the first mobile device address information by the 3rd data, so that routing device carries out the 3rd data to send to the second mobile device after decapsulation.
Concrete, in S301, the protocol version that second protocol version uses while being the second mobile device online, more specifically, second protocol version is specially the protocol version of IPV6, sends by routing device.
In the time that the first mobile device receives second protocol version, because the first protocol version of itself and the first mobile device is different, both cannot directly transmit data, therefore, the first mobile device can be carried out S302: according to second protocol version, the first data are encapsulated for the first time, obtain the second data that second protocol version is supported.
Further, the first data now can be view data, and text data etc. certainly, can also be other data, does not limit in this application.
At this, the main purpose encapsulating for the first time, for the first data being transferred in the second mobile device by the protocol version of the second mobile device, and be transferred to the second mobile device, must pass through the port of the second mobile device, address information and MAC Address etc., therefore, in S302, more specifically encapsulation process, according to second protocol version, by the second mobile device address information, the port of the second mobile device, and the MAC Address of the second mobile device adds the first data to encapsulate for the first time, obtain the second data that second protocol version is supported.
Further, after being encapsulated as the second data, become the data that second protocol version is supported, and in the time that the first mobile device will send these data, that network through supporting the first protocol version sends, the data of other protocol versions can not send, therefore, and after through encapsulation for the first time, also can carry out S303, according to the first protocol version, the second data are encapsulated for the second time, obtain the 3rd data that the first protocol version is supported.
More specifically, also the address information of the first mobile device can be encapsulated into the second data, and then obtain the 3rd data.
After encapsulating for the second time, can carry out S304: according to the first mobile device address information, the 3rd data are sent to routing device, so that routing device carries out the 3rd data to send to the second mobile device after decapsulation.
After the 3rd data are sent, in the first mobile device side, complete the overall process that sends data.
More specifically, the first mobile device not only can send data by the first protocol version, can also receive data by the first protocol version, and at this, the data of reception must be supported the first protocol version.
Therefore,, in the first mobile device side, also there is implementation process below:
Receive the 5th data that routing device encapsulates and sends.
Further, the 4th data encapsulation that the 5th data are sent by the second mobile device obtains, and is supported by the first protocol version.
At this, the 5th data can be view data, and text data etc. certainly, can also be other data, does not limit in this application.
Above-mentioned implementation process is the overall process transmitting and receive data carrying out in the first mobile device side, by the first data that will transmit are carried out to twice encapsulation, first be encapsulated as the second data that second protocol version is supported, and then be the 3rd data that the first protocol version is supported by the second data encapsulation, and send, transmitting, realized the effect that the transmission channel between different protocol versions also can be communicated by letter in the network of diversity of protocol versions.
Above-described embodiment has specifically been introduced the specific implementation process that sends data method, and the following examples are introduced the device that this transmission data method is corresponding.
Embodiment bis-:
In the embodiment of the present application, provide a kind of device that sends data.
Wherein, this device is present in the first mobile device.
Further, the first mobile device has the first protocol version, and the second mobile device has second protocol version, and the first protocol version is different with second protocol version.
Further, in the embodiment of the present application, the first protocol version is specially IPV4 protocol version, can communicate by IPV4 network.
Second protocol version is specially IPV6 protocol version, can communicate by IPV6 network.
In addition, the first mobile device is connected with the second mobile device by routing device, and the concrete annexation of three please refer to the structure in Fig. 1 and the Fig. 2 in above-described embodiment one, repeats no more in this application.
Please refer to Fig. 4, in the embodiment of the present application, this device specifically comprises: the first receiving element 401, the first encapsulation unit 402, the second encapsulation units 403, transmitting element 404.
The function of unit is carried out to concrete introduction below.
The first receiving element 401, for receiving the second protocol version being sent by routing device.
The first encapsulation unit 402, for according to second protocol version, encapsulates the first data for the first time, obtains the second data that second protocol version is supported, comprises the second mobile device address information in the second data.
The second encapsulation unit 403, for according to the first protocol version, encapsulates the second data for the second time, obtains the 3rd data that the first protocol version is supported.
Transmitting element 404, for the 3rd data are sent to routing device, so that routing device carries out sending to the second mobile device after decapsulation to the 3rd data.
Further, the first encapsulation unit 402 is specifically for according to second protocol version, by the second mobile device address information, the port of the second mobile device, and the MAC Address of the second mobile device adds the first data to encapsulate for the first time, obtain the second data that second protocol version is supported.
Further, device also comprises:
The second receiving element, for after the 3rd data being sent to routing device according to the first mobile device address information, receive the 5th data that routing device encapsulates and sends, the 4th data encapsulation that the 5th data are sent by the second mobile device obtains, and is supported by the first protocol version.
In superincumbent two embodiment, specifically describe method and the device of the first mobile device side transmission data, in the following embodiments, the concrete method that sends data in routing device side of introducing.
Embodiment tri-:
In the embodiment of the present application, a kind of method that sends data has been proposed.
Method is applied to routing device, and more specifically, the method for these transmission data is methods that routing device sends to the second mobile device.
Further, routing device is connected between the first mobile device and the second mobile device, and the first mobile device has the first view version, and the second mobile device has second protocol version, and the first protocol version is different with second protocol version.
Further, in the embodiment of the present application, the first protocol version is specially IPV4 protocol version, can communicate by IPV4 network.
Second protocol version is specially IPV6 protocol version, can communicate by IPV6 network.
More specifically, the concrete annexation of three please refer to the description in Fig. 1 and the Fig. 2 in above-described embodiment one, and at this, the application does not limit.
, please refer to Fig. 5 below, in routing device side, the specific implementation process that sends data is as follows.
S501, receives the 3rd data that twice encapsulation of the first mobile device obtains, and the 3rd data are supported by the first protocol version.
S502, from the 3rd data, deblocking takes on the second data, and the second data are supported by second protocol version.
S503, according to described second protocol version, sends to described the second mobile device by described the second data.
Concrete, in S501, the 3rd data obtain by twice encapsulation of the first mobile device, and sent by the network of the first protocol version support by the first mobile device.
And now, the 3rd data send less than in the second mobile device according to the first protocol version, therefore, can carry out S502, from the 3rd data, deblocking takes on the second data, and the second data are supported by second protocol version, and have comprised the second mobile device address information.
Therefore, can carry out S503: according to described second protocol version, described the second data are sent to described the second mobile device.
Further, the second data comprise the port of the second mobile device, and the MAC Address of the second mobile device.
After deblocking goes out the second data, routing device can be according to second protocol version, thereby data are spied upon to the port that obtains the second mobile device that the second data comprise, and the MAC Address of the second mobile device.And according to these information, the second data are sent to the second mobile device.In the present embodiment, the process that routing device is spied upon acquisition relevant information according to second protocol version to data belongs to prior art, no longer describes in detail here.
Certainly, in actual conditions, routing device can not only have a port, only for a mobile device, in the use of routing device, other mobile devices can also and the embodiment of the present application in the second mobile device jointly use a routing device, and, each mobile device all can have port numbers separately in routing device, and MAC Address, and the port numbers that for example the second mobile device has in routing device is PIN2.
Therefore, in the time that the second data are sent to the second mobile device by routing device, due to the content of spying upon the second data and comprising, can be according to the second mobile device address information, the port of the second mobile device, and the MAC Address of the second mobile device, send to the second mobile device by the second data.
In the time that the second mobile device receives the second data, can process the second data, such as operations such as decapsulations, peel off the second mobile device address information that the second mobile device comprises, the port of the second mobile device, and the MAC Address of the second mobile device, then obtain the first data, now, the first data can be view data, text data etc., certainly, can also be other data, not limit in this application.
For example the first data are view data, in the time that the second mobile device receives this view data, can process this view data, and such as preservation, editor, rename etc. sequence of operations.
Further, in routing device side, not only can receive and decapsulation first mobile device send data, can also to second mobile device send data carry out encapsulation process, concrete implementation process is as follows:
First, receive the 4th data that the second mobile device sends.
In the time that the second mobile device sends data, the 4th data directly can be sent to routing device, do not need to encapsulate, encapsulated by router.Therefore,, in router side, can do processing below to the 4th data:
Be the 5th data that the first protocol version is supported by the 4th data encapsulation.
Further, in the time encapsulating, the first mobile device address information can be encapsulated into the 5th data, and then, in the time sending the 5th data, can be according to the first mobile device address information, send the 5th data to the first mobile device.
In the above-described embodiments, the encapsulation of data that carries out in router side and the specific implementation process of decapsulation data have been described, carry out the operation of decapsulation by the 3rd data that the first mobile device is sent, then send to the second mobile device to process the second data that obtain after decapsulation, and further, the data that receive the second mobile device transmission encapsulate and send to the first mobile device, can make to need the data of transmission to transmit in the network of different editions agreement, realize the effect that the transmission channel between different protocol versions also can be communicated by letter.
In the above-described embodiments, specifically introduce the method in routing device side deal with data and transmission data, in the following embodiments, can specifically introduce device corresponding to method that sends data.
Be described in detail by the whole implementation process that concrete example sends data to the second mobile device to the first mobile device below.
In this example, the first mobile device is that computer 1, the second mobile device is computer 2.
Wherein, computer 1 has the protocol version of IPV4, uses IPV4 network to carry out the transmission of data.
Computer 2 has the protocol version of IPV6, uses IPV6 network to carry out the transmission of data.
Computer 1 is different with the protocol version of computer 2, and, in different transmission networks.
Now need to the computer 1 from IPV4 network transmit the picture of Jiu Zhaigou to the computer 2 in IPV6 network.
In computer 1, first can obtain this picture.
Secondly, can receive the protocol version of the IPV6 of routing device transmission in computer 1, the protocol version of IPV6 is the protocol version of supporting computer 2.
Further, can be according to the protocol version of IPV6, by the address information of computer 2, the port of computer 2, and the MAC Address of computer 2 encapsulates for the first time together with picture, obtains the packet that the protocol version of IPV6 is supported.
Wherein, this packet is the packet of supporting that IPV6 network sends, therefore, in computer 1, also can encapsulate again this packet, is encapsulated as the packet of the protocol version support of IPV4, then sends by IPV4 network.
Further, when computer 1 sent by IPV4 network carry out secondary encapsulation after form packet after, in routing device side, can obtain this packet, and further carry out subsequent treatment, as follows:
First, routing device can carry out decapsulation for the first time to this packet, after decapsulation, can obtain the packet that the protocol version of IPV6 is supported, now, routing device can be spied upon according to protocol version the address information of the computer 2 that packet comprises, the port PIN2 of computer 2, and the MAC Address of computer 2, then by the network of IPV6, packet is sent, and further send to computer 2.
When computer 2 receives packet, can directly process, such as decapsulation obtains the picture of Jiu Zhaigou, and the operation such as editor, storage.
After computer 2 receives packet, transmit the implementation Process of data by heterogeneous networks complete.
Embodiment tetra-:
In the embodiment of the present application, provide a kind of device that sends data.
Further, this device is present in routing device.
Further, routing device is connected between the first mobile device and the second mobile device, and the first mobile device has the first view version, and the second mobile device has second protocol version, and the first protocol version is different with second protocol version.
Further, in the embodiment of the present application, the first protocol version is specially IPV4 protocol version, can communicate by IPV4 network.
Second protocol version is specially IPV6 protocol version, can communicate by IPV6 network.
And the concrete annexation of three please refer to the structure in Fig. 1 and the Fig. 2 in above-described embodiment one, repeat no more in this application.
, please refer to Fig. 6 below, this device specifically comprises: the first receiver module 601, decapsulation module 602, the first sending modules 603.
Function in unit is carried out to concrete introduction below.
The first receiver module 601, the 3rd data that obtain for receiving twice encapsulation of the first mobile device, the 3rd data are supported by the first protocol version.
The first sending module 603, for according to described second protocol version, sends to described the second mobile device by described the second data.
Further, described the second data specifically comprise the first data, the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device.
Further, the first transmitting element 603 is specifically for according to described second protocol version, and the port of described the second mobile device, and the MAC Address of described the second mobile device, send to described the second mobile device by described the second data.
Further, this device also comprises:
The second receiver module, for according to described the second mobile device address information, after described the first data are sent to described the second mobile device, receives the 4th data that described the second mobile device sends;
The second package module, for being the 5th data that the first protocol version is supported by described the 4th data encapsulation, described the 5th data comprise the first mobile device address information;
The second sending module, for according to described the first mobile device address information, sends described the 5th data to described the first mobile device.
By one or more embodiment of the present invention, can be achieved as follows technique effect:
In one or more embodiment of the application, a kind of data transmission method for uplink is provided, further, the method is applied in the first mobile device, by the first data that will transmit are carried out to twice encapsulation, first be encapsulated as the second data that second protocol version is supported, and then be the 3rd data that the first protocol version is supported by the second data encapsulation, and send, transmitting, realized the effect that the transmission channel between different protocol versions also can be communicated by letter in the network of diversity of protocol versions.
Further, can also receive the data that sent by routing device by the second mobile device, the effect that also can communicate by letter with the transmission channel realizing between different protocol versions.
In addition, in one or more embodiment of the application, a kind of data transmission method for uplink is provided, further, the method is applied in routing device, carry out the operation of decapsulation by the 3rd data that the first mobile device is sent, then send to the second mobile device to process the second data that obtain after decapsulation, can make to need the data of transmission to transmit in the network of different editions agreement, realize the effect that the transmission channel between different protocol versions also can be communicated by letter.
Further, the data that can also receive the second mobile device transmission encapsulate and send to the first mobile device, transmit to reach in the network of different editions agreement, realized the effect that the transmission channel between different protocol versions also can be communicated by letter.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (15)
1. one kind sends the method for data, described method is applied to the first mobile device, described the first mobile device has the first protocol version, the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, described the first mobile device is connected with described the second mobile device by routing device, it is characterized in that, described method comprises:
Receive the described second protocol version being sent by described routing device;
According to described second protocol version, the first data are encapsulated for the first time, obtain the second data that described second protocol version is supported, in described the second data, comprise the second mobile device address information;
According to described the first protocol version, described the second data are encapsulated for the second time, obtain the 3rd data that described the first protocol version is supported;
According to the first mobile device address information, described the 3rd data are sent to described routing device, so that described routing device carries out described the 3rd data to send to described the second mobile device after decapsulation.
2. the method for claim 1, is characterized in that, described the first protocol version is specially IPV4 protocol version, and described second protocol version is specially IPV6 protocol version.
3. the method for claim 1, is characterized in that, describedly according to described second protocol version, the first data is encapsulated for the first time, obtains the second data that described second protocol version is supported, is specially:
According to described second protocol version, by described the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device adds described the first data to encapsulate for the first time, obtains the second data that described second protocol version is supported.
4. the method for claim 1, is characterized in that, described according to the first mobile device address information, described the 3rd data are sent to described routing device after, described method also comprises:
Receive the 5th data that described routing device encapsulates and sends, the 4th data encapsulation that described the 5th data are sent by described the second mobile device obtains, and is supported by described the first protocol version.
5. one kind sends the device of data, described device is present in the first mobile device, described the first mobile device has the first protocol version, the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, described the first mobile device is connected with described the second mobile device by routing device, it is characterized in that, described device comprises:
The first receiving element, for receiving the described second protocol version being sent by described routing device;
The first encapsulation unit, for according to described second protocol version, encapsulates the first data for the first time, obtains the second data that described second protocol version is supported, comprises the second mobile device address information in described the second data;
The second encapsulation unit, for according to described the first protocol version, encapsulates described the second data for the second time, obtains the 3rd data that described the first protocol version is supported;
Transmitting element, for described the 3rd data are sent to described routing device, so that described routing device carries out sending to described the second mobile device after decapsulation to described the 3rd data.
6. device as claimed in claim 5, it is characterized in that, described the first encapsulation unit is specifically for according to described second protocol version, by described the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device adds described the first data to encapsulate for the first time, obtain the second data that described second protocol version is supported.
7. device as claimed in claim 5, is characterized in that, described device also comprises:
The second receiving element, for after described the 3rd data being sent to described routing device according to the first mobile device address information, receive the 5th data that described routing device encapsulates and sends, the 4th data encapsulation that described the 5th data are sent by described the second mobile device obtains, and is supported by described the first protocol version.
8. one kind sends the method for data, described method is applied to routing device, described routing device is connected between the first mobile device and the second mobile device, described the first mobile device has the first view version, described the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, it is characterized in that, described method comprises:
Receive the 3rd data that twice encapsulation of described the first mobile device obtains, described the 3rd data are supported by the first protocol version;
From described the 3rd data, deblocking takes on the second data, and described the second data are supported by described second protocol version;
According to described second protocol version, described the second data are sent to described the second mobile device.
9. method as claimed in claim 8, is characterized in that, described the second data specifically comprise the first data, the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device.
10. method as claimed in claim 9, is characterized in that, described according to described second protocol version, and described the second data are sent to described the second mobile device, is specially:
According to described second protocol version, the port of described the second mobile device, and the MAC Address of described the second mobile device, send to described the second mobile device by described the second data.
11. methods as claimed in claim 8, is characterized in that, described, according to described the second mobile device address information, after described the first data are sent to described the second mobile device, described method also comprises:
Receive the 4th data that described the second mobile device sends;
Be the 5th data that the first protocol version is supported by described the 4th data encapsulation, described the 5th data comprise the first mobile device address information;
According to described the first mobile device address information, send described the 5th data to described the first mobile device.
12. 1 kinds send the device of data, described device is present in routing device, described routing device is connected between the first mobile device and the second mobile device, described the first mobile device has the first view version, described the second mobile device has second protocol version, and described the first protocol version is different with described second protocol version, it is characterized in that, described device comprises:
The first receiver module, the 3rd data that obtain for receiving twice encapsulation of described the first mobile device, described the 3rd data are supported by the first protocol version;
Decapsulation module, takes on the second data for connecing from described the 3rd data deblocking, and described the second data are supported by described second protocol version;
The first sending module, for according to described second protocol version, sends to described the second mobile device by described the second data.
13. devices as claimed in claim 12, is characterized in that, described the second data specifically comprise the first data, the second mobile device address information, the port of described the second mobile device, and the MAC Address of described the second mobile device.
14. devices as claimed in claim 13, it is characterized in that, described the first transmitting element is specifically for according to described second protocol version, the port of described the second mobile device, and the MAC Address of described the second mobile device, described the second data are sent to described the second mobile device.
15. devices as claimed in claim 12, is characterized in that, described device also comprises:
The second receiver module, for according to described the second mobile device address information, after described the first data are sent to described the second mobile device, receives the 4th data that described the second mobile device sends;
The second package module, for being the 5th data that the first protocol version is supported by described the 4th data encapsulation, described the 5th data comprise the first mobile device address information;
The second sending module, for according to described the first mobile device address information, sends described the 5th data to described the first mobile device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560730.8A CN103889019A (en) | 2012-12-20 | 2012-12-20 | Method and device for sending data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560730.8A CN103889019A (en) | 2012-12-20 | 2012-12-20 | Method and device for sending data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103889019A true CN103889019A (en) | 2014-06-25 |
Family
ID=50957698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210560730.8A Pending CN103889019A (en) | 2012-12-20 | 2012-12-20 | Method and device for sending data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103889019A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113747470A (en) * | 2021-08-09 | 2021-12-03 | 咪咕音乐有限公司 | Interface flow analysis method, routing equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094155A (en) * | 2007-08-02 | 2007-12-26 | 杭州华三通信技术有限公司 | Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices |
CN101938531A (en) * | 2010-09-14 | 2011-01-05 | 北京星网锐捷网络技术有限公司 | Method, system and device for communicating IPv4 network and IPv6 network |
CN102340547A (en) * | 2010-07-22 | 2012-02-01 | 中国电信股份有限公司 | Distribution management method, equipment and system for IPv4 (Internet Protocol Version 4) address |
-
2012
- 2012-12-20 CN CN201210560730.8A patent/CN103889019A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094155A (en) * | 2007-08-02 | 2007-12-26 | 杭州华三通信技术有限公司 | Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices |
CN102340547A (en) * | 2010-07-22 | 2012-02-01 | 中国电信股份有限公司 | Distribution management method, equipment and system for IPv4 (Internet Protocol Version 4) address |
CN101938531A (en) * | 2010-09-14 | 2011-01-05 | 北京星网锐捷网络技术有限公司 | Method, system and device for communicating IPv4 network and IPv6 network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113747470A (en) * | 2021-08-09 | 2021-12-03 | 咪咕音乐有限公司 | Interface flow analysis method, routing equipment and storage medium |
CN113747470B (en) * | 2021-08-09 | 2024-05-24 | 咪咕音乐有限公司 | Interface traffic analysis method, routing device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11323367B2 (en) | Method, apparatus and system for enabling communication using multi-protocol gateway and virtual resource manager | |
CN101510853B (en) | Method and apparatus for implementing WLAN wireless bridge, and wireless access client terminal | |
US20150319644A1 (en) | A method and a system for sharing wireless broadband connection between devices | |
CN102461134A (en) | Handheld device capable of providing data tethering services while maintaining suite of handheld service functions | |
CN107172572B (en) | Virtual connections method based on low-power consumption bluetooth and the wireless charging agreement using this method | |
KR20020028919A (en) | A method and apparatus for routing data in a communication device | |
CN104022936B (en) | A kind of tunnel establishing method and device | |
CN102438331B (en) | A kind of mobile terminal is by the method and system of surfing Internet with cell phone | |
CN101600224A (en) | Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts | |
CN104184646B (en) | VPN data interactive method and system and its network data exchange equipment | |
CN102546362A (en) | Message processing method, message processing system and customer premises equipment | |
CN102291305B (en) | Method and device for implementing 6 to 4 relay routing, and message forwarding method | |
CN202285423U (en) | Intelligent set top box | |
CN103152444B (en) | The network address translation of trunking scheme and message transmitting method and device, system | |
CN102546407A (en) | Message sending method and device | |
CN102638382A (en) | Method for realizing DLNA (Digital Living Network Alliance) and DLNA agent equipment | |
CN104486229A (en) | Method and equipment for realizing VPN message forwarding | |
CN105052106A (en) | Methods and systems for receiving and transmitting internet protocol (ip) data packets | |
CN103796191A (en) | Method, device and terminal for sending data to user terminal | |
CN101753466B (en) | Method and device for transmitting wireless broadband service messages | |
CN103889019A (en) | Method and device for sending data | |
CN104702565A (en) | Media resource sharing method, sharing server and sharing system | |
CN104022935A (en) | Mobile communication network isolation method based on business property | |
CN105991629B (en) | TCP connection method for building up and device | |
CN101442487A (en) | Apparatus and system for forwarding data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140625 |
|
RJ01 | Rejection of invention patent application after publication |