WO2016192402A1 - Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel - Google Patents

Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel Download PDF

Info

Publication number
WO2016192402A1
WO2016192402A1 PCT/CN2016/072159 CN2016072159W WO2016192402A1 WO 2016192402 A1 WO2016192402 A1 WO 2016192402A1 CN 2016072159 W CN2016072159 W CN 2016072159W WO 2016192402 A1 WO2016192402 A1 WO 2016192402A1
Authority
WO
WIPO (PCT)
Prior art keywords
tunnel
packet
mtu
interface
value
Prior art date
Application number
PCT/CN2016/072159
Other languages
French (fr)
Chinese (zh)
Inventor
陈敏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016192402A1 publication Critical patent/WO2016192402A1/en

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation

Definitions

  • IPv6 Internet Protocol Version 6, Internet Protocol Version 6
  • This document relates to, but is not limited to, the IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) tunneling method, especially a method and apparatus for adjusting the maximum transmission unit of an IPv6 tunnel.
  • the current IPv6 tunnel interface is a logical interface and can be created and deleted through commands.
  • the logical interfaces of the tunnel interface are different from those of the supervlan (Virtual Local Area Network) and the smart group (the logical port formed by link aggregation).
  • the actual physical interface of the tunnel cannot be confirmed by the command binding, but is obtained dynamically by querying the routing table.
  • the change of the routing interface may change the actual interface of the outbound interface of the tunnel.
  • An IPv6 tunnel is a Layer 3 interface.
  • the Layer 3 service can be deployed independently.
  • the MTU (Maximum Transmission Unit) configuration is supported.
  • the actual packet sending capability of the link is limited by the MTU of the actual outgoing interface of the link. Therefore, the tunnel interface and The MTU of a physical interface is in a constraint relationship. This constraint will result in a secondary fragmentation of the tunnel. If there is a multi-layer tunnel nesting environment, multiple fragmentation will occur, which will put pressure on the master. If the sent packet is discarded by the control plane, some packets in the fragment will be discarded. The case cannot be reorganized.
  • the embodiment of the invention provides a method and a device for adjusting the maximum transmission unit of an IPv6 tunnel, so as to avoid excessive pressure on the main control to send packets due to multiple fragmentation of the tunnel.
  • a method for adjusting a maximum transmission unit of an IPv6 tunnel comprising:
  • the packet length of the tunnel packet is compared with the maximum transmission unit MTU value of the actual outgoing interface.
  • the effective value of the MTU and/or the effective value of the MTU of the actual outgoing interface is the effective value of the MTU and/or the effective value of the MTU of the actual outgoing interface.
  • the method before the received tunnel message is the first packet or the unfragmented packet, the method further includes:
  • the method further includes:
  • the MTU value of the tunnel interface and the MTU value of the actual outbound interface are kept unchanged.
  • determining that the received tunnel message is the first packet or the unfragmented packet includes:
  • the MTU of the tunnel interface is adjusted according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, and/or the MTU of the actual outgoing interface.
  • Effective values include:
  • An embodiment of the present invention further provides an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel, including:
  • the comparison module is configured to compare the packet length of the tunnel packet with the maximum transmission unit MTU value of the actual outbound interface when the received IPv6 tunnel packet is the first packet or the unsegmented packet;
  • the adjustment module is configured to: when the packet length of the tunnel packet is greater than the actual outgoing interface
  • the MTU value is adjusted according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, and the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface. .
  • the device further includes:
  • the device further includes:
  • the hold module is configured to keep the MTU value of the tunnel interface and the MTU value of the actual outbound interface unchanged when the packet length of the tunnel message is less than or equal to the MTU value.
  • the adjustment module is configured to:
  • the embodiment of the present invention has the following beneficial effects:
  • the method and the device provided by the embodiment of the present invention improve the fragment forwarding performance of the IPv6 tunnel and prevent the tunnel from being fragmented multiple times by adjusting the tunnel MTU to prevent the excessively large number of packets sent by the master control due to multiple fragmentation of the tunnel. To alleviate the situation that some packets of the IPv6 tunnel fragment packet are lost and cannot be reorganized.
  • FIG. 1 is a flowchart of a method for adjusting a maximum transmission unit of an IPv6 tunnel according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel according to an embodiment of the present invention
  • FIG. 4 is a flowchart of adjusting a maximum transmission unit of an IPv6 tunnel according to Embodiment 2 of the present invention.
  • a method for adjusting a maximum transmission unit of an IPv6 tunnel includes:
  • Step 11 Adjusting the MTU of the IPv6 tunnel When the received IPv6 tunnel message is the first packet or the unfragmented packet, the packet length of the tunnel packet is the maximum transmission unit MTU of the actual outgoing interface. Value comparison
  • Step 12 The apparatus for adjusting the MTU of the IPv6 tunnel, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface, according to the packet length of the tunnel packet and the MTU value of the actual outgoing interface.
  • the difference is the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outbound interface.
  • the method further includes:
  • the method further includes:
  • the MTU value of the tunnel interface and the MTU value of the actual outbound interface are kept unchanged.
  • the received tunnel packet is the first packet or the unfragmented packet.
  • the adjusting the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface includes:
  • the outer layer of the IPv6 tunnel can be encapsulated with an IPv4 header or an IPv6 header.
  • the IPv4 packet of the IPv6 tunnel or the offline value of the IPv6 packet is used to determine whether the packet is a fragmented packet.
  • the lower value of the IP header in the lower layer is 0, indicating the first packet or the unfragmented packet.
  • the IPv6 tunnel is compared with the MTU of the actual outgoing interface according to the length of the received first packet. When the packet with the offset 0 of the tunnel header is larger than the MTU of the actual outgoing interface, the difference between the two MTUs is dynamically adjusted.
  • the MTU of the tunnel interface is dynamically adjusted. The original tunnel interface MTU is subtracted from the difference.
  • the MTU value of the tunnel interface is not modified when the packet with the offset of the tunnel is less than or equal to the MTU of the actual outbound interface.
  • the corresponding tunnel interface protocol needs to be dynamically perceived by traffic. If the offline value of the packet is not 0, the size of the MTU of the tunnel interface is not adjusted to be fragmented. If there is any change, the external notification is updated.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for the above method for adjusting an IPv6 tunnel maximum transmission unit.
  • an embodiment of the present invention provides an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel, including:
  • the comparison module is configured to compare the packet length of the tunnel packet with the maximum transmission unit MTU value of the actual outbound interface when the received IPv6 tunnel packet is the first packet or the unsegmented packet;
  • the adjusting module is configured to adjust, according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface.
  • the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface is configured to adjust, according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface.
  • the device also includes:
  • the device also includes:
  • the hold module is configured to keep the MTU value of the tunnel interface and the MTU value of the actual outbound interface unchanged when the packet length of the tunnel message is less than or equal to the MTU value.
  • the determining, by the comparing module, that the received tunnel message is the first packet or the unfragmented packet refers to:
  • the adjustment module is set to:
  • the MTU of the tunnel interface of the IPv6 tunnel takes effect according to the configured value of the tunnel interface, or takes effect according to the MTU value that takes effect before.
  • the D6 and V6 tunneling protocol modules determine whether the MTU value of the tunnel interface needs to be reset according to the offset value of the sent packet.
  • the V6 tunneling protocol module determines that the MTU value of the tunnel interface needs to be reset, and the current possible value is determined.
  • the currently available possible values are calculated based on the actual situation and have not been compared with the mtu that is valid for the current interface.
  • the F and V6 tunneling protocol modules determine the size of the value to be adjusted, and the size of the tunnel interface MTU of the IPv6 tunnel is the size of the tunnel interface MTU of the current packet minus the adjustment value;
  • NP Network Processor
  • Step 1 Telnet (remote login) to the OAM interface of the device to configure the MTU value of the IPv6 tunnel interface and the MTU value of the actual outgoing interface.
  • Step 2 The traffic is fragmented before the underlying IPv6 tunnel header is encapsulated
  • the third step the device monitors the size and the value of the IPv6 tunnel packet sent by the MPU (Microprocessor Unit, which is the main control board of the T8000 series router, which is responsible for the system management and routing functions).
  • MPU Microprocessor Unit
  • Step 4 When the value of the IP packet header of the IPv6 tunnel is not 0, the size of the current packet and the size of the MTU of the actual outgoing interface are not determined. When the packet has an offset of 0, the comparison is reported. The size of the text and the size of the actual outgoing interface MTU;
  • Step 5 When the current packet size is less than or equal to the MTU value of the actual outbound interface, the MTU value of the current tunnel interface is maintained. The current IPv6 tunnel packet size is greater than the actual outbound MTU value. , perform the sixth step;
  • Step 6 Update the tunnel interface MTU
  • Step 7 The updated effective value informs the FTM to write the table
  • Step 8 NP reads the effective value from the FTM.
  • the hardware module part includes: the main control board and line card of the device.
  • the main control board needs OAM to configure the MTU of the actual outgoing interface.
  • the line card implements the function of processing the traffic according to the actual outgoing interface MTU.
  • the MTU value of the actual outbound interface of v6_tunnel1 is set to A
  • the MTU value of the v6_tunnel1 interface is B
  • the size of the V6 tunnel header is D.
  • the module is configured according to the configured tunnel interface IP. MTU takes effect;
  • the R-CPU is the CPU on the main control board MPU
  • the L-CPU is the CPU on the line card
  • P is the processor (central processing unit)
  • J is the job (job stream processor).
  • the line card divides the packet before entering the IPv6 tunnel according to the MTU value B of the tunnel interface
  • the MTU of the IPv6 tunnel interface is configured with the value B, and B is fragmented as the effective value.
  • the packet is encapsulated on the IPv6 tunnel header and sent to the master.
  • the packet size is B+D.
  • the adjustment module (equivalent to the sub-module of the V6 tunneling protocol module in FIG. 3) obtains the value B+D-A, and updates the MTU of the tunnel interface to A-D;
  • the A-D is the effective value and compared with the MTU of the newly read actual outgoing interface.
  • the interface management module obtains the MTU value of the tunnel interface, and synchronizes the MTU of the tunnel interface to the FTM; the interface management module obtains the actual outgoing interface MTU, and synchronizes the actual outgoing interface MTU to the FTM;
  • the NP obtains the MTU value of the tunnel interface and the MTU of the actual outbound interface, performs fragmentation according to the MTU information, and then sends a fragmented packet to the V6 tunneling protocol module.
  • the V6 tunneling protocol module determines whether the offline value of the IP packet that is sent under the tunnel header is 0. If the value is 0, the process proceeds to step 406. If not, the process ends.
  • the V6 tunneling protocol module obtains the MTU of the packet.
  • the interface management module determines whether the acquired MTU is greater than the MTU of the actual outbound interface. If the value is greater than, the process proceeds to step 408. If the value is less than or equal to, the process ends.
  • the V6 tunneling protocol module updates the tunnel MTU that is actually effective.
  • the FTM obtains the tunnel MTU that is actually effective.
  • the NP obtains the tunnel MTU that is actually in effect.
  • the technical solution of the present invention is to improve the fragmentation forwarding performance of the IPv6 tunnel, prevent the multiple fragmentation of the tunnel, and alleviate the IPv6 tunnel fragmentation by adjusting the MTU of the tunnel to prevent the excessively large number of packets sent by the master.
  • the packet part of the packet is lost and cannot be reorganized.

