WO2012159461A1 - 一种二层路径最大传输单元发现方法和节点 - Google Patents

一种二层路径最大传输单元发现方法和节点 Download PDF

Info

Publication number
WO2012159461A1
WO2012159461A1 PCT/CN2012/071023 CN2012071023W WO2012159461A1 WO 2012159461 A1 WO2012159461 A1 WO 2012159461A1 CN 2012071023 W CN2012071023 W CN 2012071023W WO 2012159461 A1 WO2012159461 A1 WO 2012159461A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
pmtu
link tracking
value
node
Prior art date
Application number
PCT/CN2012/071023
Other languages
English (en)
French (fr)
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 WO2012159461A1 publication Critical patent/WO2012159461A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present invention relates to the field of data communications, and in particular, to a method and a node for discovering a Path Maximum Transmission Unit (PMTU) of a Layer 2 path.
  • PMTU Path Maximum Transmission Unit
  • each interface has a Maximum Transmission Unit (MTU), that is, when a packet is sent from the interface, if the packet length is greater than the MTU of the interface, the packet fails to be sent. .
  • MTU Maximum Transmission Unit
  • the packets are forwarded on the network, the packets are discarded because the length of the packets is greater than the MTU of the outgoing interface.
  • MTU Maximum Transmission Unit
  • PMTU In response to this problem, the concept of PMTU is currently proposed at the IP layer.
  • the so-called PMTU is that when the IP packet is sent from the source, the length of the packet must be smaller than the MTU of the entire path. Therefore, the packet does not need to be fragmented when passing through the intermediate node, which improves the packet forwarding efficiency of the network device.
  • the implementation principle of the PMTU is as shown in Figure 1.
  • the MTU fragment according to the route (the default MTU value of the route is the MTU of the outbound interface). If the intermediate node forwards, the MTU is reported.
  • the packet is discarded, and an ICMP (Internet Control Message Protocol) error packet with an excessive packet is sent to the source node to carry the MTU value of the outbound interface.
  • ICMP Internet Control Message Protocol
  • the source node does not have a host route with a destination address, the source node creates a host route with the destination address of the packet.
  • the MTU value of the route is the MTU value carried in the packet.
  • a route directly modifies the MTU value of the route. After several rounds of interaction, you can learn the minimum MTU of the entire path, that is, the PMTU. The next time you re-send the message, it will be fragmented according to the PMTU, ensuring that the intermediate nodes are not fragmented as much as possible to improve the packet forwarding efficiency.
  • the forwarding environment of the second layer is more complicated, and there are multiple transmission links, including Ethernet and POS (Packet over SONET/SDH, packet data packet on synchronous optical network/synchronous digital system, ATM (Asynchronous Transfer Mode), etc.
  • POS link and ATM link transmission are actually insensitive to interface MTU, but in Ethernet link If the source node sends a packet according to the MTU of the old hardware 1526, and the actual link supports a larger MTU transmission, the hardware bandwidth is wasted, and the actual data forwarding efficiency is reduced; if the new MTU is transmitted, it may cause two Layer packet forwarding is lost due to MTU problems.
  • the current problem is mainly as shown in Figure 2.
  • a Layer 2 switching environment such as a Layer 2 Virtual Private Network (L2VPN) tunnel
  • L2VPN Layer 2 Virtual Private Network
  • the packet is transmitted, the Layer 3 IP packet sent by the source node is forwarded. If the packet length is greater than the MTU of the outbound interface, the IPv4 packet cannot be fragmented and cannot be forwarded.
  • the message will be discarded and no error message will be sent to the source node. In this case, the packet is discarded, and the actual forwarding fails.
  • the source node does not perceive this and continuously sends packets, making network faults difficult to locate.
  • the object of the present invention is to provide a Layer 2 PMTU discovery method and a node to avoid packet loss due to too small an outgoing MTU in the Layer 2 forwarding process.
  • the present invention provides a method for discovering a maximum transmission unit of a layer 2 path, including:
  • the source node sends a link tracking message to the target medium access control (MAC), and establishes a Layer 2 Path Maximum Transmission Unit (PMTU) of the source node to the target MAC, where the initial value of the Layer 2 PMTU is Source node outbound interface maximum transmission unit (MTU) value;
  • MAC medium access control
  • PMTU Layer 2 Path Maximum Transmission Unit
  • the intermediate node When receiving the link tracking message, the intermediate node forwards the link tracking message, and returns a link tracking response message to the source node, where the link tracking response message carries the outbound interface MTU. Value;
  • the source node When the source node receives the link tracking response message returned by each intermediate node, the source node updates the layer 2 PMTU according to the outbound interface MTU value carried in the link tracking response message.
  • the MTU value of the outbound interface is carried in the following manner: an MTU option is added to the link tracking response packet, and the MTU value of the outbound interface is carried by the MTU option, where the MTU option is a type length.
  • Data (TLV) structure TLV
  • the step of updating the Layer 2 PMTU according to the outbound interface MTU value carried in the link tracking response packet includes:
  • the source node After receiving the link tracking response message returned by the intermediate node, the source node extracts the MTU value in the link tracking response message, and searches for the Layer 2 PMTU according to the link tracking response message. And when the extracted MTU value is smaller than the value of the layer 2 PMTU, the layer 2 PMTU is updated by using the extracted MTU value, and is not processed when the extracted MTU value is greater than or equal to the value of the layer 2 PMTU.
  • the method further includes: when the node corresponding to the target MAC receives the link tracking message that is forwarded by the intermediate node, and returns a link tracking response message to the source node, where the returned link tracking response message carries The MTU value is a specified value, and the specified value is different from the normal MTU value.
  • the source node receives the link tracking response message returned by the node corresponding to the target MAC, if the link tracking response packet is determined, If the MTU value carried in the value is the specified value, the received link tracking reply message is ignored.
  • the method further includes: the source node recording the layer 2 PMTU by using a new MAC entry of the MAC forwarding table, and aging the layer 2 PMTU according to the aging mechanism of the MAC forwarding table.
  • the method further includes: after the source node sends the IP packet, converting the layer 2 PMTU into a layer 3 PMTU by: sending the packet according to the layer 3 PMTU:
  • the present invention also provides a node, including: an Ethernet operation management maintenance module, a MAC management module, and a transceiver module, wherein:
  • the Ethernet operation management and maintenance module is configured to: when the node is a source node, generate a link tracking message that is sent to a target media access control (MAC), and send the message to the transceiver module; And processing the link tracking response message received by the transceiver packet module, and extracting the outbound interface MTU value carried in the link tracking response message, and sending the value to the MAC management module;
  • MAC media access control
  • the MAC management module is configured to: when the node is a source node, establish a Layer 2 Path Maximum Transmission Unit (PMTU) of the source node to the target MAC, where an initial value of the second layer PMTU is a source node An interface maximum transmission unit (MTU) value; and, updating the layer 2 PMTU according to each outbound interface MTU value received from the Ethernet operation management and maintenance module;
  • PMTU Layer 2 Path Maximum Transmission Unit
  • MTU interface maximum transmission unit
  • the transceiver module is configured to: after the node is used as a source node, encapsulate the link tracking message to be sent, and receive the link tracking response packet returned by the intermediate node, after performing decapsulation Send to the Ethernet operation management and maintenance module.
  • the MAC management module is configured to update the second layer by:
  • the Ethernet operation management and maintenance module Receiving, by the Ethernet operation management and maintenance module, an outbound interface MTU value in the link tracking response packet, and searching for the layer 2 PMTU according to the link tracking response packet, where the link tracking response packet is
  • the Layer 2 PMTU is updated by using the outbound interface MTU value in the link tracking response packet, and the outbound interface MTU in the link tracking response packet is used.
  • the value is greater than or equal to the value of the second layer PMTU and is not processed.
  • the MAC management module is further configured to: record the Layer 2 PMTU by using a new MAC entry of the MAC forwarding table, and age the Layer 2 PMTU according to the aging mechanism of the MAC forwarding table.
  • the MAC management module is further configured to convert the Layer 2 PMTU into a Layer 3 PMTU according to the following manner:
  • the node When the node sends the IP packet as the source node, it searches for the forwarding route according to the destination address of the IP packet, finds the outbound interface and the next hop, and finds the address resolution protocol entry according to the outbound interface and the next hop.
  • the next hop MAC address saved by the address resolution entry, searching for the second layer PMTU according to the next hop MAC address, and subtracting the searched layer 2 PMTU from the layer 2 PMTU as the layer 3 PMTU;
  • the transceiver module is further configured to send an IP packet according to the Layer 3 PMTU obtained by the Layer 2 PMTU conversion.
  • the transceiver module is further configured to: when the node receives the link tracking message as the intermediate node, forward the received link tracking message, and return the link tracking response message to the source node.
  • the returned link tracking response packet carries the outbound interface MTU value.
  • the invention effectively complements the Ethernet OAM protocol, improves the reliability and maintainability of the Ethernet operating network, and ensures that the intermediate node does not lose packets in either the Layer 2 switching environment or the Layer 3 switching environment.
  • Figure 1 is a schematic diagram of the path MTU discovery
  • Figure 2 is a schematic diagram of the current problem of Layer 2 forwarding
  • Figure 3 is a schematic view of the method of the present invention.
  • Figure 4 is a flow chart of processing the LTR packet received by the source node
  • Figure 5 is an MTU option diagram
  • Figure 6 is a flow chart of sending IP packets through a Layer 2 environment
  • Figure 7 is a block diagram showing the structure of a node of the present invention.
  • the invention is implemented by means of an LTM (Link Trace Message) message and an LTR (Link Trace Reply) message in the OAM (Operation Administration and Maintenance).
  • LTM Link Trace Message
  • LTR Link Trace Reply
  • the present invention provides a method for discovering a maximum transmission unit of a two-layer path, including:
  • MAC media access control
  • the intermediate node When receiving the link tracking message, the intermediate node forwards the link tracking message, and returns a link tracking response message to the source node, where the link tracking response message carries the outbound interface MTU. Value;
  • the source node When the source node receives the link tracking response message returned by each intermediate node, the source node updates the second layer PMTU of the source node to the target MAC according to the outbound interface MTU value carried in the link tracking response message.
  • the MTU option carries the MTU value of the outbound interface by using the MTU option, and the MTU option is a Type Length Data (TLV) structure.
  • the MTU option has a format as shown in Figure 5, a 1-byte type, a 2-byte length, and the next 5 bytes to hold the data (MTU value). For alignment, the 4th byte is reserved.
  • the source node updates the Layer 2 PMTU of the source node to the target MAC according to the outbound interface MTU value carried in the link tracking response packet, including:
  • the source node After receiving the link tracking response message returned by the intermediate node, the source node extracts the MTU value in the link tracking response message, and searches for the corresponding layer 2 PMTU according to the link tracking response message. And when the extracted MTU value is smaller than the value of the layer 2 PMTU, the layer 2 PMTU is updated by using the extracted MTU value, and is not processed when the extracted MTU value is greater than or equal to the value of the layer 2 PMTU.
  • the method further includes: when the node corresponding to the target MAC receives the link tracking message that is forwarded by the intermediate node, and returns a link tracking response message to the source node, where the link tracking response packet
  • the MTU value carried in the link is a specified value, and the specified value is different from the normal MTU value.
  • the source node receives the link tracking response message sent by the node corresponding to the target MAC, if the link tracking response message is determined, If the MTU value carried in the text is the specified value, the link tracking response is ignored.
  • the source node records the Layer 2 PMTU by using a new MAC entry of the MAC forwarding table, and considers that the relationship between the Layer 2 PMTU and the physical performance is relatively tight, and the Layer 2 PMTU is not aging alone, and the Layer 2 PMTU is used as the MAC forwarding table.
  • MTU option uses TLV (Type, Length, Value, type, length, value) structure, type Take one of the current TLV reservation types of the Ethernet OAM, for example, 8, and you can take other reserved values as needed.
  • the Layer 2 PMTU recorded by the MAC forwarding table can be displayed in the user interface. Of course, the second layer PMTU can also age separately if needed.
  • the source node When the source node sends the Layer 2 protocol packet, the source node sends the packet according to the Layer 2 PMTU.
  • the Layer 2 PMTU When the source node sends the IP packet, the Layer 2 PMTU is converted into the Layer 3 PMTU. The three-layer PMTU is described for packet transmission.
  • the converting the layer 2 PMTU into the layer 3 PMTU includes:
  • the two-layer PMTU discovery method provided by the present invention includes the following steps:
  • Step 1 The source node configures the Ethernet OAM command to send the LTM packet to the destination MAC to establish a Layer 2 PMTU to the destination MAC.
  • the initial value of the Layer 2 PMTU is the MTU of the outbound interface of the source node.
  • the Layer 2 PMTU is used as a MAC entry of the MAC forwarding table.
  • the LTM packet carries information such as the TTL value and the destination MAC address.
  • Step 2 The intermediate node returns an LTR packet carrying the newly defined MTU option, and the MTU value carries the MTU value of the outbound interface.
  • Step 3 The source node receives the LTR packet, parses the packet, and extracts the target MAC and MTU.
  • Step 4 The source node finds the corresponding MAC entry in the MAC forwarding table according to the result of parsing the LTR packet, and compares the MTU value in the LTR packet with the Layer 2 PMTU value in the MAC entry, if the MTU in the LTR packet is greater than If the Layer 2 PMTU is equal to the MAC entry, the processing is not processed. If the Layer 2 PMTU is smaller than the MAC entry, the Layer 2 PMTU of the MAC entry is updated with the MTU in the LTR packet as the new Layer 2 PMTU result.
  • Step 5 When the source node sends the Layer 2 protocol packet, it sends the packet according to the Layer 2 PMTU packet. When sending the IP packet, it generates a Layer 3 PMTU according to the value of the Layer 2 PMTU. Layer PMTU fragments send IP packets.
  • the method includes:
  • the source node sends an LTM message for the MAC to learn.
  • the LTM packet carries information such as the TTL value and the destination MAC address.
  • a MAC entry is added to the MAC forwarding table to record the Layer 2 PMTU.
  • the default value is the MTU of the outbound interface. If the Layer 2 PMTU learning is performed later, the learned PMTU value is recorded.
  • the TTL is decremented by one.
  • the forwarding node continues to forward the packet according to the destination MAC address, and returns an LTR packet to the source node.
  • the TTL value is equal to the TTL value of the forwarded packet.
  • the destination MAC address is in the LTM packet.
  • the source MAC address of the packet carries the MTU of the outbound interface.
  • the MTU of the interface is recorded.
  • the MTU of the outbound interface is the MTU of the outbound interface of the tunnel, that is, the physical outbound interface MTU is subtracted. Layer Ether Layer 2 header length), subsequent other forwarding node processing is similar to the first one.
  • the LTR packet returned by the node where the target MAC is located carries the MTU value in the MTU option.
  • the specified value is different from the normal MTU value, such as 0 or Oxffffffff, indicating that the value is meaningless.
  • the source node ignores it after receiving it.
  • the LTR message returned by the node where the target MAC is located may also not carry the MTU option; or, an indication message is sent indicating that the LTR message is an LTR message returned by the target node.
  • the source node After receiving the LTR packet, the source node parses the MTU option of the LTR packet, and searches the MAC forwarding table according to the source MAC address of the LTR packet to determine whether the MTU in the LTR packet is smaller than the MAC entry in the MAC forwarding table. Some MTUs, if less than replace the existing MTU, greater than or equal to no processing; as shown in Figure 4. After such a text interaction process, the source node learns the Layer 2 PMTU of the target MAC.
  • the Layer 2 protocol packet is searched for the MAC forwarding table according to the target MAC information, and the packet is sent according to the size of the Layer 2 PMTU.
  • the Layer 2 packet needs to be used first.
  • the PMTU is converted to a three-layer PMTU and then sent according to the three-layer PMTU fragment.
  • the conversion method of the Layer 2 PMTU to the Layer 3 PMTU is as follows: First, look up the forwarding route according to the destination address of the IP packet, find the outbound interface and the next hop, find the ARP (Address Resolution Protocol) entry based on the two information, and find the ARP entry. Take the next hop MAC address saved by the ARP entry. Then use the MAC to find the MAC forwarding table, take out the value of the Layer 2 PMTU, subtract the Layer 2 data frame encapsulation length, and use it as the Layer 3 PMTU, and record the Layer 3 PMTU in the forwarding route entry.
  • ARP Address Resolution Protocol
  • Both the source and destination nodes of the Layer 2 PMTU learning must have three layers of functionality to support the conversion of Layer 2 PMTU to Layer 3 PMTU. If the IP packet transmission needs to go through the Layer 2 switching environment, you can perform Layer 2 PMTU learning in the Layer 2 environment, and then learn the source node to convert the Layer 2 PMTU into a Layer 3 PMTU for reuse.
  • the IP packet passes through the Layer 2 switching environment. If the IP packet is sent from the Layer 2 PMTU learning source node R1, the packet is sent directly according to the converted Layer 3 PMTU fragment. The source node is learned from the Layer 2 PMTU.
  • the Layer 3 device R0 sends a packet, the packet is fragmented according to the outbound interface of R0, and R1 is searched for routing information. The Layer 3 PMTU information of the Layer 2 PMTU is found. It is found that the packet length is greater than the three layers of PMTU, then R1 returns to R0. After the packet is oversized, the reply message carries the MTU information of the three-layer PMTU. After receiving the packet, R0 generates a PMTU route according to the MTU information carried in the packet, and then sends the packet according to the PMTU again. In fact, the entire Layer 2 PMTU learning link is treated as a Layer 3 forwarding node.
  • the present invention further provides a node, as shown in FIG. 7, comprising: an Ethernet operation management maintenance module, a MAC management module, and a transceiver module, wherein:
  • the Ethernet operation management and maintenance module is configured to: when the node is a source node, generate a link tracking message that is sent to a target media access control (MAC), and send the message to the transceiver module; and process the transceiver module Receiving the link tracking response message, taking out the MTU value of the outbound interface carried in the link tracking response message, and sending the value to the MAC management module;
  • MAC media access control
  • the MAC management module is configured to: when the node is a source node, establish a Layer 2 Path Maximum Transmission Unit (PMTU) of the node to the target MAC, where an initial value of the second layer PMTU is the largest outbound interface of the source node. a transmission unit (MTU) value; and, in accordance with each of the outbound interface MTU values received from the Ethernet operation management and maintenance module, updating the node to the target MAC's Layer 2 Path Maximum Transmission Unit (PMTU);
  • PMTU Layer 2 Path Maximum Transmission Unit
  • the transceiver module is configured to: after the node is used as a source node, encapsulate the link tracking message to be sent, and receive the link tracking response packet returned by the intermediate node, after performing decapsulation Send to the Ethernet operation management maintenance module.
  • the MAC management module is configured to update the Layer 2 PMTU by: receiving an MTU value in the link tracking response message, and searching for a corresponding Layer 2 PMTU according to the link tracking response message. And when the MTU value in the link tracking response is smaller than the value of the Layer 2 PMTU, updating the Layer 2 PMTU by using the MTU value in the link tracking response, when the link tracking reply If the MTU value in the packet is greater than or equal to the value of the Layer 2 PMTU, it is not processed.
  • the MAC management module is further configured to record the Layer 2 PMTU by using a new MAC entry of the MAC forwarding table, and age the Layer 2 PMTU according to the aging mechanism of the MAC forwarding table.
  • the MAC management module is further configured to convert the Layer 2 PMTU into a Layer 3 PMTU according to the following manner:
  • the node When the node sends the IP packet as the source node, it searches for the forwarding route according to the destination address of the IP packet, finds the outbound interface and the next hop, and finds the address resolution protocol entry according to the outbound interface and the next hop.
  • the next hop MAC address saved by the address resolution entry, searching for the corresponding Layer 2 PMTU according to the next hop MAC address, and subtracting the Layer 2 PMTU of the found Layer 2 PMTU as the Layer 3 PMTU;
  • the transceiver module is further configured to: send the IP packet according to the Layer 3 PMTU obtained by the Layer 2 PMTU conversion.
  • the transceiver module is further configured to: when the node is an intermediate node, when the link tracking message is received, the link tracking message is forwarded, and the link tracking response message is returned to the source node.
  • the link tracking response packet carries the MTU value of the outbound interface.
  • the invention effectively complements the Ethernet OAM protocol, improves the reliability and maintainability of the Ethernet operating network, and ensures that the intermediate node does not lose packets in either the Layer 2 switching environment or the Layer 3 switching environment.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be executed by a computing device The program code is implemented so that they can be stored in the storage device by the computing device, or they can be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps can be made into a single integrated circuit module. .
  • the invention is not limited to any specific combination of hardware and software.
  • the present invention effectively complements the Ethernet OAM protocol, improves the reliability and maintainability of the Ethernet operating network, and ensures that the intermediate node is in the Layer 2 switching environment or the Layer 3 switching environment. , no loss of package.

Landscapes

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

Abstract

本发明提供一种二层路径最大传输单元发现方法和节点,该方法包括:源节点发送到目标MAC的链路跟踪消息报文,建立所述源节点到所述目标MAC的二层PMTU,所述二层PMTU的初始值为源节点出接口MTU值;中间节点接收到所述链路跟踪消息报文时,转发所述链路跟踪消息报文,返回链路跟踪回复报文给所述源节点,所述链路跟踪回复报文中携带出接口MTU值;以及,所述源节点接收到各中间节点返回的链路跟踪回复报文时,根据所述链路跟踪回复报文中携带的出接口MTU值更新所述二层PMTU。本发明对以太网OAM协议进行了有效的补充,提高了以太运营网络的可靠性和可维护性,保证了中间节点不管是在二层交换环境还是在三层交换环境,都不丢包。

Description

一种二层路径最大传输单元发现方法和节点
技术领域
本发明涉及数据通信领域, 特别涉及二层路径最大传输单元 (Path Maximum Transmission Unit, PMTU ) 的发现方法和节点。
背景技术
在网络设备上, 每一个接口都有一个最大传输单元 (Maximum Transmission Unit, MTU), 也就是报文从该接口发出去的时候, 如果报文长 度大于该接口的 MTU, 报文就会发送失败。 在网络中进行报文转发的时候, 总会有一些报文因为长度大于转发出接口的 MTU,导致报文丟弃,转发失败。 本来这个问题在二层转发时表现不明显, 但现在随着技术的进步, 网络上可 以传输的数据单元越来越大, 特别是在一些釆用新的硬件技术的网络节点和 釆用老的硬件技术的网络节点混接的环境中, 就表现的比较突出了。 比如老 的以太网络,最大可以传输 1526个字节的 ^艮文, 而现在的以太网络可以传输 9k大小的报文。
针对这种问题, 目前在 IP层提出了 PMTU的概念。 所谓 PMTU, 就是 IP数据包从源端发出时, 数据包的长度必须小于整个路径的 MTU, 这样报 文经过中间节点的时就不用分片, 提高了网络设备的报文转发效率。 PMTU 的实现原理如附图 1所示, 报文从源节点发出时, 按照路由的 MTU分片(路 由默认 MTU值就是出接口的 MTU) , 在中间节点转发时, 如果发现出接口 MTU比报文长度小,则丟弃报文,并向源节点发送一个包过大的 ICMP (互联 网控制报文协议)差错报文, 携带出接口的 MTU值。 源节点收到包过大报文 后, 如果发现不存在一条目的地址的主机路由, 则用发包的目的地址创建一 条主机路由,路由的 MTU值就是报文中携带的 MTU值; 如果发现存在这样 一条路由, 就直接修改路由的 MTU值。 经过几轮交互, 就可以学习到整个 路径的最小 MTU, 即 PMTU, 下一次再发艮文时, 就会根据 PMTU进行分 片, 保证了中间节点尽量不分片, 以提高报文转发效率。
二层的转发环境比较复杂,传输链路有多种,有以太、 POS ( Packet over SONET/SDH , 同步光纤网 /同步数字体系上的分组数据包) 、 ATM ( Asynchronous Transfer Mode, 异步传输模式)等, POS链路、 ATM链路 传输其实对于接口 MTU不敏感, 而在以太链路中, 源节点如果按照老硬件 的 1526的 MTU发包, 而实际链路支持更大的 MTU传输, 则浪费了硬件带 宽, 降低了实际的数据转发效率; 如果按照新的 MTU传输, 有可能导致二 层报文转发因为 MTU问题而丟包。
目前问题主要如附图 2所示,报文传输过程中,如果经过二层交换环境, 如 L2 VPN ( Layer 2 Virtual Private Network, 二层虚拟专用网络)隧道等, 因 为这些设备不会处理其透传的报文, 所以源节点发出去的三层 IP报文,在进 行 L2 VPN隧道转发的时候, 如果报文长度大于出接口的 MTU, 对于 IPv4 报文就不能分片继续转发, 也不能触发路径 MTU学习; 对于 IPv6报文也不 能触发路径 MTU学习; 对于二层协议报文, 报文也转发不了。 报文就会被 丟弃, 也不会给源节点回应任何差错报文。 该情形下, 报文不停的被丟弃, 导致实际转发不通, 但源节点感知不到这一点, 还在源源不断的发送报文, 使得网络故障比较难定位。
发明内容
本发明的目的是提供一种二层 PMTU发现方法和节点,避免报文二层转 发过程中因为出接口 MTU太小丟包。
为了解决上述问题,本发明提供了一种二层路径最大传输单元发现方法 , 包括:
源节点发送到目标媒体接入控制(MAC )的链路跟踪消息报文, 建立所 述源节点到所述目标 MAC 的二层路径最大传输单元(PMTU ) , 所述二层 PMTU的初始值为源节点出接口最大传输单元( MTU )值;
中间节点接收到所述链路跟踪消息报文时,转发所述链路跟踪消息报文, 返回链路跟踪回复报文给所述源节点 , 所述链路跟踪回复报文中携带出接口 MTU值; 以及
所述源节点接收到各中间节点返回的链路跟踪回复报文时, 根据所述链 路跟踪回复报文中携带的出接口 MTU值更新所述二层 PMTU。 上述方法中, 通过如下方式携带所述出接口 MTU值: 在所述链路跟踪 回复报文中增加一 MTU选项 ,通过所述 MTU选项携带所述出接口 MTU值 , 所述 MTU选项为类型长度数据 ( TLV )结构。
根据所述链路跟踪回复报文中携带的出接口 MTU 值更新所述二层 PMTU的步骤包括:
所述源节点接收到所述中间节点返回的链路跟踪回复报文后, 取出所述 链路跟踪回复报文中的 MTU值, 并根据所述链路跟踪回复报文查找所述二 层 PMTU, 当所取出的 MTU值小于所述二层 PMTU的值时, 用所取出的 MTU值更新所述二层 PMTU, 当所取出的 MTU值大于等于所述二层 PMTU 的值时不处理。
该方法还包括: 所述目标 MAC对应的节点接收到中间节点转发的链路 跟踪消息报文时, 返回链路跟踪回复报文给所述源节点, 所返回的链路跟踪 回复报文中携带的 MTU值为一指定值,该指定值不同于正常 MTU值,所述 源节点接收到所述目标 MAC所对应的节点返回的链路跟踪回复报文时, 如 果判断该链路跟踪回复报文中携带的 MTU值为所述指定值, 则忽略所接收 到的该链路跟踪回复报文。
该方法还包括: 所述源节点使用 MAC转发表的一新增 MAC条目记录 所述二层 PMTU,并根据所述 MAC转发表的老化机制老化所述二层 PMTU。
该方法还包括: 所述源节点发送 IP报文时, 通过如下方式将所述二层 PMTU转换为三层 PMTU后, 根据所述三层 PMTU进行组包发送:
根据所述 IP报文的目的地址查找转发路由,找到出接口和下一跳,根据 所述出接口和下一跳查找地址解析协议条目, 取出地址解析条目保存的下一 跳 MAC地址, 根据该下一跳 MAC地址查找所述二层 PMTU, 将查找到的 二层 PMTU减去二层数据帧封装长度, 作为三层 PMTU。
本发明还提供一种节点, 包括: 以太操作管理维护模块、 MAC 管理模 块和收发包模块, 其中:
所述以太操作管理维护模块设置成: 在所述节点作为源节点时, 产生发 送到目标媒体接入控制 (MAC ) 的链路跟踪消息报文, 发送给收发包模块; 以及, 处理收发包模块接收到的链路跟踪回复报文, 取出所述链路跟踪回复 报文中携带的出接口 MTU值, 发送给 MAC管理模块;
所述 MAC管理模块设置成: 在所述节点作为源节点时, 建立所述源节 点到所述目标 MAC的二层路径最大传输单元(PMTU ) , 所述二层 PMTU 的初始值为源节点出接口最大传输单元(MTU )值; 以及, 根据从所述以太 操作管理维护模块接收到的各出接口 MTU值更新所述二层 PMTU;
所述收发包模块设置成: 在所述节点作为源节点时, 将待发送的链路跟 踪消息报文进行封装后发送, 以及,接收中间节点返回的链路跟踪回复报文, 进行解封装后发送给所述以太操作管理维护模块。
上述节点中, 所述 MAC管理模块是设置成通过如下方式更新所述二层
PMTU:
从所述以太操作管理维护模块接收链路跟踪回复报文中的出接口 MTU 值, 并根据所述链路跟踪回复报文查找所述二层 PMTU, 当所述链路跟踪回 复报文中的出接口 MTU值小于所述二层 PMTU的值时, 用所述链路跟踪回 复报文中的出接口 MTU值更新所述二层 PMTU , 当所述链路跟踪回复报文 中的出接口 MTU值大于等于所述二层 PMTU的值时不处理。
所述 MAC管理模块还设置成:使用 MAC转发表的一新增 MAC条目记 录所述二层 PMTU, 并根据所述 MAC 转发表的老化机制老化所述二层 PMTU。
所述 MAC管理模块还设置成根据如下方式将所述二层 PMTU转换为三 层 PMTU:
在所述节点作为源节点发送 IP报文时, 根据所述 IP报文的目的地址查 找转发路由, 找到出接口和下一跳, 根据所述出接口和下一跳查找地址解析 协议条目, 取出地址解析条目保存的下一跳 MAC地址, 根据该下一跳 MAC 地址查找所述二层 PMTU,将查找到的二层 PMTU减去二层数据帧封装长度, 作为三层 PMTU;
所述收发包模块还设置成根据所述二层 PMTU 转换得到的所述三层 PMTU进行组包发送 IP报文。 所述收发包模块还设置成: 当所述节点作为中间节点接收到链路跟踪消 息报文时, 转发所接收到的链路跟踪消息报文, 返回链路跟踪回复报文给源 节点, 所返回的链路跟踪回复报文中携带出接口 MTU值。
本发明对以太网 OAM协议进行了有效的补充, 提高了以太运营网络的 可靠性和可维护性,保证了中间节点不管是二层交换环境还是三层交换环境, 都不丟包。 附图概述
图 1是路径 MTU发现原理图;
图 2是目前二层转发存在问题示意图;
图 3是本发明方法示意图;
图 4是源节点收到 LTR报文处理流程图;
图 5 是 MTU选项图;
图 6是经过二层环境的 IP报文发送流程图;
图 7是本发明节点结构框图。
本发明的较佳实施方式
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。
本发明借助于以太 OAM ( Operation Administration and Maintenance ,操 作管理维护)中 LTM( Linktrace Message ,链路跟踪消息)报文和 LTR( Linktrace Reply, 链路跟踪回复)报文实现。
本发明提供一种二层路径最大传输单元发现方法, 包括:
源节点发送到目标媒体接入控制(MAC )的链路跟踪消息报文, 建立所 述源节点到所述目标 MAC的二层 PMTU, 该二层 PMTU的初始值为源节点 出接口 MTU值;
中间节点接收到所述链路跟踪消息报文时,转发所述链路跟踪消息报文, 返回链路跟踪回复报文给所述源节点 , 所述链路跟踪回复报文中携带出接口 MTU值; 以及
所述源节点接收到各中间节点返回的链路跟踪回复报文时, 根据所述链 路跟踪回复报文中携带的出接口 MTU值更新所述源节点到所述目标 MAC 的二层 PMTU。
其中, 所述链路跟踪回复^艮文增加了一 MTU选项,通过所述 MTU选项 携带所述出接口 MTU值, 所述 MTU选项为类型长度数据 ( TLV )结构。 MTU选项一种格式如附图 5所示, 1个字节的类型, 2个字节的长度, 后边 的 5个字节保存数据(MTU值) , 为了对齐, 第 4个字节保留。
其中, 所述源节点根据所述链路跟踪回复报文中携带的出接口 MTU值 更新所述源节点到所述目标 MAC的二层 PMTU包括:
所述源节点接收到所述中间节点返回的链路跟踪回复报文后, 取出所述 链路跟踪回复报文中的 MTU值, 并根据所述链路跟踪回复报文查找对应的 二层 PMTU , 当所取出的 MTU值小于所述二层 PMTU的值, 则用所述取出 的 MTU值更新所述二层 PMTU, 当所取出的 MTU值大于等于所述二层 PMTU的值则不处理。
其中, 所述方法还包括: 所述目标 MAC对应的节点接收到中间节点转 发的链路跟踪消息报文时, 返回链路跟踪回复报文给所述源节点, 所述链路 跟踪回复报文中携带的 MTU值为一指定值, 该指定值不同于正常 MTU值, 所述源节点接收到所述目标 MAC对应的节点发送的链路跟踪回复报文时, 如果判断该链路跟踪回复报文中携带的 MTU值为所述指定值, 则忽略该链 路跟踪回复 ^艮文。
其中, 所述源节点使用 MAC转发表的一新增 MAC条目记录所述二层 PMTU, 考虑到二层 PMTU和物理性能关系比较紧密, 二层 PMTU不单独老 化, 把二层 PMTU作为 MAC转发表的一个属性, 同 MAC条目一起老化。 MTU选项釆用 TLV(Type、 Length, Value, 类型、 长度、 数值)结构, 类型 从目前以太 OAM的 TLV保留类型取一个, 比如为 8, 可以根据需要取其他 保留值。 可以在用户界面显示通过 MAC转发表记录的二层 PMTU。 当然, 如果需要, 二层 PMTU也可以单独老化。
其中, 所述源节点发送二层协议报文时, 根据所述二层 PMTU进行组包 发送; 所述源节点发送 IP报文时,将所述二层 PMTU转换为三层 PMTU后, 根据所述三层 PMTU进行组包发送。
其中, 所述将二层 PMTU转换为三层 PMTU包括:
根据所述 IP报文的目的地址查找转发路由,找到出接口和下一跳,根据 所述出接口和下一跳查找地址解析协议条目, 取出地址解析条目保存的下一 跳 MAC地址, 根据该下一跳 MAC地址查找对应的二层 PMTU, 将查找到 的二层 PMTU减去二层数据帧封装长度, 作为三层 PMTU。
下面通过一具体实施例进一步说明本发明。
本发明提供的二层 PMTU发现方法包括以下步骤:
步骤一:源节点配置以太 OAM命令,发送针对目标 MAC的 LTM报文, 建立到目标 MAC 的二层 PMTU, 该二层 PMTU的初始值为源节点出接口 MTU值。 其中, 该二层 PMTU作为 MAC转发表的一个 MAC条目。
LTM报文携带有 TTL值、 目标 MAC等信息。
步骤二:中间节点在转发 LTM报文的同时,返回一个携带新定义的 MTU 选项的 LTR报文 , 该 MTU选项中携带出接口的 MTU值。
步骤三: 源节点收到 LTR报文, 解析报文, 取出目标 MAC和 MTU。 步骤四: 源节点根据解析 LTR报文的结果, 找到 MAC转发表中对应的 MAC条目,比较返回 LTR报文里面的 MTU值和 MAC条目里面的二层 PMTU 值, 如果 LTR报文中的 MTU大于等于 MAC条目的二层 PMTU, 则不做处 理; 如果小于 MAC条目的二层 PMTU , 则用 LTR报文中的 MTU更新 MAC 条目的二层 PMTU, 作为新的二层 PMTU结果。
步骤五: 源节点发送二层协议报文时, 根据二层 PMTU大小组包发送; 发送 IP报文时, 先根据二层 PMTU的值产生一条三层 PMTU, 然后根据三 层 PMTU分片发送 IP报文。
如图 3所示, 该方法包括:
源节点针对要学习的 MAC , 发送 LTM报文。 LTM报文携带有 TTL值、 目标 MAC等信息。 MAC转发表中新增一个 MAC条目记录二层 PMTU, 默 认值为出接口的 MTU , 在后续如果进行了二层 PMTU学习, 则记录学习到 的 PMTU值。
报文到了第一个转发节点, TTL减一, 转发节点继续根据目标 MAC转 发报文, 同时给源节点回一个 LTR报文, TTL值等于转发报文的 TTL值, 目标 MAC是 LTM报文中携带的源 MAC,报文还要携带一个出接口的 MTU 选项, 记录出接口的 MTU值 (对于二层 VPN隧道, 该出接口 MTU是隧道出 接口的 MTU, 也就是物理出接口 MTU减去外层以太二层头长度), 后续其 他转发节点处理和第一个类似。
目标 MAC所在节点返回的 LTR报文中携带 MTU选项里面的 MTU值 为指定值, 该指定值不同于正常 MTU值, 比如 0或者 Oxffffffff等, 表示该 值无意义, 源节点收到后忽略它。 目标 MAC所在节点返回的 LTR报文中也 可以不携带 MTU选项; 或者, 携带一指示信息, 指示该 LTR消息是目标节 点返回的 LTR消息。
源节点收到 LTR报文后,解析出 LTR报文的 MTU选项内容,根据 LTR 报文的源 MAC等信息查找 MAC转发表, 判断 LTR报文中的 MTU是否小 于 MAC转发表中的 MAC条目已有的 MTU, 小于则替换掉已有的 MTU, 大 于等于不处理; 如附图 4所示。 经过这样一个 文交互过程, 源节点就学习 到了目标 MAC的二层 PMTU。
学习到二层 PMTU 以后, 发送报文时, 对于二层协议报文, 根据目标 MAC信息查找 MAC转发表, 按照查到的二层 PMTU的大小进行发包; 对 于 IP报文,需要先把二层 PMTU转换为三层 PMTU,然后再根据三层 PMTU 分片发送。 二层 PMTU到三层 PMTU的转换方法如下: 先根据 IP报文的目 的地址查找转发路由, 找到出接口和下一跳, 根据这两个信息查找 ARP (地 址解析协议)条目,找到 ARP条目,取出 ARP条目保存的下一跳 MAC地址, 然后用该 MAC去查找 MAC转发表, 取出二层 PMTU的值, 减去二层数据 帧封装长度, 作为三层 PMTU, 并把该三层 PMTU记录在转发路由条目。
二层 PMTU 学习的源节点和目标节点都必须具有三层功能才能支持二 层 PMTU到三层 PMTU的转换。 如果 IP报文发送需要经过二层交换环境, 可以先在二层环境中进行二层 PMTU 学习, 然后再学习的源节点把二层 PMTU转换为三层 PMTU再使用。
如附图 6所示, IP报文经过二层交换环境, 如果 IP报文从二层 PMTU 学习源节点 R1发包,直接根据转换后的三层 PMTU分片发包;从二层 PMTU 学习源节点前面的三层设备 R0发包, 报文根据 R0的出接口分片, 到了 R1 , 查找路由信息, 找到二层 PMTU转换的三层 PMTU信息, 发现报文长度大 于三层 PMTU, 则 R1 向 R0回一个包过大 ^艮文, 回复的 ^艮文携带这个三层 PMTU的 MTU信息, R0收到这个报文后, 根据报文携带的 MTU信息产生 一条 PMTU路由, 再次发包就按照这个 PMTU发包, 这里其实把整个二层 PMTU学习链路当作了一个三层转发节点。
本发明还提供一种节点, 如图 7所示, 包括: 以太操作管理维护模块、 MAC管理模块和收发包模块, 其中:
所述以太操作管理维护模块设置成: 在所述节点作为源节点时, 产生发 送到目标媒体接入控制 (MAC ) 的链路跟踪消息报文, 发送给收发包模块; 以及, 处理收发包模块接收到的链路跟踪回复报文, 取出所述链路跟踪回复 报文中携带的出接口 MTU值, 发送给 MAC管理模块;
所述 MAC管理模块设置成: 在所述节点作为源节点时, 建立所述节点 到所述目标 MAC的二层路径最大传输单元(PMTU ) , 该二层 PMTU的初 始值为源节点出接口最大传输单元(MTU )值; 以及, 根据从所述以太操作 管理维护模块接收到的各出接口 MTU值更新所述节点到所述目标 MAC的二 层路径最大传输单元(PMTU ) ;
所述收发包模块设置成: 在所述节点作为源节点时, 将待发送的链路跟 踪消息报文进行封装后发送, 以及,接收中间节点返回的链路跟踪回复报文, 进行解封装后发送给以太操作管理维护模块。 其中,所述 MAC管理模块是设置成通过如下方式更新所述二层 PMTU: 接收所述链路跟踪回复报文中的 MTU值, 根据所述链路跟踪回复报文 查找对应的二层 PMTU, 当所述链路跟踪回复 ^艮文中的 MTU值小于所述二 层 PMTU 的值, 则用所述链路跟踪回复^艮文中的 MTU值更新所述二层 PMTU, 当所述链路跟踪回复报文中的 MTU值大于等于所述二层 PMTU的 值时则不处理。
其中,所述 MAC管理模块还设置成使用 MAC转发表的一新增 MAC条 目记录所述二层 PMTU, 并根据所述 MAC转发表的老化机制老化所述二层 PMTU。
其中, 所述 MAC管理模块还设置成根据如下方式将所述二层 PMTU转 换为三层 PMTU:
在所述节点作为源节点发送 IP报文时, 根据所述 IP报文的目的地址查 找转发路由, 找到出接口和下一跳, 根据所述出接口和下一跳查找地址解析 协议条目, 取出地址解析条目保存的下一跳 MAC地址, 根据该下一跳 MAC 地址查找对应的二层 PMTU,将查找到的二层 PMTU减去二层数据帧封装长 度, 作为三层 PMTU;
所述收发包模块还设置成: 根据所述二层 PMTU转换得到的所述三层 PMTU进行组包发送 IP报文。
其中, 所述收发包模块还设置成: 当所述节点为中间节点时, 接收到链 路跟踪消息报文时, 转发所述链路跟踪消息报文, 返回链路跟踪回复报文给 源节点, 所述链路跟踪回复报文中携带出接口的 MTU值。
本发明对以太网 OAM协议进行了有效的补充, 提高了以太运营网络的 可靠性和可维护性,保证了中间节点不管是二层交换环境还是三层交换环境, 都不丟包。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。
工业实用性
与现有技术相比, 本发明对以太网 OAM协议进行了有效的补充, 提高 了以太运营网络的可靠性和可维护性, 保证了中间节点不管是在二层交换环 境还是在三层交换环境, 都不丟包。

Claims

权 利 要 求 书
1、 一种二层路径最大传输单元发现方法, 包括:
源节点发送到目标媒体接入控制(MAC )的链路跟踪消息报文, 建立所 述源节点到所述目标 MAC 的二层路径最大传输单元(PMTU ) , 所述二层 PMTU的初始值为源节点出接口最大传输单元( MTU )值;
中间节点接收到所述链路跟踪消息报文时,转发所述链路跟踪消息报文, 返回链路跟踪回复报文给所述源节点 , 所述链路跟踪回复报文中携带出接口 MTU值; 以及
所述源节点接收到各中间节点返回的链路跟踪回复报文时, 根据所述链 路跟踪回复报文中携带的出接口 MTU值更新所述二层 PMTU。
2、如权利要求 1所述的方法,其中,通过如下方式携带所述出接口 MTU 值: 在所述链路跟踪回复报文中增加一 MTU选项,通过所述 MTU选项携带 所述出接口 MTU值, 所述 MTU选项为类型长度数据 ( TLV )结构。
3、如权利要求 1所述的方法, 其中,根据所述链路跟踪回复报文中携带 的出接口 MTU值更新所述二层 PMTU的步骤包括:
所述源节点接收到所述中间节点返回的链路跟踪回复报文后, 取出所述 链路跟踪回复报文中的 MTU值, 并根据所述链路跟踪回复报文查找所述二 层 PMTU, 当所取出的 MTU值小于所述二层 PMTU的值时, 用所取出的 MTU值更新所述二层 PMTU, 当所取出的 MTU值大于等于所述二层 PMTU 的值时不处理。
4、 如权利要求 1所述的方法, 还包括:
所述目标 MAC 对应的节点接收到中间节点转发的链路跟踪消息报文 时, 返回链路跟踪回复报文给所述源节点, 所返回的链路跟踪回复报文中携 带的 MTU值为一指定值,该指定值不同于正常 MTU值,所述源节点接收到 所述目标 MAC所对应的节点返回的链路跟踪回复报文时, 如果判断该链路 跟踪回复报文中携带的 MTU值为所述指定值, 则忽略所接收到的该链路跟 踪回复 4艮文。
5、 如权利要求 1所述的方法, 还包括: 所述源节点使用 MAC转发表的 一新增 MAC条目记录所述二层 PMTU, 并根据所述 MAC转发表的老化机 制老化所述二层 PMTU。
6、 如权利要求 1至 5任一所述的方法, 还包括: 所述源节点发送 IP报 文时, 通过如下方式将所述二层 PMTU转换为三层 PMTU后, 根据所述三 层 PMTU进行组包发送:
根据所述 IP报文的目的地址查找转发路由,找到出接口和下一跳,根据 所述出接口和下一跳查找地址解析协议条目, 取出地址解析条目保存的下一 跳 MAC地址, 根据该下一跳 MAC地址查找所述二层 PMTU, 将查找到的 二层 PMTU减去二层数据帧封装长度, 作为三层 PMTU。
7、 一种节点, 包括: 以太操作管理维护模块、 MAC管理模块和收发包 模块, 其中:
所述以太操作管理维护模块设置成: 在所述节点作为源节点时, 产生发 送到目标媒体接入控制 (MAC ) 的链路跟踪消息报文, 发送给收发包模块; 以及, 处理收发包模块接收到的链路跟踪回复报文, 取出所述链路跟踪回复 报文中携带的出接口 MTU值, 发送给 MAC管理模块;
所述 MAC管理模块设置成: 在所述节点作为源节点时, 建立所述源节 点到所述目标 MAC的二层路径最大传输单元(PMTU ) , 所述二层 PMTU 的初始值为源节点出接口最大传输单元(MTU )值; 以及, 根据从所述以太 操作管理维护模块接收到的各出接口 MTU值更新所述二层 PMTU;
所述收发包模块设置成: 在所述节点作为源节点时, 将待发送的链路跟 踪消息报文进行封装后发送, 以及,接收中间节点返回的链路跟踪回复报文, 进行解封装后发送给所述以太操作管理维护模块。
8、 如权利要求 7所述的节点, 其中, 所述 MAC管理模块是设置成通过 如下方式更新所述二层 PMTU:
从所述以太操作管理维护模块接收链路跟踪回复报文中的出接口 MTU 值, 并根据所述链路跟踪回复报文查找所述二层 PMTU, 当所述链路跟踪回 复报文中的出接口 MTU值小于所述二层 PMTU的值时, 用所述链路跟踪回 复报文中的出接口 MTU值更新所述二层 PMTU , 当所述链路跟踪回复报文 中的出接口 MTU值大于等于所述二层 PMTU的值时不处理。
9、 如权利要求 7所述的节点, 其中, 所述 MAC管理模块还设置成: 使 用 MAC转发表的一新增 MAC条目记录所述二层 PMTU, 并根据所述 MAC 转发表的老化机制老化所述二层 PMTU。
10、 如权利要求 7至 9任一所述的节点, 其中,
所述 MAC管理模块还设置成根据如下方式将所述二层 PMTU转换为三 层 PMTU:
在所述节点作为源节点发送 IP报文时, 根据所述 IP报文的目的地址查 找转发路由, 找到出接口和下一跳, 根据所述出接口和下一跳查找地址解析 协议条目, 取出地址解析条目保存的下一跳 MAC地址, 根据该下一跳 MAC 地址查找所述二层 PMTU,将查找到的二层 PMTU减去二层数据帧封装长度, 作为三层 PMTU;
所述收发包模块还设置成根据所述二层 PMTU 转换得到的所述三层 PMTU进行组包发送 IP报文。
11、 如权利要求 7至 9任一所述的节点, 其中, 所述收发包模块还设置 成: 当所述节点作为中间节点接收到链路跟踪消息报文时, 转发所接收到的 链路跟踪消息报文, 返回链路跟踪回复报文给源节点, 所返回的链路跟踪回 复报文中携带出接口 MTU值。
PCT/CN2012/071023 2011-05-24 2012-02-10 一种二层路径最大传输单元发现方法和节点 WO2012159461A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110135332.7 2011-05-24
CN201110135332.7A CN102209034B (zh) 2011-05-24 2011-05-24 一种二层路径最大传输单元发现方法和节点

