WO2018121257A1 - Method, apparatus and system for sending message, and storage medium - Google Patents

Method, apparatus and system for sending message, and storage medium Download PDF

Info

Publication number
WO2018121257A1
WO2018121257A1 PCT/CN2017/115817 CN2017115817W WO2018121257A1 WO 2018121257 A1 WO2018121257 A1 WO 2018121257A1 CN 2017115817 W CN2017115817 W CN 2017115817W WO 2018121257 A1 WO2018121257 A1 WO 2018121257A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
node
icmp
specified
fragmentation
Prior art date
Application number
PCT/CN2017/115817
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 WO2018121257A1 publication Critical patent/WO2018121257A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]

Definitions

  • the present invention relates to the field of communications, and in particular, to a message sending method, apparatus, system, and storage medium.
  • FIG. 1 is a topological diagram of a 6PE network in the related art. As shown in Figure 1, the 6PE technology borrows the principle of the Border Gateway Protocol (BGP)/MPLS VPN to establish IPv4 multi-protocol BGP (MP) between the Provider Edge (PE) devices. - BGP) Peer, which distributes IPv6 routes in IPv6 sites between PE devices across IPv4 MPLS networks, and implements interworking between IPv6 islands. Data packets are forwarded using IPv4 MPLS labels on the IPv4 MPLS network.
  • Border Gateway Protocol BGP
  • MP multi-protocol BGP
  • MP Provider Edge
  • the Path Maximum Transmission Unit is a technology that dynamically discovers the Maximum Transmission Unit (MTU) of any path on the Internet.
  • MTU Maximum Transmission Unit
  • Support for IPv4 networks is first defined in RFC 1191, and support for IPv6 networks is extended in RFC 1981.
  • PMTU uses the Internet (Internet) control message protocol
  • the Packet Too Big message of (ICMP/ICMPv6) returns the path MTU value to form PMTU information.
  • the Packet Too Big message of ICMPv6 is shown in Figure 2.
  • IPv6 packets are not fragmented during transmission. Fragmentation is performed at the source node of the packet according to the detected PMTU, which promotes the wider application of PMTU in IPv6 networks.
  • the IPv6 protocol defines that the minimum MTU in an IPv6 network is 1280 bytes, and the corresponding minimum PMTU is also 1280 bytes. This is not a problem in a pure IPv6 network, and packets are not discarded because they are not fragmentable.
  • the PMTU technology sometimes cannot avoid the secondary fragmentation of the underlying IPv4 network.
  • the IPv6 packet may even be generated because the underlying MPLS network does not support fragmentation. The traffic that cannot pass through the MPLS network cannot be solved.
  • the MTU configuration of the PE node network side (MPLS domain) interface is less than 1280.
  • the CE node sends an IPv6 packet with a length greater than 1280 bytes
  • the ICMP Packet Too Big packet is sent back to the CE node.
  • the CE node forms a PMTU entry according to the returned ICMP message.
  • the PMTU minimum value is limited to 1280, when the next packet sent by the CE node is larger than 1280 bytes, the packet is fragmented according to 1280, and the fragmented message remains. Greater than the MTU of the network side interface of the PE node.
  • the embodiment of the invention provides a message sending method, device, system and storage medium.
  • a packet sending method including: a client side edge (CE) node receives a specified Internet Control Message Protocol (ICMP) message sent by a PE node, and determines the specified ICMP message. Whether the packet carries a flag indicating that the underlying network does not support fragmentation; if the judgment result is yes, the PMTU in the specified ICMP packet is used to generate a PMTU that does not support fragmentation; The fragmented PMTU IPV6 message is sent in fragments.
  • ICMP Internet Control Message Protocol
  • the label of the fragment is not supported.
  • the MTU corresponding to the interface of the PE node is less than a predetermined threshold, the non-fragmented label is carried in the specified ICMP packet.
  • the mark that does not support fragmentation is saved in the coded field code in the specified ICMP message.
  • the predetermined threshold is 1280 bytes.
  • the specified ICMP message is an ICMP Packet Too Big message.
  • the method further includes: fragmenting the IPV6 packet to be transmitted in a manner not greater than the PMTU; and transmitting the fragmented IPV6 packet to the PE node.
  • a message sending apparatus including: a determining module, configured to receive a specified ICMP message sent by a PE node, and determine whether the specified ICMP message carries a The network does not support the marking of the fragment; the generating module is configured to generate, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation, and the sending module is configured to have a length greater than the length The IPV6 packet of the PMTU that does not support fragmentation is sent in fragments.
  • the sending module includes: a fragmentation unit, configured to perform fragmentation on a manner that the IPV6 packet to be transmitted is not greater than the PMTU; and the sending unit is configured to: The IPV6 packet is sent to the PE node.
  • the label of the fragment is not supported.
  • the MTU corresponding to the interface of the PE node is less than a predetermined threshold, the non-fragmented label is carried in the specified ICMP packet.
  • a message sending system including: a PE node configured to send a specified ICMP message to a CE node; and the CE node receives a specified ICMP message sent by the PE node And determining, in the specified ICMP packet, a flag indicating that the underlying network does not support fragmentation, and if the judgment result is yes, generating, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation. The fragmentation is sent to the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  • the PE node is further configured to: when the MTU corresponding to the interface of the PE node is less than a predetermined threshold, save the label that does not support fragmentation in the specified ICMP packet;
  • the CE node is further configured to perform the fragmentation of the IPV6 packet to be transmitted in a manner that is not greater than the PMTU; and send the fragmented IPV6 packet to be transmitted to the fragmented The PE node.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
  • an embodiment of the present invention further provides a storage medium having stored thereon a computer program, the computer program being executed by the processor when the steps of any of the above methods.
  • the PMTU generated by the MTU of the largest transmission unit in the ICMP message corresponding to the fragment that is not supported by the PE node is used for fragment transmission of the IPv6 packet, so that the 6PE existing in the related art can be solved.
  • the MTU of the MPLS domain is less than 1280 in the network, there is a problem that the traffic is unreachable. At the same time, it can achieve the effect of traffic conduction even when the MTU configuration is too small.
  • FIG. 1 is a topological diagram of a 6PE network in the related art
  • FIG. 2 is a schematic structural diagram of a Packet Too Big packet of ICMPv6 in the related art
  • FIG. 3 is a block diagram showing the hardware structure of a mobile terminal for transmitting a message according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for sending a message according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another packet sending according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a message sending apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural diagram of another message transmitting apparatus according to an embodiment of the present invention.
  • FIG. 8 is a structural diagram of a message transmitting system according to an embodiment of the present invention.
  • FIG. 3 is a hardware structural block diagram of a mobile terminal for transmitting a message according to an embodiment of the present invention.
  • the mobile terminal 30 may include one or more (only one shown) processor 302 (the processor 302 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • a memory 304 configured to store data and a transmission device 306 configured as a communication function.
  • the structure shown in FIG. 3 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 30 may also include more or fewer components than those shown in FIG. 3, or have a different configuration than that shown in FIG.
  • the memory 304 can be configured as a software program and a module for storing application software, such as a program instruction/module corresponding to the message sending method in the embodiment of the present invention, and the processor 302 executes by executing a software program and a module stored in the memory 304.
  • application software such as a program instruction/module corresponding to the message sending method in the embodiment of the present invention
  • the processor 302 executes by executing a software program and a module stored in the memory 304.
  • Various functional applications and data processing, that is, the above methods are implemented.
  • Memory 304 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 304 can further include memory remotely located relative to processor 302, which can be connected to mobile terminal 30 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 306 is configured to receive or transmit data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 30.
  • the transmission device 306 includes a Network Interface Controller (NIC). It can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 306 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 4 is a packet sending method according to an embodiment of the present invention.
  • the flow chart, as shown in FIG. 4, includes the following steps:
  • Step S402 The CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag configured to indicate that the underlying network does not support fragmentation.
  • the label that does not support fragmentation is saved in the specified ICMP message when the MTU corresponding to the interface of the PE node is less than a predetermined threshold.
  • the predetermined threshold is 1280 bytes.
  • the tag that does not support fragmentation is stored in the encoded field code in the specified ICMP message.
  • the designated ICMP message may be an ICMP Packet Too Big message.
  • Step S404 if the result of the determination is yes, the PMTU in the specified ICMP message is used to generate a PMTU that does not support fragmentation;
  • Step S406 performing fragment transmission on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  • the fragment transmission process may include: fragmenting the IPV6 packet to be transmitted in a manner not greater than the PMTU; and transmitting the fragmented IPV6 packet to the PE. node.
  • the PE node receives the IPV6 packet to be transmitted after the fragment sent by the CE node
  • the fragmented IPv6 packet is encapsulated and then forwarded through the MPLS network.
  • a PE node of an IPv6 network receives and sends it to a CE node in another IPv6 network.
  • FIG. 5 is a flow chart of another message transmission according to an embodiment of the present invention.
  • the CE1 node in the scenario is configured as 1500
  • the MTU on the network side of the PE1 is configured as 1000.
  • the length of the transmitted IPv6 packet is 1400 bytes.
  • IPv6 packet When the IPv6 packet is forwarded by the PE1 node, the IPv6 packet is forwarded to the outbound interface.
  • the length of the IPv6 packet is greater than the MTU of the outbound interface, and an ICMP Packet Too Big packet is generated.
  • the MTU value in the packet is filled in as the outbound interface.
  • the MTU value is the number of bytes occupied by the label, and since it is forwarded to the MPLS network that does not support fragmentation, the Code field does not support the fragmentation flag;
  • the CE1 node When receiving the ICMPv6 Packet Too Big packet, the CE1 node extracts the MTU value and the Code field in the packet. Since the code field is filled in, the fragmentation flag is not supported. Therefore, an unsupported fragment PMTU entry is generated according to the MTU actual value 996. Even if the MTU value is less than 1280;
  • the CE1 node sends an IPv6 packet of 1400 bytes to the CE2 node again.
  • the packet length is greater than the PMTU value just generated.
  • the IPv6 packet is fragmented according to the newly generated PMTU value. IPv6 packets larger than the PMTU value;
  • S56 The CE1 node sends the two IPv6 packets that are not larger than the PMTU after the fragmentation.
  • the MPLS domain MTU is configured to be less than 1280 in the 6PE network in the related art, the problem that the traffic is unreachable may be solved. At the same time, it can achieve the effect of traffic conduction even when the MTU configuration is too small.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a message sending apparatus is further provided, and the apparatus is configured to implement the foregoing embodiments, and details have been omitted for description.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural diagram of a message sending apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
  • the determining module 62 is configured to receive the specified ICMP packet sent by the PE node, and determine whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
  • the generating module 64 is configured to generate, by using the MTU in the specified ICMP message, a PMTU that does not support fragmentation, if the determination result is yes;
  • the sending module 66 is configured to perform fragment transmission on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  • FIG. 7 is a structural diagram of another packet sending apparatus according to an embodiment of the present invention. As shown in FIG. 7, the transmitting module 66 further includes:
  • the fragmentation unit 72 is configured to perform fragmentation on a manner that the IPV6 packet to be transmitted is not greater than the PMTU.
  • the sending unit 74 is configured to send the fragmented IPV6 message to be transmitted to the PE node.
  • the label that does not support fragmentation is saved in the specified ICMP message when the MTU corresponding to the interface of the PE node is less than a predetermined threshold.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • a message sending system is further provided, and the system is configured to implement the foregoing The examples have not been described again.
  • FIG. 8 is a structural diagram of a message sending system according to an embodiment of the present invention. As shown in FIG. 8, the device includes:
  • the PE node 82 is configured to send, to the CE node 84, an Internet Designated Control Message Protocol (ICMP) packet;
  • ICMP Internet Designated Control Message Protocol
  • the CE node 84 receives the specified ICMP packet sent by the PE node 82, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation, and if the judgment result is yes, And generating, by using a maximum transmission unit MTU in the specified ICMP packet, a path maximum transmission unit (PMTU) that does not support fragmentation; and performing fragmentation transmission on an IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  • PMTU path maximum transmission unit
  • the PE node 82 is further configured to save, in the specified ICMP message, a flag that does not support fragmentation when the MTU corresponding to the interface of the PE node 82 is less than a predetermined threshold.
  • the CE node 84 is further configured to fragment the IPV6 packet to be transmitted in a manner that is not greater than the PMTU, and send the fragmented IPV6 packet to be sent to the PE node 82.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the embodiment of the present invention provides a storage medium on which a computer program is stored, and when the computer program is executed by the processor, the steps of the method in the embodiment of the present invention are implemented.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation; And generating, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation; and performing fragmentation transmission on the IPV6 packet that is longer than the PMTU that does not support the fragmentation; by using the PE node in the embodiment of the present invention
  • the PMTU generated by the MTU in the ICMP packet corresponding to the fragment that is not supported by the fragment is fragmented and transmitted to the IPv6 packet, and the traffic can be turned on even when the MTU configuration is too small.

Abstract

The present invention provides a method, apparatus and system for sending a message, and a storage medium. The method for sending a message comprises: a client edge (CE) node receives a specified Internet control message protocol (ICMP) message sent by a provider edge (PE) node, and determines whether the specified ICMP message carries a mark indicating that an underlying network does not support fragmentation; if yes, generate, using a maximum transmission unit (MTU) in the specified ICMP message, a path maximum transmission unit (PMTU) that does not support fragmentation; send, by means of fragmentation, an IPV6 message with a length greater than the PMTU that does not support fragmentation.

Description

报文发送方法、装置、系统以及存储介质Message sending method, device, system and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201611259220.1、申请日为2016年12月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application Serial No. No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种报文发送方法、装置、系统以及存储介质。The present invention relates to the field of communications, and in particular, to a message sending method, apparatus, system, and storage medium.
背景技术Background technique
在网络协议版本4(Internet Protocol Version 4,简称IPv4)到网络协议版本6(Internet Protocol Version 6,简称IPv6)过渡中常用的多协议标签交换(multi-protocollabelswitch,简称MPLS)应用是6PE技术(Connecting IPv6 Islands over IPv4MPLS Using IPv6Provider Edge Routers,简称6PE)。图1是相关技术中6PE网络的拓扑图。如图1所示,6PE技术借用了边界网关协议(Border Gateway Protocol,简称BGP)/MPLS VPN的技术原理,在网络侧边缘(Provider Edge,简称PE)设备之间建立IPv4的多协议BGP(MP-BGP)对等体,跨越IPv4MPLS网络,在PE设备之间分发IPv6站点内的IPv6路由,实现IPv6孤岛间的互通,数据报文在IPv4MPLS网络中使用顶层的IPv4MPLS标签进行转发The multi-protocol label switch (MPLS) application commonly used in the transition from Internet Protocol Version 4 (IPv4) to IPv6 (Internet Protocol Version 6, IPv6) is 6PE technology (Connecting). IPv6 Islands over IPv4 MPLS Using IPv6 Provider Edge Routers (6PE). FIG. 1 is a topological diagram of a 6PE network in the related art. As shown in Figure 1, the 6PE technology borrows the principle of the Border Gateway Protocol (BGP)/MPLS VPN to establish IPv4 multi-protocol BGP (MP) between the Provider Edge (PE) devices. - BGP) Peer, which distributes IPv6 routes in IPv6 sites between PE devices across IPv4 MPLS networks, and implements interworking between IPv6 islands. Data packets are forwarded using IPv4 MPLS labels on the IPv4 MPLS network.
图2是相关技术中ICMPv6的Packet Too Big报文。路径最大传输单元(Path Maximum Transmission Unit,简称PMTU)是一种动态发现因特网上任意一条路径的最大传输单元(Maximum Transmission Unit,简称MTU)的技术。在RFC1191中首先定义了对IPv4网络的支持,RFC1981中扩展了对于IPv6网络的支持。PMTU利用因特网(Internet)控制消息协议 (ICMP/ICMPv6)的Packet Too Big报文返回路径MTU值,以此形成PMTU信息。ICMPv6的Packet Too Big报文如附图2所示。2 is a packet Too Big message of ICMPv6 in the related art. The Path Maximum Transmission Unit (PMTU) is a technology that dynamically discovers the Maximum Transmission Unit (MTU) of any path on the Internet. Support for IPv4 networks is first defined in RFC 1191, and support for IPv6 networks is extended in RFC 1981. PMTU uses the Internet (Internet) control message protocol The Packet Too Big message of (ICMP/ICMPv6) returns the path MTU value to form PMTU information. The Packet Too Big message of ICMPv6 is shown in Figure 2.
IPv6报文在传输过程中不可分片,分片都是在发包源节点依据探测的PMTU进行的,这促使了PMTU在IPv6网络中的应用更加广泛。同时IPv6协议定义了IPv6网络中的最小MTU为1280字节,相应的最小PMTU也是1280字节。这在纯IPv6网络中是没有任何问题的,报文不会因为不可分片而丢弃。但是在IPv6到IPv4的过渡网络中(比如6in4隧道),PMTU技术有时无法避免底层IPv4网络的二次分片;在6PE网络中,由于底层的MPLS网络不支持分片,甚至会出现IPv6报文无法穿越MPLS网络的流量不通问题。IPv6 packets are not fragmented during transmission. Fragmentation is performed at the source node of the packet according to the detected PMTU, which promotes the wider application of PMTU in IPv6 networks. At the same time, the IPv6 protocol defines that the minimum MTU in an IPv6 network is 1280 bytes, and the corresponding minimum PMTU is also 1280 bytes. This is not a problem in a pure IPv6 network, and packets are not discarded because they are not fragmentable. However, in the IPv6 to IPv4 transition network (such as the 6in4 tunnel), the PMTU technology sometimes cannot avoid the secondary fragmentation of the underlying IPv4 network. In the 6PE network, the IPv6 packet may even be generated because the underlying MPLS network does not support fragmentation. The traffic that cannot pass through the MPLS network cannot be solved.
假设在6PE网络拓扑中,PE节点网络侧(MPLS域)接口MTU配置小于1280,当CE节点发送长度大于1280字节的IPv6报文时,在PE节点会产生ICMP Packet Too Big报文返回CE节点,CE节点依据返回的ICMP报文形成PMTU条目,但由于PMTU最小值限制为1280,当CE节点发送的下一个大于1280字节的报文时依据1280进行分片,分片后的报文依然大于PE节点网络侧接口的MTU。最终,所有大于PE节点MTU的IPv6报文都将无法通过6PE网络的MPLS域。因此,6PE网络中在MPLS域MTU在配置小于1280的情况下时,会存在流量不通的问题。Assume that in the 6PE network topology, the MTU configuration of the PE node network side (MPLS domain) interface is less than 1280. When the CE node sends an IPv6 packet with a length greater than 1280 bytes, the ICMP Packet Too Big packet is sent back to the CE node. The CE node forms a PMTU entry according to the returned ICMP message. However, since the PMTU minimum value is limited to 1280, when the next packet sent by the CE node is larger than 1280 bytes, the packet is fragmented according to 1280, and the fragmented message remains. Greater than the MTU of the network side interface of the PE node. In the end, all IPv6 packets that are larger than the MTU of the PE node cannot pass the MPLS domain of the 6PE network. Therefore, when the MTU of the MPLS domain is less than 1280 in the 6PE network, there is a problem that the traffic is unreachable.
发明内容Summary of the invention
本发明实施例提供了一种报文发送方法、装置、系统以及存储介质。The embodiment of the invention provides a message sending method, device, system and storage medium.
根据本发明的一个实施例,提供了一种报文发送方法,包括:客户侧边缘(CE)节点接收PE节点发送的指定因特网控制报文协议(ICMP)报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。According to an embodiment of the present invention, a packet sending method is provided, including: a client side edge (CE) node receives a specified Internet Control Message Protocol (ICMP) message sent by a PE node, and determines the specified ICMP message. Whether the packet carries a flag indicating that the underlying network does not support fragmentation; if the judgment result is yes, the PMTU in the specified ICMP packet is used to generate a PMTU that does not support fragmentation; The fragmented PMTU IPV6 message is sent in fragments.
上述方案中,不支持分片的标记在当所述PE节点的接口对应的MTU小于预定阈值时,所述不分片的标记携带于所述指定ICMP报文中。 In the above solution, the label of the fragment is not supported. When the MTU corresponding to the interface of the PE node is less than a predetermined threshold, the non-fragmented label is carried in the specified ICMP packet.
上述方案中,所述不支持分片的标记保存在所述指定ICMP报文中的编码字段code中。In the above solution, the mark that does not support fragmentation is saved in the coded field code in the specified ICMP message.
上述方案中,所述预定阈值为1280字节。In the above solution, the predetermined threshold is 1280 bytes.
上述方案中,所述指定ICMP报文为ICMP Packet Too Big报文。In the above solution, the specified ICMP message is an ICMP Packet Too Big message.
上述方案中,所述方法还包括:将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;将分片后的所述需要传输的IPV6报文发送到所述PE节点。In the above solution, the method further includes: fragmenting the IPV6 packet to be transmitted in a manner not greater than the PMTU; and transmitting the fragmented IPV6 packet to the PE node.
根据本发明的另一个实施例,提供了一种报文发送装置,包括:判断模块,配置为接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;生成模块,配置为在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;发送模块,配置为对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。According to another embodiment of the present invention, a message sending apparatus is provided, including: a determining module, configured to receive a specified ICMP message sent by a PE node, and determine whether the specified ICMP message carries a The network does not support the marking of the fragment; the generating module is configured to generate, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation, and the sending module is configured to have a length greater than the length The IPV6 packet of the PMTU that does not support fragmentation is sent in fragments.
上述方案中,所述发送模块包括,分片单元,配置为对需要传输的IPV6报文以不大于所述PMTU的方式进行分片;发送单元,配置为将分片后的所述需要传输的IPV6报文发送到所述PE节点。In the foregoing solution, the sending module includes: a fragmentation unit, configured to perform fragmentation on a manner that the IPV6 packet to be transmitted is not greater than the PMTU; and the sending unit is configured to: The IPV6 packet is sent to the PE node.
上述方案中,不支持分片的标记在当所述PE节点的接口对应的MTU小于预定阈值时,所述不分片的标记携带于所述指定ICMP报文中。In the above solution, the label of the fragment is not supported. When the MTU corresponding to the interface of the PE node is less than a predetermined threshold, the non-fragmented label is carried in the specified ICMP packet.
根据本发明的再一个实施例,提供了一种报文发送系统,包括:PE节点,配置为向CE节点发送指定ICMP报文;所述CE节点,接收所述PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记,在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。According to still another embodiment of the present invention, a message sending system is provided, including: a PE node configured to send a specified ICMP message to a CE node; and the CE node receives a specified ICMP message sent by the PE node And determining, in the specified ICMP packet, a flag indicating that the underlying network does not support fragmentation, and if the judgment result is yes, generating, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation. The fragmentation is sent to the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
上述方案中,所述PE节点还配置为在当所述PE节点的接口对应的MTU小于预定阈值时,在所述指定ICMP报文中保存不支持分片的标记;In the above solution, the PE node is further configured to: when the MTU corresponding to the interface of the PE node is less than a predetermined threshold, save the label that does not support fragmentation in the specified ICMP packet;
上述方案中,所述CE节点还配置为将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;将分片后的所述需要传输的IPV6报文发送到 所述PE节点。In the foregoing solution, the CE node is further configured to perform the fragmentation of the IPV6 packet to be transmitted in a manner that is not greater than the PMTU; and send the fragmented IPV6 packet to be transmitted to the fragmented The PE node.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
S1,CE节点接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;S1. The CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
S2,在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;S2, in the case that the determination result is yes, generating, by using the MTU in the specified ICMP message, a PMTU that does not support fragmentation;
S3,对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。S3. Perform fragmentation on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
也就是说,本发明实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时上述任一方法的步骤。That is, an embodiment of the present invention further provides a storage medium having stored thereon a computer program, the computer program being executed by the processor when the steps of any of the above methods.
通过本发明实施例,由于利用PE节点发送的不支持分片的标记对应的ICMP报文中的最大传输单元MTU生成的PMTU对IPv6报文进行分片传输,因此可以解决相关技术中存在的6PE网络中在MPLS域MTU在配置小于1280的情况下时,会存在流量不通的问题。同时还能够达到在MTU配置过小的情况下,仍能实现流量导通的效果。According to the embodiment of the present invention, the PMTU generated by the MTU of the largest transmission unit in the ICMP message corresponding to the fragment that is not supported by the PE node is used for fragment transmission of the IPv6 packet, so that the 6PE existing in the related art can be solved. When the MTU of the MPLS domain is less than 1280 in the network, there is a problem that the traffic is unreachable. At the same time, it can achieve the effect of traffic conduction even when the MTU configuration is too small.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明。在附图中:The drawings are intended to provide a further understanding of the embodiments of the invention, and are intended to illustrate the invention. In the drawing:
图1是相关技术中6PE网络的拓扑图;1 is a topological diagram of a 6PE network in the related art;
图2是相关技术中ICMPv6的Packet Too Big报文结构示意图;2 is a schematic structural diagram of a Packet Too Big packet of ICMPv6 in the related art;
图3是本发明实施例的一种报文发送方法的移动终端的硬件结构框图;3 is a block diagram showing the hardware structure of a mobile terminal for transmitting a message according to an embodiment of the present invention;
图4是根据本发明实施例的一种报文发送方法的流程图;4 is a flowchart of a method for sending a message according to an embodiment of the present invention;
图5是根据本发明实施例的另一种报文发送的流程图;FIG. 5 is a flowchart of another packet sending according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的一种报文发送装置的结构图;FIG. 6 is a structural diagram of a message sending apparatus according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的另一种报文发送装置的结构图;FIG. 7 is a structural diagram of another message transmitting apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明实施例的一种报文发送系统的结构图。 FIG. 8 is a structural diagram of a message transmitting system according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图3是本发明实施例的一种报文发送方法的移动终端的硬件结构框图。如图3所示,移动终端30可以包括一个或多个(图中仅示出一个)处理器302(处理器302可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、配置为存储数据的存储器304、以及配置为通信功能的传输装置306。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端30还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 3 is a hardware structural block diagram of a mobile terminal for transmitting a message according to an embodiment of the present invention. As shown in FIG. 3, the mobile terminal 30 may include one or more (only one shown) processor 302 (the processor 302 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 304 configured to store data and a transmission device 306 configured as a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 3 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 30 may also include more or fewer components than those shown in FIG. 3, or have a different configuration than that shown in FIG.
存储器304可配置为存储应用软件的软件程序以及模块,如本发明实施例中的报文发送方法对应的程序指令/模块,处理器302通过运行存储在存储器304内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器304可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器304可进一步包括相对于处理器302远程设置的存储器,这些远程存储器可以通过网络连接至移动终端30。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 304 can be configured as a software program and a module for storing application software, such as a program instruction/module corresponding to the message sending method in the embodiment of the present invention, and the processor 302 executes by executing a software program and a module stored in the memory 304. Various functional applications and data processing, that is, the above methods are implemented. Memory 304 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 304 can further include memory remotely located relative to processor 302, which can be connected to mobile terminal 30 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置306配置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端30的通信供应商提供的无线网络。在一个实例中,传输装置306包括一个网络适配器(Network Interface Controller,简称NIC), 其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置306可以为射频(Radio Frequency,简称RF)模块,其配置为通过无线方式与互联网进行通讯。Transmission device 306 is configured to receive or transmit data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 30. In one example, the transmission device 306 includes a Network Interface Controller (NIC). It can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 306 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于图4所示的网络拓补图以及图3所示的移动终端的报文发送方法,图4是根据本发明实施例的一种报文发送方法的流程图,如图4所示,该流程包括如下步骤:In this embodiment, a packet sending method is provided in the network topology diagram shown in FIG. 4 and the mobile terminal shown in FIG. 3, and FIG. 4 is a packet sending method according to an embodiment of the present invention. The flow chart, as shown in FIG. 4, includes the following steps:
步骤S402,CE节点接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有配置为指示底层网络不支持分片的标记;Step S402: The CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag configured to indicate that the underlying network does not support fragmentation.
在一实施例中,不支持分片的标记是在PE节点的接口对应的MTU小于预定阈值时保存在指定ICMP报文。具体地,该预定阈值为1280字节。In an embodiment, the label that does not support fragmentation is saved in the specified ICMP message when the MTU corresponding to the interface of the PE node is less than a predetermined threshold. Specifically, the predetermined threshold is 1280 bytes.
在一实施例中,该不支持分片的标记保存在所述指定ICMP报文中的编码字段code中。In an embodiment, the tag that does not support fragmentation is stored in the encoded field code in the specified ICMP message.
在一实施例中,该指定ICMP报文可以为ICMP Packet Too Big报文。In an embodiment, the designated ICMP message may be an ICMP Packet Too Big message.
步骤S404,在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;Step S404, if the result of the determination is yes, the PMTU in the specified ICMP message is used to generate a PMTU that does not support fragmentation;
步骤S406,对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。Step S406, performing fragment transmission on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
在一实施例中,分片发送过程可以包括:将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;将分片后的所述需要传输的IPV6报文发送到所述PE节点。In an embodiment, the fragment transmission process may include: fragmenting the IPV6 packet to be transmitted in a manner not greater than the PMTU; and transmitting the fragmented IPV6 packet to the PE. node.
在一实施例中,当PE节点接收到CE节点发送的分片后的所述需要传输的IPV6报文后,对分片后的IPv6报文进行封装标签后,经由MPLS网络转发出去,由另一个IPv6网络的PE节点接收,并发送给另一个IPv6网络中的CE节点。In an embodiment, after the PE node receives the IPV6 packet to be transmitted after the fragment sent by the CE node, the fragmented IPv6 packet is encapsulated and then forwarded through the MPLS network. A PE node of an IPv6 network receives and sends it to a CE node in another IPv6 network.
具体地,在本实施例中还提供了一种基于上述思路的场景,以便理解本实施例中所要保护的技术方案。Specifically, a scenario based on the foregoing ideas is also provided in this embodiment, so as to understand the technical solution to be protected in this embodiment.
图5是根据本发明实施例的另一种报文发送的流程图。如图5所示,在本场景中的CE1节点配置为1500,PE1网络侧接口MTU配置为1000, 发送的IPv6报文长度为1400字节。FIG. 5 is a flow chart of another message transmission according to an embodiment of the present invention. As shown in Figure 5, the CE1 node in the scenario is configured as 1500, and the MTU on the network side of the PE1 is configured as 1000. The length of the transmitted IPv6 packet is 1400 bytes.
S51,从CE1节点向CE2节点发送一个长度1400字节的IPv6报文;S51. Send a 1400-byte IPv6 packet from the CE1 node to the CE2 node.
S52,该IPv6报文经PE1节点转发时,通过查路由决定转发出接口,由于IPv6报文长度大于出接口MTU值,产生一个ICMP Packet Too Big报文,报文中的MTU值填写为出接口MTU值减去标签所占字节数,且由于要转发到不支持分片的MPLS网络,因此Code字段填写不支持分片标记;S52: When the IPv6 packet is forwarded by the PE1 node, the IPv6 packet is forwarded to the outbound interface. The length of the IPv6 packet is greater than the MTU of the outbound interface, and an ICMP Packet Too Big packet is generated. The MTU value in the packet is filled in as the outbound interface. The MTU value is the number of bytes occupied by the label, and since it is forwarded to the MPLS network that does not support fragmentation, the Code field does not support the fragmentation flag;
S53,向CE1节点发送该ICMPv6Packet Too Big报文;S53. Send the ICMPv6 Packet Too Big packet to the CE1 node.
S54,CE1节点收到该ICMPv6Packet Too Big报文时,取出报文中的MTU值以及Code字段,由于Code字段填写有不支持分片标记,因此根据MTU实际值996生成一条不支持分片PMTU条目,即使该MTU值小于1280;S54: When receiving the ICMPv6 Packet Too Big packet, the CE1 node extracts the MTU value and the Code field in the packet. Since the code field is filled in, the fragmentation flag is not supported. Therefore, an unsupported fragment PMTU entry is generated according to the MTU actual value 996. Even if the MTU value is less than 1280;
S55,CE1节点再次向CE2节点发送长度为1400字节的IPv6报文,由于报文长度大于刚生成的PMTU值,依据新生成的PMTU值对IPv6报文进行分片,分片为两个不大于PMTU值的IPv6报文;S55, the CE1 node sends an IPv6 packet of 1400 bytes to the CE2 node again. The packet length is greater than the PMTU value just generated. The IPv6 packet is fragmented according to the newly generated PMTU value. IPv6 packets larger than the PMTU value;
S56,CE1节点将分片后的两个不大于PMTU的IPv6报文发送出去;S56: The CE1 node sends the two IPv6 packets that are not larger than the PMTU after the fragmentation.
S57,PE1节点收到这两个不大于出口MTU的IPv6报文时,封装标签后经MPLS网络转发出去;S57: When receiving the two IPv6 packets that are not larger than the egress MTU, the PE1 node encapsulates the label and forwards the packet through the MPLS network.
通过上述步骤,解决了相关技术中存在的6PE网络中在MPLS域MTU在配置小于1280的情况下时,会存在流量不通的问题。同时还能够达到在MTU配置过小的情况下,仍能实现流量导通的效果。Through the above steps, when the MPLS domain MTU is configured to be less than 1280 in the 6PE network in the related art, the problem that the traffic is unreachable may be solved. At the same time, it can achieve the effect of traffic conduction even when the MTU configuration is too small.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种报文发送装置,该装置配置为实现上述实施例,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a message sending apparatus is further provided, and the apparatus is configured to implement the foregoing embodiments, and details have been omitted for description. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本发明实施例的一种报文发送装置的结构图,如图6所示,该装置包括:FIG. 6 is a structural diagram of a message sending apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
判断模块62,配置为接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;The determining module 62 is configured to receive the specified ICMP packet sent by the PE node, and determine whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
生成模块64,配置为在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;The generating module 64 is configured to generate, by using the MTU in the specified ICMP message, a PMTU that does not support fragmentation, if the determination result is yes;
发送模块66,配置为对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。The sending module 66 is configured to perform fragment transmission on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
图7是根据本发明实施例的另一种报文发送装置的结构图,如图7所示,该装置除包括图6所示的所有模块外,发送模块66还包括:FIG. 7 is a structural diagram of another packet sending apparatus according to an embodiment of the present invention. As shown in FIG. 7, the transmitting module 66 further includes:
分片单元72,配置为对需要传输的IPV6报文以不大于所述PMTU的方式进行分片;The fragmentation unit 72 is configured to perform fragmentation on a manner that the IPV6 packet to be transmitted is not greater than the PMTU.
发送单元74,配置为将分片后的所述需要传输的IPV6报文发送到所述PE节点。The sending unit 74 is configured to send the fragmented IPV6 message to be transmitted to the PE node.
在一实施例中,不支持分片的标记在当所述PE节点的接口对应的MTU小于预定阈值时,在所述指定ICMP报文中保存。In an embodiment, the label that does not support fragmentation is saved in the specified ICMP message when the MTU corresponding to the interface of the PE node is less than a predetermined threshold.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
在本实施例中还提供了一种报文发送系统,该系统配置为实现上述实 施例,已经进行过说明的不再赘述。In this embodiment, a message sending system is further provided, and the system is configured to implement the foregoing The examples have not been described again.
图8是根据本发明实施例的一种报文发送系统的结构图,如图8所示,该装置包括:FIG. 8 is a structural diagram of a message sending system according to an embodiment of the present invention. As shown in FIG. 8, the device includes:
PE节点82,配置为向CE节点84发送指定因特网指定控制报文协议ICMP报文;The PE node 82 is configured to send, to the CE node 84, an Internet Designated Control Message Protocol (ICMP) packet;
所述CE节点84,接收所述PE节点82发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记,在判断结果为是的情况下,利用所述指定ICMP报文中的最大传输单元MTU生成不支持分片的路径最大传输单元PMTU;对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。The CE node 84 receives the specified ICMP packet sent by the PE node 82, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation, and if the judgment result is yes, And generating, by using a maximum transmission unit MTU in the specified ICMP packet, a path maximum transmission unit (PMTU) that does not support fragmentation; and performing fragmentation transmission on an IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
在一实施例中,所述PE节点82还配置为在当所述PE节点82的接口对应的MTU小于预定阈值时,在所述指定ICMP报文中保存不支持分片的标记。In an embodiment, the PE node 82 is further configured to save, in the specified ICMP message, a flag that does not support fragmentation when the MTU corresponding to the interface of the PE node 82 is less than a predetermined threshold.
在一实施例中,所述CE节点84还配置为将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;将分片后的所述需要传输的IPV6报文发送到所述PE节点82。In an embodiment, the CE node 84 is further configured to fragment the IPV6 packet to be transmitted in a manner that is not greater than the PMTU, and send the fragmented IPV6 packet to be sent to the PE node 82.
实施例4Example 4
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,CE节点接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;S1. The CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation.
S2,在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;S2, in the case that the determination result is yes, generating, by using the MTU in the specified ICMP message, a PMTU that does not support fragmentation;
S3,对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。S3. Perform fragmentation on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。具体可以为计算机可读存储介质。 Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc. Specifically, it may be a computer readable storage medium.
也就是说,本发明实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例所述方法的步骤。That is, the embodiment of the present invention provides a storage medium on which a computer program is stored, and when the computer program is executed by the processor, the steps of the method in the embodiment of the present invention are implemented.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不配置为限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的方案,CE节点接收PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;在判断结果为是的情况下,利用所述指定ICMP报文中的MTU生成不支持分片的PMTU;对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送;通过本发明实施例,由于利用PE节点发送的不支持分片的标记对应的ICMP报文中的MTU生成的PMTU对IPv6报文进行分片传输,能够达到在MTU配置过小的情况下,仍能实现流量导通的效果。 In the solution provided by the embodiment of the present invention, the CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation; And generating, by using the MTU in the specified ICMP packet, a PMTU that does not support fragmentation; and performing fragmentation transmission on the IPV6 packet that is longer than the PMTU that does not support the fragmentation; by using the PE node in the embodiment of the present invention The PMTU generated by the MTU in the ICMP packet corresponding to the fragment that is not supported by the fragment is fragmented and transmitted to the IPv6 packet, and the traffic can be turned on even when the MTU configuration is too small.

Claims (12)

  1. 一种报文发送方法,包括:A method for sending a message, comprising:
    客户侧边缘CE节点接收网络侧边缘PE节点发送的指定因特网控制报文协议ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;The customer side edge CE node receives the specified Internet Control Message Protocol (ICMP) packet sent by the network side edge PE node, and determines whether the specified ICMP message carries a flag indicating that the underlying network does not support fragmentation;
    在判断结果为是的情况下,利用所述指定ICMP报文中的最大传输单元MTU生成不支持分片的路径最大传输单元PMTU;If the result of the determination is yes, the path maximum transmission unit PMTU that does not support fragmentation is generated by using the maximum transmission unit MTU in the specified ICMP message;
    对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。The fragmentation is sent to the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:在当所述PE节点的接口对应的MTU小于预定阈值时,将所述不支持分片的标记携带于所述指定ICMP报文中。The method according to claim 1, wherein the method further comprises: when the MTU corresponding to the interface of the PE node is less than a predetermined threshold, carrying the label that does not support fragmentation in the specified ICMP message. in.
  3. 根据权利要求2所述的方法,其中,所述不支持分片的标记保存在所述指定ICMP报文中的编码字段code中。The method of claim 2, wherein the flag that does not support fragmentation is stored in an encoded field code in the specified ICMP message.
  4. 根据权利要求2所述的方法,其中,所述预定阈值为1280字节。The method of claim 2 wherein said predetermined threshold is 1280 bytes.
  5. 根据权利要求1所述的方法,其中,所述指定ICMP报文为ICMP Packet Too Big报文。The method of claim 1, wherein the designated ICMP message is an ICMP Packet Too Big message.
  6. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;Fragmenting the IPV6 packet to be transmitted in a manner not greater than the PMTU;
    将分片后的所述需要传输的IPV6报文发送到所述PE节点。Sending the fragmented IPV6 message to be transmitted to the PE node.
  7. 一种报文发送装置,位于客户侧边缘CE节点,包括:A message sending device is located at a client side edge CE node, and includes:
    判断模块,配置为接收网络侧边缘PE节点发送的指定因特网控制报文协议ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记;The determining module is configured to receive the specified Internet Control Message Protocol (ICMP) packet sent by the network edge PE node, and determine whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation;
    生成模块,配置为在判断结果为是的情况下,利用所述指定ICMP报文中的最大传输单元MTU生成不支持分片的路径最大传输单元PMTU; a generating module, configured to generate, by using a maximum transmission unit MTU in the specified ICMP packet, a path maximum transmission unit PMTU that does not support fragmentation, if the determination result is yes;
    发送模块,配置为对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。The sending module is configured to perform fragmentation sending on the IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  8. 根据权利要求7所述的装置,其中,所述发送模块包括:The apparatus of claim 7, wherein the transmitting module comprises:
    分片单元,配置为对需要传输的IPV6报文以不大于所述PMTU的方式进行分片;The fragmentation unit is configured to perform fragmentation on a manner that the IPV6 packet to be transmitted is not greater than the PMTU;
    发送单元,配置为将分片后的所述需要传输的IPV6报文发送到所述PE节点。The sending unit is configured to send the fragmented IPV6 message to be transmitted to the PE node.
  9. 一种报文发送系统,包括:A message sending system includes:
    网络侧边缘PE节点,配置为向客户侧边缘CE节点发送指定因特网控制报文协议ICMP报文;The network side edge PE node is configured to send the specified Internet Control Message Protocol (ICMP) message to the client side edge CE node;
    所述CE节点,接收所述PE节点发送的指定ICMP报文,并判断所述指定ICMP报文中是否携带有用于指示底层网络不支持分片的标记,在判断结果为是的情况下,利用所述指定ICMP报文中的最大传输单元MTU生成不支持分片的路径最大传输单元PMTU;对长度大于所述不支持分片的PMTU的IPV6报文进行分片发送。The CE node receives the specified ICMP packet sent by the PE node, and determines whether the specified ICMP packet carries a flag indicating that the underlying network does not support fragmentation, and if the judgment result is yes, the UE uses The maximum transmission unit MTU in the specified ICMP packet generates a path maximum transmission unit PMTU that does not support fragmentation, and performs fragment transmission on an IPV6 packet whose length is greater than the PMTU that does not support fragmentation.
  10. 根据权利要求9所述的系统,其中,所述PE节点还配置为在当所述PE节点的接口对应的MTU小于预定阈值时,所述不分片的标记携带于所述指定ICMP报文中。The system of claim 9, wherein the PE node is further configured to: when the MTU corresponding to the interface of the PE node is less than a predetermined threshold, the non-fragmented tag is carried in the specified ICMP message. .
  11. 根据权利要求9所述的系统,其中,所述CE节点还配置为将需要传输的IPV6报文以不大于所述PMTU的方式进行分片;将分片后的所述需要传输的IPV6报文发送到所述PE节点。The system of claim 9, wherein the CE node is further configured to slice the IPV6 message to be transmitted in a manner not greater than the PMTU; and to slice the IPV6 message to be transmitted. Sent to the PE node.
  12. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至6任一项所述方法的步骤。 A storage medium having stored thereon a computer program, the computer program being executed by a processor to perform the steps of the method of any one of claims 1 to 6.
PCT/CN2017/115817 2016-12-30 2017-12-13 Method, apparatus and system for sending message, and storage medium WO2018121257A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611259220.1A CN108270673B (en) 2016-12-30 2016-12-30 File transmitting method, device and system
CN201611259220.1 2016-12-30

Publications (1)

Publication Number Publication Date
WO2018121257A1 true WO2018121257A1 (en) 2018-07-05

Family

ID=62706904

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115817 WO2018121257A1 (en) 2016-12-30 2017-12-13 Method, apparatus and system for sending message, and storage medium

Country Status (2)

Country Link
CN (1) CN108270673B (en)
WO (1) WO2018121257A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363234A (en) * 2020-10-14 2022-04-15 阿里巴巴集团控股有限公司 Data processing method and system, electronic equipment and router

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462493B (en) * 2018-09-13 2021-12-28 国网浙江省电力有限公司丽水供电公司 Local area network monitoring method based on PING
CN111641565B (en) * 2019-03-01 2022-05-13 华为技术有限公司 Method, device and system for transmitting Ethernet message
CN113676389B (en) * 2020-05-15 2022-10-18 华为技术有限公司 Message sending method and device
CN114079629B (en) * 2020-08-12 2023-02-03 华为技术有限公司 Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
CN112333094B (en) * 2020-11-27 2022-10-18 迈普通信技术股份有限公司 Data transmission processing method and device, network equipment and readable storage medium
CN114745456A (en) * 2022-05-13 2022-07-12 咪咕音乐有限公司 Message processing method and device and network address translation equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1722524A1 (en) * 2005-05-11 2006-11-15 Samsung Electronics Co., Ltd. Method and apparatus for processing packet in IPv4/IPv6 combination network
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path
CN101217540A (en) * 2008-01-04 2008-07-09 杭州华三通信技术有限公司 A self-adapting regulation method, device and system of message tunnel slicing
CN105763659A (en) * 2014-12-16 2016-07-13 中国电信股份有限公司 IPv6 tunneling packet encapsulation method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150520A (en) * 2007-11-02 2008-03-26 杭州华三通信技术有限公司 Method and device for adjusting path maximum transfer unit
CN101252524A (en) * 2008-04-08 2008-08-27 华为技术有限公司 Apparatus, system and method for transmitting message
US9722919B2 (en) * 2014-01-22 2017-08-01 Cisco Technology, Inc. Tying data plane paths to a secure control plane
CN103944832B (en) * 2014-04-18 2018-05-15 新华三技术有限公司 A kind of definite method, apparatus and system of PMTU values

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1722524A1 (en) * 2005-05-11 2006-11-15 Samsung Electronics Co., Ltd. Method and apparatus for processing packet in IPv4/IPv6 combination network
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path
CN101217540A (en) * 2008-01-04 2008-07-09 杭州华三通信技术有限公司 A self-adapting regulation method, device and system of message tunnel slicing
CN105763659A (en) * 2014-12-16 2016-07-13 中国电信股份有限公司 IPv6 tunneling packet encapsulation method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363234A (en) * 2020-10-14 2022-04-15 阿里巴巴集团控股有限公司 Data processing method and system, electronic equipment and router

Also Published As

Publication number Publication date
CN108270673B (en) 2019-08-13
CN108270673A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
WO2018121257A1 (en) Method, apparatus and system for sending message, and storage medium
US11438260B2 (en) Method and apparatus for forwarding MPLS data packet
EP3151509B1 (en) Enhanced evpn mac route advertisement having mac (l2) level authentication, security and policy control
US11477106B2 (en) Data packet sending method and apparatus in IPV6 network
EP3151510B1 (en) Mac (l2) level authentication, security and policy control
US11050657B2 (en) Method, device and node for message transmission, and computer storage medium
EP2869512A1 (en) Dynamic area filtering for link-state routing protocols
US9923835B1 (en) Computing path maximum transmission unit size
WO2015109821A1 (en) Service chain management method, system and device
CN108604997B (en) Method and apparatus for a control plane to configure monitoring of Differentiated Services Coding Points (DSCPs) and Explicit Congestion Notifications (ECNs)
EP4207685A1 (en) Message header processing method and apparatus, storage medium and electronic device
WO2018188662A1 (en) Information notification method and device
CN108604999B (en) Data plane method and apparatus for monitoring Differentiated Services Coding Points (DSCP) and Explicit Congestion Notification (ECN)
WO2017141076A1 (en) Stateless multicast protocol for low-power and lossy networks
CN108737127B (en) Information notification method and device
WO2022021818A1 (en) Method and device for processing data message, storage medium, and electronic device
US9081567B1 (en) Method and apparatus to control routing convergence during node reboot by entering a freeze state that inhibits routing convergence during the reboot process
WO2022184169A1 (en) Packet forwarding method and system, storage medium, and electronic device
WO2015085518A1 (en) Packet processing method and device
US20240073128A1 (en) Message encapsulation and de-encapsulation method and device, storage medium, and electronic device
WO2017140238A1 (en) Message transmission method and device
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
WO2016101286A1 (en) Method and apparatus for processing notification message
WO2018161684A1 (en) Data sending method and apparatus, and router
WO2017088718A1 (en) Method and apparatus for transmitting control message

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

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

Country of ref document: EP

Kind code of ref document: A1