[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106411783A - Message sending method and device - Google Patents

Message sending method and device Download PDF

Info

Publication number
CN106411783A
CN106411783A CN201610872318.8A CN201610872318A CN106411783A CN 106411783 A CN106411783 A CN 106411783A CN 201610872318 A CN201610872318 A CN 201610872318A CN 106411783 A CN106411783 A CN 106411783A
Authority
CN
China
Prior art keywords
mtu value
message
tunnel
destination address
mtu
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
Application number
CN201610872318.8A
Other languages
Chinese (zh)
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.)
Hangzhou 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 CN201610872318.8A priority Critical patent/CN106411783A/en
Publication of CN106411783A publication Critical patent/CN106411783A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a message sending method and device, applied to network equipment. The corresponding relationships of various destination addresses and various MTU values of P2MP tunnels are locally stored in the network equipment. The method comprises the following steps of: determining the destination address of a message, and searching a MTU value of a target tunnel matched with the destination address from the locally stored corresponding relationships of the various destination addresses and the various MTU values of the P2MP tunnels; according to the MTU value of the target tunnel, determining whether the message is fragmented or not; if so, fragmenting the message, and, after packaging the fragmented message, sending the fragmented message through a physical output interface corresponding to the destination address; and otherwise, after packaging the message, sending the message through the physical output interface. In the embodiment of the invention, the MTU values of the P2MP tunnels can be suitable for multiple opposite network equipment; when messages are sent through the P2MP tunnels, the problem that the opposite network equipment combines and fragments the messages can be avoided; and thus, the performance of the opposite network equipment is improved.

Description

