CN101594320B - SNMP protocol-based method for message interaction - Google Patents

SNMP protocol-based method for message interaction Download PDF

Info

Publication number
CN101594320B
CN101594320B CN 200910142236 CN200910142236A CN101594320B CN 101594320 B CN101594320 B CN 101594320B CN 200910142236 CN200910142236 CN 200910142236 CN 200910142236 A CN200910142236 A CN 200910142236A CN 101594320 B CN101594320 B CN 101594320B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
snmp
timeout
management station
value
agent
Prior art date
Application number
CN 200910142236
Other languages
Chinese (zh)
Other versions
CN101594320A (en )
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
Grant date

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/12Network-specific arrangements or communication protocols supporting networked applications adapted for proprietary or special purpose networking environments, e.g. medical networks, sensor networks, networks in a car or remote metering networks
    • H04L67/125Network-specific arrangements or communication protocols supporting networked applications adapted for proprietary or special purpose networking environments, e.g. medical networks, sensor networks, networks in a car or remote metering networks involving the control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/02Arrangements for maintenance or administration or management of packet switching networks involving integration or standardization
    • H04L41/0213Arrangements for maintenance or administration or management of packet switching networks involving integration or standardization using standardized network management protocols, e.g. simple network management protocol [SNMP] or common management interface protocol [CMIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/28Timer mechanisms used in protocols

Abstract

The invention discloses an SNMP protocol-based method for message interaction, which comprises the following steps that: when receiving an SNMP message sent by an SNMP management station, an SNMP proxy estimates the suggested timeout value of the message and feeds the suggested timeout value back to the SNMP management station; and the SNMP management station waits for the response of the SNMP message according to the estimated timeout. Compared with the prior art, the method of the invention overcomes the drawbacks of manual timeout setting, effectively reduces timeout phenomena and improvesthe efficiency of network management using the SNMP protocol due to the adopted technical measure to dynamic determine the timeout of the management station by the interaction between the SNMP management station and the SNMP proxy.

Description

一种基于SNMP协议的消息交互方法 Message interaction method based on the SNMP protocol

技术领域 FIELD

[0001]本发明涉及以 SNMP (Simple Network Management Protocol,简单网络管理协议) 为管理接口的网络管理领域,尤其涉及一种基于SNMP协议的消息交互方法。 [0001] The present invention relates to a SNMP (Simple Network Management Protocol, Simple Network Management Protocol) is a network management interface management, and particularly to a method of message exchange based on the SNMP protocol.

背景技术 Background technique

[0002] SNMP 是由IETF (The Internet Engineering Task Force,互联网工程任务组)定义的基于SGMP (Simple Gateway Monitor Protocol,简单网关监视协议)的一套网络管理协议。 [0002] SNMP by IETF (The Internet Engineering Task Force, Internet Engineering Task Force) is defined based SGMP (Simple Gateway Monitor Protocol, a simple gateway monitoring protocol) is a network management protocol. 利用SNMP,一个管理工作站可以远程管理所有支持该协议的网络设备,包括监视网络状态、修改网络设备配置、接收网络事件告警等。 Using SNMP, a management station can remotely manage all network devices that support the protocol, including the monitoring network status, modify the network device configuration, the network receives the event alarms. SNMP采用了Client/Server (客户端/服务器端)模型的特殊形式——代理/管理站模型,对网络的管理与维护是通过SNMP管理站与SNMP代理间的交互工作完成的。 SNMP uses a special form of Client / Server (client / server) model - agent / management station model, network management and maintenance work is through the interaction between the SNMP management station and the SNMP agent completed. 每个SNMP代理负责回答SNMP管理站关于MIB (Management Information Base,管理信息库)定义信息的各种查询和设置,并以陷阱(trap)方式主动向SNMP管理站上报告警等事件。 Each SNMP management station SNMP agent is responsible for answering various queries and set MIB (Management Information Base, MIB) definition of information about, and to trap (trap) events such as the way an alarm is reported to SNMP management station.

[0003] 现有SNMP管理站与SNMP代理间的消息交互过程如图1所示。 [0003] message interaction process between the SNMP agent and the SNMP management station prior shown in Fig. SNMP管理站向SNMP 代理发送Get、Get-Next、Get-Bulk、Set请求(即SNMP报文),SNMP代理收到请求后进行内部处理,并向SNMP管理站返回响应。 SNMP agent to the SNMP management station sends a Get, Get-Next, Get-Bulk, Set request (i.e., SNMP packets), the SNMP agent receives a request for internal processing, and returns a response to the SNMP management station. SNMP管理站在向SNMP代理发送请求时,会设置一定的超时时间来处理本次请求,以防止SNMP管理站在SNMP代理端发生异常无法返回响应时一直阻塞于接收响应的状态。 The SNMP management station sends a request to the SNMP agent, provided certain timeout will then handle the request, in order to prevent the SNMP management station SNMP Agent has occurred in blocking state in response to receiving the abnormality can not return a response. SNMP管理站在超时前等待SNMP代理返回响应,在超时后系统返回正常状态,同时界面输出超时结果。 SNMP management station wait before timing out SNMP agent returns a response, the system returns to the normal state after the timeout, the timeout interface output while the results. SNMP管理站超时时间一般为默认值,也可以手动设置。 Usually timeout SNMP management station to the default value, may be set manually.

[0004] 不同被管设备处理数据的时间不同,同一被管设备处理不同请求的时间也不同。 [0004] different times by different tube apparatus for processing data to be processed in the same time different requests the managed devices are also different. 尤其在电信网络设备中,由于数据量相对较多,处理查询和设置请求的时间较长,经常会超过SNMP管理站所设置的超时时间。 In particular, in a telecommunications network apparatus, since a relatively large amount of data, the processing time of the request query and set longer than the timeout period often set SNMP management station. 多次超时可能会引发一系列问题:1)SNMP管理站无法查询到所需数据或无法获知对被管设备的设置结果;2) SNMP管理站在超时后,管理员可能立即会再次进行查询或设置操作,而SNMP代理端还正在处理上一个消息,这样会加重SNMP 代理端的处理负担。 Several time-outs may cause a series of problems: 1) SNMP management station can not query the required data or settings can not be informed of the results of managed devices; 2) SNMP management station after a timeout, the administrator may immediately be queried again or setting operation, and the SNMP agent on the end of a message being processed further, this will increase the processing burden of the SNMP agent.

