WO2016192402A1 - Procédé et appareil de réglage d'unité de transmission maximale de tunnel ipv6 - Google Patents
Procédé et appareil de réglage d'unité de transmission maximale de tunnel ipv6 Download PDFInfo
- 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
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/741—Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2592—Translation 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.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
L'invention concerne un procédé et un appareil de réglage d'une unité de transmission maximale d'un tunnel IPv6, qui concernent le domaine technique des procédés de tunnel IPv6. Le procédé consiste à : lorsqu'un paquet de tunnels IPv6 reçu est un premier paquet fragmenté ou un paquet non fragmenté, comparer la longueur du paquet de tunnels avec une valeur d'une unité de transmission maximale (MTU) d'une interface de sortie réelle ; et lorsque la longueur du paquet de tunnels est supérieure à la valeur de MTU de l'interface de sortie réelle, régler une valeur efficace de la MTU de l'interface de tunnel et/ou une valeur efficace de la MTU de l'interface de sortie réelle selon une valeur de différence entre la longueur du paquet de tunnels et la valeur de MTU de l'interface de sortie réelle. Le réglage d'une MTU d'un tunnel permet d'éviter le problème de contrainte d'envoi de paquet excessive d'une commande principale en raison de multiples instances de fragmentation par le tunnel, d'améliorer les performances de transmission de fragment d'un tunnel IPv6, d'éviter de multiples instances de fragmentation par le tunnel, et d'améliorer la situation où des paquets fragmentés de tunnels IPv6 ne parviennent pas à être reconstruits en raison de la perte de certains paquets.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510300401.3A CN106302246A (zh) | 2015-06-03 | 2015-06-03 | 一种调整IPv6隧道最大传输单元的方法和装置 |
| CN201510300401.3 | 2015-06-03 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016192402A1 true WO2016192402A1 (fr) | 2016-12-08 |
Family
ID=57440010
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/072159 Ceased WO2016192402A1 (fr) | 2015-06-03 | 2016-01-26 | Procédé et appareil de réglage d'unité de transmission maximale de tunnel ipv6 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106302246A (fr) |
| WO (1) | WO2016192402A1 (fr) |
Cited By (5)
| 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 (zh) * | 2020-07-20 | 2020-11-06 | 中盈优创资讯科技有限公司 | 一种设备接口自动适配添加ipv6信息的方法及装置 |
| 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 (zh) * | 2022-08-30 | 2022-09-30 | 湖南麒麟信安科技股份有限公司 | 隔离网络环境下加密存储报文的方法、装置、系统及介质 |
| CN117201128A (zh) * | 2023-09-11 | 2023-12-08 | 泉城省实验室 | 一种基于流量感知的隧道预防分片攻击的方法和装置 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116260895B (zh) * | 2023-03-24 | 2026-03-10 | 深圳市吉祥腾达科技有限公司 | 基于pmtu提升udp分片包转发性能的方法及系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1491005A1 (fr) * | 2002-03-29 | 2004-12-29 | Samsung Electronics Co., Ltd. | Procede de modification d'une pmtu dans un reseau ip dynamique et appareil utilisant ce procede |
| CN1716943A (zh) * | 2004-06-28 | 2006-01-04 | 杭州华为三康技术有限公司 | 获取隧道网关环境中路径最大传输长度的方法及系统 |
| CN101217540A (zh) * | 2008-01-04 | 2008-07-09 | 杭州华三通信技术有限公司 | 报文隧道分片的自适应调整方法、装置和系统 |
| CN101374101A (zh) * | 2007-08-22 | 2009-02-25 | 华为技术有限公司 | 一种传输复用报文的方法、设备及系统 |
| CN102594505A (zh) * | 2012-02-08 | 2012-07-18 | 华为技术有限公司 | 数据传输方法及装置 |
-
2015
- 2015-06-03 CN CN201510300401.3A patent/CN106302246A/zh active Pending
-
2016
- 2016-01-26 WO PCT/CN2016/072159 patent/WO2016192402A1/fr not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1491005A1 (fr) * | 2002-03-29 | 2004-12-29 | Samsung Electronics Co., Ltd. | Procede de modification d'une pmtu dans un reseau ip dynamique et appareil utilisant ce procede |
| CN1716943A (zh) * | 2004-06-28 | 2006-01-04 | 杭州华为三康技术有限公司 | 获取隧道网关环境中路径最大传输长度的方法及系统 |
| CN101374101A (zh) * | 2007-08-22 | 2009-02-25 | 华为技术有限公司 | 一种传输复用报文的方法、设备及系统 |
| CN101217540A (zh) * | 2008-01-04 | 2008-07-09 | 杭州华三通信技术有限公司 | 报文隧道分片的自适应调整方法、装置和系统 |
| CN102594505A (zh) * | 2012-02-08 | 2012-07-18 | 华为技术有限公司 | 数据传输方法及装置 |
Cited By (9)
| 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 (zh) * | 2020-07-20 | 2020-11-06 | 中盈优创资讯科技有限公司 | 一种设备接口自动适配添加ipv6信息的方法及装置 |
| CN111901452B (zh) * | 2020-07-20 | 2023-04-21 | 中盈优创资讯科技有限公司 | 一种设备接口自动适配添加ipv6信息的方法及装置 |
| CN115134171A (zh) * | 2022-08-30 | 2022-09-30 | 湖南麒麟信安科技股份有限公司 | 隔离网络环境下加密存储报文的方法、装置、系统及介质 |
| CN115134171B (zh) * | 2022-08-30 | 2022-11-29 | 湖南麒麟信安科技股份有限公司 | 隔离网络环境下加密存储报文的方法、装置、系统及介质 |
| CN117201128A (zh) * | 2023-09-11 | 2023-12-08 | 泉城省实验室 | 一种基于流量感知的隧道预防分片攻击的方法和装置 |
| CN117201128B (zh) * | 2023-09-11 | 2024-03-15 | 泉城省实验室 | 一种基于流量感知的隧道预防分片攻击的方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106302246A (zh) | 2017-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104954279B (zh) | 一种传输控制方法、装置及系统 | |
| CN105745883B (zh) | 转发表同步的方法、网络设备和系统 | |
| US20190245772A1 (en) | Flow entry configuration method, apparatus, and system | |
| EP3026861B1 (fr) | Méthode et appareil de traitement de synchronisation temporelle | |
| CN110022264B (zh) | 控制网络拥塞的方法、接入设备和计算机可读存储介质 | |
| WO2016192402A1 (fr) | Procédé et appareil de réglage d'unité de transmission maximale de tunnel ipv6 | |
| US9571382B2 (en) | Method, controller, and system for processing data packet | |
| US10397126B2 (en) | VXLAN packet transmission | |
| EP3082309B1 (fr) | Contrôleur sdn, système de centre de données et méthode de connexion de routeur | |
| EP3057271B1 (fr) | Dispositif de commande et procédé de commande dans un réseau défini par logiciel (sdn) | |
| TWI639325B (zh) | 自動配置的交換機、自動配置交換機的方法、交換機自動部署的軟體定義網路系統及其方法 | |
| US10652142B2 (en) | SDN-based ARP implementation method and apparatus | |
| WO2016165463A1 (fr) | Procédé de compte rendu de défaillance de liaison basé sur un réseau défini par logiciel et dispositif de réacheminement | |
| US9998293B2 (en) | Method and device for maintaining multicast group member | |
| EP3579517A1 (fr) | Procédé de traitement de service de multidiffusion et dispositif d'accès | |
| US9553760B2 (en) | Method, device, and system for dual-uplink tangent ring convergence | |
| CN106101005A (zh) | 一种数据中心网络中基于分组长度的拥塞控制方法 | |
| US9813159B2 (en) | Method for setting maintenance association MA, apparatus, and system | |
| WO2021082818A1 (fr) | Procédé et appareil d'ajustement de débit de transmission | |
| CN107231316B (zh) | 报文的传输方法及装置 | |
| CN103414646B (zh) | 一种组播服务协商方法及装置 | |
| CN120151138A (zh) | 基于vxlan的数据传输方法、装置、设备及系统 |
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 |