Abstract

Disclosed are a method and apparatus for adjusting a maximum transmission unit of an IPv6 tunnel, which relate to the technical field of IPv6 tunnel methods. The method comprises: when a received IPv6 tunnel packet is a first fragmented packet or a non-fragmented packet, comparing the packet length of the tunnel packet with a value of a maximum transmission unit (MTU) of an actual outbound interface; and when the packet length of the tunnel packet is greater than the MTU value of the actual outbound interface, adjusting an effective value of the MTU of the tunnel interface and/or an effective value of the MTU of the actual outbound interface according to a difference value between the packet length of the tunnel packet and the MTU value of the actual outbound interface. By adjusting an MTU of a tunnel, the problem of excessive packet sending stress of a main control due to multiple instances of fragmentation by the tunnel is prevented, the fragment forwarding performance of an IPv6 tunnel is improved, multiple instances of fragmentation by the tunnel are prevented, and the situation where IPv6 tunnel fragmented packets fail to be reconstructed due to the loss of some of the packets is alleviated.

Description

一种调整IPv6隧道最大传输单元的方法和装置Method and device for adjusting maximum transmission unit of IPv6 tunnel 技术领域Technical field
本文涉及但不限于IPv6(Internet Protocol Version 6,互联网协议版本6)隧道方法技术领域,尤指一种调整IPv6隧道最大传输单元的方法和装置。This document relates to, but is not limited to, the IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) tunneling method, especially a method and apparatus for adjusting the maximum transmission unit of an IPv6 tunnel.
背景技术Background technique
目前的IPv6隧道接口是逻辑接口,可以通过命令创建和删除,并且隧道接口和supervlan(VLAN聚合,Virtual Local Area Network,虚拟局域网),smartgroup(链路聚合形成的逻辑端口)这些逻辑接口不同,IPv6隧道实际物理接口是不能通过命令绑定确认的,而是通过查询路由表动态获得的,路由接口的变化可能导致隧道出接口的实际接口发生变化。The current IPv6 tunnel interface is a logical interface and can be created and deleted through commands. The logical interfaces of the tunnel interface are different from those of the supervlan (Virtual Local Area Network) and the smart group (the logical port formed by link aggregation). The actual physical interface of the tunnel cannot be confirmed by the command binding, but is obtained dynamically by querying the routing table. The change of the routing interface may change the actual interface of the outbound interface of the tunnel.
IPv6隧道是三层接口,可以独立的部署三层业务,支持MTU(Maximum Transmission Unit,最大传输单元)的配置,链路的实际发包能力受链路实际出接口的MTU的限制,因此隧道接口和物理接口的MTU是存在约束关系的。这种约束关系会导致隧道的二次分片。若有多层隧道嵌套环境存在,会产生多次分片的情况,对主控产生压力,若上送报文被控制面安全丢弃,还会产生分片中的部分报文被丢弃,报文不能重组的情况。An IPv6 tunnel is a Layer 3 interface. The Layer 3 service can be deployed independently. The MTU (Maximum Transmission Unit) configuration is supported. The actual packet sending capability of the link is limited by the MTU of the actual outgoing interface of the link. Therefore, the tunnel interface and The MTU of a physical interface is in a constraint relationship. This constraint will result in a secondary fragmentation of the tunnel. If there is a multi-layer tunnel nesting environment, multiple fragmentation will occur, which will put pressure on the master. If the sent packet is discarded by the control plane, some packets in the fragment will be discarded. The case cannot be reorganized.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种调整IPv6隧道最大传输单元的方法和装置,以避免由于隧道多次分片而导致主控上送报文压力过大。The embodiment of the invention provides a method and a device for adjusting the maximum transmission unit of an IPv6 tunnel, so as to avoid excessive pressure on the main control to send packets due to multiple fragmentation of the tunnel.
本发明实施例采取的技术方案如下:The technical solution adopted by the embodiment of the present invention is as follows:
一种调整IPv6隧道最大传输单元的方法,包括: A method for adjusting a maximum transmission unit of an IPv6 tunnel, comprising:
当接收到的IPv6隧道报文是第一片报文或者未分片报文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较;When the received IPv6 tunnel packet is the first packet or the unsegmented packet, the packet length of the tunnel packet is compared with the maximum transmission unit MTU value of the actual outgoing interface.
当所述隧道报文的报文长度大于所述实际出接口的MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。Adjusting the tunnel interface according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outbound interface. The effective value of the MTU and/or the effective value of the MTU of the actual outgoing interface.
可选地,在接收到的隧道报文是第一片报文或者未分片报文之前,还包括:Optionally, before the received tunnel message is the first packet or the unfragmented packet, the method further includes:
设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。Set the MTU value of the tunnel interface and/or the MTU value of the actual outbound interface.
可选地,所述方法还包括:Optionally, the method further includes:
当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。When the packet length of the tunnel packet is less than or equal to the MTU value, the MTU value of the tunnel interface and the MTU value of the actual outbound interface are kept unchanged.
可选地,确定接收到的隧道报文是第一片报文或者未分片报文包括:Optionally, determining that the received tunnel message is the first packet or the unfragmented packet includes:
根据所述隧道报文中的网络互连协议IP报文的片偏移量值,确定接收到的隧道报文是第一片报文或者未分片报文。And determining, according to the slice offset value of the network interconnection protocol IP packet in the tunnel packet, that the received tunnel packet is the first packet or the unfragmented packet.
可选地,所述根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值包括:Optionally, the MTU of the tunnel interface is adjusted according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, and/or the MTU of the actual outgoing interface. Effective values include:
将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;And adjusting an effective value of the MTU of the tunnel interface to a set MTU value of the tunnel interface minus the difference;
和/或,and / or,
将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the actual outgoing interface to the set MTU value of the actual outgoing interface plus the difference.
本发明实施例还提供一种调整IPv6隧道最大传输单元的装置,包括:An embodiment of the present invention further provides an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel, including:
比较模块,设置为当接收到的IPv6隧道报文是第一片报文或者未分片报文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较;The comparison module is configured to compare the packet length of the tunnel packet with the maximum transmission unit MTU value of the actual outbound interface when the received IPv6 tunnel packet is the first packet or the unsegmented packet;
调整模块,设置为当所述隧道报文的报文长度大于所述实际出接口的 MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。The adjustment module is configured to: when the packet length of the tunnel packet is greater than the actual outgoing interface The MTU value is adjusted according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, and the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface. .
可选地,所述装置还包括:Optionally, the device further includes:
设置模块,设置为设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。The setting module is configured to set an MTU value of the tunnel interface and/or an MTU value of the actual outbound interface.
可选地,所述装置还包括:Optionally, the device further includes:
保持模块,设置为当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。The hold module is configured to keep the MTU value of the tunnel interface and the MTU value of the actual outbound interface unchanged when the packet length of the tunnel message is less than or equal to the MTU value.
可选地,所述比较模块中确定接收到的隧道报文是第一片报文或者未分片报文是设置为:Optionally, the determining, by the comparing module, that the received tunnel message is the first packet or the unfragmented packet is set to:
根据所述隧道报文中的网络互连协议IP报文的片偏移量值,确定接收到的隧道报文是第一片报文或者未分片报文。And determining, according to the slice offset value of the network interconnection protocol IP packet in the tunnel packet, that the received tunnel packet is the first packet or the unfragmented packet.
可选地,所述调整模块是设置为:Optionally, the adjustment module is configured to:
将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;And adjusting an effective value of the MTU of the tunnel interface to a set MTU value of the tunnel interface minus the difference;
和/或,and / or,
将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the actual outgoing interface to the set MTU value of the actual outgoing interface plus the difference.
本发明实施例和相关技术相比,具有如下有益效果:Compared with the related art, the embodiment of the present invention has the following beneficial effects:
本发明实施例提供的方法和装置通过调整隧道MTU防止由于隧道多次分片而导致主控的上送报文压力过大的问题,提升IPv6隧道的分片转发性能,防止隧道多次分片,缓解IPv6隧道分片报文部分报文丢失导致无法重组的情况。The method and the device provided by the embodiment of the present invention improve the fragment forwarding performance of the IPv6 tunnel and prevent the tunnel from being fragmented multiple times by adjusting the tunnel MTU to prevent the excessively large number of packets sent by the master control due to multiple fragmentation of the tunnel. To alleviate the situation that some packets of the IPv6 tunnel fragment packet are lost and cannot be reorganized.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述 BRIEF abstract
图1是本发明实施例的一种调整IPv6隧道最大传输单元的方法的流程图;1 is a flowchart of a method for adjusting a maximum transmission unit of an IPv6 tunnel according to an embodiment of the present invention;
图2是本发明实施例的一种调整IPv6隧道最大传输单元的装置的结构示意图;2 is a schematic structural diagram of an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel according to an embodiment of the present invention;
图3是本发明实施例二调整IPv6隧道最大传输单元的基本架构图;3 is a basic structural diagram of adjusting a maximum transmission unit of an IPv6 tunnel according to Embodiment 2 of the present invention;
图4是本发明实施例二调整IPv6隧道最大传输单元的流程图。FIG. 4 is a flowchart of adjusting a maximum transmission unit of an IPv6 tunnel according to Embodiment 2 of the present invention.
本发明的实施方式Embodiments of the invention
下面结合附图对本发明的实施例进行说明,需要说明的是,在不冲突的情况下,本申请中的实施例和实施例中的特征可以相互任意组合。The embodiments of the present invention are described below with reference to the accompanying drawings. It should be noted that the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other without conflict.
如图1所示,本发明实施例提供的一种调整IPv6隧道最大传输单元的方法,包括:As shown in FIG. 1 , a method for adjusting a maximum transmission unit of an IPv6 tunnel according to an embodiment of the present invention includes:
步骤11、调整IPv6隧道MTU的装置当接收到的IPv6隧道报文是第一片报文或者未分片报文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较;Step 11: Adjusting the MTU of the IPv6 tunnel When the received IPv6 tunnel message is the first packet or the unfragmented packet, the packet length of the tunnel packet is the maximum transmission unit MTU of the actual outgoing interface. Value comparison
步骤12、调整IPv6隧道MTU的装置当所述隧道报文的报文长度大于所述实际出接口的MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。Step 12: The apparatus for adjusting the MTU of the IPv6 tunnel, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface, according to the packet length of the tunnel packet and the MTU value of the actual outgoing interface. The difference is the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outbound interface.
在接收到的隧道报文是第一片报文或者未分片报文之前,还包括:Before the received tunnel packet is the first packet or the unfragmented packet, the method further includes:
设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。Set the MTU value of the tunnel interface and/or the MTU value of the actual outbound interface.
所述方法还包括:The method further includes:
当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。When the packet length of the tunnel packet is less than or equal to the MTU value, the MTU value of the tunnel interface and the MTU value of the actual outbound interface are kept unchanged.
确定接收到的隧道报文是第一片报文或者未分片报文包括:Determine whether the received tunnel packet is the first packet or the unfragmented packet includes:
根据所述隧道报文中的网络互连协议IP报文的片偏移量offest值,确定 接收到的隧道报文是第一片报文或者未分片报文。Determining, according to a slice offset value of the network interconnection protocol IP packet in the tunnel packet, The received tunnel packet is the first packet or the unfragmented packet.
所述根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值包括:The adjusting the effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface includes:
将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;和/或,将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the tunnel interface to the set MTU value of the tunnel interface minus the difference; and/or adjusting the effective value of the MTU of the actual outgoing interface to the actual The MTU value of the outgoing interface is added to the difference.
IPv6隧道外层可以封装IPv4头,也可以封装IPv6头,根据IPv6隧道下面的IPv4报文或者IPv6报文的offest值来确定报文是不是分片报文,当主控收到的报文的下挂的IP头里层的offest值为0,表示为第一片包或者未分片报文,IPv6隧道按照收到的第一片报文的长度与实际出接口的MTU对比,当收到封装了隧道头的offest=0的报文大于实际出接口的MTU值的时候,取两个MTU的差值,动态调整隧道接口MTU值为原隧道接口MTU减去这个差值,当收到封装了隧道头的offest=0的报文小于或等于实际出接口的MTU值的时候,隧道接口MTU值不做修改。当隧道的实际出接口发生改变或者配置到该隧道实际出接口的MTU发生改变或者隧道接口的MTU发生改变的时候,对应的隧道接口协议需要通过流量动态感知。若检测到报文的offest值不为0,则不调整隧道接口MTU的大小为分片报文,如有变化对外通知更新。The outer layer of the IPv6 tunnel can be encapsulated with an IPv4 header or an IPv6 header. The IPv4 packet of the IPv6 tunnel or the offline value of the IPv6 packet is used to determine whether the packet is a fragmented packet. The lower value of the IP header in the lower layer is 0, indicating the first packet or the unfragmented packet. The IPv6 tunnel is compared with the MTU of the actual outgoing interface according to the length of the received first packet. When the packet with the offset 0 of the tunnel header is larger than the MTU of the actual outgoing interface, the difference between the two MTUs is dynamically adjusted. The MTU of the tunnel interface is dynamically adjusted. The original tunnel interface MTU is subtracted from the difference. The MTU value of the tunnel interface is not modified when the packet with the offset of the tunnel is less than or equal to the MTU of the actual outbound interface. When the actual outbound interface of the tunnel is changed or the MTU of the actual outbound interface of the tunnel is changed or the MTU of the tunnel interface is changed, the corresponding tunnel interface protocol needs to be dynamically perceived by traffic. If the offline value of the packet is not 0, the size of the MTU of the tunnel interface is not adjusted to be fragmented. If there is any change, the external notification is updated.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于上述的一种调整IPv6隧道最大传输单元的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for the above method for adjusting an IPv6 tunnel maximum transmission unit.
如图2所示,本发明实施例提供一种调整IPv6隧道最大传输单元的装置,包括:As shown in FIG. 2, an embodiment of the present invention provides an apparatus for adjusting a maximum transmission unit of an IPv6 tunnel, including:
比较模块,设置为当接收到的IPv6隧道报文是第一片报文或者未分片报文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较; The comparison module is configured to compare the packet length of the tunnel packet with the maximum transmission unit MTU value of the actual outbound interface when the received IPv6 tunnel packet is the first packet or the unsegmented packet;
调整模块,设置为当所述隧道报文的报文长度大于所述实际出接口的MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。The adjusting module is configured to adjust, according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface. The effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface.
所述装置还包括:The device also includes:
设置模块,设置为设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。The setting module is configured to set an MTU value of the tunnel interface and/or an MTU value of the actual outbound interface.
所述装置还包括:The device also includes:
保持模块,设置为当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。The hold module is configured to keep the MTU value of the tunnel interface and the MTU value of the actual outbound interface unchanged when the packet length of the tunnel message is less than or equal to the MTU value.
所述比较模块中确定接收到的隧道报文是第一片报文或者未分片报文是指:The determining, by the comparing module, that the received tunnel message is the first packet or the unfragmented packet refers to:
根据所述隧道报文中的网络互连协议IP报文的片偏移量offest值,确定接收到的隧道报文是第一片报文或者未分片报文。And determining, according to the slice offset value of the network interconnection protocol IP packet in the tunnel packet, that the received tunnel packet is the first packet or the unfragmented packet.
所述调整模块是设置为:The adjustment module is set to:
将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;和/或,将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the tunnel interface to the set MTU value of the tunnel interface minus the difference; and/or adjusting the effective value of the MTU of the actual outgoing interface to the actual The MTU value of the outgoing interface is added to the difference.
实施例一Embodiment 1
本发明实施例采用以下技术方案防止IPv6隧道二次分片:The embodiment of the present invention adopts the following technical solutions to prevent secondary fragmentation of an IPv6 tunnel:
A、分布式交换机/路由器***中,IPv6隧道接口MTU调整由主控来实现;A. In the distributed switch/router system, the MTU adjustment of the IPv6 tunnel interface is implemented by the master;
B、通过在OAM(Operation Administration and Maintenance,操作、管理和维护)配置隧道实际出接口的MTU;B. Configure the MTU of the actual outgoing interface of the tunnel by using OAM (Operation Administration and Maintenance).
C、当实际出接口配置MTU时,IPv6隧道的隧道接口MTU按照隧道口的配置值生效,或者按照之前生效的MTU值生效; C. When the MTU is configured on the outbound interface, the MTU of the tunnel interface of the IPv6 tunnel takes effect according to the configured value of the tunnel interface, or takes effect according to the MTU value that takes effect before.
D、V6隧道协议模块根据上送上来的报文的offest值来确定是否需要重新设置隧道接口MTU值;The D6 and V6 tunneling protocol modules determine whether the MTU value of the tunnel interface needs to be reset according to the offset value of the sent packet.
E、如需要重新设置隧道接口MTU值,则V6隧道协议模块判断需要重新设置隧道接口MTU值,将当前获得的可能值进行判断;E. If the MTU value of the tunnel interface needs to be reset, the V6 tunneling protocol module determines that the MTU value of the tunnel interface needs to be reset, and the current possible value is determined.
当前获得的可能值,是根据实际情况计算出来未与当前接口生效的mtu对比过的值。The currently available possible values are calculated based on the actual situation and have not been compared with the mtu that is valid for the current interface.
F、V6隧道协议模块判断需要调整的值的大小,更新IPv6隧道的隧道接口MTU的大小为当前报文的隧道接口MTU减去调整值的大小;The F and V6 tunneling protocol modules determine the size of the value to be adjusted, and the size of the tunnel interface MTU of the IPv6 tunnel is the size of the tunnel interface MTU of the current packet minus the adjustment value;
G、将生效值(F步骤中减去调整值后的值)通知FTM(forward table manage,转发表管理)写表;G. Notifying the FTM (forward table manage) write table to the effective value (the value after subtracting the adjustment value in the F step);
H、NP(Network Processor,网络处理器)通过FTM读取最后生效值。H, NP (Network Processor) reads the last valid value through FTM.
本发明实施例所述动态调整隧道接口MTU实现的方法包括以下步骤:The method for dynamically adjusting the tunnel interface MTU according to the embodiment of the present invention includes the following steps:
第一步:telnet(远程登陆)到设备OAM界面配置IPv6隧道接口的MTU值和实际出接口的MTU值;Step 1: Telnet (remote login) to the OAM interface of the device to configure the MTU value of the IPv6 tunnel interface and the MTU value of the actual outgoing interface.
第二步:流量在底层封装IPv6隧道头之前进行分片;Step 2: The traffic is fragmented before the underlying IPv6 tunnel header is encapsulated;
第三步:设备实时监控上送MPU(Microprocessor Unit,微处理器,是T8000系列路由器的主控板,负责完成***的管理和路由功能)的IPv6隧道报文大小和offest值;The third step: the device monitors the size and the value of the IPv6 tunnel packet sent by the MPU (Microprocessor Unit, which is the main control board of the T8000 series router, which is responsible for the system management and routing functions).
第四步:当IPv6隧道头下挂的IP报文头的offest值非0的时候,不判断当前报文的大小和实际出接口MTU的大小,当报文里面offest=0的时候,对比报文的大小与实际出接口MTU的大小;Step 4: When the value of the IP packet header of the IPv6 tunnel is not 0, the size of the current packet and the size of the MTU of the actual outgoing interface are not determined. When the packet has an offset of 0, the comparison is reported. The size of the text and the size of the actual outgoing interface MTU;
第五步:发现当前报文的大小小于或者等于实际出接口的MTU的值的时候,维持当前隧道接口MTU值不变;发现当前IPv6隧道报文的大小大于当前生效的实际出接口MTU值时,执行第六步;Step 5: When the current packet size is less than or equal to the MTU value of the actual outbound interface, the MTU value of the current tunnel interface is maintained. The current IPv6 tunnel packet size is greater than the actual outbound MTU value. , perform the sixth step;
第六步:更新隧道接口MTU;Step 6: Update the tunnel interface MTU;
第七步:更新后的生效值通知FTM写表;Step 7: The updated effective value informs the FTM to write the table;
第八步:NP从FTM读取生效值。 Step 8: NP reads the effective value from the FTM.
实施例二Embodiment 2
硬件模块部分包括:设备的主控板和线卡。其中主控板需要OAM进行实际出接口的MTU的配置,线卡板实现根据实际出接口MTU对流量进行处理的功能。The hardware module part includes: the main control board and line card of the device. The main control board needs OAM to configure the MTU of the actual outgoing interface. The line card implements the function of processing the traffic according to the actual outgoing interface MTU.
流程部分的处理步骤如下:The processing steps in the process section are as follows:
比如在v6_tunnel1实际出接口配置了MTU值为A,v6_tunnel1口配置的MTU值为B,V6隧道头大小为D,按照图3的架构和图4中的流程,首先设置模块根据配置的隧道接口IP MTU生效;For example, the MTU value of the actual outbound interface of v6_tunnel1 is set to A, the MTU value of the v6_tunnel1 interface is B, and the size of the V6 tunnel header is D. According to the architecture of Figure 3 and the flow in Figure 4, the module is configured according to the configured tunnel interface IP. MTU takes effect;
图3中R-CPU是主控板MPU上面的CPU,L-CPU是线卡上的CPU,P是processor(中央处理器),J是job(作业流处理器)In Figure 3, the R-CPU is the CPU on the main control board MPU, the L-CPU is the CPU on the line card, P is the processor (central processing unit), and J is the job (job stream processor).
1)线卡根据隧道接口的MTU值B对进入IPv6隧道前的报文进行分片;1) The line card divides the packet before entering the IPv6 tunnel according to the MTU value B of the tunnel interface;
2)动态调整之前,IPv6隧道接口的MTU值为配置值B,将B作为生效值进行分片;2) Before the dynamic adjustment, the MTU of the IPv6 tunnel interface is configured with the value B, and B is fragmented as the effective value.
3)分片后,报文封装上IPv6隧道头上送主控,报文大小为B+D;3) After the fragment is fragmented, the packet is encapsulated on the IPv6 tunnel header and sent to the master. The packet size is B+D.
4)封装上IPv6隧道头后根据上送IPv6隧道报文里面下挂的IP头的offest字段确认是否要读取此片报文的大小;4) After the IPv6 tunnel header is encapsulated, it is confirmed whether the size of the packet is to be read according to the offset field of the IP header that is sent in the IPv6 tunnel packet.
5)比较模块(相当于图3中的V6隧道协议模块中的子模块)读取IPv6隧道报文里面下挂的IP头的offest=0的报文的大小为B+D;5) The comparison module (equivalent to the sub-module in the V6 tunneling protocol module in FIG. 3) reads the size of the packet with the offset=0 of the IP header that is hanged in the IPv6 tunnel packet is B+D;
6)若B+D>A,将B+D通知给调整模块;6) If B+D>A, notify B+D to the adjustment module;
7)调整模块(相当于图3中的V6隧道协议模块的子模块)获取值B+D-A,更新隧道接口的MTU为A-D;7) The adjustment module (equivalent to the sub-module of the V6 tunneling protocol module in FIG. 3) obtains the value B+D-A, and updates the MTU of the tunnel interface to A-D;
8)若B+D<A或B+D=A,保持模块不修改隧道接口的MTU;8) If B+D<A or B+D=A, the hold module does not modify the MTU of the tunnel interface;
9)下一次通知接调整模块更新时,以A-D为生效值与新读取的实际出接口的MTU进行比对。9) The next time the notification is adjusted by the adjustment module, the A-D is the effective value and compared with the MTU of the newly read actual outgoing interface.
如图4所示,包括以下步骤:As shown in Figure 4, the following steps are included:
401、通过OAM界面配置隧道接口的MTU值,并且配置实际的出接口MTU; 401. Configure an MTU value of the tunnel interface through the OAM interface, and configure an actual outbound interface MTU.
402、接口管理模块获取隧道接口的MTU值,同步隧道接口的MTU到FTM;接口管理模块获取实际的出接口MTU,同步实际的出接口MTU到FTM;402. The interface management module obtains the MTU value of the tunnel interface, and synchronizes the MTU of the tunnel interface to the FTM; the interface management module obtains the actual outgoing interface MTU, and synchronizes the actual outgoing interface MTU to the FTM;
403、FTM获取隧道接口的MTU值,同步隧道接口的MTU到NP;FTM获取实际的出接口的MTU值,同步实际的出接口的MTU到NP;403. The FTM obtains the MTU value of the tunnel interface, and synchronizes the MTU of the tunnel interface to the NP; the FTM obtains the MTU value of the actual outbound interface, and synchronizes the MTU of the actual outgoing interface to the NP;
404、NP获取隧道接口的MTU值和实际的出接口的MTU,按照MTU信息进行分片,然后向V6隧道协议模块上送分片报文;404. The NP obtains the MTU value of the tunnel interface and the MTU of the actual outbound interface, performs fragmentation according to the MTU information, and then sends a fragmented packet to the V6 tunneling protocol module.
405、V6隧道协议模块判断上送报文隧道头下面下挂的IP报文的offest值是否为0,如为0,则转向步骤406,如不为0,则结束流程。405. The V6 tunneling protocol module determines whether the offline value of the IP packet that is sent under the tunnel header is 0. If the value is 0, the process proceeds to step 406. If not, the process ends.
406、V6隧道协议模块获取报文MTU;406. The V6 tunneling protocol module obtains the MTU of the packet.
407、接口管理模块判断获取的MTU是否大于实际出接口的MTU,如大于,则转步骤408,如小于或者等于,则结束流程。407. The interface management module determines whether the acquired MTU is greater than the MTU of the actual outbound interface. If the value is greater than, the process proceeds to step 408. If the value is less than or equal to, the process ends.
408,V6隧道协议模块更新实际生效的隧道MTU;408. The V6 tunneling protocol module updates the tunnel MTU that is actually effective.
409、FTM获取实际生效的隧道MTU;409. The FTM obtains the tunnel MTU that is actually effective.
410、NP获取实际生效的隧道MTU。410. The NP obtains the tunnel MTU that is actually in effect.
工业实用性Industrial applicability
本技术方案通过调整隧道MTU防止由于隧道多次分片而导致主控的上送报文压力过大的问题,提升IPv6隧道的分片转发性能,防止隧道多次分片,缓解IPv6隧道分片报文部分报文丢失导致无法重组的情况。 The technical solution of the present invention is to improve the fragmentation forwarding performance of the IPv6 tunnel, prevent the multiple fragmentation of the tunnel, and alleviate the IPv6 tunnel fragmentation by adjusting the MTU of the tunnel to prevent the excessively large number of packets sent by the master. The packet part of the packet is lost and cannot be reorganized.

Claims (11)

  1. 一种调整IPv6隧道最大传输单元的方法,包括:A method for adjusting a maximum transmission unit of an IPv6 tunnel, comprising:
    当接收到的IPv6隧道报文是第一片报文或者未分片报文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较;When the received IPv6 tunnel packet is the first packet or the unsegmented packet, the packet length of the tunnel packet is compared with the maximum transmission unit MTU value of the actual outgoing interface.
    当所述隧道报文的报文长度大于所述实际出接口的MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。Adjusting the tunnel interface according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outbound interface. The effective value of the MTU and/or the effective value of the MTU of the actual outgoing interface.
  2. 如权利要求1所述的方法,还包括:在接收到的隧道报文是第一片报文或者未分片报文之前,The method of claim 1, further comprising: before the received tunnel message is the first message or the unfragmented message,
    设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。Set the MTU value of the tunnel interface and/or the MTU value of the actual outbound interface.
  3. 如权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。When the packet length of the tunnel packet is less than or equal to the MTU value, the MTU value of the tunnel interface and the MTU value of the actual outbound interface are kept unchanged.
  4. 如权利要求1所述的方法,其中,确定接收到的隧道报文是第一片报文或者未分片报文包括:The method of claim 1, wherein determining that the received tunnel message is the first piece of the message or the unfragmented message comprises:
    根据所述隧道报文中的网络互连协议IP报文的片偏移量值,确定接收到的隧道报文是第一片报文或者未分片报文。And determining, according to the slice offset value of the network interconnection protocol IP packet in the tunnel packet, that the received tunnel packet is the first packet or the unfragmented packet.
  5. 如权利要求1所述的方法,其中,所述根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值包括:The method of claim 1, wherein the MTU effective value and/or location of the tunnel interface is adjusted according to a difference between a packet length of the tunnel message and an MTU value of the actual outgoing interface. The effective values of the MTU of the actual outgoing interface include:
    将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;And adjusting an effective value of the MTU of the tunnel interface to a set MTU value of the tunnel interface minus the difference;
    和/或,and / or,
    将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the actual outgoing interface to the set MTU value of the actual outgoing interface plus the difference.
  6. 一种调整IPv6隧道最大传输单元的装置,包括:A device for adjusting a maximum transmission unit of an IPv6 tunnel, comprising:
    比较模块,设置为当接收到的IPv6隧道报文是第一片报文或者未分片报 文时,将所述隧道报文的报文长度与实际出接口的最大传输单元MTU值比较;The comparison module is set to be the first packet or the unfragmented packet when the received IPv6 tunnel packet is received. The packet length of the tunnel packet is compared with the maximum transmission unit MTU value of the actual outgoing interface;
    调整模块,设置为当所述隧道报文的报文长度大于所述实际出接口的MTU值时,根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值。The adjusting module is configured to adjust, according to the difference between the packet length of the tunnel packet and the MTU value of the actual outgoing interface, when the packet length of the tunnel packet is greater than the MTU value of the actual outgoing interface. The effective value of the MTU of the tunnel interface and/or the effective value of the MTU of the actual outgoing interface.
  7. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    设置模块,设置为设置所述隧道接口的MTU值和/或所述实际出接口的MTU值。The setting module is configured to set an MTU value of the tunnel interface and/or an MTU value of the actual outbound interface.
  8. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    保持模块,设置为当所述隧道报文的报文长度小于或者等于所述MTU值时,保持所述隧道接口的MTU值和所述实际出接口的MTU值不变。The hold module is configured to keep the MTU value of the tunnel interface and the MTU value of the actual outbound interface unchanged when the packet length of the tunnel message is less than or equal to the MTU value.
  9. 如权利要求6所述的装置,其中,所述比较模块是设置为通过如下方式实现确定接收到的隧道报文是第一片报文或者未分片报文:The apparatus of claim 6, wherein the comparing module is configured to determine that the received tunnel message is a first piece of message or an unfragmented message by:
    根据所述隧道报文中的网络互连协议IP报文的片偏移量值,确定接收到的隧道报文是第一片报文或者未分片报文。And determining, according to the slice offset value of the network interconnection protocol IP packet in the tunnel packet, that the received tunnel packet is the first packet or the unfragmented packet.
  10. 如权利要求6所述的装置,其中,所述调整模块是设置为通过如下方式实现根据所述隧道报文的报文长度与所述实际出接口的MTU值的差值,调整所述隧道接口的MTU的生效值和/或所述实际出接口的MTU的生效值:The apparatus according to claim 6, wherein the adjustment module is configured to adjust the tunnel interface according to a difference between a packet length of the tunnel message and an MTU value of the actual outgoing interface. The effective value of the MTU and/or the effective value of the MTU of the actual outgoing interface:
    将所述隧道接口的MTU的生效值调整为设置的所述隧道接口的MTU值减去所述差值;And adjusting an effective value of the MTU of the tunnel interface to a set MTU value of the tunnel interface minus the difference;
    和/或,and / or,
    将所述实际出接口的MTU的生效值调整为设置的所述实际出接口的MTU值加上所述差值。Adjusting the effective value of the MTU of the actual outgoing interface to the set MTU value of the actual outgoing interface plus the difference.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-5.
PCT/CN2016/072159 2015-06-03 2016-01-26 Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel WO2016192402A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510300401.3 2015-06-03
CN201510300401.3A CN106302246A (en) 2015-06-03 2015-06-03 A kind of method and apparatus adjusting IPv6 tunnel MTU

Publications (1)

Publication Number Publication Date
WO2016192402A1 true WO2016192402A1 (en) 2016-12-08

Family

ID=57440010

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/072159 WO2016192402A1 (en) 2015-06-03 2016-01-26 Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel

Country Status (2)

Country Link
CN (1) CN106302246A (en)
WO (1) WO2016192402A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10638363B2 (en) 2018-04-04 2020-04-28 At&T Intellectual Property I, L.P. Legacy network maximum transmission unit isolation capability through deployment of a flexible maximum transmission unit packet core design
CN111901452A (en) * 2020-07-20 2020-11-06 中盈优创资讯科技有限公司 Method and device for automatically adapting and adding IPV6 information for equipment interface
US10841834B2 (en) 2018-04-04 2020-11-17 At&T Intellectual Property I, L.P. Legacy network maximum transmission unit isolation capability through deployment of a flexible maximum transmission unit packet core design
CN115134171A (en) * 2022-08-30 2022-09-30 湖南麒麟信安科技股份有限公司 Method, device, system and medium for encrypting storage message under isolated network environment
CN117201128A (en) * 2023-09-11 2023-12-08 泉城省实验室 Method and device for preventing tunnel from fragment attack based on flow sensing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1491005A1 (en) * 2002-03-29 2004-12-29 Samsung Electronics Co., Ltd. Method for changing pmtu on dynamic ip network and apparatus using the method
CN1716943A (en) * 2004-06-28 2006-01-04 杭州华为三康技术有限公司 Method and system for obtaining path maximum transmission length in channel gateway environment
CN101217540A (en) * 2008-01-04 2008-07-09 杭州华三通信技术有限公司 A self-adapting regulation method, device and system of message tunnel slicing
CN101374101A (en) * 2007-08-22 2009-02-25 华为技术有限公司 Method, equipment and system for transmitting multiplexing packet
CN102594505A (en) * 2012-02-08 2012-07-18 华为技术有限公司 Data transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1491005A1 (en) * 2002-03-29 2004-12-29 Samsung Electronics Co., Ltd. Method for changing pmtu on dynamic ip network and apparatus using the method
CN1716943A (en) * 2004-06-28 2006-01-04 杭州华为三康技术有限公司 Method and system for obtaining path maximum transmission length in channel gateway environment
CN101374101A (en) * 2007-08-22 2009-02-25 华为技术有限公司 Method, equipment and system for transmitting multiplexing packet
CN101217540A (en) * 2008-01-04 2008-07-09 杭州华三通信技术有限公司 A self-adapting regulation method, device and system of message tunnel slicing
CN102594505A (en) * 2012-02-08 2012-07-18 华为技术有限公司 Data transmission method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10638363B2 (en) 2018-04-04 2020-04-28 At&T Intellectual Property I, L.P. Legacy network maximum transmission unit isolation capability through deployment of a flexible maximum transmission unit packet core design
US10841834B2 (en) 2018-04-04 2020-11-17 At&T Intellectual Property I, L.P. Legacy network maximum transmission unit isolation capability through deployment of a flexible maximum transmission unit packet core design
US11297532B2 (en) 2018-04-04 2022-04-05 At&T Intellectual Property I, L.P. Legacy network maximum transmission unit isolation capability through deployment of a flexible maximum transmission unit packet core design
CN111901452A (en) * 2020-07-20 2020-11-06 中盈优创资讯科技有限公司 Method and device for automatically adapting and adding IPV6 information for equipment interface
CN111901452B (en) * 2020-07-20 2023-04-21 中盈优创资讯科技有限公司 Method and device for automatically adapting and adding IPV6 information through equipment interface
CN115134171A (en) * 2022-08-30 2022-09-30 湖南麒麟信安科技股份有限公司 Method, device, system and medium for encrypting storage message under isolated network environment
CN115134171B (en) * 2022-08-30 2022-11-29 湖南麒麟信安科技股份有限公司 Method, device, system and medium for encrypting storage message under isolated network environment
CN117201128A (en) * 2023-09-11 2023-12-08 泉城省实验室 Method and device for preventing tunnel from fragment attack based on flow sensing
CN117201128B (en) * 2023-09-11 2024-03-15 泉城省实验室 Method and device for preventing tunnel from fragment attack based on flow sensing

Also Published As

Publication number Publication date
CN106302246A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US10659342B2 (en) Flow entry configuration method, apparatus, and system
EP3525405B1 (en) Packet sending method and network device
WO2016192402A1 (en) Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel
EP3026861B1 (en) Method and apparatus for processing time synchronization
US9571382B2 (en) Method, controller, and system for processing data packet
EP3082309B1 (en) Sdn controller, data centre system and router connection method
CN105745883B (en) Forwarding table synchronous method, the network equipment and system
WO2015143984A1 (en) Transmission control method, apparatus and system
EP3057271B1 (en) Control device and control method in software defined network (sdn)
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
WO2016119733A1 (en) Vxlan packet transmission
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
JP2018508151A (en) Method, apparatus, and system for transmitting transmission control protocol TCP data packet
TWI639325B (en) Automatically configured switch,method of automatically configuring a switch, and software defined network system with auto-deployment switches and auto-deploying method thereof
US10652142B2 (en) SDN-based ARP implementation method and apparatus
US10205608B2 (en) Method for encapsulating service routing packet, service forwarding entity and control plane
US9998293B2 (en) Method and device for maintaining multicast group member
EP3122012B1 (en) Data processing method and apparatus for openflow network
US9553760B2 (en) Method, device, and system for dual-uplink tangent ring convergence
US10291750B1 (en) Aggregating data sessions between autonomous systems
WO2018161221A1 (en) Multicast service processing method and access device
US20160261345A1 (en) Method for setting maintenance association ma, apparatus, and system
CN107231316B (en) Message transmission method and device
WO2021082818A1 (en) Method and apparatus for adjusting transmission rate
CN110505137B (en) Function expansion type wired network device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16802325

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16802325

Country of ref document: EP

Kind code of ref document: A1