[0005] 要解决上述超时的问题,一种方法是在SNMP管理站手动调整超时时间。 [0005] To solve the above problems timeout, the timeout method is adjusted manually in the SNMP management station. 但在一般情况下,管理员不可能完全了解所有设备及其处理不同请求所需耗费的时间,因此由管理员来确定超时时间具有很大的局限性。 However, in general, the administrator can not fully understand all of the processing equipment and different requests required time-consuming, thus determined by the administrator timeout has great limitations. 若设置的超时时间过短,容易出现上述超时现象;若设置的超时时间过长,在SNMP代理处理请求过程中出现异常而导致无法返回响应时,会严重影响管理员操作的效率,浪费时间。 If the timeout is set too short, prone to the phenomenon of the above-mentioned time-out; if timeout set too long, unusual in SNMP agent processing of the request can not be caused when the response is returned, it would seriously affect the efficiency of the operation of an administrator, a waste of time.

发明内容 SUMMARY

[0006] 本发明要解决的技术问题是提供一种基于SNMP协议的消息交互方法,以克服现有SNMP超时管理不足的问题。 [0006] The present invention is to solve the technical problem of providing a method of message exchange based on the SNMP protocol, in order to overcome the disadvantages of the conventional SNMP timeout management.

[0007] 为解决上述问题,本发明提供了一种基于简单网络管理协议SNMP协议的消息交互方法,包括: [0007] In order to solve the above problems, the present invention provides a method of message exchange based on Simple Network Management Protocol SNMP protocol, comprising:

[0008] 在接收到SNMP管理站发来的SNMP报文时,SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站;所述SNMP管理站根据该估算出的超时时间等待所述SNMP 报文的响应。 [0008] Upon receiving the SNMP management station sent by SNMP packets, SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station; timeout illustrating the SNMP management station based on the estimated waiting for a response to the SNMP packet.

[0009] 进一步地,上述方法还可具有以下特征: [0009] Furthermore, the above method may have the following characteristics:

[0010] 所述SNMP代理中保存有超时时间门限值; [0010] agent is stored in the SNMP said timeout threshold;

[0011] 所述SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站是指: [0011] The SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station means:

[0012] 所述SNMP代理估算出所述SNMP报文的建议超时时间后,判断该建议超时时间值是否大于所述超时时间门限值;如果是,则将所述估算出的超时时间值反馈给所述SNMP管理站。 [0012] After the SNMP agent and SNMP packets to estimate the recommended timeout period, it is determined whether the proposal is greater than the timeout value of the timeout time threshold; if so, the estimated value of the feedback timeout to the SNMP management station.

[0013] 进一步地,上述方法还可具有以下特征: [0013] Furthermore, the above method may have the following characteristics:

[0014] 所述SNMP代理如判断出所述建议超时时间值小于所述超时时间门限值,则按照常规流程对接收到的所述SNMP报文进行处理。 [0014] The SNMP agent as recommended timeout period is determined that the value is less than the timeout threshold value, then the SNMP packet received according to a conventional process for processing.

[0015] 进一步地,上述方法还可具有以下特征: [0015] Furthermore, the above method may have the following characteristics:

[0016] 所述超时时间门限值由所述SNMP管理站对所述SNMP代理进行设置。 The [0016] time-out threshold is set by the SNMP agent to the SNMP management station.

[0017] 进一步地,上述方法还可具有以下特征: [0017] Furthermore, the above method may have the following characteristics:

[0018] 所述SNMP管理站对所述SNMP代理设置的超时门限值为所述SNMP管理站上预设的该SNMP报文的超时时间值。 [0018] The SNMP management station timeout threshold value set in the SNMP agent to the SNMP management station on a preset packet of the SNMP timeout value.

[0019] 进一步地,上述方法还可具有以下特征: [0019] Furthermore, the above method may have the following characteristics:

[0020] 所述SNMP代理上设有一使能标志位; [0020] The SNMP agent provided with an enable flag;

[0021] 所述SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站是指: [0021] The SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station means:

[0022] 所述SNMP代理在接收到所述SNMP报文时,先判断当前所述使能标志位的值是否表示使能状态,如果是,所述SNMP代理才会对所述接收到的SNMP报文的建议超时时间进行估算并进行后续反馈。 [0022] The SNMP agent upon receiving the SNMP packet, the first current is determined so that the value of the flag bit indicates whether the enabled state, if it is, only the SNMP agent to the SNMP received packet recommendations timeout estimates and subsequent feedback.

[0023] 进一步地,上述方法还可具有以下特征: [0023] Furthermore, the above method may have the following characteristics:

[0024] 所述使能标志位的值由所述SNMP管理站对所述SNMP代理进行设置。 [0024] so that the value of the flag bit is set by the SNMP agent to the SNMP management station.

[0025] 进一步地,上述方法还可具有以下特征: [0025] Furthermore, the above method may have the following characteristics:

[0026] 所述SNMP管理站根据该估算出的超时时间等待所述SNMP报文的响应是指: [0026] The SNMP SNMP management station waits for the response packet based on the timeout time of the estimated means:

[0027] 所述SNMP管理站将本地等待该SNMP报文响应的超时时间值设置为所述SNMP代理向其反馈的估算出的建议超时时间值,并在该估算出的超时时间范围内等待所述SNMP 报文的响应。 [0027] The SNMP management station local wait timeout value recommended that the SNMP response message timeout value to the SNMP agent to which an estimate of the feedback, and the waiting in the estimated range timeout in response to said SNMP packets.

[0028] 进一步地,上述方法还可具有以下特征: [0028] Furthermore, the above method may have the following characteristics:

[0029] 所述SNMP管理站在收到所述SNMP报文的响应后,将本地超时时间值重置为本地默认超时时间值。 After [0029] The SNMP management station receiving the SNMP response packet, the local time-out value is reset to the local default timeout value.

[0030] 进一步地,上述方法还可具有以下特征: [0030] Furthermore, the above method may have the following characteristics:

[0031] 所述SNMP代理估算出该报文的建议超时时间值是指:所述SNMP代理从数据库的处理时间表中读出该操作类型对应的处理时间,再乘以当前SNMP代理所管理的单板数量, 得到所述建议超时时间值。 [0031] The SNMP agent estimated the packet timeout value is recommended: the SNMP agent readout operation type corresponding to the processing time from the processing of the schedule database, and then multiply the current managed by the SNMP agent number of boards to obtain the recommended timeout value.

[0032] 采用本发明所述方法,与现有技术相比,由于采取了SNMP管理站和SNMP代理交互的方式动态确定管理站超时时间的技术措施,克服了手动设置超时时间的不足,有效地减少超时现象的出现,提高了使用SNMP协议进行网络管理的效率。 [0032] The method of the invention, compared to the prior art, thanks to the way the SNMP management station and the SNMP management station agent interact dynamically determined timeout technical measures to overcome the lack of a manual set timeout time, effectively reduce the occurrence of timeouts and improves the efficiency of using the SNMP protocol for network management.

附图说明 BRIEF DESCRIPTION

[0033] 图1为现有技术中SNMP管理站和SNMP代理之间的消息交互过程示意图; [0033] FIG. 1 is a message interaction process between the SNMP management station and the prior art schematic diagram of the SNMP agent;

[0034] 图2为本发明实施例中SNMP管理站和SNMP代理间的消息交互过程示意图; [0034] FIG. 2 is a schematic message interaction process between the SNMP agent and the SNMP management station in the embodiment of the present invention;

[0035] 图3为本发明实施例中SNMP管理站执行本发明的步骤流程图; [0035] Figure 3 embodiment of the present invention, the step of performing an SNMP management station flowchart of embodiment of the invention;

[0036] 图4是本发明实施例中SNMP代理执行本发明的步骤流程图; [0036] FIG. 4 is an embodiment of the present invention performs the SNMP agent of the present invention, a flow chart of the steps;

[0037] 图5是本发明实施例中SNMP管理站和SNMP代理执行本发明的协作流程图。 [0037] FIG. 5 is a flowchart illustrating the present invention performs cooperative embodiment SNMP agent and the SNMP management station embodiment of the present invention.

具体实施方式 detailed description

[0038] 下面将结合附图及实施例对本发明的技术方案进行更详细的说明。 [0038] The accompanying drawings and the following technical scheme of the present invention in more detail with reference to Examples.

[0039] 如图2所示,本发明的基本构思是:在接收到SNMP管理站发来的SNMP报文时, SNMP代理估算出该报文的建议超时时间值并反馈给SNMP管理站,SNMP管理站根据该建议超时时间等待上述SNMP报文的响应。 [0039] As shown in FIG. 2, the basic idea of ​​the invention is: when receiving the SNMP management station sent by SNMP packets, SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station, SNMP SNMP management station above the timeout waiting a response packet based on the recommendation.

[0040] 鉴于SNMP代理估算报文的建议超时时间及通信双方构造报文、解析报文均需要耗费一定的时间和资源,因此优选地,SNMP代理可以在估算出的建议超时时间值超过一门限值时才将该建议超时时间值反馈给SNMP管理站。 [0040] In view of the recommendations SNMP agent to estimate the timeout period and the communication parties configuration packet, parses the packet average takes some time and resources, therefore preferably, the SNMP agent can be estimated recommended timeout value of more than one the only limit is recommended timeout value back to the SNMP management station. 其中,该门限值可由SNMP管理站对SNMP 代理进行设置,而该门限值可以为该SNMP管理站上预设的该SNMP报文的超时时间值。 Wherein, the threshold value may be set to the SNMP management station SNMP agent, and the threshold value may be preset for the SNMP management station on the SNMP packet timeout value. 此夕卜,还可以在该SNMP代理上设置一使能标志位,当该使能标志位的值被置为使能状态时, SNMP才会在接收到SNMP报文时估算该报文的建议超时时间;否则,仍按照现有技术中相关流程进行操作。 This evening Bu, may be provided to enable a flag in the SNMP agent, when the value of the enable flag is set to the enable state, SNMP will be recommended to estimate the packet when receiving the SNMP packet timeout; otherwise, still operate in accordance with the prior art related processes. 当然,该使能标志位的值仍然可由SNMP管理站对该SNMP代理进行设置。 Of course, the value of the flag can still be set by the SNMP management station SNMP agent.

[0041] 在实际使用时,可在SNMP代理的MIB中增加超时时间管理对象组(snmpTimeOut),如表1所示,其中包含3个对象:建议超时时间对象使能标志位(enableSuggestedTimeOut)、超时时间门限(timeOutThreshold)及建议超时时间(suggestedTimeOut)。 [0041] In actual use, can increase the timeout time managed object set (snmpTimeOut) in the SNMP agent MIB, as shown in Table 1, which contains three objects: Object recommended timeout enable flag (enableSuggestedTimeOut), overtime time threshold (timeOutThreshold) and recommendations timeout (suggestedTimeOut). 同时相应地增加一种trap (suggestedTimeOutTrap),SNMP 代理将估算出的suggestedTimeOut的值绑定在该suggestedTimeOutTrap报文中上报给SNMP管理站以反馈其估算出的建议超时时间。 With a corresponding addition of one trap (suggestedTimeOutTrap), SNMP agent that is estimated suggestedTimeOut binding recommendations SNMP management station to which the estimated feedback timeout suggestedTimeOutTrap reported to the message.