Publications (1)

Publication Number Publication Date
WO2012159461A1 true WO2012159461A1 (zh) 2012-11-29

Family

ID=44697703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071023 WO2012159461A1 (zh) 2011-05-24 2012-02-10 一种二层路径最大传输单元发现方法和节点

Country Status (2)

Country Link
CN (1) CN102209034B (zh)
WO (1) WO2012159461A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944832A (zh) * 2014-04-18 2014-07-23 杭州华三通信技术有限公司 一种pmtu值的确定方法、设备和***
CN115134271A (zh) * 2021-03-22 2022-09-30 湖南智领通信科技有限公司 Ip透传自组网的故障检测方法、装置和计算机设备
CN115314555A (zh) * 2021-05-06 2022-11-08 腾讯科技(深圳)有限公司 一种基于数据传输确定数据分片的方法和相关装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209034B (zh) * 2011-05-24 2018-02-16 中兴通讯股份有限公司 一种二层路径最大传输单元发现方法和节点
CN105099937B (zh) * 2015-06-17 2018-10-26 新华三技术有限公司 一种pmtu的确定方法和设备
US20170373982A1 (en) * 2016-06-24 2017-12-28 Huawei Technologies Co., Ltd. System and method for mtu size reduction in a packet network
CN110351197B (zh) * 2018-04-04 2023-06-06 华为技术有限公司 数据传输方法及相关装置
CN113660167A (zh) * 2021-09-18 2021-11-16 中国电信股份有限公司 防止无效报文转发方法、装置以及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909503A (zh) * 2005-08-05 2007-02-07 华为技术有限公司 一种探测路径最大传输单元的方法
CN102209034A (zh) * 2011-05-24 2011-10-05 中兴通讯股份有限公司 一种二层路径最大传输单元发现方法和节点

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512120B2 (en) * 2002-07-09 2009-03-31 Ntt Docomo, Inc. Node, correspondent node, mobility anchor point, and home agent in packet communication system, packet communication system, and path MTU discovery method
KR100506529B1 (ko) * 2003-08-06 2005-08-03 삼성전자주식회사 데이터 통신 네트워크에서의 경로 엠티유 발견 네트워크장치, 시스템 및 그 방법
CN100505673C (zh) * 2006-09-15 2009-06-24 华为数字技术有限公司 检测路径最大传输单元的方法和***

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909503A (zh) * 2005-08-05 2007-02-07 华为技术有限公司 一种探测路径最大传输单元的方法
CN102209034A (zh) * 2011-05-24 2011-10-05 中兴通讯股份有限公司 一种二层路径最大传输单元发现方法和节点

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944832A (zh) * 2014-04-18 2014-07-23 杭州华三通信技术有限公司 一种pmtu值的确定方法、设备和***
CN103944832B (zh) * 2014-04-18 2018-05-15 新华三技术有限公司 一种pmtu值的确定方法、设备和***
CN115134271A (zh) * 2021-03-22 2022-09-30 湖南智领通信科技有限公司 Ip透传自组网的故障检测方法、装置和计算机设备
CN115134271B (zh) * 2021-03-22 2023-07-25 湖南智领通信科技有限公司 Ip透传自组网的故障检测方法、装置和计算机设备
CN115314555A (zh) * 2021-05-06 2022-11-08 腾讯科技(深圳)有限公司 一种基于数据传输确定数据分片的方法和相关装置
CN115314555B (zh) * 2021-05-06 2024-06-11 腾讯科技(深圳)有限公司 一种基于数据传输确定数据分片的方法和相关装置

Also Published As

Publication number Publication date
CN102209034A (zh) 2011-10-05
CN102209034B (zh) 2018-02-16

Similar Documents

Publication Publication Date Title
US11979322B2 (en) Method and apparatus for providing service for traffic flow
WO2012159461A1 (zh) 一种二层路径最大传输单元发现方法和节点
EP2572473B1 (en) Methods and apparatus for use in an openflow network
EP3139560B1 (en) Packet processing method, device and computer storage medium
EP1720024B1 (en) A method for realizing the pseudo wire emulation edge-to-edge protocol
US8792506B2 (en) Inter-domain routing in an n-ary-tree and source-routing based communication framework
KR102342286B1 (ko) Dcn 메시지 처리 방법, 네트워크 디바이스, 및 네트워크 시스템
US7894442B2 (en) Data transmission method and a system thereof
US9178818B2 (en) Communication apparatus
US8681805B2 (en) Method, device and system for interconnecting a multi-protocol label switching network and an ethernet
JP2000078173A (ja) 高速トラフィック動作を改良するための方法およびシステム
EP3979576A1 (en) Packet forwarding method, device, and computer-readable storage medium
WO2008055426A1 (fr) Procédé, système et appareil de nœud pour transmettre un message de gestion de défaut de connectivité ethernet
WO2009012688A1 (fr) Procédé, système et appareil de réacheminement de message dans un réseau privé virtuel à trois couches
WO2007071153A1 (fr) Procede, systeme de reseau de donnees et noeud de reseau pour transmission de paquets de donnees
MXPA05011310A (es) Canal de gestion incrustado para conectividad de equipo de terminacion de trayectoria sonet.
WO2012155867A1 (zh) 一种报文发送方法及接入控制器
WO2011055837A1 (ja) ノード及びそれに用いる監視管理方法並びにそれを用いる転送システム、入力回路、出力回路
WO2011160517A1 (zh) 一种多协议标签交换业务隧道切换的方法及***
EP4191966A1 (en) Method and device for processing data message, storage medium, and electronic device
WO2020098611A1 (zh) 一种获取路由信息方法及装置
KR101140453B1 (ko) Ip 인터워킹 vll을 통한 회로 에뮬레이션 방법 및 시스템
US8767736B2 (en) Communication device, communication method, and recording medium for recording communication program
WO2022117018A1 (zh) 报文传输的方法和装置
CN113225376B (zh) 一种基于fpga的以太网帧与sdn数据帧的适配方法

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

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

Country of ref document: EP

Kind code of ref document: A1