WO2016123928A1 - 发送处理方法及装置 - Google Patents

发送处理方法及装置 Download PDF

Info

Publication number
WO2016123928A1
WO2016123928A1 PCT/CN2015/084948 CN2015084948W WO2016123928A1 WO 2016123928 A1 WO2016123928 A1 WO 2016123928A1 CN 2015084948 W CN2015084948 W CN 2015084948W WO 2016123928 A1 WO2016123928 A1 WO 2016123928A1
Authority
WO
WIPO (PCT)
Prior art keywords
bmp
message
group
sending
session
Prior art date
Application number
PCT/CN2015/084948
Other languages
English (en)
French (fr)
Inventor
周广腾
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016123928A1 publication Critical patent/WO2016123928A1/zh

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 communications, and in particular to a transmission processing method and apparatus.
  • BGP border-policy protocol
  • BGP BGP-based BGP protocol
  • BMP BGP-based BGP protocol
  • the embodiment of the invention provides a method and a device for processing a message, so as to solve at least the problem of waste of resources caused by multiple BMP sessions sending messages in the related art.
  • a method for transmitting a packet including: constructing a BMP packet for at least two BGP monitoring protocol BMP sessions; and transmitting the constructed BMP packet.
  • constructing one BMP message for at least two BMP sessions includes: grouping BMP sessions according to a predefined rule; and constructing the BMP message for the grouped BMP session.
  • the information sent by the BMP session includes at least one of the following: a route monitoring (Route Monitoring, hereinafter referred to as RM) message, and a peer status notification (Peer Up Notification/Peer Down Notification, PU/PD for short) message.
  • RM Route Monitoring
  • PU/PD peer status notification
  • SR Stats Reports
  • grouping the BMP session according to the predefined rule includes: dividing the BMP message into a waiting group according to the predefined rule. And an entire sending group and a change sending group, wherein the change sending group sends the newly received RM message, The overall sending group sends a BGP routing situation analysis RM message in addition to the new receiving, and the waiting group is used to cache the BMP session of the message to be sent.
  • the method further includes: if the BMP session in the entire sending group is empty, Waiting for the BMP session cached in the group to be transferred to the entire sending group for packet transmission.
  • grouping the BMP session according to the predefined rule includes: dividing the BMP session according to the predefined rule.
  • the sending waiting group is configured to cache a BMP session to be sent, and the PU/PD message is constructed as a BMP message in the sending group.
  • grouping the BMP session according to the predefined rule includes: dividing the BMP session into one sending group, where the BMP is The session constructs a BMP message for transmission.
  • constructing one BMP packet for at least two BMP sessions includes: constructing a BMP packet carrying a target transmission control protocol TCP for at least two BMP sessions, and constructing the BMP packet according to the target TCP Send it.
  • a transmission processing apparatus including: a construction module configured to construct a BMP message for at least two Border Gateway Protocol BGP Monitoring Protocol BMP sessions; and a sending module, configured to The constructed BMP message is sent.
  • the building module includes: a grouping sub-module configured to group the BMP sessions according to a predefined rule; the first building sub-module is configured to construct the BMP message for the grouped BMP session.
  • the information sent by the BMP session includes at least one of the following: a routing situation analysis RM message, a neighbor status notification PU/PD message, and a route statistics SR message.
  • the grouping sub-module includes: a first grouping unit, configured to divide the BMP session into a waiting group according to the predefined rule, in a case that the information sent by the BMP session is the RM message, An overall sending group and a change sending group, wherein the change sending group sends a newly received RM message, and the entire sending group sends a BGP routing condition analysis RM message except for the new receiving, where the waiting group is used for caching BMP session to be sent.
  • a first grouping unit configured to divide the BMP session into a waiting group according to the predefined rule, in a case that the information sent by the BMP session is the RM message
  • An overall sending group and a change sending group wherein the change sending group sends a newly received RM message, and the entire sending group sends a BGP routing condition analysis RM message except for the new receiving, where the waiting group is used for caching BMP session to be sent.
  • the apparatus further includes: a transfer unit, configured to transfer the BMP session cached in the waiting group to the entire sending group if a BMP session in the entire sending group is empty Send a message.
  • the grouping sub-module includes: a second grouping unit, configured to divide the BMP session according to the predefined rule, in a case that the information sent by the BMP session is a PU/PD message a waiting group and a sending group, wherein the sending waiting group is configured to cache a BMP session to be sent; the first constructing sending unit, in the sending waiting group, constructing a BMP packet for the PU/PD packet to send .
  • the packet sub-module includes: a second configuration sending unit, configured to divide the BMP session into one sending group, where the information sent by the BMP session is an SR message, for the BMP session Construct a BMP message for transmission.
  • the building module includes: a second building sub-module, configured to construct a BMP packet carrying the target TCP for the at least two BMP sessions, and send the BMP packet to be constructed according to the target TCP.
  • a BMP packet is constructed by using at least two border gateway protocol BGP monitoring protocol BMP sessions, and the BMP packet is configured to be sent, which solves the problem that multiple BMP sessions send packets in the related art.
  • the problem of wasted resources which in turn saves system resources.
  • FIG. 1 is a schematic diagram of a single message transmission according to the related art
  • FIG. 2 is a schematic diagram of multiple message transmissions according to the related art
  • FIG. 3 is a flowchart of a transmission processing method according to an embodiment of the present invention.
  • FIG. 4 is a block diagram of a transmission processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram 1 of a transmission processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram 2 of a transmission processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 7 is a block diagram 3 of a transmission processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 8 is a block diagram 4 of a transmission processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 9 is a schematic diagram of BMP message transmission according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a BMP message joining a waiting group according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a BMP message being added to an overall transmission group according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a BMP message being added to a change sending group according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a sending processing method according to an embodiment of the present invention. As shown in FIG. 3, the flow includes the following steps:
  • Step S302 constructing a BMP packet for at least two border gateway protocol BGP monitoring protocol BMP sessions;
  • Step S304 Send the constructed BMP message.
  • a BMP packet is constructed for at least two border gateway protocol BGP monitoring protocol BMP sessions, and the BMP packet is sent, which solves the problem of resource waste caused by multiple BMP sessions sending packets in the related art. , which in turn saves system resources.
  • the BMP session is grouped according to a predefined rule; and the BMP message is constructed for the grouped BMP session.
  • the information sent by the foregoing BMP session includes at least one of the following: a routing situation analysis RM message, a neighbor status notification PU/PD message, and a route statistics SR message.
  • grouping the BMP session according to the predefined rule includes: dividing the BMP message according to the predefined rule. Waiting group, overall sending group, and change sending group, wherein the change sending group sends the newly received RM report The entire sending group sends a BGP routing condition analysis RM message in addition to the new receiving, and the waiting group is used to cache the BMP session to be sent.
  • the BMP session After the BMP session is divided into a waiting group, an overall sending group, and a change sending group according to a predefined rule, if the BMP session in the entire sending group is empty, the BMP session cached in the waiting group is transferred. The message is sent to the entire transmission group.
  • grouping the BMP session according to the predefined rule includes: the BMP according to the predefined rule.
  • the session is divided into a sending waiting group and a sending group, wherein the sending waiting group is used to cache a BMP session to be sent; in the sending group, the PU/PD packet is constructed as a BMP message for transmission.
  • grouping the BMP session according to the predefined rule includes: dividing the BMP session into one sending group, The BMP session constructs a BMP message for transmission.
  • constructing one BMP message for at least two BMP sessions may further include: constructing a BMP message carrying a target transmission control protocol TCP for at least two BMP sessions, according to the target The TCP transmits the constructed BMP message.
  • the embodiment of the present invention further provides a transmission processing device, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a block diagram of a transmission processing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • the building module 42 is configured to construct a BMP message for the at least two border gateway protocol BGP monitoring protocol BMP sessions;
  • the sending module 44 is configured to send the constructed BMP message.
  • FIG. 5 is a block diagram of a transmission processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 5, the building module 42 includes:
  • the grouping sub-module 52 is configured to group the BMP sessions according to a predefined rule; the first building sub-module is configured to construct the BMP message for the grouped BMP session.
  • the information sent by the foregoing BMP session includes at least one of the following: a routing situation analysis RM message, a neighbor status notification PU/PD message, and a route statistics SR message.
  • the packet sub-module 52 includes:
  • the first grouping unit 62 is configured to divide the BMP message into a waiting group, an overall sending group, and a change sending group according to the predefined rule, in a case that the information sent by the BMP session is the RM message, where The change sending group sends the newly received RM message, and the whole sending group sends a BGP routing condition analysis RM message except the new one, and the waiting group is used to cache the BMP session to be sent.
  • FIG. 7 is a block diagram 3 of a transmission processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 7, the apparatus further includes:
  • the transferring unit 72 is configured to transfer the BMP session buffered in the waiting group to the entire sending group to send a message if the BMP session in the entire sending group is empty.
  • FIG. 8 is a block diagram 4 of a transmission processing apparatus according to a preferred embodiment of the present invention.
  • the construction module 42 includes:
  • the second grouping unit 82 is configured to, when the information sent by the BMP session is a PU/PD message, divide the BMP session into a sending waiting group and a sending group according to the predefined rule, where the sending waiting group Used to cache a BMP session to be sent;
  • the first construction sending unit 84 constructs the PU/PD message as a BMP message in the sending waiting group for transmission.
  • the foregoing packet sub-module 52 may include: a second configuration sending unit, configured to, when the information sent by the BMP session is an SR message, divide the BMP session into one sending group, and construct a BMP report for the BMP session. The text is sent.
  • a second configuration sending unit configured to, when the information sent by the BMP session is an SR message, divide the BMP session into one sending group, and construct a BMP report for the BMP session. The text is sent.
  • the above-mentioned construction module 42 may include: a second construction sub-module, configured to construct a BMP packet carrying the target TCP for the at least two BMP sessions, and send the constructed BMP packet according to the target TCP.
  • the BMP session is differently grouped according to the packet of the different types of packets; the packet is configured for each packet; FIG. 9 is a schematic diagram of the BMP packet transmission according to the embodiment of the present invention, as shown in FIG. BMP sessions, as long as they are in a group, only need to construct a message, send the constructed message Send to TCP.
  • Each BMP message is divided into two parts: one part is its own defined part, which tells TCP which TCP connections need to be sent to these TCPs; the other part is the message part defined by the BMP protocol. Effectively save system resources and effectively reduce system resource consumption.
  • the method of sending the packet includes:
  • All the BMP sessions that have been UP are dynamically divided into three groups. We are named as the waiting group, the overall sending group, and the change sending group.
  • the change sending group is the packet that only sends the newly received BGP routing information. Sends all the packets except the packets of the newly received BGP routing information.
  • the waiting group is composed of all BMP sessions that have not yet sent packets and whose status is UP. After the entire sending group processes the packet to be sent, it migrates to the change sending group and sends the message of the newly received BGP routing information.
  • the BMP session of the waiting group does not send BMP packets temporarily. When empty, all BMP sessions of the waiting group are migrated to the overall sending group; when all BMP sessions are changed from DOWN to UP, they are temporarily in the waiting group.
  • FIG. 10 is a schematic diagram of a BMP message being added to a waiting group according to an embodiment of the present invention. As shown in FIG. 10, when a BMP session is UP, it is temporarily cached in a waiting group.
  • FIG. 11 is a schematic diagram of adding a BMP message to the entire sending group according to an embodiment of the present invention. As shown in FIG. 11, all the BMP sessions of the waiting group are migrated to the entire sending group, and scanning is performed. A routing table is used to construct an RM packet, and the constructed packet is sent to the TCP.
  • FIG. 12 is a schematic diagram of a BMP message being added to a change sending group according to an embodiment of the present invention. As shown in FIG. 12, after the routing table scan is completed, the entire sending group BMP session is migrated to the change sending group. The BMP session of the sending group is changed, the newly received route is scanned continuously, and the RM message is constructed, and is sent to the TCP in the manner shown in FIG.
  • the BMP session that needs to send the BGP neighbor UP/DOWN status packet is divided into two groups: the waiting group and the complete sending group; all BMP sessions.
  • the UP is in the standby group, if the BGP neighbor DOWN->UP state changes, the PU packets of the BMP are constructed and sent to the TCP; then the BMP session is migrated to the sending completion group. If the BGP neighbor's UP->DOWN state changes again, you only need to construct the corresponding PD packet to send to the BMP session of the sending completion group.
  • the BMP packet is an SR packet
  • all the UP BMP sessions are combined into one sending group, and the BMP session in the sending group is configured to construct a packet, and the constructed SR packet is uniformly sent to the TCP.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing embodiments of the present invention are applied to the field of communications, and solve the problem of resource waste caused by multiple BMP sessions sending packets in the related art, thereby saving system resources.

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

本发明公开了一种发送处理方法及装置,其中,该方法包括:为至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;对构建的该BMP报文进行发送,通过本发明,解决了相关技术中多个BMP会话发送报文方式导致资源浪费的问题。

Description

发送处理方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种发送处理方法及装置。
背景技术
边界网关协议(Border Gateway Protocol,简称为BGP)监控协议(BGP Monitoring Protocol,简称为BMP)draft-ietf-grow-bmp-07定义的BMP协议向对端会话发送BGP相关信息报文的方法。但对于设备支持多个BMP会话,如何能够快速发送BGP相关信息的报文,相关技术中并没有说明。
在现有技术中,如图1、图2所示,可看出,对于多个BMP会话,需要每一个会话构建一次报文并单独向传输控制协议(Transfer Control Protocol,简称为TCP)发送。
针对相关技术中多个BMP会话发送报文方式导致资源浪费的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种发送处理方法及装置,以至少解决相关技术中多个BMP会话发送报文方式导致资源浪费的问题。
根据本发明实施例的一个方面,提供了一种发送处理方法,其中,包括:为至少两个BGP监控协议BMP会话构建一个BMP报文;对构建的所述BMP报文进行发送。
进一步地,为至少两个BMP会话构建一个所述BMP报文包括:根据预先定义的规则将BMP会话进行分组;对分组后的BMP会话构建所述BMP报文。
进一步地,所述BMP会话发送的信息包括以下至少之一:路由情况分析(Route Monitoring,简称为RM)报文,邻居状态通知(Peer Up Notification/Peer Down Notification,简称为PU/PD)报文,路由统计(Stats Reports,简称为SR)报文。
进一步地,在所述BMP会话发送的信息为RM报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:根据所述预先定义的规则将BMP报文分为等待组、整体发送组以及变化发送组,其中,所述变化发送组发送新接收的RM报文, 所述整体发送组发送除新接收之外的BGP路由情况分析RM报文,所述等待组用于缓存待发送报文的BMP会话。
进一步地,在根据预先定义的规则将所述BMP会话分为等待组、整体发送组以及变化发送组之后,还包括:在所述整体发送组中的BMP会话为空的情况下,将所述等待组中缓存的所述BMP会话转移到所述整体发送组中进行报文发送。
进一步地,在所述BMP会话发送的信息为PU/PD报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:根据所述预先定义的规则将所述BMP会话分为发送等待组和发送组,其中,所述发送等待组用于缓存待发送的BMP会话;在所述发送组中将所述PU/PD报文构建为一个BMP报文进行发送。
进一步地,在所述BMP会话发送的信息为SR报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:将所述BMP会话分为一个发送组,为所述BMP会话构建一个BMP报文进行发送。
进一步地,为至少两个BMP会话构建一个所述BMP报文包括:为至少两个BMP会话构建携带有目标传输控制协议TCP的BMP报文,根据所述目标TCP将构建的所述BMP报文进行发送。
根据本发明实施例的另一方面,还提供了一种发送处理装置,包括:构建模块,设置为将对至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;发送模块,设置为对构建的所述BMP报文进行发送。
进一步地,所述构建模块包括:分组子模块,设置为根据预先定义的规则将BMP会话进行分组;第一构建子模块,设置为对分组后的BMP会话构建所述BMP报文。
进一步地,所述BMP会话发送的信息包括以下至少之一:路由情况分析RM报文,邻居状态通知PU/PD报文,路由统计SR报文。
进一步地,所述分组子模块包括:第一分组单元,设置为在所述BMP会话发送的信息为所述RM报文的情况下,根据所述预先定义的规则将BMP会话分为等待组、整体发送组以及变化发送组,其中,所述变化发送组发送新接收的RM报文,所述整体发送组发送除新接收之外的BGP路由情况分析RM报文,所述等待组用于缓存待发送的BMP会话。
进一步地,所述装置还包括:转移单元,设置为在所述整体发送组中的BMP会话为空的情况下,将所述等待组中缓存的所述BMP会话转移到所述整体发送组中进行报文发送。
进一步地,所述分组子模块包括:第二分组单元,设置为在所述BMP会话发送的信息为PU/PD报文的情况下,根据所述预先定义的规则将所述BMP会话分为发送等待组和发送组,其中,所述发送等待组用于缓存待发送的BMP会话;第一构建发送单元,在所述发送等待组中为所述PU/PD报文构建一个BMP报文进行发送。
进一步地,所述分组子模块包括:第二构建发送单元,设置为在所述BMP会话发送的信息为SR报文的情况下,将所述BMP会话分为一个发送组,为所述BMP会话构建一个BMP报文进行发送。
进一步地,所述构建模块包括:第二构建子模块,设置为为至少两个BMP会话构建携带有目标TCP的BMP报文,根据所述目标TCP将构建的所述BMP报文进行发送。
通过本发明实施例,采用将至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;对构建的所述BMP报文进行发送,解决了相关技术中多个BMP会话发送报文方式导致资源浪费的问题,进而节省了系统资源。
附图说明
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据相关技术中的单个消息发送的示意图;
图2是根据相关技术中的多个消息发送的示意图;
图3是根据本发明实施例的发送处理方法的流程图;
图4是根据本发明实施例的发送处理装置的框图;
图5是根据本发明优选实施例的发送处理装置的框图一;
图6是根据本发明优选实施例的发送处理装置的框图二;
图7是根据本发明优选实施例的发送处理装置的框图三;
图8根据本发明优选实施例的发送处理装置的框图四;
图9是根据本发明实施例的BMP报文发送的示意图;
图10是根据本发明实施例的BMP报文加入等待组的示意图;
图11是根据本发明实施例的BMP报文加入整体发送组的示意图;
图12是根据本发明实施例的BMP报文加入变化发送组的示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种发送处理方法,图3是根据本发明实施例的发送处理方法的流程图,如图3所示,该流程包括如下步骤:
步骤S302,为至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;
步骤S304,对构建的该BMP报文进行发送。
通过上述步骤,为至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文,对构建的该BMP报文进行发送,解决了相关技术中多个BMP会话发送报文方式导致资源浪费的问题,进而节省了系统资源。
为至少两个BMP会话构建一个该BMP报文的方式有多种,在一个可选的实施例中,根据预先定义的规则将BMP会话进行分组;对分组后的BMP会话构建该BMP报文。
上述的BMP会话发送的信息包括以下至少之一:路由情况分析RM报文,邻居状态通知PU/PD报文,路由统计SR报文。
在一个可选的实施例中,在该BMP会话发送的信息为RM报文的情况下,根据该预先定义的规则将该BMP会话进行分组包括:根据该预先定义的规则将BMP报文分为等待组、整体发送组以及变化发送组,其中,该变化发送组发送新接收的RM报 文,该整体发送组发送除新接收之外的BGP路由情况分析RM报文,该等待组用于缓存待发送的BMP会话。
在根据预先定义的规则将该BMP会话分为等待组、整体发送组以及变化发送组之后,在该整体发送组中的BMP会话为空的情况下,将该等待组中缓存的该BMP会话转移到该整体发送组中进行报文发送。
在另一个可选的实施例中,在该BMP会话发送的信息为PU/PD报文的情况下,根据该预先定义的规则将该BMP会话进行分组包括:根据该预先定义的规则将该BMP会话分为发送等待组和发送组,其中,该发送等待组用于缓存待发送的BMP会话;在该发送组中将该PU/PD报文构建为一个BMP报文进行发送。
在另一个可选的实施例中,在该BMP会话发送的信息为SR报文的情况下,根据该预先定义的规则将该BMP会话进行分组包括:将该BMP会话分为一个发送组,将该BMP会话构建一个BMP报文进行发送。
在另一个可选的实施例中,为至少两个BMP会话构建一个所述BMP报文还可以包括:为至少两个BMP会话构建携带有目标传输控制协议TCP的BMP报文,根据所述目标TCP将构建的所述BMP报文进行发送。
本发明实施例还提供了一种发送处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的发送处理装置的框图,如图4所示,包括:
构建模块42,设置为为对至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;
发送模块44,设置为对构建的该BMP报文进行发送。
图5是根据本发明优选实施例的发送处理装置的框图一,如图5所示,构建模块42包括:
分组子模块52,设置为根据预先定义的规则将BMP会话进行分组;第一构建子模块,设置为对分组后的BMP会话构建该BMP报文。
需要说明的是,上述的BMP会话发送的信息包括以下至少之一:路由情况分析RM报文,邻居状态通知PU/PD报文,路由统计SR报文。
图6是根据本发明优选实施例的发送处理装置的框图二,如图6所示,分组子模块52包括:
第一分组单元62,设置为在该BMP会话发送的信息为该RM报文的情况下,根据该预先定义的规则将BMP报文分为等待组、整体发送组以及变化发送组,其中,该变化发送组发送新接收的RM报文,该整体发送组发送除新接收之外的BGP路由情况分析RM报文,该等待组用于缓存待发送的BMP会话。
图7是根据本发明优选实施例的发送处理装置的框图三,如图7所示,该装置还包括:
转移单元72,设置为在该整体发送组中的BMP会话为空的情况下,将该等待组中缓存的该BMP会话转移到该整体发送组中进行报文发送。
图8根据本发明优选实施例的发送处理装置的框图四,如图8所示,该构建模块42包括:
第二分组单元82,设置为在该BMP会话发送的信息为PU/PD报文的情况下,根据该预先定义的规则将该BMP会话分为发送等待组和发送组,其中,该发送等待组用于缓存待发送的BMP会话;
第一构建发送单元84,在该发送等待组中将该PU/PD报文构建为一个BMP报文进行发送。
上述的分组子模块52可以包括:第二构建发送单元,设置为在该BMP会话发送的信息为SR报文的情况下,将该BMP会话分为一个发送组,为该BMP会话构建一个BMP报文进行发送。
上述的构建模块42可以包括:第二构建子模块,设置为为至少两个BMP会话构建携带有目标TCP的BMP报文,根据该目标TCP将构建的该BMP报文进行发送。
下面结合可选实施例对本发明实施例进行进一步说明。
根据发送不同类型的报文,对BMP会话进行不同的分组;对每一个分组,构建一次报文;图9是根据本发明实施例的BMP报文发送的示意图,如图9所示,对于多个BMP会话,只要它们处在一个组中,只需要构建一次报文,将构建后的报文发 送给TCP。构建的每一个BMP报文,分为两部分:一部分是自己定义的部分,告诉TCP需要将这些报文发给哪些TCP连接;另一部分就是BMP协议定义的报文部分。有效的节省了系统资源,有效的降低系统资源的消耗。
BMP报文为RM报文的情况下,发送的方式包括:
将所有已经UP的BMP会话,动态的分为三组,我们分别命名为等待组、整体发送组、变化发送组;其中变化发送组是只发送新接收的BGP路由信息的报文;整体发送组发送“除了新接收的BGP路由信息的报文外的所有报文”;等待组是所有暂时还没有发送报文且状态为UP的BMP会话组成。整体发送组处理完要发送的报文后,整体迁移到变化发送组,发送“新接收的BGP路由信息的报文”;等待组的BMP会话暂时不发送BMP报文,等到整体发送组会话为空时,所有等待组的BMP会话整体迁移到整体发送组;所有BMP会话由DOWN变UP时,都暂时处于等待组。
图10是根据本发明实施例的BMP报文加入等待组的示意图,如图10所示,BMP会话为UP的时候都暂时缓存于等待组。
如果整体发送组没有BMP会话的情况下,图11是根据本发明实施例的BMP报文加入整体发送组的示意图,如图11所示,将等待组的BMP会话全部迁移到整体发送组,扫描路由表,构建RM报文,将构建的报文发送给TCP。
图12是根据本发明实施例的BMP报文加入变化发送组的示意图,如图12所示,完成路由表扫描后,将整体发送组BMP会话整体迁移到变化发送组。变化发送组的BMP会话,不停扫描新接收的路由,构建RM报文,按照图9所示的方式发送给TCP。
BMP报文为BGP邻居状态UP/DOWN信息的分析报文PU/PD的情况下,将需要发送BGP邻居UP/DOWN状态报文的BMP会话分成两组:等待组、完成发送组;所有BMP会话UP后,暂时处于等待组;如果有BGP邻居DOWN->UP状态变化,构建BMP的PU报文,发送给TCP;然后该组BMP会话整体迁移到发送完成组。如果BGP邻居UP->DOWN状态再次变化,只需要构建相应的PD报文向发送完成组的BMP会话发送。
当BMP报文为SR报文的情况下,将所有UP的BMP会话组成一个发送组,将发送组中的BMP会话构建一次报文,将构建的SR报文统一发送给TCP。
综上所述,对N个BMP会话,如果它们分在一组,对每需要发送一个报文,现有技术需要构建N次报文,发送N次;而本实施例只需要构建一次报文,发送一次,所以使用本专利,可以极大的节省系统资源。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
上述的本发明实施例,应用于通信领域,解决了相关技术中多个BMP会话发送报文方式导致资源浪费的问题,进而节省了系统资源。

Claims (16)

  1. 一种发送处理方法,包括:
    为至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;
    对构建的所述BMP报文进行发送。
  2. 根据权利要求1所述的方法,其中,为至少两个BMP会话构建一个所述BMP报文包括:
    根据预先定义的规则将BMP会话进行分组;
    对分组后的BMP会话构建所述BMP报文。
  3. 根据权利要求2所述的方法,其中,所述BMP会话发送的信息包括以下至少之一:路由情况分析RM报文,邻居状态通知PU/PD报文,路由统计SR报文。
  4. 根据权利要求3所述的方法,其中,在所述BMP会话发送的信息为RM报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:
    根据所述预先定义的规则将BMP报文分为等待组、整体发送组以及变化发送组,其中,所述变化发送组发送新接收的RM报文,所述整体发送组发送除新接收之外的BGP路由情况分析RM报文,所述等待组用于缓存待发送的BMP会话。
  5. 根据权利要求4所述的方法,其中,在根据预先定义的规则将所述BMP会话分为等待组、整体发送组以及变化发送组之后,还包括:
    在所述整体发送组中的BMP会话为空的情况下,将所述等待组中缓存的所述BMP会话转移到所述整体发送组中进行报文发送。
  6. 根据权利要求3所述的方法,其中,在所述BMP会话发送的信息为PU/PD报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:
    根据所述预先定义的规则将所述BMP会话分为发送等待组和发送组,其中,所述发送等待组用于缓存待发送的BMP会话;
    在所述发送组中将所述PU/PD报文构建一个BMP报文进行发送。
  7. 根据权利要求3所述的方法,其中,在所述BMP会话发送的信息为SR报文的情况下,根据所述预先定义的规则将所述BMP会话进行分组包括:
    将所述BMP会话分为一个发送组,为所述BMP会话构建一个BMP报文进行发送。
  8. 根据权利要求1至7中任一项所述的方法,其中,为至少两个BMP会话构建一个所述BMP报文包括:
    为至少两个BMP会话构建携带有目标传输控制协议TCP的BMP报文,根据所述目标TCP将构建的所述BMP报文进行发送。
  9. 一种发送处理装置,包括:
    构建模块,设置为为对至少两个边界网关协议BGP监控协议BMP会话构建一个BMP报文;
    发送模块,设置为对构建的所述BMP报文进行发送。
  10. 根据权利要求9所述的装置,其中,所述构建模块包括:
    分组子模块,设置为根据预先定义的规则将BMP会话进行分组;
    第一构建子模块,设置为对分组后的BMP会话构建为所述BMP报文。
  11. 根据权利要求10所述的装置,其中,所述BMP会话发送的信息包括以下至少之一:路由情况分析RM报文,邻居状态通知PU/PD报文,路由统计SR报文。
  12. 根据权利要求11所述的装置,其中,所述分组子模块包括:
    第一分组单元,设置为在所述BMP会话发送的信息为所述RM报文的情况下,根据所述预先定义的规则将BMP报文分为等待组、整体发送组以及变化发送组,其中,所述变化发送组发送新接收的RM报文,所述整体发送组发送除新接收之外的BGP路由情况分析RM报文,所述等待组用于缓存待发送的BMP会话。
  13. 根据权利要求12所述的装置,其中,所述装置还包括:
    转移单元,设置为在所述整体发送组中的BMP会话为空的情况下,将所述等待组中缓存的所述BMP会话转移到所述整体发送组中进行报文发送。
  14. 根据权利要求11所述的装置,其中,所述分组子模块包括:
    第二分组单元,设置为在所述BMP会话发送的信息为PU/PD报文的情况下,根据所述预先定义的规则将所述BMP会话分为发送等待组和发送组,其中,所述发送等待组用于缓存待发送报文的BMP会话;
    第一构建发送单元,在所述发送等待组中将所述PU/PD报文构建一个BMP报文进行发送。
  15. 根据权利要求11所述的装置,其中,所述分组子模块包括:
    第二构建发送单元,设置为在所述BMP会话发送的信息为SR报文的情况下,将所述BMP会话分为一个发送组,将所述BMP会话构建一个BMP报文进行发送。
  16. 根据权利要求9至15中任一项所述的装置,其中,所述构建模块包括:
    第二构建子模块,设置为为至少两个BMP会话构建携带有目标传输控制协议TCP的BMP报文,根据所述目标TCP将构建的所述BMP报文进行发送。
PCT/CN2015/084948 2015-02-06 2015-07-23 发送处理方法及装置 WO2016123928A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510064649.4A CN105991567B (zh) 2015-02-06 2015-02-06 发送处理方法及装置
CN201510064649.4 2015-02-06

Publications (1)

Publication Number Publication Date
WO2016123928A1 true WO2016123928A1 (zh) 2016-08-11

Family

ID=56563386

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084948 WO2016123928A1 (zh) 2015-02-06 2015-07-23 发送处理方法及装置

Country Status (2)

Country Link
CN (1) CN105991567B (zh)
WO (1) WO2016123928A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11916783B2 (en) 2020-04-29 2024-02-27 Huawei Technologies Co., Ltd. Information reporting method, information processing method, apparatus, and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833301A (zh) * 2018-05-30 2018-11-16 杭州迪普科技股份有限公司 一种报文处理方法和装置
CN110971522B (zh) 2018-09-30 2021-09-17 华为技术有限公司 一种确定路由泄露的方法、设备和系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610208A (zh) * 2008-06-19 2009-12-23 华为技术有限公司 Bgp邻居间通告的方法、系统及路由器
CN103188153A (zh) * 2013-04-15 2013-07-03 杭州华三通信技术有限公司 一种广播网链路上bfd报文发送方法和设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002301156B2 (en) * 2001-09-28 2004-09-02 Samsung Electronics Co., Ltd. Apparatus And Method For Accessing Private Wireless Internet Packet Data Communication System
US7269543B2 (en) * 2002-02-25 2007-09-11 Zoran Corporation System and method for providing network connectivity to a common embedded interface by stimulating the embedded interface
CN101534246B (zh) * 2009-03-04 2011-12-21 华为技术有限公司 Vrf的迁移方法、迁移装置及其系统
US20140075335A1 (en) * 2012-09-11 2014-03-13 Lucid Software, Inc. Image editing and sharing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610208A (zh) * 2008-06-19 2009-12-23 华为技术有限公司 Bgp邻居间通告的方法、系统及路由器
CN103188153A (zh) * 2013-04-15 2013-07-03 杭州华三通信技术有限公司 一种广播网链路上bfd报文发送方法和设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SCUDDER, J. ET AL.: "BGP Monitoring Protocol", DRAFT-IETF-GROW-BMP-07, 22 October 2012 (2012-10-22) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11916783B2 (en) 2020-04-29 2024-02-27 Huawei Technologies Co., Ltd. Information reporting method, information processing method, apparatus, and device

Also Published As

Publication number Publication date
CN105991567B (zh) 2020-07-31
CN105991567A (zh) 2016-10-05

Similar Documents

Publication Publication Date Title
JP6571090B2 (ja) 協働するネットワークコントローラに基づくマルチドメイン送信元ルート選択転送
CN102790798B (zh) 一种内容分发网络中透明代理实现方法、设备及系统
US11405969B2 (en) Enabling interface aggregation of mobile broadband network interfaces
CN105743670B (zh) 访问控制方法、系统和接入点
CN103312807B (zh) 数据传输方法、装置及系统
US20140269683A1 (en) Synchronization of OpenFlow controller devices via OpenFlow switching devices
CA2963241C (en) Providing functional requirements for a network connection from a local library
US11665263B2 (en) Network multi-path proxy selection to route data packets
US20200004607A1 (en) Event ingestion management
CN108471629A (zh) 传输网络中业务服务质量的控制方法、设备及系统
EP3522496B1 (en) Method and system for processing node registration notification
WO2016123928A1 (zh) 发送处理方法及装置
CN108063653B (zh) 一种时延控制方法、装置及系统
WO2017036163A1 (zh) 一种报文发送方法及系统
Zhu et al. A congestion-aware and robust multicast protocol in SDN-based data center networks
EP4017089A2 (en) Network policy application based on session state
Liang et al. Low-latency service function chain migration in edge-core networks based on open Jackson networks
CN110601989A (zh) 一种网络流量均衡方法及装置
WO2016180284A1 (zh) 服务节点分配方法、装置、cdn管理服务器及系统
CN104159267A (zh) 一种融合多重网络的云架构移动自组网系统及其实现方法
CN101047546A (zh) 一种自动交换光网络的路由信息维护方法
CN110351319B (zh) 一种请求消息传输方法、装置及传输设备
CN109067861A (zh) 基于物联网的通信方法、装置、设备和介质
JP4630298B2 (ja) 機能分散型通信装置、構成要素結合制御方法、およびプログラム
CN108259527B (zh) 基于代理的业务处理方法、装置及网元设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15880879

Country of ref document: EP

Kind code of ref document: A1