[0042] 表IsnmpTimeOut 组对象 [0042] Object table group IsnmpTimeOut

[0043] [0043]

Figure CN101594320BD00051
Figure CN101594320BD00061

[0044] 在此种情况下,基于SNMP协议的消息交互方法主要包括以下步骤: [0044] In this case, the message interaction method based on the SNMP protocol includes the following steps:

[0045] (a) SNMP代理端在收到SNMP报文后,检查建议超时时间对象使能标志位的值,如果其值表示使能状态,则根据本次请求的具体操作类型估算出一个建议超时时间值,估算方法可以为:从代理数据库的处理时间表中读出该操作类型对应的处理时间,再乘以设备当前运行状态因子(即当前SNMP代理所管理的单板数量N)。 [0045] (a) SNMP Agent after receiving the SNMP packet, the timeout check is recommended that the target value of the flag bit, if the enable state indicates that the value is estimated according to a recommendation of this particular type of operation requested timeout value estimation method may be: the processing time of the read operation from the time table corresponding to the type of the proxy database, and then multiplied by the current running state of the factor (i.e., currently managed by the SNMP agent board number N). 如果此次估算出的建议超时时间值大于超时时间门限值,则将估算出的建议超时时间值与suggestedTimeOut对象进行绑定,通过发送suggestedTimeOutTrap报文将该估算值上报给SNMP管理站,此trap报文的request-id值为该SNMP代理收到的上述SNMP报文的request-id值;如果使能标志位的值表示禁用(disable)状态,或者使能标志位的值表示使能状态但估算出的建议超时时间值小于等于超时时间门限,则SNMP代理会按照现有流程对SNMP报文进行处理(即不向SNMP管理站反馈其估算的建议超时时间),而SNMP管理站也会仍然按照现有协议流程在其预设的超时时间内等待该SNMP代理向其反馈响应,即不再进行后续流程; If the estimated value is greater than the recommended timeout timeout threshold, then the estimated recommended time-out value suggestedTimeOut object binding, reported to SNMP management station by sending this message suggestedTimeOutTrap estimates, this trap request-id packets is above request-id value of the SNMP agent receives SNMP packets; if so the value of the flag bit indicates disabled (disable) state, or to the value of the flag bit indicates the enable state but estimated recommended time-out value is less than or equal timeout threshold, the SNMP agent to the SNMP packets are processed in accordance with existing procedures (ie no feedback to the SNMP management station that estimates suggested timeout), and SNMP management station will still according to the prior agreement flow waits for the SNMP agent within its preset timeout feedback response thereto, i.e., no follow-up process;

[0046] (b) SNMP管理站在收到suggestedTimeOutTrap后,判断该消息中携带的request-id是否与已发送SNMP报文的request-id相同,如果相同,则将本地等待该SNMP 报文响应的超时时间值设置为该trap报文中携带的建议超时时间值,并根据该建议超时时间值等待SNMP代理返回响应; [0046] (b) SNMP management station after receiving suggestedTimeOutTrap, determines whether the message carries the request-id is the same as SNMP packets sent request-id, if the same, then wait for the local SNMP response packets timeout value is recommended to set a trap packet that carries the timeout value, and to wait for the timeout value according to which the SNMP agent returns a response;

[0047] (c) SNMP管理站如在超时时间范围内收到响应,则对该响应进行常规处理,并将本地等待该SNMP报文响应的超时时间值修改为本地默认超时时间值。 [0047] (c) SNMP management station receives a response within a timeout time, a response to the conventional treatment, and the timeout wait local SNMP response packet timeout value modify the default value for the local.

[0048] 进一步地,在执行上述步骤(a)之前,SNMP管理站可随时通过enableSuggestedTimeOut,suggestedTimeOutTrap这两个对象对建议超时时间对象使能标志位和超时时间门限值进行设置,且一般将超时时间门限值设置为该SNMP管理站本地所使用的默认超时时间值。 [0048] Further, before performing the above step (a), SNMP management station may at any time by enableSuggestedTimeOut, suggestedTimeOutTrap two objects recommended timeout objects enable flag and set the timeout threshold value, and typically will expire time threshold is set to the default timeout value used by the local SNMP management station. 当估算出的建议超时时间大于管理站的默认超时时间,即可能出现超时现象时,SNMP代理将向SNMP管理站上报其估算出的建议超时时间;当估算出的建议超时时间不大于SNMP管理站的默认超时时间时,SNMP代理和SNMP管理站则不做附加处理。 When the estimated recommended time-out time is greater than the default time-out station, which may arise timeouts, SNMP management station SNMP Agent will report its recommendations to estimate the time-out; when the estimated recommended time-out time of less than SNMP management station when the default timeout, SNMP agents and SNMP management stations then no additional processing. 而在SNMP代理端本地的默认建议超时时间对象使能标志位为禁用状态,默认超时时间门限值为0。 The default SNMP Agent local recommendations timeout objects enable flag is disabled, the default time-out threshold is 0.

[0049] 此外,在SNMP管理站不具备自动解析处理suggestedTimeOutTrap和自动设置超时时间的能力的情况下,在该SNMP管理站收到suggestedTimeOutTrap后,可由管理员根据具体情况手动将本地默认的超时时间值设置为该suggestedTimeOutTrap中携带的估算超时时间值。 [0049] In addition, the case does not have the automatic analysis process and automatically set suggestedTimeOutTrap timeout capability, the SNMP management station after the received suggestedTimeOutTrap, manually by the administrator according to the specific local circumstances default timeout value of the SNMP management station setting the estimated suggestedTimeOutTrap timeout value for the carrying. 在同类型的操作完成后,建议手动将本地超时时间重置为该SNMP管理站默认的超时时间值,即timeOutThreshold的值。 After completion of the same type of operation, it is recommended to manually reset the timeout for the local SNMP management station default timeout value, i.e. timeOutThreshold value.

[0050] 综上所述,建议超时时间对象使能标志位和超时时间门限这两个参数的引进可以避免不必要的超时管理处理过程及suggestedTimeOutTrap的创建、发送和接收等处理过程,从而保证了SNMP管理站和SNMP代理间信息交互的高效性。 [0050] In summary, the proposed timeout objects enable flag and timeout thresholds to introduce these two parameters to avoid unnecessary overtime and suggestedTimeOutTrap management process of creating, sending and receiving process and the like, so as to ensure the between the SNMP management station and the SNMP agent efficient information exchange.

[0051] 下面结合附图,对SNMP管理站和SNMP代理实施本发明技术方案的具体步骤以及双方之间的协作流程作进一步的详细描述: [0051] DRAWINGS collaboration process between the specific steps of the present embodiment aspect of the invention, the SNMP agent and the SNMP management station and further detailed description of both:

[0052] 如图3所示,SNMP管理站执行本发明的操作步骤如下: [0052] 3, SNMP management station performs the steps of the present invention is as follows:

[0053] 步骤300 =SNMP管理站系统正常运行,等待管理员操作或网络SNMP消息到达。 [0053] Step 300 = SNMP management station system normal operation, wait for an administrator or network operator SNMP messages arrive. 如果管理员进行查询或设置操作,执行步骤310 ;如果网络SNMP消息到达,执行步骤320 ; If the administrator setting operation or query, step 310 is performed; if the network SNMP message arrives, step 320 is executed;

[0054] 步骤310 =SNMP管理站向SNMP代理发送SNMP报文,然后返回步骤300 ; [0054] Step 310 = SNMP management station sends an SNMP message to SNMP agent, and then returns to step 300;

[0055] 步骤320 :判断接收到的消息是trap消息还是响应消息;如果是trap消息,执行步骤330 ;如果是响应消息,执行步骤340 ; [0055] Step 320: determines whether the received message is a message or a response message trap; if a trap, step 330 is performed; if it is a response message, step 340 is performed;

[0056] 步骤330 :判断收到的trap消息是否是suggestedTimeOutTrap消息,如果是,执行步骤331 ;如果收到的是常规trap消息,执行步骤350 ; [0056] Step 330: determining whether the received message is suggestedTimeOutTrap trap message, if yes, perform step 331; if the received message is a trap routine, step 350;

[0057] 步骤331 :判断接收到的suggestedTimeOutTrap报文中的参数request-id是否与当前已发送报文的request-id相同。 [0057] Step 331: determining whether the received request-id parameter to suggestedTimeOutTrap packets is the same as the currently transmitted packet request-id. 如果相同,执行步骤332 ;否则,表示收到的是无效的suggestedTimeOutTrap消息,不做任何处理,返回步骤300 ; If the same, step 332; otherwise, acknowledged receipt of the message is invalid suggestedTimeOutTrap, without any processing, returns to step 300;

[0058] 步骤332 :提取suggestedTimeOutTrap中携带的建议超时时间(suggestedTimeOut)数据,将本SNMP管理站的超时时间值设置为该建议超时时间值。 [0058] Step 332: extracting suggestedTimeOutTrap carried recommendation timeout (suggestedTimeOut) data, the SNMP management station of the present timeout value is set for the timeout value is recommended. 返回步骤300 ; Returning to step 300;

[0059] 步骤340 :对收到的SNMP代理返回的响应进行常规处理,并在本地超时时间发生更改的情况下,将本地超时时间重置为本地默认超时时间,返回步骤300。 [0059] Step 340: receiving the SNMP proxy response returned for regular treatment, and in the case of local changes timeout occurs, the local time is reset to the local default timeout timeout, returns to step 300.

[0060] 步骤350 :对收到的trap消息进行常规处理。 [0060] Step 350: The trap message received conventional treatment. 返回步骤300。 Returns to step 300.

[0061] 如图4所示,SNMP代理执行本发明的操作步骤如下: [0061] 4, SNMP agent of the present invention performs the following steps:

[0062] 步骤400 =SNMP代理系统正常运行,等待网络SNMP报文到达。 [0062] Step 400 = SNMP proxy system normal operation, waiting for the network SNMP packet arrives. 如果收到SNMP报文,执行步骤410; If the received SNMP message, step 410 is performed;

[0063] 步骤410 :判断接收到的SNMP报文是否是对enableSuggestedTimeOut或suggestedTimeOutTrap进行设置。 [0063] Step 410: determining whether the received packet is an SNMP or suggestedTimeOutTrap enableSuggestedTimeOut set. 如果是,执行步骤420 ;否则,则认为收到的是常规SNMP 报文,执行步骤430; If so, step 420 is performed; otherwise, it is considered to be received by conventional SNMP packets, perform step 430;

[0064] 步骤420 :根据报文中携带的变量值更新本地的建议超时时间对象使能标志位或超时时间门限值,然后返回步骤400。 [0064] Step 420: The value of the local variable recommended update message carries the object timeout enable flag or the timeout threshold value, then returns to step 400.

[0065] 步骤430 :判断建议超时时间对象使能标志位的值是否表示处于使能状态,如果是,则执行步骤440 ;否则,执行步骤460 ; [0065] Step 430: determining whether the object is recommended that the time-out value of the flag bit indicates whether the energy in the enabled state, if yes, execute step 440; otherwise, proceed to step 460;

[0066] 步骤440 :估算建议超时时间的值,并判断该估算出的建议超时时间值是否大于超时时间门限值,如果大于,执行步骤450 ;否则,表示本次操作所需时间较短,不会超时, 不用进行特殊处理,执行步骤460 ; [0066] Step 440: Estimate recommended timeout time, and determines the estimated recommended timeout value is greater than the timeout threshold value, If so, perform Step 450; otherwise, the shorter the time needed to represent this operation, It does not time out, without special treatment, perform step 460;

[0067] 步骤450 :将估算出的超时时间值绑定于对象suggestedTimeOut,通过suggestedTimeOutTrap 消息上报给SNMP 管理站; [0067] Step 450: the estimated value of the timeout bound to target suggestedTimeOut, reported to the SNMP management station suggestedTimeOutTrap message;

[0068] 步骤460 :对接收到的SNMP报文进行常规处理,构造响应消息发送给SNMP管理站,返回步骤400。 [0068] Step 460: SNMP packets received conventional treatment, configured to send a response message to the SNMP management station returns to step 400.

[0069] 如图5所示,SNMP管理站和SNMP代理执行本发明的协作流程如下:[0070] 步骤510 =SNMP管理站发送设置建议超时对象使能标志位和超时时间门限的请求(注:此步骤可以在通信的任何时刻执行,也可以不执行)或向SNMP代理发送常规请求消息; [0069] shown in Figure 5, SNMP management station and the SNMP agent of the present invention perform collaborative processes as follows: [0070] Step 510 = SNMP management station transmission setting recommended timeout objects enable flag and request timeout threshold (Note: this step may be performed at any time of communication may not be performed) or the conventional SNMP agent sends a request message;

[0071] 步骤520 =SNMP代理在收到设置请求后,更新本地系统参数值; [0071] Step 520 = SNMP agent after receiving the setting request updates the local system parameter values;

[0072] 步骤530 =SNMP代理在收到SNMP请求报文后,判断本地建议超时时间使能标志位的值,分为以下两种情况: [0072] Step 530 = SNMP agent after receiving the SNMP request packet, determining a local time for the recommended timeout value of the flag bit, the following two cases:

[0073] a)如果建议超时时间使能标志位的值表示禁止状态,执行步骤570 ; [0073] a) If the timeout is recommended that the value of the flag bit indicates the disabled state, executing step 570;

[0074] b)如果建议超时时间使能标志位的值表示使能状态,执行步骤MO ; [0074] b) If the timeout is recommended that the value of the flag bit can represent the enable state, the step of performing the MO;

[0075] 步骤MO =SNMP代理估算建议超时时间的值,如果估算出的建议超时时间值小于等于超时时间门限值,执行步骤570 ;否则,执行步骤550 ; [0075] Step MO = SNMP agent recommended timeout time estimate, if the estimated value is less than or equal recommended timeout timeout threshold value, step 570; otherwise, proceed to step 550;

[0076] 步骤550 =SNMP代理构造suggestedTimeOutTrap并上报给SNMP管理站,其中携带上述估算出的建议超时时间; [0076] Step 550 = SNMP agent suggestedTimeOutTrap configuration and reports it to the SNMP management station, which carries out the above-described estimated recommended timeout;

[0077]步骤 560 :SNMP 管理站收到suggestedTimeOutTrap 后,根据其中的request-id 进行有效性判断,如果是有效的suggestedTimeOutTrap,则更新本地超时时间的值;否则,不做任何处理; [0077] Step 560: SNMP management station after receiving suggestedTimeOutTrap, which according to the validity of the request-id is determined, if it is valid suggestedTimeOutTrap, local updating the timeout value; otherwise, no treatment;

[0078] 步骤570 =SNMP代理处理常规请求消息,构造响应返回给SNMP管理站; [0078] Step 570 = SNMP agent process routine request message, it returns a response to the SNMP management station configuration;

[0079] 步骤580 =SNMP管理站在超时时间范围内收到响应后,进行常规处理,并在本地超时时间发生更改的情况下,将本地超时时间的值重置为管理站默认超时时间值。 [0079] After step 580 = SNMP management station response is received within the timeout time, the processing routine, the case and changed locally timeout, the timeout value is reset to the local station for the default time-out value.

[0080] 需要说明的是,步骤560和570的执行顺序不分先后,只要保证这两步骤在步骤550和580之间即可。 [0080] Incidentally, the order of execution of steps 560 and 570 in no particular order, as long as two to step between steps 550 and 580.

[0081] 通过以上步骤,在SNMP管理站和SNMP代理的协作下,使用估算超时时间值的方法,可以实现对SNMP管理站超时时间的动态配置,有效避免了因超时时间设置不合理而导致的超时现象,提高了网络管理的效率。 [0081] Through the above steps, in collaboration agent and SNMP SNMP management station, the method used to estimate the timeout value, the SNMP management station can be achieved dynamically configured timeout period, effectively avoiding unreasonable due to timeout caused timeouts, improve the efficiency of network management.

[0082] 当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0082] Of course, the present invention may have various other embodiments without departing from the spirit and the essence of the present invention, those skilled in the art can make various corresponding modifications and variations according to the present invention, but these corresponding changes and variations should fall within the scope of the appended claims.

Claims (10)

  1. 1. 一种基于简单网络管理协议SNMP协议的消息交互方法,其特征在于,在接收到SNMP管理站发来的SNMP报文时,SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站;所述SNMP管理站根据该估算出的超时时间等待所述SNMP报文的响应。 An interactive method for simple network management protocol SNMP message based protocol, wherein, upon receiving the SNMP management station sent by SNMP packets, SNMP agent recommended timeout value estimate and the packet back to the said SNMP management station; and the station waits for the SNMP SNMP response packet according to the estimated time of timeout.
  2. 2.如权利要求1所述的方法,其特征在于,所述SNMP代理中保存有超时时间门限值;所述SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站是指:所述SNMP代理估算出所述SNMP报文的建议超时时间后,判断该建议超时时间值是否大于所述超时时间门限值;如果是,则将所述估算出的超时时间值反馈给所述SNMP管理站。 2. The method according to claim 1, wherein the SNMP agent stores timeout threshold; the SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station refers to: estimate the SNMP agent to the SNMP packets after a timeout recommendation, the recommendation is determined is greater than the timeout value of the timeout time threshold; if so, the estimated value of the feedback timeout to the SNMP management station.
  3. 3.如权利要求2所述的方法,其特征在于,所述SNMP代理如判断出所述建议超时时间值小于所述超时时间门限值,则按照常规流程对接收到的所述SNMP报文进行处理。 3. The method according to claim 2, characterized in that, as the SNMP agent determines that the timeout value is less than the recommended timeout threshold value, then the SNMP packet received according to a conventional process for processing.
  4. 4.如权利要求2或3所述的方法,其特征在于,所述超时时间门限值由所述SNMP管理站对所述SNMP代理进行设置。 4. The method of claim 2 or claim 3, characterized in that, the timeout threshold value set by the SNMP agent to the SNMP management station.
  5. 5.如权利要求4所述的方法,其特征在于,所述SNMP管理站对所述SNMP代理设置的超时门限值为所述SNMP管理站上预设的该SNMP报文的超时时间值。 5. The method according to claim 4, wherein the SNMP management station to the SNMP agent timeout threshold value set for a predetermined timeout value of the SNMP management station on the SNMP packets.
  6. 6.如权利要求1〜3中任意一项所述的方法,其特征在于,所述SNMP代理上设有一使能标志位;所述SNMP代理估算出该报文的建议超时时间值并反馈给所述SNMP管理站是指:所述SNMP代理在接收到所述SNMP报文时,先判断当前所述使能标志位的值是否表示使能状态,如果是,所述SNMP代理才会对所述接收到的SNMP报文的建议超时时间进行估算并进行后续反馈。 6. The method according to any one of 1~3 claims, characterized in that it has one enable flag on the SNMP agent; the SNMP agent recommended estimated packet timeout value and fed back to the SNMP management station means: upon receiving the SNMP agent to the SNMP packet, the first current is determined so that the value of the flag bit indicates whether the enabled state, if it is, the SNMP agent will of their said SNMP packets received recommendations to estimate the time-out and subsequent feedback.
  7. 7.如权利要求6所述的方法,其特征在于,所述使能标志位的值由所述SNMP管理站对所述SNMP代理进行设置。 7. The method according to claim 6, characterized in that, so that the value of the flag can be set by the SNMP agent to the SNMP management station.
  8. 8.如权利要求1或2所述的方法,其特征在于,所述SNMP管理站根据该估算出的超时时间等待所述SNMP报文的响应是指:所述SNMP管理站将本地等待该SNMP报文响应的超时时间值设置为所述SNMP代理向其反馈的估算出的建议超时时间值,并在该估算出的超时时间范围内等待所述SNMP报文的响应。 8. The method of claim 1 or claim 2, wherein said SNMP SNMP management station waits for the response is the packet according to the estimated time-out time: the SNMP management station will wait for the local SNMP packet timeout value is set in response to an SNMP agent for the estimated feedback to its recommended timeout value, the SNMP packet and waits for a response within a timeout of the estimated range.
  9. 9.如权利要求8所述的方法,其特征在于,所述SNMP管理站在收到所述SNMP报文的响应后,将本地超时时间值重置为本地默认超时时间值。 9. The method according to claim 8, wherein the SNMP management station after receiving the SNMP response packet, resets the timeout value for the local local default timeout value.
  10. 10.如权利要求1或2所述的方法,其特征在于,所述SNMP代理估算出该报文的建议超时时间值是指:所述SNMP代理从数据库的处理时间表中读出该操作类型对应的处理时间,再乘以当前SNMP代理所管理的单板数量,得到所述建议超时时间值。 10. The method of claim 1 or claim 2, wherein the estimated packet SNMP agent recommended timeout value is: the SNMP agent reads out the type from the processing operation of the schedule database corresponding to the processing time, multiplied by the number of the boards managed by the SNMP agent, to give the recommended timeout value.
CN 200910142236 2009-06-23 2009-06-23 SNMP protocol-based method for message interaction CN101594320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910142236 CN101594320B (en) 2009-06-23 2009-06-23 SNMP protocol-based method for message interaction

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
CN 200910142236 CN101594320B (en) 2009-06-23 2009-06-23 SNMP protocol-based method for message interaction
EP20100791355 EP2448210B1 (en) 2009-06-23 2010-05-20 Method for interacting messages based on simple network management protocol
PCT/CN2010/072997 WO2010148849A1 (en) 2009-06-23 2010-05-20 Method for interacting messages based on simple network management protocol
JP2012516493A JP5468681B2 (en) 2009-06-23 2010-05-20 The method of interactive messages based on the simple network management protocol
US13258060 US8645519B2 (en) 2009-06-23 2010-05-20 Method for interacting messages based on simple network management protocol

Publications (2)

Publication Number Publication Date
CN101594320A true CN101594320A (en) 2009-12-02
CN101594320B true CN101594320B (en) 2012-05-09

Family

ID=41408771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910142236 CN101594320B (en) 2009-06-23 2009-06-23 SNMP protocol-based method for message interaction

Country Status (5)

Country Link
US (1) US8645519B2 (en)
EP (1) EP2448210B1 (en)
JP (1) JP5468681B2 (en)
CN (1) CN101594320B (en)
WO (1) WO2010148849A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9331955B2 (en) 2011-06-29 2016-05-03 Microsoft Technology Licensing, Llc Transporting operations of arbitrary size over remote direct memory access
US9332089B2 (en) 2005-05-25 2016-05-03 Microsoft Technology Licensing, Llc Data communication coordination with sequence numbers
US9462039B2 (en) 2011-06-30 2016-10-04 Microsoft Technology Licensing, Llc Transparent failover

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594320B (en) * 2009-06-23 2012-05-09 中兴通讯股份有限公司 SNMP protocol-based method for message interaction
CN104038361B (en) * 2013-03-07 2017-11-10 深圳国人通信股份有限公司 Snmp monitoring method based on the life cycle of the wireless access device
CN104125097A (en) * 2014-07-29 2014-10-29 瑞斯康达科技发展股份有限公司 Management control communication method and equipment
CN105635231A (en) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 Calling method and apparatus of distributed system
US20170337090A1 (en) * 2016-05-17 2017-11-23 International Business Machines Corporation Timeout processing for messages

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3783501B2 (en) * 2000-01-07 2006-06-07 富士ゼロックス株式会社 Trap control system
US6687735B1 (en) * 2000-05-30 2004-02-03 Tranceive Technologies, Inc. Method and apparatus for balancing distributed applications
US6408277B1 (en) * 2000-06-21 2002-06-18 Banter Limited System and method for automatic task prioritization
JP2003333271A (en) * 2002-05-17 2003-11-21 Sharp Corp Network communication device
DE60327294D1 (en) 2002-11-04 2009-06-04 Siemens Ag Method and apparatus for achieving an optimal response time in a telecommunication system
US7516212B2 (en) * 2004-01-21 2009-04-07 Hewlett-Packard Development Company, L.P. Device status identification
CN100502531C (en) * 2004-07-13 2009-06-17 Ut斯达康通讯有限公司 Method for transmitting packet of wireless signal in radio base station system
US8572429B2 (en) * 2007-10-09 2013-10-29 Cleversafe, Inc. Optimistic data writing in a dispersed storage network
US8549351B2 (en) * 2007-10-09 2013-10-01 Cleversafe, Inc. Pessimistic data reading in a dispersed storage network
US8819179B2 (en) * 2007-10-09 2014-08-26 Cleversafe, Inc. Data revision synchronization in a dispersed storage network
JP2009098796A (en) * 2007-10-15 2009-05-07 Konica Minolta Business Technologies Inc Print job reception device, control program therefor, printing system and transmission/reception control method for print job
JP2009098908A (en) * 2007-10-16 2009-05-07 Kyocera Mita Corp Time-out control system, client device, server device, and time-out control method
CN101459496B (en) * 2008-12-18 2011-05-04 北京大学 Regulating method and apparatus for timeout interval for messages
CN101594320B (en) * 2009-06-23 2012-05-09 中兴通讯股份有限公司 SNMP protocol-based method for message interaction

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9332089B2 (en) 2005-05-25 2016-05-03 Microsoft Technology Licensing, Llc Data communication coordination with sequence numbers
US9438696B2 (en) 2005-05-25 2016-09-06 Microsoft Technology Licensing, Llc Data communication protocol
US9331955B2 (en) 2011-06-29 2016-05-03 Microsoft Technology Licensing, Llc Transporting operations of arbitrary size over remote direct memory access
US9462039B2 (en) 2011-06-30 2016-10-04 Microsoft Technology Licensing, Llc Transparent failover

Also Published As

Publication number Publication date Type
JP5468681B2 (en) 2014-04-09 grant
JP2012530981A (en) 2012-12-06 application
CN101594320A (en) 2009-12-02 application
EP2448210B1 (en) 2017-08-23 grant
WO2010148849A1 (en) 2010-12-29 application
US8645519B2 (en) 2014-02-04 grant
EP2448210A4 (en) 2013-09-04 application
EP2448210A1 (en) 2012-05-02 application
US20120096137A1 (en) 2012-04-19 application

Similar Documents

Publication Publication Date Title
US20050122958A1 (en) System and method for managing a VoIP network
US20100094985A1 (en) Http push to simulate server-initiated sessions
CN101447895A (en) Collocation method for synchronizing network management and network element and device thereof
CN101567814A (en) Automatic network management method based on SNMP and stochastic Petri net
US20080016157A1 (en) Method and system for controlling and monitoring an apparatus from a remote computer using session initiation protocol (sip)
CN1913452A (en) Method and equipment of intelligent patrol detection for communication network
JP2004254039A (en) Mail communication relay system, mail communication relay apparatus, mail communication relay method, and mail communication relay program
CN101312404A (en) SNMP message processing method and apparatus
CN101291335A (en) Method and apparatus for acquiring dynamic data of server based on browser
CN1731740A (en) Network device management method and network management system
CN101026501A (en) Device tracking system, device and method
CN101877618A (en) Monitoring method, server and system based on proxy-free mode
US20070016674A1 (en) Information exchange system, management server, and method for reducing network load used in the same
CN101179435A (en) Method of active push network management event and network management system
CN101447891A (en) Service model self-adapting system and method thereof
CN1909507A (en) Method and system for message transfer
CN103634409A (en) Method and system for realizing always-online internet application
CN102064954A (en) Distributed fault tolerant system, equipment and method
CN102098719A (en) Method and device for determining network quality
CN102195825A (en) Monitoring system and monitoring method thereof for complete interaction between client and server
CN101369916A (en) Performance index collection method
US20140006612A1 (en) Method of and device for service monitoring and service monitoring management
CN103179217A (en) Load balancing method and device applicable to WEB application server group
CN101895544A (en) Multi-user control method and multi-user control system for communication equipment and server
CN102752230A (en) Method and system for sharing subscriber relationship chain

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted