CN101022419B - Path maximum transmission unit item establishing method and message transmitting method and device - Google Patents

Path maximum transmission unit item establishing method and message transmitting method and device Download PDF

Info

Publication number
CN101022419B
CN101022419B CN2007100869604A CN200710086960A CN101022419B CN 101022419 B CN101022419 B CN 101022419B CN 2007100869604 A CN2007100869604 A CN 2007100869604A CN 200710086960 A CN200710086960 A CN 200710086960A CN 101022419 B CN101022419 B CN 101022419B
Authority
CN
China
Prior art keywords
pmtu
list item
network segment
value
message
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
CN2007100869604A
Other languages
Chinese (zh)
Other versions
CN101022419A (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 CN2007100869604A priority Critical patent/CN101022419B/en
Publication of CN101022419A publication Critical patent/CN101022419A/en
Application granted granted Critical
Publication of CN101022419B publication Critical patent/CN101022419B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for setting up maximum transmission unit table of path includes setting up a network section PMTU table for the same MTU value device in network section, structuring message sent to these devices as per set up network PMTU table, setting up corresponding PMTU table one by one for special devices with different MTU values when special devices with different MTU values are existed in network section and structuring message sent to these special devices as per each own corresponding PMTU table.

Description

Path maximum transmission unit item establishing method and file transmitting method and device
Technical field
The present invention relates to IPv6 (IPv6) technology, relate in particular to a kind of PMTU (PMTU, Path Maximal Transmit Unit) item establishing method, a kind of file transmitting method and a kind of packet transmission device.
Background technology
IPv6 is the second generation standard agreement of network layer protocol, is the upgraded version of Internet Protocol Version 4 (IPv4), and it has solved the problem of IPv4 address scarcity well.IPv6 has also done improvement, as the raising of data forward efficiency aspect a lot of except powerful address space is provided.
In order to improve data forwarding efficient, IPv6 does not support intermediate node that the data message is carried out Fragmentation, can only carry out at source node than the burst of long message.Particularly, that is: source node obtains the PMTU value of source node to destination node by the PMTU discovery mechanism, and source node utilizes this PMTU value to determine the data message length of its transmission then.Wherein, source node is meant that to the PMTU value of destination node source node is worth to the minimum MTU (MTU, Maximal Transmit Unit) on the destination node forward-path.Like this, just can avoid intermediate node to take place, thereby improve data forwarding efficient because of the phenomenon that message length surpasses its MTU value dropping packets.
Usually, can determine to send the length of message apace in order to make source node, can set up a PMTU list item for each purpose IPv6 address, the maximum message segment length that record can send to this destination address is the PMTU value.Source node at first carries out the list item coupling when sending message, if match the PMTU list item of destination address, then construct message according to the PMTU value of destination address correspondence; If do not match the PMTU list item of destination address, then handle according to the PMTU agreement, rediscover the PMTU value of this destination address.
As seen, in the prior art, need set up a large amount of PMTU list items, the easy like this waste that causes PMTU list item memory space resource.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of PMTU item establishing method, a kind of file transmitting method and a kind of packet transmission device, to save the memory space resource of PMTU list item.
For achieving the above object, a kind of file transmitting method provided by the invention is as follows:
For having the equipment of identical MTU value in the network segment, set up a network segment PMTU list item; For having the equipment of different MTU values in the network segment, set up corresponding PMTU list item one by one;
Before message sends, judge whether to exist the PMTU list item corresponding with the message destination address, if exist, then construct message according to the PMTU list item of destination address correspondence; Otherwise, according to the network segment PMTU list item structure message of network segment correspondence under the destination address.
Wherein, the PMTU value in the described network segment PMTU list item is the minimum value of described identical MTU value and the minimum MTU value of this network segment access path uplink,
Describedly comprise according to network segment PMTU list item structure message: with the PMTU value in the network segment PMTU list item is that maximum message segment length is carried out message and constructed.
When the PMTU value in the PMTU list item of described equipment correspondence with different MTU values during for the direct connected link MTU value of this equipment, described PMTU list item structure message according to the destination address correspondence comprises: calculating the minimum value of network segment access path uplink minimum MTU value under PMTU value and this equipment in the described corresponding list item, is that maximum message segment length is carried out message and constructed with the minimum value that calculates;
When the PMTU value in the PMTU list item of described equipment correspondence with different MTU values during for the minimum value of the minimum MTU value of network segment access path uplink under this equipment direct connected link MTU value and this equipment, described PMTU list item according to the destination address correspondence is constructed message and comprised: with the PMTU value in the described corresponding PMTU list item is that maximum message segment length is carried out message and constructed.
Simultaneously, the present invention also provides a kind of PMTU item establishing method, comprising:
For having the equipment of identical MTU value in the network segment, set up a network segment PMTU list item; For having the equipment of different MTU values in the network segment, set up corresponding PMTU list item one by one.
Wherein, described network segment PMTU list item is a static configuration, and PMTU value wherein is the minimum value of described identical MTU value and the minimum MTU value of this network segment access path uplink.
In addition, the present invention also provides a kind of packet transmission device, comprising: list item is set up unit and message structural unit, wherein,
List item is set up the unit, is used to the equipment that has identical MTU value in the network segment, sets up a network segment PMTU list item; And the equipment for having different MTU values in the network segment, set up corresponding PMTU list item one by one;
The message structural unit is used for setting up the unit from list item and obtains network segment PMTU list item, and mails to the message of described equipment according to the network segment PMTU list item structure that obtains; And be used for setting up the unit and obtain PMTU list item, and mail to message with different MTU value equipment according to the corresponding PMTU list item structure that obtains with different MTU value equipment correspondences from list item.
This shows, in the present invention, the equipment that has identical MTU value for major part in the network segment, only need set up a network segment PMTU list item, the message that mails to these equipment is all constructed according to network segment PMTU list item and is got final product, and the equipment that need not to have for each identical MTU value is set up a PMTU list item respectively.Thereby significantly reduced the PMTU list item number of setting up, the memory space resource of having saved the PMTU list item.And, in the present invention, for the network segment that configures the PMTU list item, source node can directly be constructed message according to the PMTU list item of configuration, need not to carry out again PMTU and find that the first packet that can effectively reduce in the conventional P MTU agreement abandons phenomenon like this, improve message forwarding efficient.
Description of drawings
Fig. 1 is the flow chart that source node sends message in the embodiment of the invention.
Fig. 2 is the network segment network environment schematic diagram in the embodiment of the invention.
Fig. 3 is the packet transmission device structural representation in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, the embodiment that develops simultaneously with reference to the accompanying drawings is described in further detail the present invention.
Describe as can be known by background technology, in the prior art, need all set up a PMTU list item for each destination address.But under present network environment, the MTU value of an interior most equipment of the network segment all is identical, has only the MTU value of some special installation different.In this case,, will there be a large amount of duplicate messages so, cause the serious waste of PMTU list item memory space resource if all create a PMTU list item for each the IPv6 address in this network segment.And the minimum MTU of a common network segment access path uplink can be less than the MTU of network segment inside, and though this moment network segment inside MTU how, employed MTU should be the minimum MTU of access path uplink when visiting this network.In this case,, can there be a large amount of duplicate messages so equally, causes the waste of PMTU list item memory space resource if all create a PMTU list item for each the IPv6 address in this network segment.
In view of These characteristics, the present invention proposes a kind of PMTU item establishing method, its core concept is: for the equipment that has identical MTU value in the network segment, only set up a network segment PMTU list item.Rather than set up a PMTU list item respectively for each equipment with identical MTU value, can significantly reduce the memory space resource of PMTU list item like this.
Correspondingly, the invention allows for a kind of file transmitting method, this method comprises: for having the equipment of identical MTU value in the network segment, set up a network segment PMTU list item; For mailing to the message that these have identical MTU value equipment, carry out the message structure according to the network segment PMTU list item of setting up.
If the MTU value of an interior all devices of the network segment is all identical, the so whole network segment just only need be set up a network segment PMTU list item altogether.For the message that mails to this network segment, all construct and get final product according to this network segment PMTU list item.If except major part has the equipment of identical MTU value, also have the special equipment of other minority in this network segment, then also need to set up corresponding PMTU list item one by one for these special installations with different MTU values.For the message that mails to these special installations, just construct according to the PMTU list item of correspondence.
The source node that sends message adopts the mode of long coupling to inquire about the PMTU list item before sending message, and its detailed process mainly may further comprise the steps referring to shown in Figure 1:
Step 101: source node at first carries out the list item coupling before sending message, judge in the PMTU list item of preserving whether exist and the corresponding PMTU list item of destination address, if exist, then execution in step 102; Otherwise, execution in step 103.
Step 102: source node is constructed message according to the PMTU value in the corresponding list item of destination address, and the message of structure is mail to this destination address, process ends then.
Step 103: whether exist in the PMTU list item that source node judge to be preserved with destination address under the corresponding network segment PMTU of network segment list item, if exist, then execution in step 104; Otherwise, execution in step 105.
Step 104: source node is constructed message according to the PMTU value in the network segment PMTU list item, and the message of structure is mail to destination address, then process ends.
Step 105: source node is handled according to existing PMTU agreement, rediscovers the PMTU value of destination address, and according to PMTU value structure message and the transmission found.
For the detailed process of setting up PMTU list item and structure message in the present invention more clearly is described, be described in detail below by a concrete example.
Such as, referring to network segment network environment schematic diagram shown in Figure 2, suppose to have n+m platform main frame under the network segment N, and H1, H2 ..., the direct connected link MTU value of this n platform main frame of Hn is all identical, is MTU (0); Hn+1, Hn+2 ..., the direct connected link MTU value of the special main frame of this m platform of Hn+m is different with MTU (0), be respectively MTU (1), MTU (2) ..., MTU (m).And suppose that the minimum MTU of this network segment access path uplink is MTU (p).Wherein, the direct connected link MTU value of described main frame is meant, is connected to the MTU value of the link of this main frame under the network segment N.
When setting up the PMTU list item, n platform main frame for having identical MTU value in the network segment N need not to dispose the PMTU list item one by one, and only need dispose a network segment PMTU list item, the destination address of this list item is the address N of the network segment, and corresponding PMTU value is the minimum value min 0p of MTU (0) and MTU (p).For the special main frame of m platform, need the corresponding PMTU list item of configuration respectively, its destination address is respectively the address of each special main frame, and the PMTU value is the direct connected link MTU value of each special main frame.The concrete form ginseng of the PMTU list item of setting up is shown in Table 1.
Destination address The PMTU value
Network segment N min?0p
Special main frame Hn+1 MTU(1)
...... ......
Special main frame Hn+m MTU(m)
Table 1
As seen, table 1 uses network segment PMTU list item to replace having in a large number the main frame PMTU list item of identical MTU value, thereby greatly reduces the shared memory space of PMTU list item.
Before the main frame of source node in network segment N sends message, at first adopt the mode of long coupling to inquire about the PMTU list item, promptly see earlier to match special main frame, see again to match the network segment.When the special main frame of destination host right and wrong of visit, will match the network segment PMTU list item that destination address is N, source node carries out as the PMTU value of destination host with the PMTU value in the network segment PMTU list item that message is constructed and transmission.Such as, when source node when main frame Hn sends message, the message length of its transmission will be no more than min 0p.
When the destination host of visit is special main frame, will match the PMTU list item of destination address for certain special main frame, source node also sends according to the structure of the PMTU value in the PMTU list item that matches message.Because the PMTU value in the initial special main frame PMTU list item of setting up is the MTU value of this main frame direct connected link, therefore, according to existing P MTU agreement, the PMTU list item will converge the form shown in the table 2, wherein, min 1p is the minimum value in MTU (1) and two values of MTU (p), and min mp is the minimum value among MTU (m) and the MTU (p).For the special main frame in the network segment N, source node will that is to say according to the structure of the PMTU value after convergence message, carries out the message structure with the PMTU value after the convergence as the PMTU value of destination host.Such as, when source node when main frame Hn+m sends message, the message length of its transmission will be no more than the minimum value min mp in MTU (m) and two values of MTU (p).
Destination address The PMTU value
Network segment N min?0p
Special main frame Hn+1 min?1p
...... ?......
Special main frame Hn+m min?mp
Table 2
In order to guarantee the flexibility of special main frame PMTU list item, can be regularly the PMTU list item of special main frame be worn out.So-called aging being meant, the value when the PMTU value of special main frame is re-set as initial configuration, the MTU value of promptly special main frame direct connected link.
And for network segment PMTU list item, network segment PMTU value is to understand whole network and the numerical value that calculates, as the static configuration item, can not realize aging mechanism.Certainly, if change has taken place for MTU (n) or MTU (p), so, then need network segment PMTU value is upgraded.
In addition, in table 1, also the PMTU value of special main frame directly can be configured to the minimum value of the minimum MTU value of network segment access path uplink under special main frame direct connected link MTU value and the special main frame.That is to say that when initially setting up the PMTU list item, directly the PMTU list item with special main frame is configured to the form shown in the table 2.Like this, when special main frame sends message, just need not to carry out the list item convergence, can be maximum message segment length structure message and transmission with the PMTU value in the special main frame PMTU list item directly again.
As seen from the above description, in the present invention, for the network segment that configures the PMTU list item, source node directly gets final product according to the PMTU list item structure message of configuration, need not to carry out again PMTU finds, the first packet that can effectively reduce in the conventional P MTU agreement abandons phenomenon like this, improves message forwarding efficient.
Correspondingly, the invention allows for a kind of packet transmission device.Referring to shown in Figure 3, this device mainly comprises: list item is set up unit and message structural unit.Wherein, list item is set up the unit, is used to the equipment that has identical MTU value in the network segment, sets up a network segment PMTU list item; The message structural unit is used for setting up the unit from list item and obtains network segment PMTU list item, and sends to the message of described equipment according to the network segment PMTU list item structure that obtains.
Described list item is set up the unit, also can be further used for to having the equipment of different MTU values in the network segment, sets up corresponding PMTU list item one by one.
Described message structural unit also can be further used for setting up the unit from list item and obtain the PMTU list item with different MTU value equipment correspondences, and sends to the message with different MTU value equipment according to the corresponding PMTU list item structure that obtains.
The above has carried out further detailed description to purpose of the present invention, technical scheme and beneficial effect; institute is understood that; the above is not in order to restriction the present invention; within the spirit and principles in the present invention all; any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a file transmitting method is characterized in that, comprising:
For having the equipment of identical MTU MTU value in the network segment, set up a network segment PMTU PMTU list item; For having the equipment of different MTU values in the network segment, set up corresponding PMTU list item one by one;
Before message sends, judge whether to exist the PMTU list item corresponding with the message destination address, if exist, then construct message according to the PMTU list item of destination address correspondence; Otherwise, according to the network segment PMTU list item structure message of network segment correspondence under the destination address.
2. method according to claim 1 is characterized in that, the PMTU value in the described network segment PMTU list item is the minimum value of described identical MTU value and the minimum MTU value of this network segment access path uplink,
Describedly comprise according to network segment PMTU list item structure message: with the PMTU value in the network segment PMTU list item is that maximum message segment length is carried out message and constructed.
3. method according to claim 1 and 2 is characterized in that,
When the PMTU value in the PMTU list item of described equipment correspondence with different MTU values during for the direct connected link MTU value of this equipment, described PMTU list item structure message according to the destination address correspondence comprises: calculating the minimum value of network segment access path uplink minimum MTU value under PMTU value and this equipment in the described corresponding list item, is that maximum message segment length is carried out message and constructed with the minimum value that calculates;
When the PMTU value in the PMTU list item of described equipment correspondence with different MTU values during for the minimum value of the minimum MTU value of network segment access path uplink under this equipment direct connected link MTU value and this equipment, described PMTU list item according to the destination address correspondence is constructed message and comprised: with the PMTU value in the described corresponding PMTU list item is that maximum message segment length is carried out message and constructed.
4. a PMTU item establishing method is characterized in that, comprising:
For having the equipment of identical MTU value in the network segment, set up a network segment PMTU list item; For having the equipment of different MTU values in the network segment, set up corresponding PMTU list item one by one.
5. method according to claim 4 is characterized in that, described network segment PMTU list item is a static configuration, and PMTU value wherein is the minimum value of described identical MTU value and the minimum MTU value of this network segment access path uplink.
6. a packet transmission device is characterized in that, comprising: list item is set up unit and message structural unit, wherein,
List item is set up the unit, is used to the equipment that has identical MTU value in the network segment, sets up a network segment PMTU list item; And the equipment for having different MTU values in the network segment, set up corresponding PMTU list item one by one;
The message structural unit is used for setting up the unit from list item and obtains network segment PMTU list item, and mails to the message of described equipment according to the network segment PMTU list item structure that obtains; And be used for setting up the unit and obtain PMTU list item, and mail to message with different MTU value equipment according to the corresponding PMTU list item structure that obtains with different MTU value equipment correspondences from list item.
CN2007100869604A 2007-03-27 2007-03-27 Path maximum transmission unit item establishing method and message transmitting method and device Expired - Fee Related CN101022419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100869604A CN101022419B (en) 2007-03-27 2007-03-27 Path maximum transmission unit item establishing method and message transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100869604A CN101022419B (en) 2007-03-27 2007-03-27 Path maximum transmission unit item establishing method and message transmitting method and device

Publications (2)

Publication Number Publication Date
CN101022419A CN101022419A (en) 2007-08-22
CN101022419B true CN101022419B (en) 2011-04-06

Family

ID=38710074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100869604A Expired - Fee Related CN101022419B (en) 2007-03-27 2007-03-27 Path maximum transmission unit item establishing method and message transmitting method and device

Country Status (1)

Country Link
CN (1) CN101022419B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635685B (en) * 2009-08-14 2012-07-11 杭州华三通信技术有限公司 Method and device for acquiring PMTU by learning
CN103326947B (en) * 2013-02-22 2017-06-30 新华三技术有限公司 The learning method of PMTU, the sending method of data message and the network equipment
EP3905618A3 (en) 2015-08-31 2022-02-16 Huawei Technologies Co., Ltd. Data packet sending method and apparatus in ipv6 network
CN106411783A (en) * 2016-09-30 2017-02-15 杭州华三通信技术有限公司 Message sending method and device
CN106533969B (en) * 2016-11-17 2020-05-08 东软集团股份有限公司 Maximum transmission unit value setting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1505783A2 (en) * 2003-08-06 2005-02-09 Samsung Electronics Co., Ltd. Network apparatus, system and method for discovering path MTU in data communication network
CN1647454A (en) * 2002-03-29 2005-07-27 三星电子株式会社 Method for changing pmtu on dynamic ip network and apparatus using the method
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647454A (en) * 2002-03-29 2005-07-27 三星电子株式会社 Method for changing pmtu on dynamic ip network and apparatus using the method
EP1505783A2 (en) * 2003-08-06 2005-02-09 Samsung Electronics Co., Ltd. Network apparatus, system and method for discovering path MTU in data communication network
CN1581849A (en) * 2003-08-06 2005-02-16 三星电子株式会社 Network system and method for discovering path MTU in data communication network
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path

Also Published As

Publication number Publication date
CN101022419A (en) 2007-08-22

Similar Documents

Publication Publication Date Title
CN101009662B (en) Message processing method, system and device based on the load balance technology
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN101917707B (en) IP addressing method and system for wireless sensor network
CN101540992B (en) Method for report retransmission, base station and system thereof
CN101022419B (en) Path maximum transmission unit item establishing method and message transmitting method and device
KR101938623B1 (en) Openflow communication method, system, controller, and service gateway
CN104767666A (en) Virtual extensible local area network tunnel terminal tunnel building method and equipment
CN101150520A (en) Method and device for adjusting path maximum transfer unit
CN101827031A (en) Method and device for packet transmission in user datagram protocol UDP tunnel
CN103763750B (en) Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol
Moons et al. Using SCHC for an optimized protocol stack in multimodal LPWAN solutions
CN101640645A (en) Message transmission method and system
WO2014026571A1 (en) Method and device for sending generic routing encapsulation tunnel message
CN103945455A (en) Method and device for sending self-adaptive heartbeat data packets
CN105634977A (en) Method and device for discovering a path maximum transmission unit (PMTU)
CN108206783A (en) Address configuration method and its device in a kind of software defined network system
CN102196058B (en) Method for maintaining address compression control table in 6LoWPAN (lowpan) protocol
WO2015131739A1 (en) Data exchange method, baseband processing unit, radio frequency remote unit and relay unit
CN109005150B (en) Non-link communication method and system based on Ethernet MAC address
CN101635685B (en) Method and device for acquiring PMTU by learning
CN1937568B (en) Method and device for realizing message priority-level mapping
CN108494595B (en) High-efficiency new-generation big data network implementation method
CN101572665B (en) IPv6 over IPv4 tunnel switching method and device
CN101465858A (en) Method for implementing private network penetration of monitoring business, network appliance and server
CN100450276C (en) Method for transmitting message to mobile node by other-place agent in mobile IP network

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: 20110406

Termination date: 20200327