A kind of file transmitting method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of file transmitting method and device.
Background technology
Tunneling technique is a kind of encapsulation technology, and it can transmit the report of another kind of procotol using a kind of procotol Literary composition.I.e. the message of other procotols is encapsulated in the message of oneself a kind of procotol, then transmits in a network.Encapsulation The path that message afterwards transmits in a network, referred to as tunnel.Tunnel is the connection of a virtual point-to-point, the network at its two ends Equipment is packaged to message respectively and decapsulates.
In actual applications, the network equipment, when sending the message after encapsulating, needs message from the corresponding physics in tunnel Outgoing interface sends.And physics outgoing interface is by its corresponding MTU (Maximum Transmission Unit, maximum transmitted list Unit) that is to say, that when sending message by physics outgoing interface, message size need to be less than or equal to the MTU of this physics outgoing interface Value.When message size is more than the MTU value of physics outgoing interface, need to carry out burst to message just can retransmit.
P2MP (Point to multi-point, point-to-multipoint) tunnel refers to point-to-multi-point tunnel.P2MP tunnel has not The multiple peer network device determining, message may send from multiple physics outgoing interfaces of a network equipment.But, existing Have in technology, a P2MP tunnel only one of which MTU value, and this MTU value does not adapt to multiple peer network device.From And, can lead in message transmission process, peer network device needs message is carried out pack burst again, have a strong impact on opposite end net Network equipment performance.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of file transmitting method and device, so that the MTU value in P2MP tunnel Adapt to multiple peer network device, thus when message is sent by P2MP tunnel, it can be avoided that peer network device is to message Carry out pack burst again, lift peer network device performance.Concrete technical scheme is as follows:
In a first aspect, embodiments providing a kind of file transmitting method, it is applied to the network equipment, described network sets The standby corresponding relation locally preserving each destination address and point-to-multipoint P2MP tunnel each MTU MTU value, described each MTU value is that the MTU value according to physics outgoing interface corresponding with each destination address determines, methods described includes:
Determine the destination address of message, and in the local each destination address preserving pass corresponding with each MTU value in P2MP tunnel In system, search the target tunnel MTU value mated with described destination address;
According to described target tunnel MTU value, it is determined whether burst is carried out to described message;
If it is, burst is carried out to described message, and after the message after burst is packaged, by with described destination Location corresponding physics outgoing interface sends;
If not, after being packaged described message, being sent by described physics outgoing interface.
Second aspect, embodiments provides a kind of packet transmission device, is applied to the network equipment, and described network sets The standby corresponding relation locally preserving each destination address and point-to-multipoint P2MP tunnel each MTU MTU value, described each MTU value is that the MTU value according to physics outgoing interface corresponding with each destination address determines, described device includes:
Performing module is for determining the destination address of message and each with P2MP tunnel in the local each destination address preserving In the corresponding relation of MTU value, search the target tunnel MTU value mated with described destination address;
Determining module, for according to described target tunnel MTU value, it is determined whether carry out burst to described message;
Processing module, for when it is to be that described determining module determines result, carrying out burst to described message, and by burst After message afterwards is packaged, sent by physics outgoing interface corresponding with described destination address;When described determining module determines When result is no, after described message is packaged, sent by described physics outgoing interface.
Embodiments provide a kind of file transmitting method and device, the network equipment can preserve each purpose local Address and the corresponding relation of each MTU value in P2MP tunnel, before message is sent by P2MP tunnel, can be according to the purpose of this message Address, obtains corresponding target tunnel MTU value, and then can be according to this target tunnel MTU value, it is determined whether message is carried out point Piece.That is, the MTU value in P2MP tunnel can adapt to multiple peer network device, thus report is being sent by P2MP tunnel Wen Shi, it can be avoided that peer network device carries out pack burst again to message, lifts peer network device performance.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of file transmitting method provided in an embodiment of the present invention;
Fig. 2 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another flow chart of file transmitting method provided in an embodiment of the present invention;
Fig. 4 is the structural representation of packet transmission device provided in an embodiment of the present invention;
Fig. 5 is another structural representation of packet transmission device provided in an embodiment of the present invention.
Specific embodiment
In order that the MTU value in P2MP tunnel adapts to multiple peer network device, thus message is being sent by P2MP tunnel When, it can be avoided that peer network device carries out pack burst again to message, lift peer network device performance, the embodiment of the present invention Provide a kind of file transmitting method and device.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually combine.To describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In embodiments of the present invention, in order that the MTU value in P2MP tunnel adapts to multiple peer network device, thus passing through When P2MP tunnel sends message, it can be avoided that peer network device carries out pack burst again to message, lift peer network device Performance, the network equipment, can be according to its destination address, from the tunnel MTU value of coupling when sending message.Further, may be used With according to this tunnel MTU value, it is determined whether burst is carried out to message.Such that it is able to avoid the network equipment first message to be packaged Burst more afterwards, leads to peer network device to need message is carried out first pack burst again.
Embodiments provide a kind of file transmitting method, process is as shown in figure 1, this process can include following walking Suddenly:
S101, determines the destination address of message, and right in the local each destination address preserving and each MTU value in P2MP tunnel In should being related to, search the target tunnel MTU value mated with described destination address.
Method provided in an embodiment of the present invention, can apply to the network equipment.Specifically, this network equipment can be P2MP The tunnel transmitting terminal network equipment.Wherein, this network equipment can be switch, router etc..
The network equipment can be in the local corresponding relation preserving each destination address and each MTU value in P2MP tunnel.That is, In the network device, P2MP tunnel is to should have multiple MTU value.Wherein, each MTU value can be basis and each destination address pair The MTU value of the physics outgoing interface answered determines.For example, it is possible to corresponding for each destination address tunnel MTU value is defined as this purpose Address corresponding physics outgoing interface MTU value deducts tunnel encapsulation head size.
Specifically, in embodiments of the present invention, when the network equipment sends message, the destination of message can be determined first Location.It is possible to further in the corresponding relation of each destination address locally preserving and each MTU value in P2MP tunnel, searching and being somebody's turn to do The target tunnel MTU value of destination address coupling.
For example, the local each destination address preserving of the network equipment can be as follows with the corresponding relation of each MTU value in P2MP tunnel Shown in table:
Destination address Tunnel MTU value
Main frame 1 1476
Main frame 2 1376
Main frame 3 1476
When the destination address of network equipment message to be sent is main frame 2, it can find the tunnel mating with main frame 2 Road MTU value is 1376.
S102, according to described target tunnel MTU value, it is determined whether carry out burst to described message;If it is, execution step S103, if not, execution step S104.
After determining target tunnel MTU value, the network equipment can be further according to this target tunnel MTU value, it is determined whether right Message carries out burst.
For example, the network equipment may determine that whether the size of message is more than target tunnel MTU value, if it does, showing to need Burst is carried out to message;If it is not greater, showing not need to carry out burst to message.
S103, carries out burst to described message, and after the message after burst is packaged, by with described destination address Corresponding physics outgoing interface sends.
When network equipment determination needs to carry out burst to message, it can carry out burst to this message.The network equipment pair Message carries out the process of burst, can adopt existing method, and the embodiment of the present invention does not repeat to this process.
And, before message is sent to tunnel, the message after burst can also be packaged by the network equipment.For example, The network equipment can be searched local forward table, find corresponding tunnel destination address according to the destination address of this message, will Outer layer destination address is set to tunnel destination address, completes the encapsulation to this message.
After completing the encapsulation to message, the network equipment can be sent by physics outgoing interface corresponding with this destination address should Message.
The network equipment is when sending message, corresponding with each MTU value in P2MP tunnel according to the local each destination address preserving Relation, finds corresponding MTU, and in this case, when message size is more than corresponding tunnel MTU value, the network equipment is just permissible First burst is carried out to this message, then the message after burst is packaged.Tunnel MTU value due to finding is according to corresponding Physics outgoing interface MTU value determines, accordingly, it is capable to ensure the message after encapsulation, when port sends, less than physics outgoing interface MTU, also would not be by the secondary burst of physics outgoing interface.
S104, after described message is packaged, is sent by described physics outgoing interface.
When network equipment determination does not need to carry out burst to message, this message can be packaged by it.For example, network Equipment can be searched local forward table, find corresponding tunnel destination address, by outer layer according to the destination address of this message Destination address is set to tunnel destination address, completes the encapsulation to this message.
After completing the encapsulation to message, the network equipment can be sent by physics outgoing interface corresponding with this destination address should Message.So that after peer network device receives this message, first decapsulation fragment message can be obtained, when it determines that needs continue Continuous when forwarding each fragment message, when each fragment message size no more than corresponding physics outgoing interface MTU value when, opposite end net Each fragment message can directly be forwarded by network equipment, thus avoiding peer network device to message elder generation pack burst again.
Embodiments provide a kind of file transmitting method, the network equipment can local preserve each destination address with The corresponding relation of each MTU value in P2MP tunnel, by P2MP tunnel send message before, can according to the destination address of this message, Obtain corresponding target tunnel MTU value, and then can be according to this target tunnel MTU value, it is determined whether burst is carried out to message.Cause This, it is to avoid when the higher value that tunnel MTU is acquiescence, before encapsulation, burst is not carried out to message, and because message is big after encapsulating The little MTU value more than physics outgoing interface and need burst, thus the receiving terminal network equipment leading to carries out pack to message dividing again Piece is such that it is able to lifting receiving terminal performance of network equipments lifts receiving terminal performance of network equipments.
In some cases, in the corresponding relation of the local each destination address preserving of the network equipment and each tunnel MTU value, have Tunnel MTU value is default value, i.e. maximum.Even if being set to maximum, if message has exceeded port after sealing up dress MTU value, then message still can carry out burst at port.
Therefore, in embodiments of the present invention, get in order to ensure the network equipment is the tunnel mating with destination address MTU value, can be according to the tunnel MTU value of destination address corresponding physics outgoing interface adjustment, it is to avoid peer network device is to message Carry out the problem of pack burst again, lift peer network device performance.Specifically, the network equipment can be by physics outgoing interface MTU value deducts tunnel encapsulation head size, obtains tunnel MTU value.
It is appreciated that in actual applications, the MTU value of physics outgoing interface may be reconfigured.Therefore, in the present invention In embodiment, when the MTU value of network equipments configuration arbitrary physics outgoing interface, its can by the local each destination address preserving with In the corresponding relation of each MTU value in P2MP tunnel, each MTU value is each configured to default value, such as 64000.MTU when physics outgoing interface During value changes, the local each destination address preserving all is configured with each MTU value in the corresponding relation of each MTU value in P2MP tunnel simultaneously For default value, each MTU value locally preserving can be avoided inconsistent with the MTU value of physics outgoing interface, further avoid transmission During message, need peer network device that message is carried out with pack burst again.
Further, the network equipment is getting target tunnel MTU value, according to this target tunnel MTU value, it is determined whether right Before message carries out burst, can also judge whether this target tunnel MTU value is default value.
For example, according to known default value, the network equipment can judge whether the target tunnel MTU value getting is that this is write from memory Recognize value.
When the network equipment confirms that the target tunnel MTU value getting is default value, sent by this target tunnel MTU value Message, may result in peer network device and message carried out with pack burst again.In this case, the network equipment can determine The MTU value of this destination address corresponding physics outgoing interface, according to this MTU value, calculates tunnel MTU value, and more fresh target tunnel MTU It is worth for calculated tunnel MTU value.
By judging whether target tunnel MTU value is default value, if it is, mesh is updated according to corresponding physics outgoing interface Mark tunnel MTU value, ensure that the target tunnel MTU value that the network equipment gets is the tunnel according to corresponding physics outgoing interface adjustment Road MTU value, and then guarantee that peer network device will not carry out pack burst again to message, lift peer network device performance.GRE (Generic Routing Encapsulation, generic route encapsulation) tunnel is a kind of common tunnel, e.g., P2MP GRE Tunnel.
The present embodiment, specifically with the network architecture shown in Fig. 2, describes this file transmitting method in detail.Net as shown in Figure 2 In network framework, set up between host A and network equipment A and be connected;Set up between network equipment A and network equipment B and network equipment C P2MP gre tunneling;Set up between host B and network equipment B and be connected.
In the network architecture shown in Fig. 2, P2MP gre tunneling in network equipment A is to should have two correspondent network to set Standby, i.e. network equipment B and network equipment C.Network equipment A may be gone out by different physics by the message of P2MP gre tunneling Interface is sent respectively to network equipment B or network equipment C.And the MTU value of the P2MP gre tunneling of network equipment A can not be fitted simultaneously Answer network equipment B and network equipment C, for example, it is possible to be configured as adapting to the tunnel MTU value of network equipment C, such as 3376.
Below so that the message of host A one 2000 size of transmission is to host B as a example, to illustrate that existing message is transmitted across Journey.
This message is sent to network equipment A by host A, and wherein, the destination address of this message is the address of host B.Network After device A receives this message, determine that this message size is 2000, the MTU value of the P2MP gre tunneling of local terminal is 3376, because This, network equipment A will not be to this message fragment.
Network equipment A is directly packaged to this message.Specifically, network equipment A can be according to the destination of this message Location, i.e. the address of host B, local forward table finds corresponding tunnel destination address, i.e. network equipment B.Thus will Outer layer destination address is set to the address of network equipment B, completes the encapsulation to this message.
It is assumed that the MTU value of the physics outgoing interface of network equipment A map network equipment B is 1500, after network equipment A encapsulation Message size be original message size 2000, encapsulation header 24 (IP 20 and GRE 4), as 2024.
When message after encapsulation passes through corresponding physics outgoing interface transmission, because its size is more than this physics outgoing interface MTU value, therefore, network equipment A need to carry out burst to this message.For example, this message can be divided into two panels by network equipment A, often The size of piece is respectively less than or is equal to 1500.
Network equipment B can receive two fragment messages of network equipment A transmission.After receiving fragment message, network Equipment B first can carry out pack to fragment message, obtains a complete channel message.Decapsulate again, after decapsulation, obtain one The original message of individual 2000 sizes.
Network equipment B obtains the destination address comprising in original message, the as address of host B.Therefore, network equipment B Need to forward the packet to host B.
It is assumed that the MTU value of the physics outgoing interface of network equipment B respective hosts B is 1500, network equipment B forwards the message to During host B, the size of this message is more than the MTU value of this physics outgoing interface, and therefore, network equipment B need to carry out burst to this message. For example, this message can be divided into two panels by network equipment B, and the size of every is respectively less than or is equal to 1500.
Host B can receive two fragment messages of network equipment B transmission.After receiving fragment message, host B judges The destination of this message is the machine, and host B can carry out pack to fragment message, obtain a complete original message.
Can be seen that from above-mentioned flow process and each correspondent network is not adapted to due to the P2MP tunnel MTU value at network equipment A end Equipment, thus leading to same message, has made burst on network equipment A, first pack on network equipment B, then burst, host B On pack again.That is, peer network device needs pack burst more simultaneously, can greatly affect the property of peer network device Energy.
In embodiments of the present invention, the network equipment can preserve each destination address and each MTU value in P2MP tunnel local Corresponding relation.Specifically, as shown in figure 3, the network equipment preserves each destination address and the corresponding relation of each MTU value in P2MP tunnel Process can include:
S301, receives GRE message, and obtains the source address of described GRE message.
In embodiments of the present invention, the network equipment can receive the GRE message of peer network device transmission, and obtains this The source address of GRE message.Wherein, above-mentioned peer network device can be the arbitrary network equipment in P2MP tunnel opposite end.For example, as schemed In the network architecture shown in 2, GRE message can network equipment B send or network equipment C send.
The outer layer source address of the message that the source address of this message can receive for the network equipment, or or net After network equipment decapsulates to this message, the source address of the original message of acquisition.
For example, taking the network architecture shown in Fig. 2 as a example, when host B sends message to host A, host B will be to the network equipment B sends original message, and the source address of this original message is the address of host B.After network equipment B receives this original message, its This original message can be encapsulated, its outer layer source address is set to the address of network equipment B, and the message after encapsulation is sent To network equipment A.
Network equipment A will receive after the message that network equipment B sends, and it can get the outer layer source ground of this message Location, i.e. the address of network equipment B;Or, after it can also decapsulate to this message, get the source of internal layer original message Address, i.e. the address of host B.
S302, according to described source address, and the local forward table preserving, determine that the physics with described source address matches goes out Interface;And obtain the MTU value of this physics outgoing interface, according to this MTU value, calculate tunnel MTU value.
When network equipment A receives the message of network equipment B transmission, and after getting the source address of message, can also root According to this source address, and the local forward table preserving, determine the physics outgoing interface with this source address matches.
Further, network equipment A can also obtain the MTU value of this physics outgoing interface, and according to this MTU value, calculates tunnel Road MTU value.
That is, network equipment A can determine in the multiple physics outgoing interfaces of itself, to should source address physics Outgoing interface.Further determine the MTU value of this physics outgoing interface, and then the MTU value according to this physics outgoing interface, calculate tunnel MTU value.For example, the MTU value of physics outgoing interface can be deducted tunnel encapsulation head size by network equipment A, obtain tunnel MTU value.
S303, using described source address as destination address, preserves this destination address and calculated tunnel MTU local The corresponding relation of value.
Calculated tunnel MTU value is also and the physics outgoing interface corresponding tunnel MTU value receiving this message.Also It is to say, when network equipment A sends message, according to this tunnel MTU value, message is carried out after burst, can directly be gone out by this physics Interface sends burst the message after encapsulating.
It is appreciated that the source address in the message that receives of network equipment A, as follow-up this network equipment A sends message When destination address.
When therefore, in order to instruct follow-up transmission message, how burst is carried out to message, network equipment A can be by source address As destination address, in the local corresponding relation preserving this destination address and calculated tunnel MTU value.In this case, When network equipment A sends message to the corresponding equipment of this destination address, it can enter to message according to this tunnel MTU preserving Row burst, you can the message after ensureing burst and encapsulating can be sent by physics outgoing interface, thus peer network device will not Message is carried out with pack burst again, lifts peer network device performance.
Alternatively, in embodiments of the present invention, network equipment A can be corresponding with each tunnel MTU value by each destination address Relation is saved in the Hash table of the network equipment, when searching the target tunnel MTU mating with destination address, to improve and to search effect Rate.For example, the tunnel MTU value that network equipment A can will preserve for each destination location, is saved in a node of Hash table In.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides corresponding device embodiment.
Fig. 4 is a kind of packet transmission device provided in an embodiment of the present invention, is applied to the network equipment, and the described network equipment is originally Preserve the corresponding relation of each destination address and point-to-multipoint P2MP tunnel each MTU MTU value, described each MTU value It is the MTU value determination according to physics outgoing interface corresponding with each destination address, described device includes:
Performing module 410, for determining the destination address of message, and in the local each destination address preserving and P2MP tunnel In the corresponding relation of each MTU value, search the target tunnel MTU value mated with described destination address;
Determining module 420, for according to described target tunnel MTU value, it is determined whether carry out burst to described message;
Processing module 430, for when it is to be that described determining module determines result, burst being carried out to described message, and will After message after burst is packaged, sent by physics outgoing interface corresponding with described destination address;When described determining module When to determine result be no, after described message is packaged, sent by described physics outgoing interface.
Embodiments provide a kind of packet transmission device, the network equipment can local preserve each destination address with The corresponding relation of each MTU value in P2MP tunnel, by P2MP tunnel send message before, can according to the destination address of this message, Obtain corresponding target tunnel MTU value, and then can be according to this target tunnel MTU value, it is determined whether burst is carried out to message.? That is, the MTU value in P2MP tunnel can adapt to multiple peer network device, thus when message is sent by P2MP tunnel, It can be avoided that peer network device carries out pack burst again to message, lift peer network device performance.
Further, as shown in figure 5, described device also includes:
Receiver module 440, for receiving GRE message, and obtains the source address of described GRE message;
Computing module 450, for according to described source address, and the local forward table preserving, determine and described source address The physics outgoing interface of coupling;And obtain the MTU value of this physics outgoing interface, according to this MTU value, calculate tunnel MTU value;
Memory module 460, as destination address, preserves this destination address and calculates local for using described source address The corresponding relation of the tunnel MTU value arriving.
Further, described device also includes:
Judge module (not shown), for judging whether described target tunnel MTU value is default value;
Update module (not shown), for when described judge module judged result is to be, determining that described physics goes out The MTU value of interface, according to this MTU value, calculates tunnel MTU value, and to update described target tunnel MTU value be calculated tunnel Road MTU value.
Further, described update module, specifically for this MTU value described is deducted tunnel encapsulation head size, obtains tunnel Road MTU value.
Further, described device also includes:
Configuration module (not shown), for when configuring the MTU value of physics outgoing interface, by the local each purpose preserving In the corresponding relation of address and each MTU value in P2MP tunnel, each MTU value is each configured to described default value.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related Part illustrates referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention Interior.

Claims (10)

1. it is characterised in that being applied to the network equipment, the described network equipment locally preserves each purpose to a kind of file transmitting method Address and the corresponding relation of point-to-multipoint P2MP tunnel each MTU MTU value, each MTU value is basis and each destination address The MTU value of corresponding physics outgoing interface determines, methods described includes:
Determine the destination address of message, and in the corresponding relation with each MTU value in P2MP tunnel for the local each destination address preserving, Search the target tunnel MTU value mated with described destination address;
According to described target tunnel MTU value, it is determined whether burst is carried out to described message;
If it is, burst is carried out to described message, and after the message after burst is packaged, by with described destination address pair The physics outgoing interface answered sends;
If not, after being packaged described message, being sent by described physics outgoing interface.
2. method according to claim 1 is it is characterised in that preserve each destination address and each MTU in P2MP tunnel local The step of the corresponding relation of value includes:
Receive generic route encapsulation GRE message, and obtain the source address of described GRE message;
According to described source address, and the local forward table preserving, determine the physics outgoing interface with described source address matches;And obtain Take the MTU value of this physics outgoing interface, according to this MTU value, calculate tunnel MTU value;
Using described source address as destination address, corresponding with calculated tunnel MTU value in local this destination address of preservation Relation.
3. method according to claim 1 it is characterised in that described according to described target tunnel MTU value, it is determined whether right Before described message carries out burst, methods described also includes:
Judge whether described target tunnel MTU value is default value;
If it is, determining the MTU value of described physics outgoing interface, according to this MTU value, calculating tunnel MTU value, and updating described target Tunnel MTU value is calculated tunnel MTU value.
4. method according to claim 3 it is characterised in that described according to this MTU value, calculate tunnel MTU value and include:
This MTU value described is deducted tunnel encapsulation head size, obtains tunnel MTU value.
5. the method according to any one of claim 1-4 is it is characterised in that methods described also includes:
When configuring the MTU value of physics outgoing interface, close corresponding with each MTU value in P2MP tunnel for the local each destination address preserving In system, each MTU value is each configured to default value.
6. it is characterised in that being applied to the network equipment, the described network equipment locally preserves each purpose to a kind of packet transmission device Address and the corresponding relation of point-to-multipoint P2MP tunnel each MTU MTU value, each MTU value is basis and each destination address The MTU value of corresponding physics outgoing interface determines, described device includes:
Performing module, for determining the destination address of message, and in the local each destination address preserving and each MTU value in P2MP tunnel Corresponding relation in, search the target tunnel MTU value mated with described destination address;
Determining module, for according to described target tunnel MTU value, it is determined whether carry out burst to described message;
Processing module, for when it is to be that described determining module determines result, carrying out burst to described message, and by after burst After message is packaged, sent by physics outgoing interface corresponding with described destination address;When described determining module determines result For no when, after described message is packaged, by described physics outgoing interface send.
7. device according to claim 6 is it is characterised in that described device also includes:
Receiver module, for receiving generic route encapsulation GRE message, and obtains the source address of described GRE message;
Computing module, for according to described source address, and the local forward table preserving, determine the thing with described source address matches Reason outgoing interface;And obtain the MTU value of this physics outgoing interface, according to this MTU value, calculate tunnel MTU value;
Memory module, preserves this destination address and calculated tunnel local for using described source address as destination address The corresponding relation of road MTU value.
8. device according to claim 6 is it is characterised in that described device also includes:
Judge module, for judging whether described target tunnel MTU value is default value;
Update module, for when described judge module judged result is to be, determining the MTU value of described physics outgoing interface, according to This MTU value, calculates tunnel MTU value, and updates described target tunnel MTU value for calculated tunnel MTU value.
9. device according to claim 8 is it is characterised in that described update module, specifically for subtracting this MTU value described Go tunnel encapsulation head size, obtain tunnel MTU value.
10. the device according to any one of claim 6-9 is it is characterised in that described device also includes:
Configuration module, for when configuring the MTU value of physics outgoing interface, each destination address that will locally preserve is each with P2MP tunnel In the corresponding relation of MTU value, each MTU value is each configured to default value.
CN201610872318.8A 2016-09-30 2016-09-30 Message sending method and device Pending CN106411783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610872318.8A CN106411783A (en) 2016-09-30 2016-09-30 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610872318.8A CN106411783A (en) 2016-09-30 2016-09-30 Message sending method and device

Publications (1)

Publication Number Publication Date
CN106411783A true CN106411783A (en) 2017-02-15

Family

ID=59228648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610872318.8A Pending CN106411783A (en) 2016-09-30 2016-09-30 Message sending method and device

Country Status (1)

Country Link
CN (1) CN106411783A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450796A (en) * 2018-11-13 2019-03-08 北京华三通信技术有限公司 A kind of message forwarding method, device and forwarding device
CN110798405A (en) * 2018-08-01 2020-02-14 中国电信股份有限公司 Data tunnel exchange method, device and system
CN110995766A (en) * 2019-12-31 2020-04-10 联想(北京)有限公司 Network communication method and client and central site adopting network communication method
CN111917786A (en) * 2020-08-06 2020-11-10 冯田旺 GRE tunnel-based data packet fragmentation method and data packet recombination method
CN113542131A (en) * 2021-05-25 2021-10-22 新华三信息安全技术有限公司 Message forwarding method and device
CN113676389A (en) * 2020-05-15 2021-11-19 华为技术有限公司 Message sending method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060011656A (en) * 2004-07-30 2006-02-03 삼성전자주식회사 System and method for setting packet maximum transmission unit of ipv6 transition tunnel using packet too big message
CN101022419A (en) * 2007-03-27 2007-08-22 杭州华为三康技术有限公司 Path maximum transmission unit item establishing method and message transmitting method and device
CN101207571A (en) * 2007-12-12 2008-06-25 华为技术有限公司 Apparatus and method for forwarding packets
CN101640635A (en) * 2009-07-31 2010-02-03 北京师范大学 Method for avoiding message recombination in 6over4 tunnel and system therefor
CN101640636A (en) * 2009-07-31 2010-02-03 北京师范大学 Method for avoiding message recombination in 4over6 tunnel and system therefor
CN102868613A (en) * 2012-08-14 2013-01-09 中兴通讯股份有限公司 Method and device for transmission of generic routing encapsulation tunnel packet
US20140241144A1 (en) * 2013-02-28 2014-08-28 International Business Machines Corporation Reducing Fragmentation of Packets in a Networking Environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060011656A (en) * 2004-07-30 2006-02-03 삼성전자주식회사 System and method for setting packet maximum transmission unit of ipv6 transition tunnel using packet too big message
CN101022419A (en) * 2007-03-27 2007-08-22 杭州华为三康技术有限公司 Path maximum transmission unit item establishing method and message transmitting method and device
CN101207571A (en) * 2007-12-12 2008-06-25 华为技术有限公司 Apparatus and method for forwarding packets
CN101640635A (en) * 2009-07-31 2010-02-03 北京师范大学 Method for avoiding message recombination in 6over4 tunnel and system therefor
CN101640636A (en) * 2009-07-31 2010-02-03 北京师范大学 Method for avoiding message recombination in 4over6 tunnel and system therefor
CN102868613A (en) * 2012-08-14 2013-01-09 中兴通讯股份有限公司 Method and device for transmission of generic routing encapsulation tunnel packet
US20140241144A1 (en) * 2013-02-28 2014-08-28 International Business Machines Corporation Reducing Fragmentation of Packets in a Networking Environment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798405A (en) * 2018-08-01 2020-02-14 中国电信股份有限公司 Data tunnel exchange method, device and system
CN109450796A (en) * 2018-11-13 2019-03-08 北京华三通信技术有限公司 A kind of message forwarding method, device and forwarding device
CN109450796B (en) * 2018-11-13 2019-07-09 北京华三通信技术有限公司 A kind of message forwarding method, device and forwarding device
CN110995766A (en) * 2019-12-31 2020-04-10 联想(北京)有限公司 Network communication method and client and central site adopting network communication method
CN113676389A (en) * 2020-05-15 2021-11-19 华为技术有限公司 Message sending method and device
CN113676389B (en) * 2020-05-15 2022-10-18 华为技术有限公司 Message sending method and device
CN111917786A (en) * 2020-08-06 2020-11-10 冯田旺 GRE tunnel-based data packet fragmentation method and data packet recombination method
CN113542131A (en) * 2021-05-25 2021-10-22 新华三信息安全技术有限公司 Message forwarding method and device
CN113542131B (en) * 2021-05-25 2023-08-22 新华三信息安全技术有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
CN106411783A (en) Message sending method and device
US11477106B2 (en) Data packet sending method and apparatus in IPV6 network
CN105577548B (en) Message processing method and device in a kind of software defined network
EP3313025A2 (en) Data packet forwarding
CN102938736B (en) A kind of method and apparatus realizing IPv4 message passing through IPv 6 network
CN102970386B (en) A kind of IPv6 of realization message passes through the method and apparatus of IPv4 network
CN105577417A (en) VXLAN (virtual extensible local area network)-based massage forwarding method and device
US9900238B2 (en) Overlay network-based original packet flow mapping apparatus and method therefor
KR20120079124A (en) Method for performing dynamic tunnel message forwarding and switch thereof
CN104796338A (en) Migration method and device of virtual machines
EP3018867A1 (en) Method for processing user message and forwarding plane device
CN106209638A (en) From VLAN to the message forwarding method of virtual expansible LAN and equipment
EP3313031A1 (en) Sdn-based arp realization method and apparatus
CN108076066B (en) Method and device for protecting GRE (generic routing encapsulation) message
CN102857418A (en) VPN (virtual private network)-based fast re-route (FRR) switch method and VPN-based fast re-route switch equipment
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN111510513A (en) MAP-E link acceleration method, device, storage medium and network equipment
CN105227471A (en) Method and the edge device of multicast forwarding list item is set up in a kind of EVI network
CN104579973A (en) Message forwarding method and device of virtual cluster
CN103716244B (en) Method and device enabling extra-VPN forwarding of multicasts to be achieved
CN101640635A (en) Method for avoiding message recombination in 6over4 tunnel and system therefor
CN103685030A (en) Method and device for data processing
CN103780469B (en) The implementation method and message forwarding method in IPv6 tunnels on multi-core platform
CN103986637B (en) A kind of error message processing method and tunnel device
CN107005464A (en) A kind of processing method and processing device of traffic data bag

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

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

Applicant after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310

Applicant before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication