CN101621472B - Message transmission method and router - Google Patents

Message transmission method and router Download PDF

Info

Publication number
CN101621472B
CN101621472B CN2009101574430A CN200910157443A CN101621472B CN 101621472 B CN101621472 B CN 101621472B CN 2009101574430 A CN2009101574430 A CN 2009101574430A CN 200910157443 A CN200910157443 A CN 200910157443A CN 101621472 B CN101621472 B CN 101621472B
Authority
CN
China
Prior art keywords
router
message
address information
decapsulation
traffic identifier
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.)
Expired - Fee Related
Application number
CN2009101574430A
Other languages
Chinese (zh)
Other versions
CN101621472A (en
Inventor
王佩龙
王文海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009101574430A priority Critical patent/CN101621472B/en
Publication of CN101621472A publication Critical patent/CN101621472A/en
Application granted granted Critical
Publication of CN101621472B publication Critical patent/CN101621472B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a message transmission method and a router. The message transmission method comprises the following steps: an encapsulating router obtains a flow label corresponding to an in-tunnel message without an assigned flow label, establishes a corresponding relation between the flow label and the address information of the message and is synchronized for the corresponding relation together with an decapsulating router; and the encapsulating router encapsulates and sends the in-tunnel message to the decapsulating router after substituting the address information in the in-tunnel message by using the flow label according to the corresponding relation when receiving the in-tunnel message belonging to the same flow of the encapsulated message, so that the decapsulating router decapsulates the in-tunnel message according to the corresponding relation. The invention compresses and sends the in-tunnel message and reduces the consumption of a network bandwidth. The invention also discloses the encapsulating router and the decapsulating router applying the method.

Description

A kind of message transmitting method and router
Technical field
The present invention relates to Internet technical field, relate in particular to a kind of message transmitting method and router.
Background technology
Along with the expansion of development of internet technology and web influence, existing IPv4 in the Internet (Internet Protocol version 4, Internet protocol the 4th edition) address is very in short supply.Distribute temporary IP v4 address or NAT (Network Address Translation though use; Network address translation) etc. technology can be alleviated the situation of IPv4 address shortage to a certain extent; But also increased the expense of address resolution and processing aspect; Cause the inefficacy of some higher layer applications simultaneously, and can't avoid the IPv4 address and be about to be assigned with problem totally.
Adopt IPv6 (the Internet Protocol version 6 of 128 bit address length; The Internet protocol sixth version) address; Can thoroughly solve the difficult problem of IPv4 address shortage; And at aspects such as address capability, fail safe, network management, mobility and service quality tangible improvement being arranged, is one of core standard of Next Generation Internet network agreement employing.IPv6 and IPv4 are incompatible, but with TCP (Transmission Control Protocol, transmission control protocol)/IP (Internet Protocol, Internet protocol) protocol suite in other protocol-compliants, therefore, IPv6 can replace IPv4 fully.Before IPv6 becomes popular protocol; Use the network of IPv6 protocol stack to carry out proper communication with the current network that is still being supported by IPv4; Therefore, cross over the IPv4 network and realize that the technology of IPv6 intercommunication becomes very important, can guarantee that the IPv4 smooth transition is to IPv6.
GRE (Generic Routing Encapsulation, generic route encapsulation) tunnel can carry IPv6 message leap IPv4 network and transmit as a kind of IPv6 transitional technology.Particularly, the GRE agreement can encapsulate the data message of some network layer protocol, and the data message after the encapsulation can be transmitted in another network layer protocol, is a kind of of Tunnel (tunnel) technology, belongs to layer 3 Tunnel protocol.Gre tunneling is a virtual point-to-point connection, can a transmission channel be provided for the data message after the encapsulation, and the two ends of gre tunneling add encapsulation and decapsulation to the data message respectively.
As shown in Figure 1, for protocol massages passes through the process sketch map that IP network transmits in gre tunneling, wherein, Router A and Router B are positioned at the two ends of gre tunneling, respectively the data message are added encapsulation and decapsulation.Router A comprises the idiographic flow that the data message adds encapsulation: after the interface that Router A connects Group 1 is received the X protocol massages, how to confirm this protocol massages of route by the X agreement through the destination address domain in the heading of checking this protocol massages; If the destination address of protocol massages will pass through Tunnel and could arrive, then Router A sends to corresponding Tunnel interface with this protocol massages; The Tunnel interface carries out the GRE encapsulation after receiving this protocol massages, and after this protocol massages was encapsulated the IP heading, destination address and routing table that the IP that obtains according to encapsulation wraps were transmitted this protocol massages through corresponding network interface.
Router B comprises the idiographic flow that the data message carries out decapsulation: Router B receives the IP message from the Tunnel interface, checks this IP message destination address; If the destination of this IP message is Router B, then Router B removes the IP header of this message, and by the GRE agreement message that removes behind the IP header is handled accordingly, like check key, inspection verification and sequence number of message etc.; The GRE agreement is removed the GRE header after accomplishing corresponding the processing, is carried out follow-up forwarding and handles removing message behind the GRE header by the X agreement.
Like Fig. 2, shown in Figure 3, be respectively message format sketch map and the message transmission form sketch map in the IP tunnel after the GRE encapsulation.Need the data message of encapsulation and transmission, be referred to as payload (Payload), the protocol type of payload is passenger protocol (Passenger Protocol).After equipment is received a payload, at first use tunneling (Encapsulation Protocol) that this payload is carried out the GRE encapsulation, on the basis of passenger protocol message, add a GRE head, the passenger protocol message is packaged into the GRE message; And then be encapsulated in packaged original message and GRE head in the IP message; Be responsible for the forward direction of this message by the IP layer and transmit (Forwarding), the IP agreement that will be responsible for the forward direction forwarding usually is called host-host protocol (Delivery Protocol or Transport Protocol).According to the difference of host-host protocol, GRE can be divided into GRE over IPv4 and two kinds of tunnel modes of GRE over IPv6.
In the prior art; GRE links as a kind of tunnel of point-to-point; Need many message flows of transmitting via this tunnel be packaged into channel message stream and transmission by adding the encapsulation endpoint device; And remove the channel message head by the decapsulation endpoint device, be reduced into many and transmit after going out channel message stream.Gre tunneling is set up path between two network nodes, the tunnel transmission path is transparent, sightless for the message of transmitting via this tunnel.
As shown in Figure 4, be the message format sketch map before and after the GRE encapsulation, the gre tunneling technology through IPv6 in IPv4 can realize that two IPv6 networks stride the IPv4 network interconnection, the IPv6 message is encapsulated as the IPv4 message in the IPv4 transmission through network after going into the tunnel.IPv6 head by the IPv6 message of gre tunneling encapsulation can not participated in any route behavior on the tunnel transmission path.The tunnel that two equipment of endpoint of a tunnel are responsible for the IPv6 message respectively adds encapsulation and decapsulation, can not carry out any modification to the IPv6 message of going into the tunnel and handle, but will transmit as passenger data fully via the IPv6 message that the tunnel sends.
Because gre tunneling can not carry out any modification to the IPv6 message of going into the tunnel, but with the IPv6 message as the transparent transmission of passenger data.Therefore, after message flow encapsulated through gre tunneling, the length of message can increase because of the interpolation of tunnel encapsulation head, causes the additive decrementation of the network bandwidth.The gre tunneling that with the host-host protocol is IPv4 is an example; Go into the tunnel add the encapsulation before the IPv6 message length be N; After adding the tunnel encapsulation head, message length becomes: IPv4 head length degree+GRE head length degree+IPv6 message length (N), for not with the basic GRE encapsulation of GRE key and GRE checksum; Message length also can become 20+4+N=24+N, increases by 24 bytes than the message before the encapsulation.Because source, the destination address information of a plurality of messages of same message flow are identical; The IPv6 head of the IPv6 message after the encapsulation can not participated in any route behavior on the tunnel transmission path; Therefore; The source of the IPv6 passenger's message in the tunnel, destination address information are transmitted for the tunnel and are cut little ice, and have but consumed the network bandwidth.
Summary of the invention
The invention provides a kind of message transmitting method and router, reduced when gre tunneling E-Packets consumption the network bandwidth.
The invention provides a kind of message transmitting method; Be applied to comprise in the network system that adds encapsulation router and decapsulation router; The said encapsulation router that adds links to each other with said decapsulation router through the generic route encapsulation gre tunneling, said method comprising the steps of:
Said encapsulation router or the said decapsulation router of adding set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end;
The said encapsulation router that adds is when receiving the message that belongs to same stream; According to said corresponding relation; After utilizing the address information in the said traffic identifier replacement message, the message encapsulation is sent to said decapsulation router, makes said decapsulation router according to said corresponding relation decapsulation message.
Preferably, said decapsulation router is set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end, is specially:
Said decapsulation router extracts the address information of said message after receiving message;
For said address information is distributed corresponding traffic identifier, and set up traffic identifier and be the corresponding relation between the message addresses distributed information;
Control message according to said address information and said traffic identifier structure destination, and said destination control message is sent to the said encapsulation router that adds, carry said corresponding relation in the said destination control message.
Preferably, said decapsulation router sends to said adding after the encapsulation router with said destination control message, also comprises:
Said decapsulation router receives from the said message that encapsulates router that adds, and extracts the traffic identifier in the message, inquires about said corresponding relation according to said traffic identifier, obtains message corresponding address information, and utilizes the traffic identifier in the said address information replacement message.
Preferably, the said encapsulation router that adds is set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end, is specially:
The said address information that adds encapsulation router extraction message is that said address information is distributed corresponding traffic identifier, and sets up traffic identifier and be the corresponding relation between the message addresses distributed information;
The said encapsulation router that adds is controlled message according to said address information and said traffic identifier structure source end, and said source end control message is sent to said decapsulation router, carries said corresponding relation in the said source end control message;
Said decapsulation router receives said source end control message, sets up the corresponding relation of said address information and said traffic identifier according to said source end control message.
Preferably, said address information comprises source address information and/or destination address information.
The present invention also provides a kind of encapsulation router that adds; Be applied to comprise in the network system that adds encapsulation router and decapsulation router; The said encapsulation router that adds links to each other with said decapsulation router through the generic route encapsulation gre tunneling, and the said encapsulation router that adds comprises:
Acquisition module is used to receive the traffic identifier that is distributed from opposite end decapsulation router; Wherein, The said encapsulation router that adds sends to the decapsulation router with the channel message that is not compressed into of unallocated traffic identifier; Said decapsulation router extracts the address information in the not compressed packet that receives; For this address information is distributed traffic identifier, the decapsulation router is controlled message according to address information and traffic identifier structure destination, and through destination control message traffic identifier and corresponding address information is sent to the said encapsulation router that adds;
Create module, be connected, be used to set up the traffic identifier that said acquisition module obtains and the corresponding relation of corresponding address information with said acquisition module, and with the said corresponding relation of said decapsulation router synchronization;
Compression module; Be connected with said establishment module; Be used for receive belong to same stream go into channel message the time, the corresponding relation according to said establishment module is set up utilizes said traffic identifier to replace the address information in the channel message of going into of belonging to of said reception of same stream;
Package module is connected with said compression module, and the channel message encapsulation of going into after being used for said compression module handled is sent to said decapsulation router, goes into channel message after it is handled according to the said compression module that has encapsulated of said corresponding relation decapsulation.
Compared with prior art; The present invention has the following advantages: the encapsulation router that adds among the present invention is realized the compression of going into channel message is sent through inquiry compression list item; Make message length after the tunnel encapsulation be not more than the original channel message length of going into; Reduce the message fragment number of times in the network, reduced the consumption of the network bandwidth.
Description of drawings
Fig. 1 passes through the process sketch map that IP network transmits for the X protocol massages in gre tunneling;
Fig. 2 is the message format sketch map after the GRE encapsulation;
Fig. 3 is the message transmission form sketch map in the IP tunnel;
Fig. 4 is the message format sketch map before and after the GRE encapsulation;
Fig. 5 is a kind of message transmitting method flow chart among the present invention;
Fig. 6 is a kind of message transmissions application scenarios flow chart among the present invention;
Fig. 7 is an IPv6 heading form sketch map;
Destination control message format sketch map when Fig. 8 carries the IPv6 message for GRE;
Fig. 9 is a GRE heading form sketch map;
Figure 10 is a kind of encapsulation router topology sketch map that adds among the present invention;
Figure 11 is a kind of decapsulation router topology sketch map among the present invention.
Embodiment
In the technical scheme provided by the invention; Its core concept is for passing through the information interaction between two routers of gre tunneling end points; The tunnel bearer traffic is identified again; Can be that message distributes the corresponding traffic identifier of address information by the decapsulation router, and will control message through destination and traffic identifier and corresponding address information are sent to add the encapsulation router, make to add the encapsulation router is set up address information and traffic identifier according to the destination control message that receives corresponding relation; And according to this corresponding relation; Utilize traffic identifier to be substituted into the address information in the channel message, this is gone into channel message carry out processed compressed, and the channel message of going into after the processed compressed is sent to the decapsulation router; It is after message distributes the corresponding traffic identifier of address information that deblocking changes router; Set up the corresponding relation of address information kind traffic identifier; Behind the message that receives after adding encapsulation router processed compressed; According to this corresponding relation, utilize the traffic identifier in the message after address information substitutes processed compressed, this message is carried out decompression.
In addition; Can be that packaged message distributes the corresponding traffic identifier of address information also by adding the encapsulation router; And will traffic identifier and corresponding address information be sent to the decapsulation router through source end control message, make the decapsulation router set up the corresponding relation of address information and traffic identifier according to the source end control message that receives; Sealing up the commentaries on classics router is after message distributes the corresponding traffic identifier of address information; Set up the corresponding relation of address information and traffic identifier; And according to this corresponding relation; Utilize traffic identifier to be substituted into the address information in the channel message, carry out processed compressed, and the channel message of going into after the processed compressed is sent to the decapsulation router going into channel message; The decapsulation router according to the corresponding relation of address information and traffic identifier, utilizes the traffic identifier in the message after address information substitutes processed compressed behind the message that receives after adding encapsulation router processed compressed, this message is carried out decompression.
To combine the accompanying drawing among the present invention below, technical scheme of the present invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
As shown in Figure 5, be a kind of message transmitting method flow chart among the present invention, be applied to comprise in the network system that adds encapsulation router and decapsulation router that add the encapsulation router and link to each other with the decapsulation router through gre tunneling, this method may further comprise the steps:
Step 101 adds the encapsulation router and obtains the traffic identifier of going into the channel message correspondence to unallocated traffic identifier, and set up the corresponding relation of the address information of traffic identifier and message, with decapsulation router synchronization corresponding relation.
Wherein, Add the encapsulation router and obtain the mode of going into the corresponding traffic identifier of channel message unallocated traffic identifier; Can receive the traffic identifier that is distributed from opposite end decapsulation router for sealing up the dress router; Also can be for sealing up the address information that the dress router extracts packaged message, for this address information is distributed corresponding traffic identifier.The address information of message comprises source address information and/or destination address information.
Particularly; Add the encapsulation router and send packaged message to the decapsulation router, the decapsulation router extracts the address information of packaged message, for this address information is distributed corresponding traffic identifier; Set up the corresponding relation of the address information of traffic identifier and message; And according to address information and traffic identifier structure destination control message, this destination control message sent to add the encapsulation router, make to add the encapsulation router and receive traffic identifier through destination control message.
Adding the encapsulation router is that said address information is distributed after the corresponding traffic identifier, can control message according to address information and traffic identifier structure source end, and this source end control message is sent to the decapsulation router; Decapsulation router reception sources end control message is controlled the corresponding relation that message is set up address information and traffic identifier according to this source end.
Step 102; Add the encapsulation router the message that receives and encapsulate belong to same stream go into channel message the time; According to corresponding relation; After utilizing traffic identifier to be substituted into the address information in the channel message, will go into channel message encapsulation and be sent to the decapsulation router, and make it go into channel message according to the corresponding relation decapsulation is said.
Particularly; Since add the encapsulation router receive go into channel message and packaged message belongs to same stream; Go into channel message and have identical address information with packaged message; The address information of promptly going into channel message is included in the corresponding relation that adds address information that the encapsulation router sets up and traffic identifier, adds the encapsulation route through this corresponding relation of inquiry, can obtain the traffic identifier into the address information correspondence of channel message; And carry out processed compressed to going into channel message according to this traffic identifier, the encapsulation of the message after the processed compressed is sent to the decapsulation router.
The decapsulation router receives from adding the compressed packet that encapsulates router; Extract the traffic identifier in the compressed packet; The address information that inquiry self is set up according to traffic identifier and the corresponding relation of traffic identifier; Obtain compressed packet corresponding address information, and utilize the traffic identifier in this address information replacement compressed packet.
The encapsulation router that adds among the present invention utilizes traffic identifier to be substituted into the address information in the channel message; Realization is sent the compression of going into channel message; Make message length after the tunnel encapsulation be not more than the original channel message length of going into; Reduce the message fragment number of times in the network, reduced the consumption of the network bandwidth.
As a kind of application scenarios among the present invention, gre tunneling can carry out processed compressed by the IPv6 message that adds before the encapsulation router encapsulates GRE that is positioned at gre tunneling one end in the process of carrying IPv6 message leap IPv4 network.Below in conjunction with concrete application scenarios, the message transmitting method among the present invention is carried out detailed description.Need to prove; Message transmitting method among the present invention is not limited in gre tunneling at the application scenarios that carries IPv6 message leap IPv4 network; Also be applicable to other application scenarios; Comprise that gre tunneling is at the application scenarios of carrying IPv4 message leap IPv6 network, gre tunneling is crossed over the IPv4 network at carrying IPX (Internetwork Packet Exchange protocol, internet packet exchange agreement) message application scenarios etc.
As shown in Figure 6, a kind of message transmissions application scenarios flow chart among the present invention specifically may further comprise the steps:
Step 201 adds the encapsulation router and sends not compressed packet to the decapsulation router.
Wherein, compressed packet does not add the encapsulation router this message is not carried out processed compressed for through the first message in the message flow of gre tunneling transmission.When this message is when crossing over the IPv6 message of IPv4 network, add the encapsulation router and on the basis of this message, add GRE heading and IPv4 heading, and the message after will encapsulating sends to the decapsulation router through gre tunneling.
Step 202, the decapsulation router extracts the address information in the not compressed packet that receives, for this address information is distributed traffic identifier.
Particularly, after the decapsulation router receives not compressed packet, earlier this message is carried out decapsulation and handle, extract source address information, destination address information and original traffic identifier of this message again, and be the above-mentioned address information distribution traffic identifier of this message.As shown in Figure 7; For IPv6 heading form sketch map, after the decapsulation router obtains the IPv6 message, can extract the address information in the IPv6 heading; Comprise Source Address (source address information), Destination Address (destination address information) and Flow Label (original traffic identifier); Wherein, Flow Label is not used by the IPv6 data source in existing network application, but acquiescence inserts 0.
Because a plurality of messages that belong in the same message flow have identical source address and destination address, therefore, the decapsulation router is the traffic identifier that the first message in the message flow distributes, and can be used to identify whole message flow.The decapsulation router is through obtaining first message information; Can obtain the source address information and the destination address information of the whole message flow of record; When adding the subsequent packet after the first message of encapsulation router in sending message flow, needn't transmit the source address information and the destination address information of subsequent packet.
Step 203, decapsulation router are set up the corresponding relation of address information and traffic identifier according to address information and traffic identifier structure destination control message.
As shown in table 1, be the mapping table of address information and traffic identifier, comprise Flow Label (original traffic identifier), IPv6 source address, IPv6 destination address and New Flow Label (traffic identifier).
The mapping table of table 1 address information and traffic identifier
Flow?Label The IPv6 source address The IPv6 destination address New?Flow?Label
As shown in Figure 8, the destination control message format sketch map when carrying the IPv6 message for GRE, wherein, the size of Version is 4bit, is used to represent the version number of destination control message, is set to 0; The size of Reserved is 8bit, is reserve bytes, is used for expansion; The size of New Flow Label is 20bit, is the traffic identifier of decapsulation router distribution; The size of Total Length is 12bit, is used to represent the length of destination control message; The size of Old Flow Label is 20bit, is the Flow Label of compressed IP v6 message not; The size of IPv6 Source Address is 128bit, is the source address of IPv6 message; The size of IPv6 Destination Address is 128bit, is the destination address of IPv6 message.
Step 204, the decapsulation router is controlled message with destination and is sent to and add the encapsulation router.
Particularly, destination control message arrives after the gre tunneling encapsulation and adds the encapsulation router.
Step 205 adds the encapsulation router and receives the destination control message from the decapsulation router, extracts address information and traffic identifier in this destination control message, sets up the corresponding relation of address information and traffic identifier.
Particularly, add the encapsulation router and extract the traffic identifier that the decapsulation router distributes, i.e. New Flow Label among Fig. 8; Set up and < Flow Label; IPv6 source address, IPv6 destination address>corresponding relation between the triplet information, realize the information synchronization of tunnel terminal device.Step 206 adds the encapsulation router and is extracted into the address information in the channel message, inquires about in the corresponding relation whether this address information be included in address information and traffic identifier.If the address information of going in the channel message is included in the corresponding relation of address information and traffic identifier, then execution in step 207; If the address information of going in the channel message is not included in the corresponding relation of address information and traffic identifier, then execution in step 201.
Step 207 adds the encapsulation router according to address information, obtains corresponding traffic identifier, carries out processed compressed to going into channel message, and the compressed packet encapsulation is sent to the decapsulation router.
Particularly; Add encapsulation router and decapsulation router and accomplish, can be extracted into < Flow Label, the IPv6 source address of channel message behind traffic identifier synchronous; The IPv6 destination address>triplet information; And search corresponding traffic identifier according to this triplet information, and this traffic identifier is added in the channel message, the sign of channel message place message flow gone into as this.Because the decapsulation router of opposite end has write down the IPv6 source address and the IPv6 destination address of above-mentioned message flow, add the encapsulation router and can delete source address information and destination address information in the channel message.
Add the encapsulation router to after going into channel message compression and finishing, on the basis of compressed packet, add GRE heading and IPv4 heading.As shown in Figure 9, be GRE heading form sketch map, wherein, the Protocol the type field is used to identify GRE passenger protocol type, and when gre tunneling carried the IPv6 message, the value of Protocol the type field was 0x86DD; When gre tunneling carries compressed packet; Can use the Protocol Type value sign of undefined mistake; For example; The compression protocol data message type identification of retention 0xFFFF can be selected for use, the compression protocol control type of message sign of retention 0xFFFE can be selected for use as IPv6 over GRE as IPv6 over GRE.
Step 208, decapsulation router receive from adding the compressed packet that encapsulates router, according to the corresponding relation of address information and traffic identifier this compressed packet are decompressed.
Particularly, the decapsulation router extracts the traffic identifier in the compressed packet, obtains corresponding address information according to this traffic identifier; And this address information added in the compressed packet, promptly the decapsulation router obtains traffic identifier corresponding < Flow Label, IPv6 source address; The IPv6 destination address>triplet information; Traffic identifier in the compressed package literary composition is replaced with original traffic identifier, and the source address and the destination address of IPv6 message added in the compressed packet as passenger protocol, realize decompressing and transmit.
Need to prove that the inventive method can be adjusted each sequence of steps according to actual needs.
The encapsulation router that adds among the present invention utilizes traffic identifier to be substituted into the address information in the channel message; Realization is sent the compression of going into channel message; Make message length after the tunnel encapsulation be not more than the original channel message length of going into; Reduce the message fragment number of times in the network, reduced the consumption of the network bandwidth, realized on the tunnel forward-path, need not transmitting the purpose that passenger's message flow information, each message are saved the bandwidth of 256bit; And reciprocal process is simple, can guarantee that non-compression is sent to the flow that compresses tunnel carrying in the process that transmits and does not have packet loss.
In above application scenarios of the present invention, the decapsulation router distributes traffic identifier to adding the packaged message of encapsulation route, makes to add the encapsulation route and carry out processed compressed according to this traffic identifier to going into channel message.
Need to prove; In the further application of the invention scene; Add the address information that the encapsulation router can extract packaged message; Be the corresponding traffic identifier of this address information distribution, and control message, and this source end control message is sent to the decapsulation router according to address information and traffic identifier structure source end; Decapsulation router reception sources end control message is controlled the corresponding relation that message is set up address information and traffic identifier according to this source end; The decapsulation router receive said add the compressed packet that encapsulate router after, extract the traffic identifier in the compressed packet, according to traffic identifier inquiry corresponding relation, obtain compressed packet corresponding address information, and utilize this address information to replace the traffic identifier in compressed packet.
In addition; Address information among the present invention can be source address information and/or destination address information; Add encapsulation route and decapsulation router and set up the corresponding relation of source address information and/or destination address information and traffic identifier; Add the encapsulation route when carrying out processed compressed, can source address information of going into channel message and/or destination address information be replaced with traffic identifier going into channel message; Correspondingly, when the decapsulation route is carried out decompression to message, can the traffic identifier of message be replaced with source address information and/or destination address information.
The present invention provides message transmitting method and application scenarios in the above-described embodiment, and correspondingly, the present invention also provides the device of using above-mentioned message transmitting method, comprises adding encapsulation router and decapsulation router.
Shown in figure 10; Be a kind of encapsulation router topology sketch map that adds among the present invention; Be applied to comprise in the network system that adds encapsulation router and decapsulation router that this adds the encapsulation router and links to each other with the decapsulation router through gre tunneling, this adds the encapsulation router and comprises:
Acquisition module 310 is used to obtain the traffic identifier of going into the channel message correspondence to unallocated traffic identifier.
Above-mentioned acquisition module 310 specifically is used to receive the traffic identifier that is distributed from opposite end decapsulation router, or extracts the address information of packaged message, for said address information is distributed corresponding traffic identifier.
Create module 320, be connected, be used to set up the corresponding relation of the address information of traffic identifier that acquisition module 310 obtains and message with acquisition module 310, and with decapsulation router synchronization corresponding relation.
Compression module 330 and is created module 320 and is connected, be used for receive with message belong to same stream go into channel message the time, the corresponding relation according to creating module 320 foundation utilizes traffic identifier to be substituted into the address information in the channel message.
Package module 340 is connected with compression module 330, and the channel message encapsulation of going into after being used for compression module 330 handled is sent to the decapsulation router, makes it according to the corresponding relation deblocking channel message of packing into.
Constructing module 350 is connected with acquisition module 330, is used for the traffic identifier structure source end control message that obtains according to address information and acquisition module 330, and said source end control message is sent to said decapsulation router.
The encapsulation router that adds among the present invention utilizes traffic identifier to be substituted into the address information in the channel message; Realization is sent the compression of going into channel message; Make message length after the tunnel encapsulation be not more than the original channel message length of going into; Reduce the message fragment number of times in the network, reduced the consumption of the network bandwidth.
Shown in figure 11; Be a kind of decapsulation router topology sketch map among the present invention; Be applied to comprise in the network system that adds encapsulation router and decapsulation router that this adds the encapsulation router and links to each other with the decapsulation router through gre tunneling, the decapsulation router comprises:
Acquisition module 410 is used to obtain the traffic identifier that adds the packaged message correspondence of encapsulation router.
Above-mentioned acquisition module 410 specifically is used to receive from the opposite end and adds the encapsulation traffic identifier that router distributed, or extracts the address information of packaged message, is that said address information is distributed corresponding traffic identifier.
Create module 420, is connected, be used to set up the corresponding relation of the address information of traffic identifier that acquisition module 410 obtains and message, encapsulate this corresponding relation of router synchronization with adding with acquisition module 410.
Decapsulation module 430 is used to receive and adds encapsulation router packaged message, and this message is carried out decapsulation.
Decompression module 440 is connected with decapsulation module 430 with establishment module 420, is used for utilizing the traffic identifier in the message after address information is replaced decapsulation module 430 decapsulations according to creating the corresponding relation that module 420 is set up.
Constructing module 450 is connected with acquisition module 410, is used for the traffic identifier structure destination control message that obtains according to address information and acquisition module 410, and said destination control message is sent to the said encapsulation router that adds.
Decompression router among the present invention utilizes the traffic identifier in the address information replacement message; Realization is to the decompression of message; Make message length after the tunnel encapsulation be not more than the original channel message length of going into, reduced the message fragment number of times in the network, reduced the consumption of the network bandwidth.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be integrated in one, and also can separate deployment; A module can be merged into, also a plurality of submodules can be further split into.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (6)

1. message transmitting method; Be applied to comprise in the network system that adds encapsulation router and decapsulation router; The said encapsulation router that adds links to each other with said decapsulation router through the generic route encapsulation gre tunneling, it is characterized in that, said method comprising the steps of:
Said encapsulation router or the said decapsulation router of adding set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end;
The said encapsulation router that adds is when receiving the message that belongs to same stream; According to said corresponding relation; After utilizing the address information in the said traffic identifier replacement message, the message encapsulation is sent to said decapsulation router, makes said decapsulation router according to said corresponding relation decapsulation message.
2. the method for claim 1 is characterized in that, said decapsulation router is set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end, is specially:
Said decapsulation router extracts the address information of said message after receiving message;
For said address information is distributed corresponding traffic identifier, and set up traffic identifier and be the corresponding relation between the message addresses distributed information;
Control message according to said address information and said traffic identifier structure destination, and said destination control message is sent to the said encapsulation router that adds, carry said corresponding relation in the said destination control message.
3. method as claimed in claim 2 is characterized in that, said decapsulation router sends to said adding after the encapsulation router with said destination control message, also comprises:
Said decapsulation router receives from the said message that encapsulates router that adds, and extracts the traffic identifier in the message, inquires about said corresponding relation according to said traffic identifier, obtains message corresponding address information, and utilizes the traffic identifier in the said address information replacement message.
4. the method for claim 1 is characterized in that, the said encapsulation router that adds is set up traffic identifier and is the corresponding relation between the message addresses distributed information, and said corresponding relation is synchronized to the opposite end, is specially:
The said address information that adds encapsulation router extraction message is that said address information is distributed corresponding traffic identifier, and sets up traffic identifier and be the corresponding relation between the message addresses distributed information;
The said encapsulation router that adds is controlled message according to said address information and said traffic identifier structure source end, and said source end control message is sent to said decapsulation router, carries said corresponding relation in the said source end control message;
Said decapsulation router receives said source end control message, sets up the corresponding relation of said address information and said traffic identifier according to said source end control message.
5. like each described method in the claim 1 to 4, it is characterized in that said address information comprises source address information and/or destination address information.
6. one kind adds the encapsulation router; Be applied to comprise in the network system that adds encapsulation router and decapsulation router; The said encapsulation router that adds links to each other with said decapsulation router through the generic route encapsulation gre tunneling, it is characterized in that, the said encapsulation router that adds comprises:
Acquisition module is used to receive the traffic identifier that is distributed from opposite end decapsulation router; Wherein, The said encapsulation router that adds sends to the decapsulation router with the channel message that is not compressed into of unallocated traffic identifier; Said decapsulation router extracts the address information in the not compressed packet that receives; For this address information is distributed traffic identifier, the decapsulation router is controlled message according to address information and traffic identifier structure destination, and through destination control message traffic identifier and corresponding address information is sent to the said encapsulation router that adds;
Create module, be connected, be used to set up the traffic identifier that said acquisition module obtains and the corresponding relation of corresponding address information with said acquisition module, and with the said corresponding relation of said decapsulation router synchronization;
Compression module; Be connected with said establishment module; Be used for receive belong to same stream go into channel message the time, the corresponding relation according to said establishment module is set up utilizes said traffic identifier to replace the address information in the channel message of going into of belonging to of said reception of same stream;
Package module is connected with said compression module, and the channel message encapsulation of going into after being used for said compression module handled is sent to said decapsulation router, goes into channel message after it is handled according to the said compression module that has encapsulated of said corresponding relation decapsulation.
CN2009101574430A 2009-07-30 2009-07-30 Message transmission method and router Expired - Fee Related CN101621472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101574430A CN101621472B (en) 2009-07-30 2009-07-30 Message transmission method and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101574430A CN101621472B (en) 2009-07-30 2009-07-30 Message transmission method and router

Publications (2)

Publication Number Publication Date
CN101621472A CN101621472A (en) 2010-01-06
CN101621472B true CN101621472B (en) 2012-04-18

Family

ID=41514523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101574430A Expired - Fee Related CN101621472B (en) 2009-07-30 2009-07-30 Message transmission method and router

Country Status (1)

Country Link
CN (1) CN101621472B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377628B (en) * 2010-08-12 2015-01-07 杭州华三通信技术有限公司 Method for establishing DS-Lite tunnel and DS-Lite CGN
CN109936492B (en) * 2017-12-15 2021-12-03 华为技术有限公司 Method, device and system for transmitting message through tunnel
CN109450814A (en) * 2018-11-26 2019-03-08 锐捷网络股份有限公司 The retransmission method and device of fragment message
CN113381920B (en) * 2020-03-09 2022-11-22 中国移动通信有限公司研究院 Data transmission method, node and storage medium
CN113890897B (en) * 2021-11-04 2023-11-17 中国互联网络信息中心 Message processing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985488B2 (en) * 2003-01-15 2006-01-10 Ciena Corporation Method and apparatus for transporting packet data over an optical network
CN101360097A (en) * 2007-08-01 2009-02-04 华为技术有限公司 Method, network and network element for forwarding packet

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985488B2 (en) * 2003-01-15 2006-01-10 Ciena Corporation Method and apparatus for transporting packet data over an optical network
CN101360097A (en) * 2007-08-01 2009-02-04 华为技术有限公司 Method, network and network element for forwarding packet

Also Published As

Publication number Publication date
CN101621472A (en) 2010-01-06

Similar Documents

Publication Publication Date Title
US8160106B2 (en) Method, device and system for transmitting Ethernet packets
CN100558072C (en) The method of converting message in three-layer virtual special network, system and equipment
US7600039B2 (en) Label-based multiplexing
CN102724118B (en) Label distribution method and device
CN101155115B (en) Method and apparatus for implementing automatic tunnel
WO2013145167A1 (en) Lan multiplexer apparatus
US8611226B2 (en) Method, apparatus and system for equalizing flows
CN101369977A (en) Method, apparatus and system for transmitting data
CN101621472B (en) Message transmission method and router
CN102447617A (en) Method, terminals and gateway for transmitting IPv6 (Internet Protocol version 6) message in IPv4 network
CN104040987A (en) User plane data transmission method, mobility management network element, evolved node b and system
CN106559302A (en) Single tunnel method for building up, device and system
CN102316028A (en) Method and apparatus for sending internet protocol packet
CN102546362A (en) Message processing method, message processing system and customer premises equipment
CN102938795A (en) Method for achieving access to internet protocol version 4 (IPv4) resources by IPv6 through tunnel and address
CN101645823B (en) Method and device for compressing 6to4 tunnel
CN102291305B (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN108390812B (en) Message forwarding method and device
CN101184098B (en) Data transmission method and transmission apparatus
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN101645895B (en) Method and device for realizing tunnel safety
CN102369753B (en) Method, apparatus and system for transmitting and receiving voice packets
CN104283916A (en) Data message transmission method and device applied to HFC network
CN101557386A (en) Method and device for sending data and method and device for receiving data
US20190190821A1 (en) Method of optimizing spectral efficiency in an mpls interconnection context

Legal Events

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

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

Patentee after: Xinhua three Technology Co., Ltd.

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

Patentee before: Huasan Communication Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120418

Termination date: 20200730