WO2019080904A1 - Method and device for negotiation fragmentation of link management protocol - Google Patents

Method and device for negotiation fragmentation of link management protocol

Info

Publication number
WO2019080904A1
WO2019080904A1 PCT/CN2018/111929 CN2018111929W WO2019080904A1 WO 2019080904 A1 WO2019080904 A1 WO 2019080904A1 CN 2018111929 W CN2018111929 W CN 2018111929W WO 2019080904 A1 WO2019080904 A1 WO 2019080904A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
packet
negotiation
message
length value
Prior art date
Application number
PCT/CN2018/111929
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 WO2019080904A1 publication Critical patent/WO2019080904A1/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

Definitions

  • the present invention relates to the field of data network communication, and in particular to a negotiation fragmentation method and apparatus for a Link Management Protocol (LMP).
  • LMP Link Management Protocol
  • the LMP is used to manage links between nodes and IP Control Channels (IPCCs).
  • IPCCs IP Control Channels
  • LMP features include control channel management, link attribute association, link connectivity verification, and fault management.
  • the first two are used to manage traffic engineering (TE, Traffic Engineering), which is the core function of the link.
  • TE Traffic Engineering
  • Traffic Engineering is the core function of the link.
  • the latter two are optional extension functions for dealing with the separation of control channels and data channels.
  • the message in the LMP protocol is a User Datagram Protocol (UDP) message.
  • UDP User Datagram Protocol
  • MTU maximum transmission unit length
  • the message is sent.
  • the LMP packet is fragmented at the IP layer, and the packet is divided into several slices, so that each slice is smaller than the MTU value, and the receiver IP layer needs to reassemble the LMP packet.
  • the characteristics of UDP that is, for connectionless, the message transmission is unreliable
  • the reception is convenient to reassemble the packet, resulting in discarding the entire LMP datagram.
  • Link attribute association is used to aggregate multiple data links (Data-Link) into one TE link (TE-Link) and to synchronize each feature of TE-Link, such as As shown in FIG. 1, there is one TE-Link between the LMP node A and the LMP node B, and the TE-Link includes three Data-Links.
  • the packets transmitted in the TE-Link may include a link summary message (LinkSummary), a link summary response message (LinkSummaryAck), and a link summary failure response message (LinkSummaryNack), among which three types of messages are included in the LinkSummary message and the LinksummaryNack message.
  • LinkSummary link summary message
  • LinkSummaryAck link summary response message
  • LinkSummaryNack link summary failure response message
  • the length of the two types of messages is unknown.
  • the length of the LinkSummary message and the LinksummaryNack message is too large, which may exceed the MTU value of the link layer. Therefore, LinkSummary The message and the LinksummaryNack message are frequently fragmented during the IP transmission process, which increases the probability of packet loss after fragmentation. In severe cases, the transmission channel is blocked, which affects network stability and performance.
  • the embodiments of the present invention provide a method and a device for negotiating fragmentation of a link management protocol, which can reduce the number of packets after fragmentation, reduce the probability of packet loss after fragmentation, and improve network stability and performance.
  • a method for negotiating a link management protocol includes: a first node sending a configuration message (Config) to a second node, where the configuration message carries a first message negotiation. a length value; when the first node receives the configuration pass message (ConfigAck) sent by the second node, the first node packages the predetermined packet according to the first packet negotiation length value, And transmitting the packaged predetermined message to the second node.
  • Config configuration message
  • ConfigAck configuration pass message
  • the embodiment of the present invention further provides a negotiation fragmentation method of a link management protocol, including: receiving, by a second node, a configuration message sent by a first node, where the configuration message carries a first packet negotiation length value The second node determines whether the first packet negotiation length value is within a second preset range; and in a case where the first packet negotiation length value is within a second preset range, to the first A node sends a configuration through message.
  • the embodiment of the present invention further provides a negotiation fragmentation device of a link management protocol, which includes: a configuration message sending module, configured to send a configuration message to a second node, where the configuration message carries a first report And the first receiving module is configured to: when receiving the configuration passing message sent by the second node, packetizing the predetermined packet according to the first packet negotiation length value; the first sending module And configured to send the packaged predetermined message to the second node.
  • a negotiation fragmentation device of a link management protocol which includes: a configuration message sending module, configured to send a configuration message to a second node, where the configuration message carries a first report And the first receiving module is configured to: when receiving the configuration passing message sent by the second node, packetizing the predetermined packet according to the first packet negotiation length value; the first sending module And configured to send the packaged predetermined message to the second node.
  • the embodiment of the present invention further provides a negotiation fragmentation device of a link management protocol, including: a configuration message receiving module, configured to receive a configuration message sent by the first node, where the configuration message has a first a packet negotiation length value; the second judging module is configured to determine whether the first packet negotiation length value is within a second preset range; and the second sending module is configured to negotiate a length value in the first packet In the case of the second preset range, a configuration pass message is sent to the first node.
  • a configuration message receiving module configured to receive a configuration message sent by the first node, where the configuration message has a first a packet negotiation length value
  • the second judging module is configured to determine whether the first packet negotiation length value is within a second preset range
  • the second sending module is configured to negotiate a length value in the first packet In the case of the second preset range, a configuration pass message is sent to the first node.
  • FIG. 1 is a schematic diagram of a TE link and a Data-Link of an LMP protocol
  • FIG. 2 is a flowchart of a method for negotiating fragmentation of an LMP according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for negotiating fragmentation of another LMP according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a LAMP negotiation fragmentation apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another LMP negotiation fragmentation apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • the method and device for negotiating fragmentation of a link management protocol are provided in this embodiment of the present invention, because the packet is frequently fragmented during transmission, and the probability of packet loss after fragmentation is increased, which affects the stability and performance of the network.
  • the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • An embodiment of the present invention provides a method for negotiating fragmentation of an LMP, and a flowchart thereof is shown in FIG. 2, including steps S201 and S202:
  • the first node sends a configuration message to the second node, where the configuration message carries a first packet negotiation length value.
  • the first node If the first node receives the configuration pass message sent by the second node, the first node packages the predetermined message according to the first packet negotiation length value, and sends the packaged predetermined message to the second message. node.
  • the control channel between the two nodes In the LMP protocol, in order to initiate an LMP connection between two nodes, the control channel between the two nodes must be activated, and the activation of the control channel transfers the configuration message, the configuration through message, and the configuration failure message through the nodes.
  • the first node sends the Config message to the second node, the first packet is added to the existing Config message object.
  • the first node sends a Config message carrying the first packet negotiation length value to the second node, and waits for the message that the second node responds.
  • the first node When receiving the message that the second node responds, the first node first determines whether the message is a ConfigAck message or a ConfigNack message. When the message received by the first node is a ConfigAck message, it is proved that the second node has passed the negotiation of the fragmentation parameter. At this time, the first node determines whether the ConfigAck message includes the second packet negotiation configured by the second node. The object of the length value, the class of the object is also 1. The ctype is also 2, and if the ConfigAck message sent by the second node does not include the second packet negotiation length value, it is proved that the second node recognizes the first configuration of the first node.
  • the packet length value is in a range receivable by the second node, and when the first node sends a packet to the second node, the first packet is fragmented and packaged according to the first packet negotiation length value, and is packaged.
  • the subsequent scheduled message is sent to the second node.
  • the predetermined message may be any message sent between two nodes after the control channel is activated.
  • the predetermined message is a LinkSummary message and a LinksummaryNack message carrying a large amount of Data-Link information.
  • the first node when sending the packet to the second node, performs fragmentation and packaging on the predetermined packet to be sent according to the second packet length value. And sending the packaged scheduled message to the second node.
  • the second node When the message received by the first node is a ConfigNack message, the second node does not support the negotiation fragmentation, or the second node does not recognize the first packet negotiation length value configured by the first node.
  • the third packet negotiation length value in the ConfigNack message indicates the maximum packet length that the second node approves and can receive itself.
  • the first node determines whether the third packet negotiation length value is the first pre-receivable value. Set within the scope.
  • the third packet negotiation length value is in the first preset range, the first node sends a configuration message to the second node to perform a new round of negotiation fragmentation. At this time, the configuration message carries the third packet.
  • the first node performs an alarm, and it should be understood that The method for the first node to perform the alarm may be prompted to the user of the first node by using a pop-up window, etc., to notify the user to actively modify the first preset range, and ensure the negotiation between the first node and the second node as much as possible.
  • the first node Before the first node sends the Config message, it is necessary to determine an optimal maximum packet length, that is, the first packet negotiation length value, for the current network condition and device condition.
  • the user of the first node can first set an MDL value according to the user experience (that is, the maximum test packet length), and then package the test packet according to the preset maximum packet length, and send the packaged test packet.
  • the first node also needs to monitor the sending success rate of the test packet, and adjust the size of the MDL value according to the sending success rate until the first node performs the testing of the packet according to the current MDL value, and then tests
  • the current MDL value is the optimal maximum packet length in the current network state and device condition, and the current MDL value is used as the first packet negotiation length value.
  • the Config message is sent to the second node, and the number of negotiation between the two nodes can be reduced as much as possible while reducing the number of times of fragmentation and reducing the rate of packet loss. It should be understood that, when performing the optimal MDL value confirmation, the first node may also use the packet loss rate of the test packet, the transmission failure rate, and the like as a criterion, and is not limited to using the transmission success rate.
  • the maximum packet length that can be sent is negotiated before the packet is transmitted, so that when the data link is too long, the packet needs to be fragmented, and the fragmentation may be performed according to the maximum packet length after negotiation.
  • the number of packets after fragmentation is reduced, and the probability of packet loss after fragmentation is reduced, which improves the stability and performance of the network.
  • the embodiment of the present invention further provides a negotiation fragmentation method of another LMP, and the flowchart thereof is as shown in FIG. 3, including steps S301 and S303:
  • the second node receives a configuration message sent by the first node, where the configuration message carries a first packet negotiation length value.
  • the second node determines whether the first packet negotiation length value is within a second preset range.
  • the second node sends a configuration pass message to the first node if the first packet negotiation length value is within the second preset range.
  • the second node After receiving the Config message carrying the first packet negotiation length value sent by the first node, the second node first determines whether it can support the negotiation fragmentation mechanism. It should be understood that whether the node supports the negotiation fragmentation should be the The user of the node actively sets the setting, and the setting principle can be adjusted according to factors such as the device used by the node and the current network status. When the second node does not support the negotiation fragment, the second node may ignore the object of the first packet negotiation length value carried in the Config message, and only process other objects in the Config message until the reply does not carry the second packet. The ConfigAck message of the negotiated length value is sent to the first node.
  • the first node performs fragmentation and packetization processing on the predetermined packet according to the first packet negotiation length value.
  • the second node when the second node supports the negotiation fragmentation, it is first determined whether the first packet negotiation length value is within the second preset range that can be received, and the first packet negotiation length value is in the second pre- In the case of the range, the second node sends a ConfigAck message to the first node, where the second message negotiation length value may be included.
  • the second packet negotiation length value should be the smaller one of the first packet negotiation length value and the second packet optimal packet length value, for example, the first packet length value is M1.
  • the second packet has a predetermined optimal message length value of M2, the second preset range is [X2, Y2], and if X2 ⁇ M1 ⁇ Y2, the second packet length value is min ⁇ M1, M2 ⁇ .
  • the first node determines whether the third packet negotiation length value is within the first preset range, and determines, according to the determination result, that the third packet negotiation length value is required. Re-send the Config message or perform an alarm.
  • the second node negotiates the length of the first packet negotiation with the preset range of the first packet, and when the condition is met, receives the packet that is sent by the first node and is packaged according to the negotiated packet length value.
  • the message not only reduces the number of times the first node is fragmented, but also reduces the number of times the second node reassembles at the time of receiving, avoiding frequent fragmentation of packets when transmitting, and reducing the number of fragments after fragmentation.
  • the probability of loss of text improves the stability and performance of the network.
  • the embodiment of the present invention further provides a LMP negotiation fragmentation apparatus.
  • the schematic diagram of the structure is as shown in FIG. 4, which mainly includes: a configuration message sending module 401, a first receiving module 402, and a first sending module 403.
  • the configuration message sending module 401 is configured to send a configuration message to the second node, where the configuration message carries a first packet negotiation length value;
  • the first receiving module 402 is configured to receive the configuration through the second node.
  • the predetermined message is packaged according to the first packet negotiation length value;
  • the first sending module 403 is configured to send the packaged predetermined message to the second node.
  • the negotiating fragmentation apparatus may be installed in a device used by the first node. Before the first node needs to perform packet transmission to the second node, the control channel between the two nodes must be activated first. In order to implement the negotiation fragmentation, the maximum packet length that can be used between the two nodes is determined, and the configuration message is sent.
  • the module 401 is configured to: when the Config message is sent to the second node, add an object of the first packet negotiation length value based on the existing Config message object, where the value represented by the object is an MDL value approved by the first node, The negotiation fragmentation device sends a Config message carrying the first message negotiation length value to the second node, and waits for the message that the second node responds.
  • the first receiving module 402 is configured to first determine, by using the first determining unit 4021 in the first receiving module 402, whether the second packet negotiation length value is included in the ConfigAck message when the ConfigAck message is received by the second node, and The determination result notification packetizing unit 4022, if the ConfigAck message does not include the second packet negotiation length value, the packaging unit 4022 is configured to package the predetermined packet according to the first packet negotiation length value, and package the packet by the first sending unit 403. The subsequent scheduled message is sent to the second node; if the ConfigAck message includes the second packet negotiation length value, the packing unit 4022 is configured to package the predetermined packet according to the second packet negotiation length value, and pass the first sending unit. 403 sends the packaged scheduled message to the second node.
  • the negotiation fragmentation apparatus of this embodiment further includes a second receiving module configured to receive the ConfigNack message sent by the second node, to prove that the second node does not support the negotiation fragmentation, or the second node does not recognize the first packet length value.
  • a second receiving module configured to receive the ConfigNack message sent by the second node, to prove that the second node does not support the negotiation fragmentation, or the second node does not recognize the first packet length value.
  • the acknowledged fragmentation apparatus of the present embodiment further includes a first judging module configured to determine whether the third packet negotiation length value is the first one that can be received. Within the preset range. When the third packet negotiation length value is in the first preset range, the configuration message sending module 401 is configured to resend the Config message to the second node to perform a new round of negotiation fragmentation. At this time, the Config message carries The third packet negotiates the length value, and waits for the negotiation result of the second packet negotiation length value of the second node; the negotiation fragmentation device of this embodiment further includes an alarm module, where the third packet negotiation length value is not in the first pre- In the case of the range, the alarm module is set to perform the alarm. It should be understood that the alarm module can set the alarm mode to prompt the user of the first node through the pop-up window to notify the user to actively modify the first The preset range ensures that the negotiation between the first node and the second node is as successful as possible.
  • the configuration message sending module 401 sends the Config message, it is necessary to determine an optimal maximum packet length, that is, the first packet negotiation length value, for the current network condition and the device situation.
  • the user of the first node can first set an MDL value according to the user experience (that is, preset the maximum packet length), and then the monitoring module set by the embodiment of the present invention packages the test packet according to the preset maximum packet length. And sending the packaged test packet to the second node; the monitoring module is further configured to monitor the sending success rate of the test packet, and adjust the size of the MDL value according to the sending success rate until the first node follows the current MDL value.
  • the success rate of the test packet is greater than the preset transmission success rate.
  • the current MDL value is the optimal maximum packet length in the current network state and device condition, and the current MDL is The value is used as the first packet negotiation length value, and is sent to the second node by the configuration message sending module 401.
  • the number of times of negotiation between the two nodes can be reduced as much as possible while reducing the number of times of fragmentation and reducing the packet loss rate.
  • the monitoring module can also use the packet loss rate of the test packet, the transmission failure rate, and the like as a criterion, and is not limited to the use of the transmission success rate.
  • the monitoring module can continuously monitor the transmission success rate of the packet, and when the transmission success rate is reduced to After a certain value, the MDL value is re-determined to ensure that the packet is sent with reduced packet loss.
  • the maximum packet length that can be sent is negotiated before the packet is transmitted, so that when the data link is too long, the packet needs to be fragmented, and the fragmentation may be performed according to the maximum packet length after negotiation. Reduce the number of packets after fragmentation, reduce the probability of packet loss after fragmentation, avoid frequent fragmentation of packets when sending packets, reduce the probability of packet loss after fragmentation, and improve network stability and performance.
  • the embodiment of the present invention further provides a negotiation fragmentation device of another LMP.
  • the schematic diagram of the structure is as shown in FIG. 5, and mainly includes a configuration message receiving module 501, a second determining module 502, and a second sending module 503.
  • the configuration message receiving module 501 is configured to receive the configuration message sent by the first node, where the configuration message has a first packet negotiation length value
  • the second determining module 502 is configured to determine whether the first packet negotiation length value is in the first
  • the second sending module 503 is configured to send a configuration pass message to the first node if the first packet negotiation length value is within the second preset range.
  • the negotiating fragmentation apparatus in this embodiment may be installed in a device used by the second node.
  • the configuration message receiving module 501 is configured to first determine whether it can support the negotiation fragmentation mechanism after receiving the Config message carrying the first packet negotiation length value sent by the first node. When the negotiation fragmentation device does not support the negotiation fragmentation, the configuration message receiving module 501 can ignore the object of the first packet negotiation length value carried in the Config message, and only process other objects in the Config message until the second sending module. 503 replies to the ConfigAck message that does not carry the second packet negotiation length value to the first node. At this time, the first node performs fragmentation and packetization processing on the predetermined packet according to the first packet negotiation length value.
  • the second determination module 502 first determines whether the first packet negotiation length value is within the second preset range that can be received, in the first packet. In the case that the negotiation length value is within the second preset range, the second sending module 503 is configured to send a ConfigAck message to the first node, where the second message negotiation length value may be included. It should be understood that the second packet negotiation length value should be the smaller one of the first packet negotiation length value and the second packet optimal length negotiated length value, for example, the first packet negotiation length value.
  • the optimal message negotiation length value of the second node is M2, the second preset range is [X2, Y2], and if X2 ⁇ M1 ⁇ Y2, the second message negotiation length value is min ⁇ M1, M2 ⁇ .
  • the second sending module 503 is configured to send a ConfigNack message to the first node, where the ConfigNack message includes a third packet negotiation length value. It should be understood that if M1 ⁇ X2, the third message negotiation length value is X2, and if M1>Y2, the third message negotiation length value is Y2.
  • the first node After receiving the third packet negotiation length value ConfigNack message, the first node determines whether the third packet negotiation length value is within the first preset range, and determines, according to the determination result, that the third packet negotiation length value is required. Re-send the Config message or perform an alarm.
  • the negotiation fragmentation apparatus negotiates the length of the first packet negotiation length with the preset range of the first packet, and when the condition is met, the packet received by the first node is packaged according to the negotiated packet length value.
  • the scheduled message reduces the number of fragments of the first node at the time of transmission, and also reduces the number of reassembly of the second node at the time of receiving, thereby avoiding frequent fragmentation of the message when it is transmitted, and reducing the fragmentation.
  • the probability of packet loss increases the stability and performance of the network.
  • a fifth embodiment of the present invention provides a device that supports a negotiation fragmentation apparatus, and can perform operations such as activation of a control channel and transmission of a Data-Link as a node in the LMP, and supports a negotiation fragmentation mechanism. .
  • the device will be described below in conjunction with FIG. 6.
  • the device provided by the embodiment of the present invention mainly includes: a configuration unit 601 and a message codec unit 602 (corresponding to the configuration message sending module 401, the packaging unit 4022, and the first sending module 403 in the foregoing embodiment of the present invention.
  • the second receiving module and the partial functions of the configuration message receiving module 501 and the second sending module 503 of the foregoing embodiment of the present invention the monitoring unit 603 (corresponding to some functions of the monitoring module of the foregoing embodiment of the present invention), and the policy unit 604 ( It is equivalent to the first function of the first determining unit 4021, the first determining module, and the monitoring module of the foregoing embodiment of the present invention, and the partial functions of the second determining module 502 and the second sending module 503 of the foregoing embodiment of the present invention.
  • the configuration unit 601 is mainly configured to perform the configuration of the MDL value when the packet is fragmented, and the configuration includes the user setting an optimal MDL value in advance, and is also configured to perform an alarm (corresponding to the alarm in the foregoing embodiment of the present invention).
  • the module codec unit 602 is configured to receive and send an lmp message (including all messages sent in the LMP protocol, such as a Config message, a ConfigAck message, a ConfigNack message, a LinkSummary message, a LinksummaryAck message, and a LinksummaryNack message), and decode from the lmp message.
  • the parameters of the related object are sent out by the policy unit 604, and the coded and packetized message is sent.
  • the monitoring unit 603 is configured to monitor the sending and receiving of the message, calculate the success rate of the packet sending, and the packet loss rate.
  • the policy unit 604 performs the adjustment of the MDL value; the policy unit 604 is configured to perform the negotiation according to the relevant parameters decoded by the message codec unit 602, determine the appropriate MDL value, and dynamically adjust the MDL value according to the monitoring result of the monitoring unit 603. To ensure that the current MDL value can reduce the number of fragments of the packet and reduce the packet loss rate of the packet.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which when executed by the processor, implement the link management protocol applied to the first node as described above Negotiate the fragmentation method.
  • the embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which when executed by a processor, implement the link management protocol applied to the second node as described above. Negotiate the fragmentation method.
  • a set of phrases is added, for example, "It is understood by those skilled in the art that all or some of the steps, systems, and functional modules/units in the methods disclosed above may be implemented as software, firmware, hardware, and a suitable combination thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical units; for example, one physical component may have multiple functions, or one function or The steps may be performed cooperatively by a number of physical components.
  • Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as ASIC.
  • Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media), as is known to those of ordinary skill in the art.
  • computer storage medium includes storage for information (such as computer readable reference) Volatile and non-volatile, removable and non-removable media implemented in any method or technology, data structure, program module or other data.
  • Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory Or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic box, magnetic tape, magnetic disk storage or other magnetic storage device, or any other that can be used to store desired information and can be accessed by a computer
  • communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information. Delivery medium.

Landscapes

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

Abstract

A method for the negotiation fragmentation of a link management protocol, comprising: a first node sending a configuration message to a second node, the configuration message carrying a first packet negotiation length value (S201); when the first node receives a configuration pass message that is sent by the second node, the first node packaging a pre-determined packet according to the first packet negotiation length value, and sending the packaged pre-determined packet to the second node (S202).

Description

链路管理协议的协商分片方法与装置Negotiation fragmentation method and device for link management protocol 技术领域Technical field
本申请涉及数据网络通讯领域,特别是涉及一种链路管理协议(LMP,Link Management Protocol)的协商分片方法与装置。The present invention relates to the field of data network communication, and in particular to a negotiation fragmentation method and apparatus for a Link Management Protocol (LMP).
背景技术Background technique
在当前通用多协议标记交互(GMPLS,Generalized multi-protocol label switching)协议族中,LMP用来管理节点之间的链路以及IP控制通道(IPCC,IP Control Channel)。LMP的功能包括控制通道管理、链路属性关联、链路连通性验证和故障管理。其中前两项用于管理流量工程(TE,Traffic Engineering),是链路必备的核心功能;后两项是可选的扩展功能,用于应对控制通道与数据通道分离的情况。In the current generalized multi-protocol label switching (GMPLS) protocol family, the LMP is used to manage links between nodes and IP Control Channels (IPCCs). LMP features include control channel management, link attribute association, link connectivity verification, and fault management. The first two are used to manage traffic engineering (TE, Traffic Engineering), which is the core function of the link. The latter two are optional extension functions for dealing with the separation of control channels and data channels.
LMP协议中的消息都是用户数据报协议(UDP,User Datagram Protocol)消息,当LMP报文过大(超过链路层所能承受的最大传输单元长度(MTU,Maximum Transmission Unit))时,发送方通过UDP发送时会把LMP报文在IP层进行分片(Fragmentation),把报文分成若干片,使每一片都小于MTU值,而接收方IP层则需要进行LMP报文的重组。但由于UDP的特性(即面向无连接的,消息传输不可靠),当某一片报文在传送中丢失时,接收方便无法重组报文,导致丢弃整个LMP数据报。The message in the LMP protocol is a User Datagram Protocol (UDP) message. When the LMP packet is too large (more than the maximum transmission unit length (MTU) that the link layer can bear), the message is sent. When the UDP is sent, the LMP packet is fragmented at the IP layer, and the packet is divided into several slices, so that each slice is smaller than the MTU value, and the receiver IP layer needs to reassemble the LMP packet. However, due to the characteristics of UDP (that is, for connectionless, the message transmission is unreliable), when a certain packet is lost in transmission, the reception is convenient to reassemble the packet, resulting in discarding the entire LMP datagram.
LMP协议的功能之一是链路属性关联,该功能是用来聚合多个数据链路(Data-Link)到一个TE链路(TE-Link)中以及同步TE-Link的每种特性,如图1所示,LMP节点A和LMP节点B之间存在一个TE-Link,在该TE-Link中,包含3个Data-Link。TE-Link中传输的报文可以包括链路摘要消息(LinkSummary)、链路摘要通过回应消息(LinkSummaryAck)、链路摘要未通过回应消息(LinkSummaryNack)共三种消息,其中LinkSummary消息和LinksummaryNack消息中可以携带大量的Data-Link信息,因此这两种消息的长度是未知的,当设备上数据链路很多时,LinkSummary消息和 LinksummaryNack消息长度过大,可能会超过链路层的MTU值,因此LinkSummary消息和LinksummaryNack消息在IP传输过程中会被频繁的进行分片,加大了分片后的报文丢失的机率,严重时会导致传输通道的堵塞,影响网络的稳定和性能。One of the functions of the LMP protocol is link attribute association, which is used to aggregate multiple data links (Data-Link) into one TE link (TE-Link) and to synchronize each feature of TE-Link, such as As shown in FIG. 1, there is one TE-Link between the LMP node A and the LMP node B, and the TE-Link includes three Data-Links. The packets transmitted in the TE-Link may include a link summary message (LinkSummary), a link summary response message (LinkSummaryAck), and a link summary failure response message (LinkSummaryNack), among which three types of messages are included in the LinkSummary message and the LinksummaryNack message. A large amount of Data-Link information can be carried. Therefore, the length of the two types of messages is unknown. When there are many data links on the device, the length of the LinkSummary message and the LinksummaryNack message is too large, which may exceed the MTU value of the link layer. Therefore, LinkSummary The message and the LinksummaryNack message are frequently fragmented during the IP transmission process, which increases the probability of packet loss after fragmentation. In severe cases, the transmission channel is blocked, which affects network stability and performance.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种链路管理协议的协商分片方法与装置,能够减少报文分片后的数量,降低分片后的报文丢失的机率,提高网络的稳定性和性能。The embodiments of the present invention provide a method and a device for negotiating fragmentation of a link management protocol, which can reduce the number of packets after fragmentation, reduce the probability of packet loss after fragmentation, and improve network stability and performance.
一方面,本发明实施例提供的一种链路管理协议的协商分片方法,包括:第一节点向第二节点发送配置消息(Config),其中,所述配置消息携带有第一报文协商长度值;在所述第一节点接收到所述第二节点发送的配置通过消息(ConfigAck)的情况下,所述第一节点根据所述第一报文协商长度值对预定报文进行打包,并将打包后的所述预定报文发送至所述第二节点。In one aspect, a method for negotiating a link management protocol according to an embodiment of the present invention includes: a first node sending a configuration message (Config) to a second node, where the configuration message carries a first message negotiation. a length value; when the first node receives the configuration pass message (ConfigAck) sent by the second node, the first node packages the predetermined packet according to the first packet negotiation length value, And transmitting the packaged predetermined message to the second node.
另一方面,本发明实施例还提供一种链路管理协议的协商分片方法,包括:第二节点接收第一节点发送的配置消息,其中,所述配置消息携带第一报文协商长度值;所述第二节点判断所述第一报文协商长度值是否在第二预设范围内;在所述第一报文协商长度值在第二预设范围内的情况下,向所述第一节点发送配置通过消息。On the other hand, the embodiment of the present invention further provides a negotiation fragmentation method of a link management protocol, including: receiving, by a second node, a configuration message sent by a first node, where the configuration message carries a first packet negotiation length value The second node determines whether the first packet negotiation length value is within a second preset range; and in a case where the first packet negotiation length value is within a second preset range, to the first A node sends a configuration through message.
另一方面,本发明实施例还提供一种链路管理协议的协商分片装置,包括:配置消息发送模块,设置为向第二节点发送配置消息,其中,所述配置消息携带有第一报文协商长度值;第一接收模块,设置为在接收到所述第二节点发送的配置通过消息的情况下,根据所述第一报文协商长度值对预定报文进行打包;第一发送模块,设置为将打包后的所述预定报文发送至所述第二节点。On the other hand, the embodiment of the present invention further provides a negotiation fragmentation device of a link management protocol, which includes: a configuration message sending module, configured to send a configuration message to a second node, where the configuration message carries a first report And the first receiving module is configured to: when receiving the configuration passing message sent by the second node, packetizing the predetermined packet according to the first packet negotiation length value; the first sending module And configured to send the packaged predetermined message to the second node.
另一方面,本发明实施例还提供一种链路管理协议的协商分片装置,包 括:配置消息接收模块,设置为接收第一节点发送的配置消息,其中,所述配置消息带有第一报文协商长度值;第二判断模块,设置为判断所述第一报文协商长度值是否在第二预设范围内;第二发送模块,设置为在所述第一报文协商长度值在第二预设范围内的情况下,向所述第一节点发送配置通过消息。In another aspect, the embodiment of the present invention further provides a negotiation fragmentation device of a link management protocol, including: a configuration message receiving module, configured to receive a configuration message sent by the first node, where the configuration message has a first a packet negotiation length value; the second judging module is configured to determine whether the first packet negotiation length value is within a second preset range; and the second sending module is configured to negotiate a length value in the first packet In the case of the second preset range, a configuration pass message is sent to the first node.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是LMP协议的TE链路和Data-Link示意图;1 is a schematic diagram of a TE link and a Data-Link of an LMP protocol;
图2是本发明实施例中LMP的协商分片方法流程图;2 is a flowchart of a method for negotiating fragmentation of an LMP according to an embodiment of the present invention;
图3是本发明实施例中另一LMP的协商分片方法流程图;3 is a flowchart of a method for negotiating fragmentation of another LMP according to an embodiment of the present invention;
图4是本发明实施例中LMP的协商分片装置的结构示意图;4 is a schematic structural diagram of a LAMP negotiation fragmentation apparatus according to an embodiment of the present invention;
图5是本发明实施例中另一LMP的协商分片装置的结构示意图;FIG. 5 is a schematic structural diagram of another LMP negotiation fragmentation apparatus according to an embodiment of the present invention; FIG.
图6是本发明实施例中一种设备的结构示意图。FIG. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
详述Detailed
由于报文在发送时被频繁分片,加大了分片后的报文丢失的机率,影响网络的稳定和性能,本发明实施例提供了一种链路管理协议的协商分片方法与装置,以下结合附图对本发明实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。The method and device for negotiating fragmentation of a link management protocol are provided in this embodiment of the present invention, because the packet is frequently fragmented during transmission, and the probability of packet loss after fragmentation is increased, which affects the stability and performance of the network. The embodiments of the present invention are further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供了一种LMP的协商分片方法,其流程图如图2所示,包括步骤S201和S202:An embodiment of the present invention provides a method for negotiating fragmentation of an LMP, and a flowchart thereof is shown in FIG. 2, including steps S201 and S202:
S201,第一节点向第二节点发送配置消息,其中,配置消息携带有第一报文协商长度值;S201: The first node sends a configuration message to the second node, where the configuration message carries a first packet negotiation length value.
S202,在第一节点接收到第二节点发送的配置通过消息的情况下,第一节点根据第一报文协商长度值对预定报文进行打包,并将打包后的预定报文发送至第二节点。S202. If the first node receives the configuration pass message sent by the second node, the first node packages the predetermined message according to the first packet negotiation length value, and sends the packaged predetermined message to the second message. node.
在LMP协议中,为了发起两个节点之间的LMP连接,必须激活两个节点之间的控制通道,而控制通道的激活通过节点之间互传配置消息、配置通过消息以及配置未通过消息。为了实现协商分片,确定两个节点之间可以使用的最大报文长度,第一节点在向第二节点发送Config消息时,在现有的Config消息对象的基础上,增加第一报文协商长度值的对象,该对象代表的值为第一节点认可的最大报文长度(MDL,Max Data Len),且该对象的类Class=1,属性ctype=2,也可以称为MDL-Config对象。第一节点将携带有第一报文协商长度值的Config消息发送给第二节点,并等待第二节点回应的消息。In the LMP protocol, in order to initiate an LMP connection between two nodes, the control channel between the two nodes must be activated, and the activation of the control channel transfers the configuration message, the configuration through message, and the configuration failure message through the nodes. To implement the negotiation fragmentation, determine the maximum packet length that can be used between the two nodes. When the first node sends the Config message to the second node, the first packet is added to the existing Config message object. The object of the length value, the value represented by the object is the maximum message length (MDL, Max Data Len) approved by the first node, and the class of the object is Class=1, and the attribute ctype=2, which may also be called an MDL-Config object. . The first node sends a Config message carrying the first packet negotiation length value to the second node, and waits for the message that the second node responds.
第一节点在接收到第二节点回应的消息时,首先判断该消息是ConfigAck消息还是ConfigNack消息。当第一节点接收到的消息是ConfigAck消息时,证明第二节点已经通过了对分片参数的协商,此时,第一节点判断ConfigAck消息中是否包含有第二节点配置的第二报文协商长度值的对象,该对象的Class同样为1、ctype同样为2,若第二节点回应的ConfigAck消息中不包含第二报文协商长度值,则证明第二节点认可第一节点配置的第一报文长度值在第二节点可接收的范围内,第一节点在向第二节点发送报文时,按照第一报文协商长度值对将要发送的预定报文进行分片打包,并将打包后的预定报文发送至第二节点。应当了解的是,预定报文可以是控制通道激活后两个节点间发送的任意报文,作为一种实现方式,该预定报文为携带大量Data-Link信息的LinkSummary消息和LinksummaryNack消息。若第二节点回应的ConfigAck消息中包含第二报文协商长度值,则第一节点在向第二节点发送报文时,按照第二报文长度值对将要发送的预定报文进行分片打包,并将打包后的预定报文发送至第二节点。When receiving the message that the second node responds, the first node first determines whether the message is a ConfigAck message or a ConfigNack message. When the message received by the first node is a ConfigAck message, it is proved that the second node has passed the negotiation of the fragmentation parameter. At this time, the first node determines whether the ConfigAck message includes the second packet negotiation configured by the second node. The object of the length value, the class of the object is also 1. The ctype is also 2, and if the ConfigAck message sent by the second node does not include the second packet negotiation length value, it is proved that the second node recognizes the first configuration of the first node. The packet length value is in a range receivable by the second node, and when the first node sends a packet to the second node, the first packet is fragmented and packaged according to the first packet negotiation length value, and is packaged. The subsequent scheduled message is sent to the second node. It should be understood that the predetermined message may be any message sent between two nodes after the control channel is activated. As an implementation manner, the predetermined message is a LinkSummary message and a LinksummaryNack message carrying a large amount of Data-Link information. If the ConfigAck message sent by the second node includes the second packet negotiation length value, the first node, when sending the packet to the second node, performs fragmentation and packaging on the predetermined packet to be sent according to the second packet length value. And sending the packaged scheduled message to the second node.
当第一节点接收到的消息是ConfigNack消息时,则第二节点不支持协商分片,或第二节点不认可第一节点配置的第一报文协商长度值。当第一节点接收到的ConfigNack消息中包含ctype=0x40的Error_Code对象时,证明第二节点不支持协商分片,本次协商失败,控制通道无法激活。当第一节点接收到的ConfigNack消息中包含第三报文长度值的对象,该对象的Class=1、ctype=2,即第二节点不认可第一节点配置的第一报文协商长度值, ConfigNack消息中的第三报文协商长度值则表示第二节点认可的、其自身可以接收的一个最大报文长度,第一节点判断第三报文协商长度值是否在其可以接收的第一预设范围内。第三报文协商长度值在第一预设范围内的情况下,第一节点重新向第二节点发送配置消息以进行新一轮的协商分片,此时,配置消息携带有第三报文协商长度值,并等待第二节点关于第三报文协商长度值的协商结果;在第三报文协商长度值不在第一预设范围内的情况下,第一节点进行报警,应当了解的是,第一节点进行报警的方式可以为通过弹窗等方式向第一节点的用户进行提示,以通知用户主动修改第一预设范围,尽可能保证第一节点和第二节点间协商成功。When the message received by the first node is a ConfigNack message, the second node does not support the negotiation fragmentation, or the second node does not recognize the first packet negotiation length value configured by the first node. When the ConfigNack message received by the first node includes the Error_Code object of ctype=0x40, it is proved that the second node does not support the negotiation fragmentation, the negotiation fails, and the control channel cannot be activated. When the ConfigNack message received by the first node includes the object of the third packet length value, the object has Class=1 and ctype=2, that is, the second node does not recognize the first packet negotiation length value configured by the first node, The third packet negotiation length value in the ConfigNack message indicates the maximum packet length that the second node approves and can receive itself. The first node determines whether the third packet negotiation length value is the first pre-receivable value. Set within the scope. When the third packet negotiation length value is in the first preset range, the first node sends a configuration message to the second node to perform a new round of negotiation fragmentation. At this time, the configuration message carries the third packet. Negotiating the length value, and waiting for the negotiation result of the second packet negotiation length value of the second node; if the third packet negotiation length value is not within the first preset range, the first node performs an alarm, and it should be understood that The method for the first node to perform the alarm may be prompted to the user of the first node by using a pop-up window, etc., to notify the user to actively modify the first preset range, and ensure the negotiation between the first node and the second node as much as possible.
为了减少两个节点间的协商次数,在第一节点发送Config消息之前,需要针对当前网络状况和设备情况确定一个最佳的最大报文长度,即第一报文协商长度值。第一节点的用户可以根据用户经验首先设置一个MDL值(即预设测试最大报文长度),随后按照预设测试最大报文长度对测试报文进行打包,并将打包后的测试报文发送至第二节点;第一节点还需要对测试报文的发送成功率进行监测,并根据该发送成功率调整MDL值的大小,直到第一节点按照当前MDL值进行测试报文的打包时,测试报文的发送成功率大于预设发送成功率,此时,当前MDL值即为在当前网络状态和设备情况下的最佳的最大报文长度,将当前MDL值作为第一报文协商长度值,通过Config消息发送给第二节点,可以在减少分片次数,降低丢包率的情况下,尽可能的减少两个节点间的协商次数。应当了解的是,第一节点在进行最佳的MDL值确认时,还可以以测试报文的丢包率、发送失败率等作为判断标准,并不仅限于使用发送成功率。In order to reduce the number of negotiation between the two nodes, before the first node sends the Config message, it is necessary to determine an optimal maximum packet length, that is, the first packet negotiation length value, for the current network condition and device condition. The user of the first node can first set an MDL value according to the user experience (that is, the maximum test packet length), and then package the test packet according to the preset maximum packet length, and send the packaged test packet. To the second node; the first node also needs to monitor the sending success rate of the test packet, and adjust the size of the MDL value according to the sending success rate until the first node performs the testing of the packet according to the current MDL value, and then tests The current MDL value is the optimal maximum packet length in the current network state and device condition, and the current MDL value is used as the first packet negotiation length value. The Config message is sent to the second node, and the number of negotiation between the two nodes can be reduced as much as possible while reducing the number of times of fragmentation and reducing the rate of packet loss. It should be understood that, when performing the optimal MDL value confirmation, the first node may also use the packet loss rate of the test packet, the transmission failure rate, and the like as a criterion, and is not limited to using the transmission success rate.
本实施例通过在传输报文前通过协商可发送的最大报文长度,使得当数据链路过多引起报文过长需要进行分片时,可以根据协商后的最大报文长度进行分片,减少报文分片后的数量,降低分片后的报文丢失的机率提高了网络的稳定性和性能。In this embodiment, the maximum packet length that can be sent is negotiated before the packet is transmitted, so that when the data link is too long, the packet needs to be fragmented, and the fragmentation may be performed according to the maximum packet length after negotiation. The number of packets after fragmentation is reduced, and the probability of packet loss after fragmentation is reduced, which improves the stability and performance of the network.
本发明实施例还提供了另一LMP的协商分片方法,其流程图如图3所示,包括步骤S301和S303:The embodiment of the present invention further provides a negotiation fragmentation method of another LMP, and the flowchart thereof is as shown in FIG. 3, including steps S301 and S303:
S301,第二节点接收第一节点发送的配置消息,其中,配置消息携带第 一报文协商长度值;S301. The second node receives a configuration message sent by the first node, where the configuration message carries a first packet negotiation length value.
S302,第二节点判断第一报文协商长度值是否在第二预设范围内;S302. The second node determines whether the first packet negotiation length value is within a second preset range.
S303,第二节点在第一报文协商长度值在第二预设范围内的情况下,向第一节点发送配置通过消息。S303. The second node sends a configuration pass message to the first node if the first packet negotiation length value is within the second preset range.
第二节点在接收到第一节点发送的携带有第一报文协商长度值的Config消息后,首先判断自己是否可以支持协商分片机制,应当了解的是,节点是否支持协商分片应为该节点的用户主动进行设置,设置的原则可以根据节点所使用的设备、当前网络的状况等因素进行调节。当第二节点不支持协商分片时,第二节点可以忽略Config消息中携带的第一报文协商长度值的对象,只对Config消息中其他的对象进行处理,直至回复不携带第二报文协商长度值的ConfigAck消息给第一节点,此时第一节点将根据第一报文协商长度值对预定报文进行分片打包和发送处理。当第二节点不支持协商分片时,第二节点还可以回复包含ctype=0x40的Error_Code对象的ConfigNack消息,以向第一节点表明自己不支持协商分片。After receiving the Config message carrying the first packet negotiation length value sent by the first node, the second node first determines whether it can support the negotiation fragmentation mechanism. It should be understood that whether the node supports the negotiation fragmentation should be the The user of the node actively sets the setting, and the setting principle can be adjusted according to factors such as the device used by the node and the current network status. When the second node does not support the negotiation fragment, the second node may ignore the object of the first packet negotiation length value carried in the Config message, and only process other objects in the Config message until the reply does not carry the second packet. The ConfigAck message of the negotiated length value is sent to the first node. At this time, the first node performs fragmentation and packetization processing on the predetermined packet according to the first packet negotiation length value. When the second node does not support the negotiation fragmentation, the second node may also reply to the ConfigNack message containing the Error_Code object of ctype=0x40 to indicate to the first node that it does not support the negotiation fragmentation.
在本实施例中,当第二节点支持协商分片时,首先判断第一报文协商长度值是否在其可以接收的第二预设范围内,在第一报文协商长度值在第二预设范围内的情况下,第二节点向第一节点发送ConfigAck消息,其中,可以包括第二报文协商长度值。应当了解的是,该第二报文协商长度值应为第一报文协商长度值与第二节点预定的最佳报文长度值中较小的一个,例如,第一报文长度值为M1,第二节点预定的最佳报文长度值为M2,第二预设范围为[X2,Y2],若X2≤M1≤Y2,则第二报文长度值为min{M1,M2}。如果第一报文协商长度值不在第二预设范围内,则向第一节点发送ConfigNack消息,其中,ConfigNack消息中包括第三报文协商长度值。应当了解的是,若M1<X2,则第三报文协商长度值为X2,若M1>Y2,则第三报文协商长度值为Y2。第一节点接收到包括第三报文协商长度值ConfigNack消息后,判断第三报文协商长度值是否在其第一预设范围内,在根据判断结果确定是需要按照第三报文协商长度值重新进行Config消息的发送,还是进行报警。In this embodiment, when the second node supports the negotiation fragmentation, it is first determined whether the first packet negotiation length value is within the second preset range that can be received, and the first packet negotiation length value is in the second pre- In the case of the range, the second node sends a ConfigAck message to the first node, where the second message negotiation length value may be included. It should be understood that the second packet negotiation length value should be the smaller one of the first packet negotiation length value and the second packet optimal packet length value, for example, the first packet length value is M1. The second packet has a predetermined optimal message length value of M2, the second preset range is [X2, Y2], and if X2 ≤ M1 ≤ Y2, the second packet length value is min{M1, M2}. And if the first packet negotiation length value is not in the second preset range, sending a ConfigNack message to the first node, where the ConfigNack message includes a third packet negotiation length value. It should be understood that if M1 < X2, the third message negotiation length value is X2, and if M1>Y2, the third message negotiation length value is Y2. After receiving the third packet negotiation length value ConfigNack message, the first node determines whether the third packet negotiation length value is within the first preset range, and determines, according to the determination result, that the third packet negotiation length value is required. Re-send the Config message or perform an alarm.
本实施例通过第二节点根据第一报文协商长度值的与自身预设范围的判断协商,在符合条件时,接收第一节点发送的按照协商好的报文长度值分片 打包好的预定报文,既减少了第一节点在发送时的分片次数,也减少了第二节点在接收时的重组次数,避免了报文在发送时被频繁分片,减小了分片后的报文丢失的机率,提高了网络的稳定性和性能。In this embodiment, the second node negotiates the length of the first packet negotiation with the preset range of the first packet, and when the condition is met, receives the packet that is sent by the first node and is packaged according to the negotiated packet length value. The message not only reduces the number of times the first node is fragmented, but also reduces the number of times the second node reassembles at the time of receiving, avoiding frequent fragmentation of packets when transmitting, and reducing the number of fragments after fragmentation. The probability of loss of text improves the stability and performance of the network.
本发明实施例还提供了一种LMP的协商分片装置,其结构示意图如图4所示,主要包括:配置消息发送模块401、第一接收模块402以及第一发送模块403。其中,配置消息发送模块401设置为向第二节点发送配置消息,其中,配置消息携带有第一报文协商长度值;第一接收模块402设置为在接收到第二节点发送的配置通过消息的情况下,根据第一报文协商长度值对预定报文进行打包;第一发送模块403设置为将打包后的预定报文发送至第二节点。The embodiment of the present invention further provides a LMP negotiation fragmentation apparatus. The schematic diagram of the structure is as shown in FIG. 4, which mainly includes: a configuration message sending module 401, a first receiving module 402, and a first sending module 403. The configuration message sending module 401 is configured to send a configuration message to the second node, where the configuration message carries a first packet negotiation length value; the first receiving module 402 is configured to receive the configuration through the second node. In the case, the predetermined message is packaged according to the first packet negotiation length value; the first sending module 403 is configured to send the packaged predetermined message to the second node.
本实施例中提供的协商分片装置可以安装在第一节点使用的设备中。第一节点在需要向第二节点进行报文传输之前,首先必须激活两个节点之间的控制通道,为了实现协商分片,确定两个节点之间可以使用的最大报文长度,配置消息发送模块401设置为在向第二节点发送Config消息时,在现有的Config消息对象的基础上,增加第一报文协商长度值的对象,该对象代表的值为第一节点认可的MDL值,协商分片装置将携带有第一报文协商长度值的Config消息发送给第二节点,并等待第二节点回应的消息。The negotiating fragmentation apparatus provided in this embodiment may be installed in a device used by the first node. Before the first node needs to perform packet transmission to the second node, the control channel between the two nodes must be activated first. In order to implement the negotiation fragmentation, the maximum packet length that can be used between the two nodes is determined, and the configuration message is sent. The module 401 is configured to: when the Config message is sent to the second node, add an object of the first packet negotiation length value based on the existing Config message object, where the value represented by the object is an MDL value approved by the first node, The negotiation fragmentation device sends a Config message carrying the first message negotiation length value to the second node, and waits for the message that the second node responds.
第一接收模块402设置为在接收到第二节点回应的ConfigAck消息时,首先通过第一接收模块402中的第一判断单元4021来判断ConfigAck消息中是否包括第二报文协商长度值,并将判断结果通知打包单元4022,若ConfigAck消息中不包括第二报文协商长度值,打包单元4022设置为根据第一报文协商长度值对预定报文进行打包,并通过第一发送单元403将打包后的预定报文发送至第二节点;若ConfigAck消息中包括第二报文协商长度值,打包单元4022设置为根据第二报文协商长度值对预定报文进行打包,并通过第一发送单元403将打包后的预定报文发送至第二节点。The first receiving module 402 is configured to first determine, by using the first determining unit 4021 in the first receiving module 402, whether the second packet negotiation length value is included in the ConfigAck message when the ConfigAck message is received by the second node, and The determination result notification packetizing unit 4022, if the ConfigAck message does not include the second packet negotiation length value, the packaging unit 4022 is configured to package the predetermined packet according to the first packet negotiation length value, and package the packet by the first sending unit 403. The subsequent scheduled message is sent to the second node; if the ConfigAck message includes the second packet negotiation length value, the packing unit 4022 is configured to package the predetermined packet according to the second packet negotiation length value, and pass the first sending unit. 403 sends the packaged scheduled message to the second node.
本实施例的协商分片装置还包括设置为接收第二节点发送的ConfigNack消息的第二接收模块,证明第二节点不支持协商分片,或第二节点不认可第一报文长度值。当第二接收模块接收到的ConfigNack消息中包含ctype=0x40的Error_Code对象时,证明第二节点不支持协商分片,本次协商 失败,控制通道无法激活。当第二接收模块接收到的ConfigNack消息中包含第三报文协商长度值,即第二节点不认可第一报文协商长度值,ConfigNack消息中的第三报文协商长度值则表示第二节点认可的、其自身可以接收的一个最大报文长度,此时,本实施例的协商分片装置还包括第一判断模块,设置为判断第三报文协商长度值是否在其可以接收的第一预设范围内。第三报文协商长度值在第一预设范围内的情况下,配置消息发送模块401设置为重新向第二节点发送Config消息以进行新一轮的协商分片,此时,Config消息携带有第三报文协商长度值,并等待第二节点关于第三报文协商长度值的协商结果;本实施例的协商分片装置还包括报警模块,在第三报文协商长度值不在第一预设范围内的情况下,报警模块设置为进行报警,应当了解的是,报警模块设置的进行报警的方式可以为通过弹窗等方式向第一节点的用户进行提示,以通知用户主动修改第一预设范围,尽可能保证第一节点和第二节点间协商成功。The negotiation fragmentation apparatus of this embodiment further includes a second receiving module configured to receive the ConfigNack message sent by the second node, to prove that the second node does not support the negotiation fragmentation, or the second node does not recognize the first packet length value. When the ConfigNack message received by the second receiving module includes the Error_Code object of ctype=0x40, it is proved that the second node does not support the negotiation fragmentation, the negotiation fails, and the control channel cannot be activated. When the ConfigNack message received by the second receiving module includes the third packet negotiation length value, that is, the second node does not approve the first packet negotiation length value, the third packet negotiation length value in the ConfigNack message indicates the second node. The acknowledged fragmentation apparatus of the present embodiment further includes a first judging module configured to determine whether the third packet negotiation length value is the first one that can be received. Within the preset range. When the third packet negotiation length value is in the first preset range, the configuration message sending module 401 is configured to resend the Config message to the second node to perform a new round of negotiation fragmentation. At this time, the Config message carries The third packet negotiates the length value, and waits for the negotiation result of the second packet negotiation length value of the second node; the negotiation fragmentation device of this embodiment further includes an alarm module, where the third packet negotiation length value is not in the first pre- In the case of the range, the alarm module is set to perform the alarm. It should be understood that the alarm module can set the alarm mode to prompt the user of the first node through the pop-up window to notify the user to actively modify the first The preset range ensures that the negotiation between the first node and the second node is as successful as possible.
为了减少两个节点间的协商次数,在配置消息发送模块401发送Config消息之前,需要针对当前网络状况和设备情况确定一个最佳的最大报文长度,即第一报文协商长度值。第一节点的用户可以根据用户经验首先设置一个MDL值(即预设测试最大报文长度),随后通过本发明实施例设置的监测模块按照预设测试最大报文长度对测试报文进行打包,并将打包后的测试报文发送至第二节点;监测模块还设置为对测试报文的发送成功率进行监测,并根据该发送成功率调整MDL值的大小,直到第一节点按照当前MDL值进行测试报文的打包时,测试报文的发送成功率大于预设发送成功率,此时,当前MDL值即为在当前网络状态和设备情况下的最佳的最大报文长度,将当前MDL值作为第一报文协商长度值,通过配置消息发送模块401发送给第二节点,可以在减少分片次数,降低丢包率的情况下,尽可能的减少两个节点间的协商次数。应当了解的是,监测模块在进行最佳的MDL值确认时,还可以以测试报文的丢包率、发送失败率等作为判断标准,并不仅限于使用发送成功率。In order to reduce the number of negotiation between the two nodes, before the configuration message sending module 401 sends the Config message, it is necessary to determine an optimal maximum packet length, that is, the first packet negotiation length value, for the current network condition and the device situation. The user of the first node can first set an MDL value according to the user experience (that is, preset the maximum packet length), and then the monitoring module set by the embodiment of the present invention packages the test packet according to the preset maximum packet length. And sending the packaged test packet to the second node; the monitoring module is further configured to monitor the sending success rate of the test packet, and adjust the size of the MDL value according to the sending success rate until the first node follows the current MDL value. When the test packet is packaged, the success rate of the test packet is greater than the preset transmission success rate. At this time, the current MDL value is the optimal maximum packet length in the current network state and device condition, and the current MDL is The value is used as the first packet negotiation length value, and is sent to the second node by the configuration message sending module 401. The number of times of negotiation between the two nodes can be reduced as much as possible while reducing the number of times of fragmentation and reducing the packet loss rate. It should be understood that, when performing the optimal MDL value confirmation, the monitoring module can also use the packet loss rate of the test packet, the transmission failure rate, and the like as a criterion, and is not limited to the use of the transmission success rate.
应当了解的是,在两个节点进行报文传输时,可能由于网络中其他设备的影响,造成拥堵等情况,此时可以通过监测模块不断监测报文的发送成功 率,当发送成功率降低到一定值之后,重新确定MDL值,以保证在减少丢包的情况下发送报文。It should be understood that when the two nodes perform packet transmission, congestion may occur due to the influence of other devices on the network. At this time, the monitoring module can continuously monitor the transmission success rate of the packet, and when the transmission success rate is reduced to After a certain value, the MDL value is re-determined to ensure that the packet is sent with reduced packet loss.
本实施例通过在传输报文前通过协商可发送的最大报文长度,使得当数据链路过多引起报文过长需要进行分片时,可以根据协商后的最大报文长度进行分片,减少报文分片后的数量,降低分片后的报文丢失的机率,避免了报文在发送时被频繁分片,降低了分片后的报文丢失的机率,提高了网络的稳定和性能。In this embodiment, the maximum packet length that can be sent is negotiated before the packet is transmitted, so that when the data link is too long, the packet needs to be fragmented, and the fragmentation may be performed according to the maximum packet length after negotiation. Reduce the number of packets after fragmentation, reduce the probability of packet loss after fragmentation, avoid frequent fragmentation of packets when sending packets, reduce the probability of packet loss after fragmentation, and improve network stability and performance.
本发明实施例还提供了另一LMP的协商分片装置,其结构示意图如图5所示,主要包括配置消息接收模块501、第二判断模块502以及第二发送模块503。其中,配置消息接收模块501设置为接收第一节点发送的配置消息,其中,配置消息带有第一报文协商长度值;第二判断模块502设置为判断第一报文协商长度值是否在第二预设范围内;第二发送模块503设置为在第一报文协商长度值在第二预设范围内的情况下,向第一节点发送配置通过消息。The embodiment of the present invention further provides a negotiation fragmentation device of another LMP. The schematic diagram of the structure is as shown in FIG. 5, and mainly includes a configuration message receiving module 501, a second determining module 502, and a second sending module 503. The configuration message receiving module 501 is configured to receive the configuration message sent by the first node, where the configuration message has a first packet negotiation length value, and the second determining module 502 is configured to determine whether the first packet negotiation length value is in the first The second sending module 503 is configured to send a configuration pass message to the first node if the first packet negotiation length value is within the second preset range.
本实施例中的协商分片装置可以安装在第二节点使用的设备中。配置消息接收模块501设置为在接收到第一节点发送的携带有第一报文协商长度值的Config消息后,首先判断自己是否可以支持协商分片机制。当协商分片装置不支持协商分片时,配置消息接收模块501可以忽略Config消息中携带的第一报文协商长度值的对象,只对Config消息中其他的对象进行处理,直至第二发送模块503回复不携带第二报文协商长度值的ConfigAck消息给第一节点,此时第一节点将根据第一报文协商长度值对预定报文进行分片打包和发送处理。当协商分片装置不支持协商分片时,第二发送模块503还可以设置为回复包含ctype=0x40的Error_Code对象的ConfigNack消息,以向第一节点表明自己不支持协商分片。The negotiating fragmentation apparatus in this embodiment may be installed in a device used by the second node. The configuration message receiving module 501 is configured to first determine whether it can support the negotiation fragmentation mechanism after receiving the Config message carrying the first packet negotiation length value sent by the first node. When the negotiation fragmentation device does not support the negotiation fragmentation, the configuration message receiving module 501 can ignore the object of the first packet negotiation length value carried in the Config message, and only process other objects in the Config message until the second sending module. 503 replies to the ConfigAck message that does not carry the second packet negotiation length value to the first node. At this time, the first node performs fragmentation and packetization processing on the predetermined packet according to the first packet negotiation length value. When the negotiation fragmentation device does not support the negotiation fragmentation, the second sending module 503 may also be configured to reply to the ConfigNack message containing the Error_Code object of ctype=0x40 to indicate to the first node that it does not support the negotiation fragmentation.
在本实施例中,当协商分片装置支持协商分片时,首先通过第二判断模块502判断第一报文协商长度值是否在其可以接收的第二预设范围内,在第一报文协商长度值在第二预设范围内的情况下,第二发送模块503设置为向第一节点发送ConfigAck消息,其中,可以包括第二报文协商长度值。应当了解的是,该第二报文协商长度值应为第一报文协商长度值与第二节点预定的最佳报文协商长度值中较小的一个,例如,第一报文协商长度值为M1, 第二节点预定的最佳报文协商长度值为M2,第二预设范围为[X2,Y2],若X2≤M1≤Y2,则第二报文协商长度值为min{M1,M2}。如果第一报文协商长度值不在第二预设范围内,则第二发送模块503设置为向第一节点发送ConfigNack消息,其中,ConfigNack消息中包括第三报文协商长度值。应当了解的是,若M1<X2,则第三报文协商长度值为X2,若M1>Y2,则第三报文协商长度值为Y2。第一节点接收到包括第三报文协商长度值ConfigNack消息后,判断第三报文协商长度值是否在其第一预设范围内,在根据判断结果确定是需要按照第三报文协商长度值重新进行Config消息的发送,还是进行报警。In this embodiment, when the negotiation fragmentation device supports the negotiation fragmentation, the second determination module 502 first determines whether the first packet negotiation length value is within the second preset range that can be received, in the first packet. In the case that the negotiation length value is within the second preset range, the second sending module 503 is configured to send a ConfigAck message to the first node, where the second message negotiation length value may be included. It should be understood that the second packet negotiation length value should be the smaller one of the first packet negotiation length value and the second packet optimal length negotiated length value, for example, the first packet negotiation length value. For M1, the optimal message negotiation length value of the second node is M2, the second preset range is [X2, Y2], and if X2 ≤ M1 ≤ Y2, the second message negotiation length value is min{M1, M2}. If the first packet negotiation length value is not in the second preset range, the second sending module 503 is configured to send a ConfigNack message to the first node, where the ConfigNack message includes a third packet negotiation length value. It should be understood that if M1 < X2, the third message negotiation length value is X2, and if M1>Y2, the third message negotiation length value is Y2. After receiving the third packet negotiation length value ConfigNack message, the first node determines whether the third packet negotiation length value is within the first preset range, and determines, according to the determination result, that the third packet negotiation length value is required. Re-send the Config message or perform an alarm.
本实施例通过协商分片装置根据第一报文协商长度值的与自身预设范围的判断协商,在符合条件时,接收第一节点发送的按照协商好的报文协商长度值分片打包好的预定报文,即减少了第一节点在发送时的分片次数,也减少了第二节点在接收时的重组次数,避免了报文在发送时被频繁分片,降低了分片后的报文丢失的机率,提高了网络的稳定和性能。In this embodiment, the negotiation fragmentation apparatus negotiates the length of the first packet negotiation length with the preset range of the first packet, and when the condition is met, the packet received by the first node is packaged according to the negotiated packet length value. The scheduled message reduces the number of fragments of the first node at the time of transmission, and also reduces the number of reassembly of the second node at the time of receiving, thereby avoiding frequent fragmentation of the message when it is transmitted, and reducing the fragmentation. The probability of packet loss increases the stability and performance of the network.
本发明的第五实施例提供了一种设备,该设备支持协商分片装置,可以在LMP中作为一个节点,进行控制通道的激活、Data-Link的传输等操作,并且支持进行协商分片机制。下面结合图6对该设备进行说明。A fifth embodiment of the present invention provides a device that supports a negotiation fragmentation apparatus, and can perform operations such as activation of a control channel and transmission of a Data-Link as a node in the LMP, and supports a negotiation fragmentation mechanism. . The device will be described below in conjunction with FIG. 6.
如图6所示,本发明实施例提供的设备主要包括:配置单元601、消息编解码单元602(相当于本发明前述实施例中的配置消息发送模块401、打包单元4022、第一发送模块403、第二接收模块以及本发明前述实施例的配置消息接收模块501和第二发送模块503的部分功能)、监测单元603(相当于本发明前述实施例监测模块的部分功能)以及策略单元604(相当于本发明前述实施例第一判断单元4021、第一判断模块、监测模块的部分功能以及本发明前述实施例的第二判断模块502、第二发送模块503的部分功能)。其中,配置单元601主要设置为进行报文分片时的MDL值的配置,该配置包括用户预先设定一个最佳的MDL值,还设置为进行报警(相当于本发明前述实施例中的报警模块);消息编解码单元602设置为接收和发送lmp消息(包括Config消息、ConfigAck消息、ConfigNack消息、LinkSummary消息、LinksummaryAck消息和LinksummaryNack消息等LMP协议中发送的所 有报文),从lmp消息中解码出相关对象的参数,以供策略单元604进行协商分片,编码和打包报文进行发送;监测单元603设置为监测报文的收发情况,计算报文发送成功率、丢包率等信息,以供策略单元604进行MDL值的调整;策略单元604设置为根据消息编解码单元602解码出的相关参数进行协商分片,确定合适的MDL值,并根据监测单元603的监测结果动态调整MDL值,以保证当前MDL值可以减少报文的分片次数,降低报文的丢包率。As shown in FIG. 6 , the device provided by the embodiment of the present invention mainly includes: a configuration unit 601 and a message codec unit 602 (corresponding to the configuration message sending module 401, the packaging unit 4022, and the first sending module 403 in the foregoing embodiment of the present invention. And the second receiving module and the partial functions of the configuration message receiving module 501 and the second sending module 503 of the foregoing embodiment of the present invention, the monitoring unit 603 (corresponding to some functions of the monitoring module of the foregoing embodiment of the present invention), and the policy unit 604 ( It is equivalent to the first function of the first determining unit 4021, the first determining module, and the monitoring module of the foregoing embodiment of the present invention, and the partial functions of the second determining module 502 and the second sending module 503 of the foregoing embodiment of the present invention. The configuration unit 601 is mainly configured to perform the configuration of the MDL value when the packet is fragmented, and the configuration includes the user setting an optimal MDL value in advance, and is also configured to perform an alarm (corresponding to the alarm in the foregoing embodiment of the present invention). The module codec unit 602 is configured to receive and send an lmp message (including all messages sent in the LMP protocol, such as a Config message, a ConfigAck message, a ConfigNack message, a LinkSummary message, a LinksummaryAck message, and a LinksummaryNack message), and decode from the lmp message. The parameters of the related object are sent out by the policy unit 604, and the coded and packetized message is sent. The monitoring unit 603 is configured to monitor the sending and receiving of the message, calculate the success rate of the packet sending, and the packet loss rate. The policy unit 604 performs the adjustment of the MDL value; the policy unit 604 is configured to perform the negotiation according to the relevant parameters decoded by the message codec unit 602, determine the appropriate MDL value, and dynamically adjust the MDL value according to the monitoring result of the monitoring unit 603. To ensure that the current MDL value can reduce the number of fragments of the packet and reduce the packet loss rate of the packet.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如前所述的应用于第一节点的链路管理协议的协商分片方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which when executed by the processor, implement the link management protocol applied to the first node as described above Negotiate the fragmentation method.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如前所述的应用于第二节点的链路管理协议的协商分片方法。The embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which when executed by a processor, implement the link management protocol applied to the second node as described above. Negotiate the fragmentation method.
尽管为示例目的,已经公开了本发明的可选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although alternative embodiments of the invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are also possible, and thus the scope of the invention should not be limited to the embodiments described above.
在实施方式部分末尾加入套话,例如“本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理单元的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可 以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。At the end of the embodiment, a set of phrases is added, for example, "It is understood by those skilled in the art that all or some of the steps, systems, and functional modules/units in the methods disclosed above may be implemented as software, firmware, hardware, and a suitable combination thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical units; for example, one physical component may have multiple functions, or one function or The steps may be performed cooperatively by a number of physical components. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as ASIC. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media), as is known to those of ordinary skill in the art. The term computer storage medium includes storage for information (such as computer readable reference) Volatile and non-volatile, removable and non-removable media implemented in any method or technology, data structure, program module or other data. Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory Or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic box, magnetic tape, magnetic disk storage or other magnetic storage device, or any other that can be used to store desired information and can be accessed by a computer Further, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information. Delivery medium.

Claims (16)

  1. 一种链路管理协议的协商分片方法,包括:A negotiation fragmentation method for a link management protocol, including:
    第一节点向第二节点发送配置消息,其中,所述配置消息携带有第一报文协商长度值(S201);The first node sends a configuration message to the second node, where the configuration message carries a first packet negotiation length value (S201);
    在所述第一节点接收到所述第二节点发送的配置通过消息的情况下,所述第一节点根据所述第一报文协商长度值对预定报文进行打包,并将打包后的所述预定报文发送至所述第二节点(S202)。When the first node receives the configuration pass message sent by the second node, the first node packages the predetermined packet according to the first packet negotiation length value, and the packaged device is packaged. The predetermined message is sent to the second node (S202).
  2. 如权利要求1所述的协商分片方法,其中,在所述第一节点接收到所述第二节点发送的配置通过消息的情况下,所述第一节点根据所述第一报文协商长度值对预定报文进行打包,并将打包后的所述预定报文发送至所述第二节点(S202),包括:The negotiation fragmentation method according to claim 1, wherein, in the case that the first node receives the configuration pass message sent by the second node, the first node negotiates the length according to the first packet. The value is used to package the predetermined message, and the packaged predetermined message is sent to the second node (S202), including:
    在所述第一节点接收所述第二节点发送的配置通过消息的情况下,所述第一节点判断所述配置通过消息中是否包括第二报文协商长度值;When the first node receives the configuration pass message sent by the second node, the first node determines whether the second message negotiation length value is included in the configuration pass message;
    在所述配置通过消息中不包括第二报文协商长度值的情况下,所述第一节点根据所述第一报文协商长度值对预定报文进行打包,并将打包后的所述预定报文发送至所述第二节点;When the configuration pass message does not include the second packet negotiation length value, the first node packages the predetermined packet according to the first packet negotiation length value, and the packetized the predetermined request Sending a message to the second node;
    在所述配置通过消息中包括第二报文协商长度值的情况下,所述第一节点根据所述第二报文协商长度值对所述预定报文进行打包,并将打包后的所述预定报文发送至所述第二节点。When the configuration pass message includes the second packet negotiation length value, the first node packages the predetermined packet according to the second packet negotiation length value, and the packaged A predetermined message is sent to the second node.
  3. 如权利要求1所述的协商分片方法,还包括:The method for negotiating fragmentation according to claim 1, further comprising:
    第一节点向第二节点发送配置消息之后,所述第一节点接收所述第二节点发送的配置未通过消息;After the first node sends the configuration message to the second node, the first node receives the configuration fail message sent by the second node;
    在所述配置未通过消息中包括第三报文协商长度值的情况下,所述第一节点判断所述第三报文协商长度值是否在第一预设范围内;If the third packet negotiation length value is included in the configuration fail message, the first node determines whether the third packet negotiation length value is within a first preset range;
    在所述第三报文协商长度值在所述第一预设范围内的情况下,所述第一节点向所述第二节点发送配置消息,其中,所述配置消息携带有第三报文协商长度值;When the third packet negotiation length value is in the first preset range, the first node sends a configuration message to the second node, where the configuration message carries the third packet. Negotiate the length value;
    在所述第三报文协商长度值不在所述第一预设范围内的情况下,所述第一节点进行报警。The first node performs an alarm if the third message negotiation length value is not within the first preset range.
  4. 如权利要求1至3中任一项所述的协商分片方法,还包括:The method for negotiating fragmentation according to any one of claims 1 to 3, further comprising:
    第一节点向第二节点发送配置消息之前,所述第一节点按照预设测试最大报文长度对测试报文进行打包,并将打包后的测试报文发送至所述第二节点;Before the first node sends the configuration message to the second node, the first node packages the test packet according to the maximum test packet length, and sends the packaged test packet to the second node.
    所述第一节点监测所述测试报文的发送成功率;The first node monitors a sending success rate of the test packet;
    所述第一节点接收根据所述发送成功率调整的所述预设测试最大报文长度,直至所述测试报文的发送成功率大于预设发送成功率;Receiving, by the first node, the preset maximum packet length according to the transmission success rate, until the sending success rate of the test packet is greater than a preset sending success rate;
    所述第一节点将当前所述预设测试最大报文长度作为所述第一报文协商长度值。The first node uses the current maximum test packet length as the first packet negotiation length value.
  5. 一种链路管理协议的协商分片方法,包括:A negotiation fragmentation method for a link management protocol, including:
    第二节点接收第一节点发送的配置消息,其中,所述配置消息携带第一报文协商长度值(S301);The second node receives the configuration message sent by the first node, where the configuration message carries the first packet negotiation length value (S301);
    所述第二节点判断所述第一报文协商长度值是否在第二预设范围内(S302);Determining, by the second node, whether the first packet negotiation length value is within a second preset range (S302);
    在所述第一报文协商长度值在第二预设范围内的情况下,向所述第一节点发送配置通过消息(S303)。And if the first packet negotiation length value is within the second preset range, sending a configuration pass message to the first node (S303).
  6. 如权利要求5所述的协商分片方法,其中,所述配置通过消息中包括第二报文协商长度值。The negotiation fragmentation method according to claim 5, wherein the configuration pass message includes a second message negotiation length value.
  7. 如权利要求5或6所述的协商分片方法,还包括:The method for negotiating fragmentation according to claim 5 or 6, further comprising:
    所述第二节点判断所述第一报文协商长度值是否在第二预设范围内之后,在所述第一报文协商长度值不在所述第二预设范围内的情况下,向所述第一节点发送配置未通过消息,其中,所述配置未通过消息中包括第三报文协商长度值。After the second node determines whether the first packet negotiation length value is within the second preset range, if the first packet negotiation length value is not within the second preset range, the second node The first node sends a configuration fail message, where the configuration fail message includes a third packet negotiation length value.
  8. 一种链路管理协议的协商分片装置,包括:A negotiation fragmentation device for a link management protocol, comprising:
    配置消息发送模块(401),设置为向第二节点发送配置消息,其中,所述 配置消息携带有第一报文协商长度值;The configuration message sending module (401) is configured to send a configuration message to the second node, where the configuration message carries a first packet negotiation length value;
    第一接收模块(402),设置为在接收到所述第二节点发送的配置通过消息的情况下,根据所述第一报文协商长度值对预定报文进行打包;The first receiving module (402) is configured to: when receiving the configuration passing message sent by the second node, packing the predetermined packet according to the first packet negotiation length value;
    第一发送模块(403),设置为将打包后的所述预定报文发送至所述第二节点。The first sending module (403) is configured to send the packaged predetermined message to the second node.
  9. 如权利要求8所述的协商分片装置,其中,所述第一接收模块(402),包括:The negotiation fragmentation apparatus of claim 8, wherein the first receiving module (402) comprises:
    第一判断单元(4021),设置为在接收到所述第二节点发送的配置通过消息的情况下,判断所述配置通过消息中是否包括第二报文协商长度值;The first determining unit (4021) is configured to determine, when the configuration pass message sent by the second node is received, whether the second message negotiation length value is included in the configuration pass message;
    打包单元(4022),设置为在所述配置通过消息中不包括第二报文协商长度值的情况下,根据所述第一报文协商长度值对预定报文进行打包;在所述配置通过消息中包括第二报文协商长度值的情况下,根据所述第二报文协商长度值对所述预定报文进行打包。The packetizing unit (4022) is configured to: when the configuration packet passing message does not include the second packet negotiation length value, packetizing the predetermined packet according to the first packet negotiation length value; If the message includes the second packet negotiation length value, the predetermined packet is encapsulated according to the second packet negotiation length value.
  10. 如权利要求8所述的协商分片装置,所述装置还包括:The negotiated sharding apparatus of claim 8 further comprising:
    第二接收模块,设置为接收所述第二节点发送的配置未通过消息;a second receiving module, configured to receive a configuration fail message sent by the second node;
    第一判断模块,设置为在所述配置未通过消息中包括第三报文协商长度值的情况下,判断所述第三报文协商长度值是否在第一预设范围内;The first judging module is configured to determine whether the third packet negotiation length value is within the first preset range if the third packet negotiation length value is included in the configuration fail message;
    报警模块,设置为在所述第三报文协商长度值不在所述第一预设范围内的情况下,进行报警;The alarm module is configured to perform an alarm if the third message negotiation length value is not within the first preset range;
    所述配置消息发送模块(401),还设置为在所述第三报文协商长度值在所述第一预设范围内的情况下,向所述第二节点发送配置消息,其中,所述配置消息携带有第三报文协商长度值。The configuration message sending module (401) is further configured to send a configuration message to the second node if the third packet negotiation length value is within the first preset range, where The configuration message carries a third packet negotiation length value.
  11. 如权利要求8至10中任一项所述的协商分片装置,所述装置还包括:The device for negotiating a slice according to any one of claims 8 to 10, further comprising:
    监测模块,设置为按照预设测试最大报文长度对测试报文进行打包,并将打包后的测试报文发送至所述第二节点;The monitoring module is configured to package the test packet according to the maximum test packet length, and send the packaged test packet to the second node;
    监测所述测试报文的发送成功率;Monitoring a success rate of sending the test message;
    接收根据所述发送成功率调整的所述预设测试最大报文长度,直至所述 测试报文的发送成功率大于预设发送成功率;Receiving, according to the transmission success rate, the preset test maximum packet length, until the sending success rate of the test packet is greater than a preset transmission success rate;
    将当前所述预设测试最大报文长度作为所述第一报文协商长度值。The current preset maximum test packet length is used as the first packet negotiation length value.
  12. 一种链路管理协议的协商分片装置,包括:A negotiation fragmentation device for a link management protocol, comprising:
    配置消息接收模块(501),设置为接收第一节点发送的配置消息,其中,所述配置消息带有第一报文协商长度值;The configuration message receiving module (501) is configured to receive a configuration message sent by the first node, where the configuration message has a first packet negotiation length value;
    第二判断模块(502),设置为判断所述第一报文协商长度值是否在第二预设范围内;The second determining module (502) is configured to determine whether the first packet negotiation length value is within a second preset range;
    第二发送模块(503),设置为在所述第一报文协商长度值在第二预设范围内的情况下,向所述第一节点发送配置通过消息。The second sending module (503) is configured to send a configuration pass message to the first node if the first packet negotiation length value is within a second preset range.
  13. 如权利要求12所述的协商分片装置,其中,所述配置通过消息中包括第二报文协商长度值。The negotiation fragmentation apparatus of claim 12, wherein the configuration pass message includes a second message negotiation length value.
  14. 如权利要求12或13所述的协商分片装置,其中,A negotiation sharding apparatus according to claim 12 or 13, wherein
    第二发送模块(503),还设置为在所述第一报文协商长度值不在所述第二预设范围内的情况下,向所述第一节点发送配置未通过消息,其中,所述配置未通过消息中包括第三报文协商长度值。The second sending module (503) is further configured to send a configuration fail message to the first node if the first packet negotiation length value is not in the second preset range, where The third packet negotiation length value is included in the configuration fail message.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如权利要求1至4中任一项所述的链路管理协议的协商分片方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement a negotiated fragmentation method of the link management protocol of any one of claims 1 to 4.
  16. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如权利要求5至7中任一项所述的链路管理协议的协商分片方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement a negotiated fragmentation method of the link management protocol of any one of claims 5-7.
PCT/CN2018/111929 2017-10-27 2018-10-25 Method and device for negotiation fragmentation of link management protocol WO2019080904A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711022533.XA CN109729039B (en) 2017-10-27 2017-10-27 Negotiation fragmentation method and device of link management protocol
CN201711022533.X 2017-10-27

Publications (1)

Publication Number Publication Date
WO2019080904A1 true WO2019080904A1 (en) 2019-05-02

Family

ID=66246208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111929 WO2019080904A1 (en) 2017-10-27 2018-10-25 Method and device for negotiation fragmentation of link management protocol

Country Status (2)

Country Link
CN (1) CN109729039B (en)
WO (1) WO2019080904A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549521A (en) * 2003-05-07 2004-11-24 华为技术有限公司 Method for realizing universal multi-protocol mark exchange in network
CN1747432A (en) * 2004-09-09 2006-03-15 华为技术有限公司 Discovery of link type
CN101605278A (en) * 2009-03-04 2009-12-16 北京邮电大学 Adaptive signaling implementation method in the distributed control collaborative optical networks
CN101621453A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method and system for ensuring consistency of differentiated services-aware traffic engineering network configuration parameters
CN102209036A (en) * 2011-05-26 2011-10-05 华为技术有限公司 Generalized multi-protocol label switching (GMPLS) protocol message processing method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083662A (en) * 2007-06-27 2007-12-05 中兴通讯股份有限公司 Apparatus and method for improving PPPoA transmission performance
CN101400085A (en) * 2007-09-30 2009-04-01 华为技术有限公司 Method, device and system for negotiating maximum transmission unit value of path
CN101415019A (en) * 2007-10-15 2009-04-22 华为技术有限公司 Method and apparatus for managing information transmission availability negotiation
CN102130954A (en) * 2011-03-17 2011-07-20 华为技术有限公司 Method and device for transmitting data resources
KR102006873B1 (en) * 2011-07-01 2019-08-02 삼성전자주식회사 A method and a system for dynamically changing upper bound on data packet size in wireless communication networks
CN103647759B (en) * 2013-11-26 2017-11-24 华为技术有限公司 The machinery of consultation of MSS a kind of and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549521A (en) * 2003-05-07 2004-11-24 华为技术有限公司 Method for realizing universal multi-protocol mark exchange in network
CN1747432A (en) * 2004-09-09 2006-03-15 华为技术有限公司 Discovery of link type
CN101621453A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Method and system for ensuring consistency of differentiated services-aware traffic engineering network configuration parameters
CN101605278A (en) * 2009-03-04 2009-12-16 北京邮电大学 Adaptive signaling implementation method in the distributed control collaborative optical networks
CN102209036A (en) * 2011-05-26 2011-10-05 华为技术有限公司 Generalized multi-protocol label switching (GMPLS) protocol message processing method, device and system

Also Published As

Publication number Publication date
CN109729039A (en) 2019-05-07
CN109729039B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US7471681B2 (en) Determining network path transmission unit
KR101862175B1 (en) Congestion control bitrate algorithm
US8582436B2 (en) Resource allocation during silence period for a wireless network
US9647945B2 (en) Mechanisms to improve the transmission control protocol performance in wireless networks
US20130294283A1 (en) Facilitating device-to-device communication
EP3817466B1 (en) Data synchronization method and apparatus, device, system, and storage medium
US9955388B2 (en) Method and apparatus for transmitting radio link control status report in communication system based on multiple radio access technologies
US20170164231A1 (en) Data transmission method and base station
US10212622B2 (en) Systems and methods for push-to-talk voice communication over voice over internet protocol networks
US20210227422A1 (en) Wireless communications apparatus and methods
JP4829235B2 (en) System and method for increasing the range or bandwidth of a wireless digital communication network
JP2007028623A (en) System and method for adjusting ber/per for accelerating transmission speed of network stream base
WO2015180418A1 (en) Multicast transmission method, device and system
WO2017190467A1 (en) Adjustment method and apparatus for maximum transmission unit of terminal, and terminal device
US20180115634A1 (en) Protocol frame transmission method, apparatus, and system, and node device
US20100086021A1 (en) Information transmission apparatus, method of controlling the same, and storage medium
WO2019080904A1 (en) Method and device for negotiation fragmentation of link management protocol
US11470502B2 (en) Congestion notification by data packet from intermediate node
WO2013095517A1 (en) Implementing a protocol adaptation layer over an internet protocol
EP2051429B1 (en) Apparatus and method for setting timer and counter in mobile communication system
WO2017067224A1 (en) Packet processing method and apparatus
WO2022089747A1 (en) Congestion marking in mobile networks
US20130195262A1 (en) Techniques for Handling High Delay Fax Transmissions
WO2021164370A1 (en) Method and apparatus for switching length of bidirectional forwarding detection packet, and storage medium
WO2016161784A1 (en) Method and device for reducing message congestion in lmp

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18870253

Country of ref document: EP

Kind code of ref document: A1