CN107733669B - SNMP server management method and system based on request ID - Google Patents

SNMP server management method and system based on request ID Download PDF

Info

Publication number
CN107733669B
CN107733669B CN201610658061.6A CN201610658061A CN107733669B CN 107733669 B CN107733669 B CN 107733669B CN 201610658061 A CN201610658061 A CN 201610658061A CN 107733669 B CN107733669 B CN 107733669B
Authority
CN
China
Prior art keywords
snmp
link
request
processing unit
message
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610658061.6A
Other languages
Chinese (zh)
Other versions
CN107733669A (en
Inventor
张仕亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610658061.6A priority Critical patent/CN107733669B/en
Publication of CN107733669A publication Critical patent/CN107733669A/en
Application granted granted Critical
Publication of CN107733669B publication Critical patent/CN107733669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a SNMP server management method based on request ID, which comprises the following steps: setting a link identification corresponding to each link on the request ID, wherein the link identifications correspond to the processing units one by one; the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identification in the SNMP response message responded by the managed device and the processing unit. The invention also discloses an SNMP server management system based on the request ID. The invention sets the link identification by borrowing the request ID protocol field, effectively constructs the software management architecture on the server, directly sends the message from the managed equipment to the corresponding processing unit through the one-to-one corresponding relation of the link identification and the processing unit, does not need to query through an IP address and the like and then search the corresponding processing unit to consume a large amount of time, and improves the performance of the whole system and the processing efficiency of the information.

Description

SNMP server management method and system based on request ID
Technical Field
The invention relates to the field of communication, in particular to a method and a system for managing an SNMP server based on a request ID.
Background
SNMP (simple network management protocol) is the most widely used network management communication protocol at present, and mainly comprises three parts, namely a managed device, an SNMP management unit and a server, so that a complete communication management system is formed.
At present, an SNMP management unit mainly confirms which managed device a received message comes from through an IP address, the processing mode is single, under the condition that a plurality of processing units exist on a server to correspond to a plurality of managed devices, the SNMP management unit processes the message and finds the way, the efficiency is low, in the process, the managed device from which the message comes and the processing unit to which the message is sent need to be inquired according to the IP address, the whole process is very long in time delay, and the performance requirement under the architecture cannot be met. Of course, partial performance can be improved by increasing the number of servers, but hardware cost is increased undoubtedly
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an SNMP server management method and system which are high in communication efficiency and based on request ID.
The SNMP server management method based on the request ID provided by the embodiment of the invention comprises the following steps:
setting a link identification corresponding to each link on the request ID, wherein the link identifications correspond to the processing units one by one;
and the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identifiers in the SNMP response message responded by the managed equipment and the processing units.
In the above method, the link identifiers correspond to managed devices one to one, and after receiving a request message sent by a processing unit, the SNMP management unit composes an SNMP message with the link identifier from the request message and sends the SNMP message to the managed device corresponding to the link identifier.
The method above, wherein the managed device is provided with a managed device identifier that is the same as its corresponding link identifier.
The method above, wherein the processing unit is provided with a processing unit identifier that is the same as the corresponding link identifier.
In the method, the high order of the request ID is set as the link ID, and the low order is set as the serial number.
The method, wherein the number of bits of the request ID occupied by the high bits is 28 bits.
The method above, wherein the serial number is used to increment the number of transmitted packets.
The invention also provides an SNMP server management system based on the request ID, which comprises a plurality of processing units, an SNMP management unit and a plurality of managed devices, wherein the request ID sets a link identifier corresponding to each link, the processing units and the managed devices are in one-to-one correspondence with the link identifiers, and the processing unit identifiers and the managed device identifiers are the same as the corresponding link identifiers.
In the system, the high order of the request ID is set as the link ID, and the low order is set as the serial number.
The invention sets the link identification by borrowing the request ID protocol field, and effectively constructs the software management architecture on the server. The information from the managed equipment is directly sent to the corresponding processing unit through the one-to-one correspondence relationship between the link identification and the processing unit, a large amount of time is consumed without inquiring through an IP address and the like and then searching the corresponding processing unit, and the processing efficiency of the performance information of the whole system is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a SNMP server management method based on request ID according to a first embodiment of the present invention;
fig. 2 is a flowchart of a SNMP server management method based on request ID according to a second embodiment of the present invention;
fig. 3 is a block diagram of an SNMP server management system based on request ID according to a third embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Example 1
Referring to fig. 1, a flowchart of a SNMP server management method based on request ID according to a first embodiment of the present invention is provided, which includes steps S101 to S105.
And step S101, setting a link identification corresponding to each link on the request ID, wherein the link identifications correspond to the processing units one by one. Specifically, the processing unit is provided with a processing unit identifier that is the same as the corresponding link identifier.
Step S102, the processing unit sends a request message to the SNMP management unit.
Step S103, the SNMP management unit forms the request message into an SNMP message with a link identifier and then sends the SNMP message to the managed equipment.
Step S104, the managed device responds after receiving the SNMP message and sends an SNMP response message with a link identifier to the SNMP management unit.
Step S105, the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identification and the processing unit after receiving the SNMP response message. Specifically, the SNMP management unit sends the SNMP response message to the corresponding processing unit by querying the processing unit identifier that is the same as the link identifier in the SNMP response message.
The request ID refers to a protocol field in the SNMP protocol, and is a 32-bit double word in total. The number of bits occupied by the high bits and the low bits can be configured according to requirements, and the more the managed devices are, the more the number of bits occupied by the high bits is. Considering that the serial number is changed little (from 0 to 15), the high order bits can occupy 28 bits, and 268435456 devices are managed. The request ID is issued by the server, and the managed equipment returns directly, which completely conforms to the SNMP protocol. The low order is set as the serial number field, which not only meets the requirement of the protocol, but also can independently take out the high order as the link identification. The serial number is used to increment the number of transmitted packets. The increment of the packet number means that when the server side sends data on a certain link, the lower bits of the request ID start from 0, and the recycling starts from 0 until the occupied bits are full.
After the task is started, initializing data, namely, the link identifiers and the processing units are in one-to-one correspondence, after the processing unit on the server sends a request message to the SNMP management unit, the SNM management unit forms the request message into an SNMP message with the link identifiers and sends the SNMP message to the managed equipment through the corresponding links. After receiving the SNMP message, the managed device completes the response, sends an SNMP response message to the SNMP management unit, and returns the link identification. And the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identification in the SNMP response message and the processing unit.
Example 2
Referring to fig. 2, a flowchart of a SNMP server management method based on request ID according to a second embodiment of the present invention is shown, where the method according to the first embodiment of the present invention is basically similar, and the difference is that the link identifiers further correspond to managed devices one to one. As shown in fig. 2, the method includes steps S201 to S205:
step S201, setting link identification corresponding to each link on the request ID, wherein the link identification corresponds to the processing unit and the managed equipment one by one. Specifically, the processing unit and the managed device are respectively provided with a processing unit identifier and a managed device identifier which are the same as the corresponding link identifiers.
In step S202, the processing unit sends a request message to the SNMP management unit.
Step S203, the SNMP management unit composes the request message into an SNMP message with a link identifier and sends the SNMP message to the managed device corresponding to the link identifier. The specific SNMP management unit sends the SNMP message to the corresponding managed device by inquiring the managed device identifier which is the same as the link identifier.
Step S204, the managed device responds after receiving the SNMP message, and sends an SNMP response message with the link identification to the SNMP management unit.
Step S205, the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identification and the processing unit after receiving the SNMP response message. Specifically, the SNMP management unit sends the responded SNMP response message to the corresponding processing unit by querying the processing unit identifier that is the same as the link identifier in the SNMP response message.
In this embodiment, the link identifiers correspond to the processing units and the managed devices one to one, that is, one link identifier corresponds to one processing unit and also corresponds to one managed device. After the processing unit sends the request message to the SNMP management unit, the SNMP management unit makes the request message into an SNMP message with a path identifier and sends the SNMP message to the corresponding managed equipment through the corresponding link. And the managed equipment completes the response after receiving the SNMP message. And the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identification in the SNMP response message and the processing unit.
Example 3
Please refer to fig. 3, which is a block diagram illustrating an SNMP server management system based on request ID according to a third embodiment of the present invention, including multiple processing units, an SNMP management unit and multiple managed devices. In the SNMP protocol, a request ID is set to a link identifier corresponding to each link, the high order of the request ID is set to the link identifier, and the low order is still serial number. The processing unit and the managed device are in one-to-one correspondence with the link identifiers, and the processing unit identifier and the managed device identifier are the same as the corresponding link identifiers.
The processing unit sends a request message to the SNMP management unit, the SNMP management unit organizes an SNMP message after receiving the request message and sends the SNMP message to the corresponding managed device through a corresponding link, the managed device completes a response after receiving the SNMP message and sends a response message to the SNMP management unit through the corresponding link, and the SNMP management unit sends the response message to the corresponding processing unit after receiving the SNMP response message.
Example 4
The fourth embodiment of the present invention describes the workflow of the SNMP server management system for request ID in a specific implementation manner to show some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto. The workflow of the SNMP server management system based on the request ID provided by the embodiment includes the following steps:
step S301, the processing unit 1 sends a request message to the managed apparatus 1;
step S302, the SNMP management unit receives the information of the processing unit 1 and organizes the SNMP message;
step S302, the SNMP management unit sends the organized message to the managed device 1 through the link 1;
step S303, after the managed device 1 receives the SNMP message, organizing the responded SNMP response message and sending the response message to the SNMP management unit through the link 1;
step S304, after the SNMP management unit receives the SNMP response message, the SNMP management unit inquires the processing unit identifier which is the same as the link identifier, and sends the SNMP response message to the processing unit 1 according to the inquiry result.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (8)

1. An SNMP server management method based on request ID is characterized by comprising the following steps:
setting a link identification corresponding to each link on the request ID, wherein the link identifications correspond to the processing units one by one;
the SNMP management unit sends the SNMP response message to the corresponding processing unit according to the one-to-one correspondence relationship between the link identifiers in the SNMP response message responded by the managed equipment and the processing units;
the SNMP management unit receives a request message sent by a processing unit, and then the request message is composed into an SNMP message with the link identifier and sent to the managed equipment corresponding to the link identifier.
2. The method of claim 1, wherein the managed device is provided with a managed device identity that is the same as its corresponding link identity.
3. The method of claim 1, wherein the processing unit is provided with a processing unit identification that is the same as its corresponding link identification.
4. The method of claim 1, wherein an upper bit of the request ID is set as a link ID and a lower bit is set as a serial number.
5. The method of claim 4, wherein the upper bits occupy 28 bits of the request ID.
6. The method of claim 4, wherein the serial number is used to increment a number of transmit packets.
7. An SNMP server management system based on request ID comprises a plurality of processing units, an SNMP management unit and a plurality of managed devices, and is characterized in that the request ID sets a link identifier corresponding to each link, the processing units and the managed devices are in one-to-one correspondence with the link identifiers, and the processing unit identifiers and the managed device identifiers are the same as the corresponding link identifiers.
8. The system of claim 7, wherein the request ID has a higher order set as a link ID and a lower order set as a serial number.
CN201610658061.6A 2016-08-11 2016-08-11 SNMP server management method and system based on request ID Active CN107733669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610658061.6A CN107733669B (en) 2016-08-11 2016-08-11 SNMP server management method and system based on request ID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610658061.6A CN107733669B (en) 2016-08-11 2016-08-11 SNMP server management method and system based on request ID

Publications (2)

Publication Number Publication Date
CN107733669A CN107733669A (en) 2018-02-23
CN107733669B true CN107733669B (en) 2023-03-14

Family

ID=61199662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610658061.6A Active CN107733669B (en) 2016-08-11 2016-08-11 SNMP server management method and system based on request ID

Country Status (1)

Country Link
CN (1) CN107733669B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312404A (en) * 2007-05-24 2008-11-26 杭州华三通信技术有限公司 SNMP message processing method and apparatus
CN101616022A (en) * 2008-06-26 2009-12-30 艾默生网络能源系统北美公司 A kind of intelligent device management method and system based on snmp protocol
CN103401859A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Protocol conversion method and protocol converter
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN105162615A (en) * 2015-07-20 2015-12-16 山东超越数控电子有限公司 Snmp single-chip microcomputer implementing method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454828C (en) * 2004-07-22 2009-01-21 华为技术有限公司 Method for implementing terminal management in network equipment
CN100592741C (en) * 2005-03-24 2010-02-24 上海贝尔阿尔卡特股份有限公司 Method for realizing multi management server support based on SNMP protocol in CPE telemanagement
JP5481819B2 (en) * 2008-09-30 2014-04-23 富士通株式会社 Server management apparatus, information processing system, server management apparatus control method, and program
CN102231678A (en) * 2011-06-27 2011-11-02 华为终端有限公司 Method, device and system for equipment management
CN102271366A (en) * 2011-08-29 2011-12-07 大唐移动通信设备有限公司 Message transmission method and device for Diameter node
CN103354509B (en) * 2013-07-11 2016-08-31 杭州华三通信技术有限公司 The acquisition methods of a kind of link connection information and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312404A (en) * 2007-05-24 2008-11-26 杭州华三通信技术有限公司 SNMP message processing method and apparatus
CN101616022A (en) * 2008-06-26 2009-12-30 艾默生网络能源系统北美公司 A kind of intelligent device management method and system based on snmp protocol
CN103401859A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Protocol conversion method and protocol converter
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN105162615A (en) * 2015-07-20 2015-12-16 山东超越数控电子有限公司 Snmp single-chip microcomputer implementing method

Also Published As

Publication number Publication date
CN107733669A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN101924707A (en) Method and equipment for processing message of address resolution protocol (ARP)
CN102025630A (en) Load balancing method and load balancing system
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN104301141B (en) A kind of method, apparatus and system for preserving configuration information
CN101820435A (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN102904977B (en) Network address allocation method, server and node
US20140052843A1 (en) Auto Management of a Virtual Device Context Enabled Network Infrastructure
CN101562542B (en) Response method for free ARP request and gateway device thereof
CN106464745A (en) Dns server, client and data synchronization method
US10320616B2 (en) Method and a system for sideband server management
CN102404710B (en) Method, device and system for contract signing data management of machine type communication device
CN1781282A (en) An ad-hoc network, a network device and a method of configuration management therefor
CN101938383B (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
CN103051738B (en) A kind of dhcp address distribution method and system
CN104426816A (en) Virtual machine communication method and device
CN107733669B (en) SNMP server management method and system based on request ID
CN109618015B (en) Data center-based de-stacking implementation method and device
CN104639379A (en) Proxy testing method and device
CN105281944B (en) Method for setting network protocol address and service management system
CN102594941A (en) Method for device access and device communication in building intercom system
WO2014101046A1 (en) Network device deployment method, base station, and network element management device
CN110474781B (en) Method and device for forwarding multicast data
CN102571888A (en) Method for discovering wireless sensor access multiplexing equipment in centralized control type wireless sensor network
CN110109933B (en) Information maintenance method, configuration management database system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant