CN100499648C - Adaptive method and device for network element interface protocol - Google Patents

Adaptive method and device for network element interface protocol Download PDF

Info

Publication number
CN100499648C
CN100499648C CNB2004100548173A CN200410054817A CN100499648C CN 100499648 C CN100499648 C CN 100499648C CN B2004100548173 A CNB2004100548173 A CN B2004100548173A CN 200410054817 A CN200410054817 A CN 200410054817A CN 100499648 C CN100499648 C CN 100499648C
Authority
CN
China
Prior art keywords
network element
element device
command
management system
network
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.)
Expired - Fee Related
Application number
CNB2004100548173A
Other languages
Chinese (zh)
Other versions
CN1725754A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100548173A priority Critical patent/CN100499648C/en
Publication of CN1725754A publication Critical patent/CN1725754A/en
Application granted granted Critical
Publication of CN100499648C publication Critical patent/CN100499648C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

An adaptive method of network element interface protocol includes separately setting up and storing a set of adaptive table for different type of network device in network , recording the mapping relation of network management system command to network element device command ; converting command issued by network management system to be format of network element device interface protocol or converting information sent by network element device side to be format of network management system protocol according to adaptive table .

Description

A kind of network element interface protocol fitting method and device
Technical field
The present invention relates to network management system, refer to a kind of network element interface protocol fitting method and device especially.
Background technology
All there is the diversified problem of network element device interface protocol in network management system when network element device is managed at present, and network management system has to adopt the method for network element adapter to solve.In the design of network element adapter, to adopt the hard coded mode to carry out adaptive more.
For example, if having MSC (mobile switching centre) and two network elements of BSC (base station controller) to need in the access to network management system, the network management system support is to the query manipulation of two network element single-board states.And the Binary Interface that MSC and BSC provide is different:
MSC single board state query interface:
Struct?MSCboardquery
{
BYTE cmdno; // command code, the command code of single board state inquiry is 52;
BYTE frmno; The numbering of // veneer place frame
BYTE slotno; The numbering of groove position, // veneer place
}
BSC single board state query interface:
Struct?BSCboardquery
{
BYTE cmdno; // command code, the command code of single board state inquiry is 5;
WORD frmno; The numbering of // veneer place frame
WORD slotno; The numbering of groove position, // veneer place
}
The basic procedure of hard coded mode is as follows:
The if NE type is MSC then
{
struct?MSCboardquery*cmdfrm;
Be cmdfrm storage allocation space;
cmdfrm.cmdno=52;
The frame of the required Query Board of cmdfrm.frmno=number;
The slot number of the required Query Board of cmdfrm.slotno=;
By communication link cmdfrm is mail to MSC with network element MSC;
}
else
The if NE type is BSC then
{
struct?BSCboardquery*cmdfrm;
Be cmdfrm storage allocation space;
cmdfrm.cmdno=5;
The frame of the required Query Board of cmdfrm.frmno=number;
The slot number of the required Query Board of cmdfrm.slotno=;
By communication link cmdfrm is mail to BSC with network element BSC;
}
In the above-mentioned art methods,, must carry out modification, the compiling of network element adapter code, lack flexibility in case the network element device interface protocol changes,
Summary of the invention
The invention provides a kind of network element interface protocol fitting method and device, when the network element device interface protocol changes, need carry out the modification of network element adapter code, the problem of recompility in the solution prior art.
Network element interface protocol fitting method provided by the invention comprises the following steps:
A) set up and store the adaptive form of a cover respectively for dissimilar network element device in the network, described adaptive form comprises:
Command mapping form: the mapping relations of describing network management system command code and network element device command code;
Network element commands information form: describe the network element device command information;
Network element commands parameter information form: the information of describing the network element device command parameter;
B) according to this adaptive form, the instruction transformation that network management system is sent is a network element device interface protocol form, or is the protocol format of network management system with the information translation that the network element device side is sent.
Described step B comprises the following steps:
B1) send when instruction to network element device when network management system, as querying condition, search described command mapping form, obtain corresponding net element device command sign indicating number with network management system command code and network element device type identification sign indicating number;
B2) use network element device command code and network element device type identification sign indicating number as querying condition, search described network element commands information form, obtain the number of parameters and the frame length of this network element device order;
B3), distribute the correspondence memory space according to described frame length;
B3) use network element device command code and network element device type identification sign indicating number as querying condition, search described network element commands parameter information form, according to the corresponding relation between each command parameter and the network management system command parameter in the table, give each command parameter assignment, send to network element device after storing the memory headroom of distribution into, realize that the instruction transformation that network management system is sent is a network element device interface protocol form.
Network element interface protocol adaptation device provided by the invention comprises:
One adaptation rule storehouse: in order to be stored as the adaptive form that network element devices dissimilar in the network is set up, described adaptive form comprises:
Command mapping form: the mapping relations of describing network management system command code and network element device command code;
Network element commands information form: describe the network element device command information;
Network element commands parameter information form: the information of describing the network element device command parameter;
One network element adapter: comprise a protocol conversion module and a communication module; The instruction that described protocol conversion module is sent network management system is converted to network element device interface protocol form according to the adaptive form of storing in the adaptation rule storehouse; Maybe the information translation that will send from the network element device side is the protocol format of network management system; Described communication module is responsible for and NMS is unified, and network element device communicates.
According to said method of the present invention and device, the information of described network element device command parameter, comprise parameter sequence number, length and with the corresponding relation of network management system command parameter.
Described command mapping form comprises following field: network management system command code, network element device type identification sign indicating number and corresponding net element device command sign indicating number;
Described network element commands information form comprises following field: the functional description of number of parameters, network element commands frame total length and this network element commands in network element device type identification sign indicating number, network element device command code, this network element device order;
Described network element commands parameter information form comprises following field: the length of network element device type identification sign indicating number, network element device command code, command parameter sequence number, command parameter type, command parameter default assignment, map network management system command parameter sequence number, map network management system command parameter type, map network management system command parameter.
Adopt the inventive method, when the network element device interface protocol changes, only need revise the related command parameter in the adaptive form, simple, convenient.
Description of drawings
Fig. 1 is a network element interface protocol adaptation apparatus structure schematic diagram of the present invention.
Embodiment
As shown in Figure 1, be network element interface protocol adaptation apparatus structure schematic diagram of the present invention, it mainly includes a communication module, a protocol conversion module and an adaptation rule storehouse.The instruction that protocol conversion module is sent network management system is converted to network element device interface protocol form according to the adaptive form of storing in the adaptation rule storehouse, and the information translation that will send from the network element device side is the protocol format of network management system simultaneously; Communication module is responsible for and NMS is unified, and network element device communicates.
The adaptive form of storing in the adaptation rule storehouse is shown in following table one, table two and table three:
Table one
NMCmdNo NEType NECmdNo
Table one is command mapping form (CmdMap)
Function: the mapping relations of network management system command code and network element device command code; Each Field Definition is as follows in the table:
NMCmdNo: network management system command code.
NEType: network element device type identification sign indicating number.
NECmdNo: network element device command code.
Table two
NEType NECmdNo ParamCount FrameLength CmdDescription
Table two is network element commands information form (NECmdInfo)
Function: describe the network element device command information.Each Field Definition is as follows in the table:
NEType: network element device type identification sign indicating number.
NECmdNo: network element device command code.
ParamCount: number of parameters in this network element device order.
FrameLength: network element commands frame total length is a unit with the byte.
CmdDescription: the functional description of this order.
Table three
NEType NECmdNo ParamNo ParamType ParamLen PeerParamNo PeerParamType PeerParamLen ParamDefaultValue
Table three is a network element commands parameter information form (NEParamInfo)
Function: describe the information of network element device command parameter, comprise member's sequence number, length of parameter etc.Each Field Definition is as follows in the table:
NEType: network element device type identification sign indicating number.
NECmdNo: network element device command code.
ParamNo: command parameter sequence number.
ParamType: command parameter type.
ParamLen: the length of this parameter.
PeerParamNo: map network administration order parameter sequence number.
PeerParamType: map network administration order parameter type.
PeerParamLen: the length of map network administration order parameter.
ParamDefaultValue: this parameter default assignment.
Starting the inquiry of a MSC (mobile switching centre) network element device single board state with network management system below is example, and the concrete implementation step of the inventive method is described:
At first, the each several part protocol definition is as follows:
The network management system querying command:
struct?NM_BoardQuery
{
int?CmdNo;//cmdno=20
BYTEfrmno; The numbering of // veneer place frame
BYTE slotno; The numbering of groove position, // veneer place
}
MSC single board state query interface:
Struct?MSCboardquery
{
BYTE cmdno; // command code, the command code of single board state inquiry is 52;
BYTE frmno; The numbering of // veneer place frame
BYTE slotno; The numbering of groove position, // veneer place
}
The NE type of MSC is defined as 2.
According to agreement as defined above, above-mentioned table one, table two and table three concrete configuration are as follows.
It is as follows to obtain the configuration of CmdMap form from structNM_BoardQuery:
NMCmdNo NEType NECmdNo
20 2 52
The MSC NE type is 2, and the command code that can obtain its Query Board state from Struct MSCboardquery is 52, and three parameters are arranged, and total length is 3 bytes, and it is as follows then to obtain the configuration of NECmdInfo form:
NEType NECmdNo ParamCount FrameLength CmdDescription
2 52 3 3 Query?board?state
The MSC NE type is 2, the 2nd parameter f rmno of Struct MSCboardquery is corresponding with the 2nd parameter among the structNM_BoardQuery, the 3rd parameter s lotno of struct MSCboardquery is corresponding with the 3rd parameter among the struct NM_BoardQuery, and it is as follows then to obtain the configuration of NEParamInfo form:
NEType NECmdNo ParamNo ParamType ParamLen PeerParamNo PeerParamType PeerParamLen ParamDefaultValue
2 52 1 BYTE 1 NULL NULL NULL 52
2 52 2 BYTE 1 2 BYTE 1 NULL
2 52 3 BYTE 1 3 BYTE 1 NULL
When network management system is sent a MSC single board state querying command, when needing the state of veneer on inquiry MSC the 3rd frame the 5th groove position, order as follows:
struct?NM_BoardQuery?nmcmd;
nmcmd.CmdNo=20;
nmcmd.FrmNo=3;
nmcmd.SlotNo=5;
The network element adapter inquires the corresponding net element command code according to CmdNo and NE type from the CmdMap table be 52, from the NECmdInfo form, inquire this order according to NE type and network element commands sign indicating number then 3 parameters are arranged, from the NEParamInfo form, inquire about type, the length of each parameter then one by one, corresponding network management command parameter type, length, carry out the assignment conversion one by one according to the transformational relation between the corresponding types then, constitute and mail to the protocol frame of network element device, and be sent to network element device.Detailed process is as follows:
After the network element adapter was received the nmcmd protocol frame, the cmdno that obtains wherein was 20, showed as condition query CmdMap with NMCmdNo=20 and NEType=2, drew the command code NECmdNo=52 of this network element Query Board status command;
With NECmdNo=52 and NEType=2 is condition query NECmdInfo table, draws this command parameter number ParamCount=3, frame length FrameLength=3;
The memory headroom that distributes 3 bytes for the single board state protocol frame that will mail to MSC;
To be condition inquire the 1st parameter type from the NEParamInfo table with NECmdNo=52 and NEType=2 is that BYTE, length are 1; Corresponding webmaster command parameter be numbered NULL, type is that NULL, length are NULL, the default value of this parameter is 52.Because this parameter length is 1, get the 1st byte in the 3 byte of memory spaces of distributing previously, assignment 52 is finished the processing of the 1st parameter;
To be condition inquire the 2nd parameter type from the NEParamInfo table with NECmdNo=52 and NEType=2 is that BYTE, length are 1; Corresponding webmaster command parameter be numbered 2, type is that BYTE, length are 1, the default value of this parameter is NULL.Because this parameter length is 1, and previous parameter has taken 1 byte, then gets the 2nd byte in the 3 byte of memory spaces of distributing previously, because the 2nd parameter (its value is 3) in its corresponding webmaster order, so assignment 3 is finished the processing of the 2nd parameter;
To be condition inquire the 3rd parameter type from the NEParamInfo table with NECmdNo=52 and NEType=2 is that BYTE, length are 1; Corresponding webmaster command parameter be numbered 3, type is that BYTE, length are 1, the default value of this parameter is NULL.Because this parameter length is 1, and preceding two parameters have taken 2 bytes, then get the 3rd byte in the 3 byte of memory spaces of distributing previously, because the 3rd parameter (its value is 5) in its corresponding webmaster order, so assignment 5 is finished the processing of the 3rd parameter;
The content of 3 bytes after assignment handled mails to the MSC network element device as the content in the communication frame by communication management module, has realized that with the network management system protocol conversion be the network element device interface protocol.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (7)

1, a kind of network element interface protocol fitting method is characterized in that comprising the following steps:
A) set up and store the adaptive form of a cover respectively for dissimilar network element device in the network, described adaptive form comprises:
Command mapping form: the mapping relations of describing network management system command code and network element device command code;
Network element commands information form: describe the network element device command information;
Network element commands parameter information form: the information of describing the network element device command parameter;
B) according to this adaptive form, the instruction transformation that network management system is sent is a network element device interface protocol form, or is the protocol format of network management system with the information translation that the network element device side is sent.
2, network element interface protocol fitting method as claimed in claim 1 is characterized in that: the information of described network element device command parameter, comprise parameter sequence number, length and with the corresponding relation of network management system command parameter.
3, network element interface protocol fitting method as claimed in claim 2 is characterized in that:
Described command mapping form comprises following field: network management system command code, network element device type identification sign indicating number and corresponding net element device command sign indicating number;
Described network element commands information form comprises following field: the functional description of number of parameters, network element commands frame total length and this network element commands in network element device type identification sign indicating number, network element device command code, this network element device order;
Described network element commands parameter information form comprises following field: the length of network element device type identification sign indicating number, network element device command code, command parameter sequence number, command parameter type, command parameter default assignment, map network management system command parameter sequence number, map network management system command parameter type, map network management system command parameter.
4, network element interface protocol fitting method as claimed in claim 3, it is characterized in that: described step B comprises the following steps:
B1) send when instruction to network element device when network management system, as querying condition, search described command mapping form, obtain corresponding net element device command sign indicating number with network management system command code and network element device type identification sign indicating number;
B2) use network element device command code and network element device type identification sign indicating number as querying condition, search described network element commands information form, obtain the number of parameters and the frame length of this network element device order;
B3), distribute the correspondence memory space according to described frame length;
B3) use network element device command code and network element device type identification sign indicating number as querying condition, search described network element commands parameter information form, according to the corresponding relation between each command parameter and the network management system command parameter in the table, give each command parameter assignment, send to network element device after storing the memory headroom of distribution into, realize that the instruction transformation that network management system is sent is a network element device interface protocol form.
5, a kind of network element interface protocol adaptation device is characterized in that comprising:
One adaptation rule storehouse: in order to be stored as the adaptive form that network element devices dissimilar in the network is set up, described adaptive form comprises:
Command mapping form: the mapping relations of describing network management system command code and network element device command code;
Network element commands information form: describe the network element device command information;
Network element commands parameter information form: the information of describing the network element device command parameter;
One network element adapter: comprise a protocol conversion module and a communication module; The instruction that described protocol conversion module is sent network management system is converted to network element device interface protocol form according to the adaptive form of storing in the adaptation rule storehouse; Maybe the information translation that will send from the network element device side is the protocol format of network management system; Described communication module is responsible for and NMS is unified, and network element device communicates.
6, network element interface protocol adaptation device as claimed in claim 5 is characterized in that: the information of described network element device command parameter, comprise parameter sequence number, length and with the corresponding relation of network management system command parameter.
7, network element interface protocol adaptation device as claimed in claim 6 is characterized in that:
Described command mapping form comprises following field: network management system command code, network element device type identification sign indicating number and corresponding net element device command sign indicating number;
Described network element commands information form comprises following field: the functional description of number of parameters, network element commands frame total length and this network element commands in network element device type identification sign indicating number, network element device command code, this network element device order;
Described network element commands parameter information form comprises following field: the length of network element device type identification sign indicating number, network element device command code, command parameter sequence number, command parameter type, command parameter default assignment, map network management system command parameter sequence number, map network management system command parameter type, map network management system command parameter.
CNB2004100548173A 2004-07-22 2004-07-22 Adaptive method and device for network element interface protocol Expired - Fee Related CN100499648C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100548173A CN100499648C (en) 2004-07-22 2004-07-22 Adaptive method and device for network element interface protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100548173A CN100499648C (en) 2004-07-22 2004-07-22 Adaptive method and device for network element interface protocol

Publications (2)

Publication Number Publication Date
CN1725754A CN1725754A (en) 2006-01-25
CN100499648C true CN100499648C (en) 2009-06-10

Family

ID=35924997

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100548173A Expired - Fee Related CN100499648C (en) 2004-07-22 2004-07-22 Adaptive method and device for network element interface protocol

Country Status (1)

Country Link
CN (1) CN100499648C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996878A (en) * 2006-06-28 2007-07-11 华为技术有限公司 A method for information conversion of the simple object access protocol service management interface
CN101515929B (en) * 2009-03-24 2012-07-04 成都市华为赛门铁克科技有限公司 Message format conversion method, network device and agent device
CN102752148B (en) * 2012-07-18 2015-04-29 烽火通信科技股份有限公司 Management system and management method based on network element adaption subsystem
CN105024847B (en) * 2015-05-28 2018-08-07 大唐移动通信设备有限公司 The more network element adapter network management systems of single server and configuration, startup, operation method
CN105824790B (en) * 2016-03-15 2019-03-01 上海缔安科技股份有限公司 A kind of equipment table adaptation method, computer equipment and mobile terminal
CN108737352B (en) * 2017-04-25 2020-07-28 北京大学 Wireless physical layer processing system and method compatible with multi-protocol and nonstandard protocol
CN111526052B (en) * 2020-04-17 2023-04-07 中移(杭州)信息技术有限公司 Network element instruction management method, device, network equipment and storage medium

Also Published As

Publication number Publication date
CN1725754A (en) 2006-01-25

Similar Documents

Publication Publication Date Title
CN100407659C (en) Method for realizing software edition upgrading
CN104125208B (en) Data transmission method and device
CN101317300B (en) Parameter configuration method and device of antenna equipment
US7493377B2 (en) Method and apparatus to manage a configuration of clustered computers according to deployment date structures
WO2008045656A3 (en) Upgrading mesh access points in a wireless mesh network
SG138435A1 (en) Communication system, mobile unit database server, mobile radio router, charging method, and vehicle mounted router and agent server therewith
CN101515929B (en) Message format conversion method, network device and agent device
CA2533106A1 (en) Communications system providing multi-layered extensible protocol interface and related methods
CN104317257A (en) System and method for controlling multiple sockets based on wireless internet control
CN100499648C (en) Adaptive method and device for network element interface protocol
CN102148698A (en) Network configuration protocol-based network configuration management method, equipment and system
CN104333610A (en) IPv6 address allocation method and device
CN102158482A (en) JSON (JavaScript Object Notation) data protocol based passenger transport information communication method and system
CN108769943A (en) Communication hybrid building power information acquires the method and system of network
CN101984690B (en) Data card and system and method for customizing application business of data card
CN102801565A (en) Method for carrying out centralized management on service configuration in network management system
CN102055641A (en) Distribution method for virtual local area network and related device
CA2533286A1 (en) Communications system providing extensible protocol translation and configuration features and related methods
CN101808132A (en) Communication method of application layer in CAN bus system
CN101179444B (en) Configuration take-effective method, configuration system and configuration gateway
CN105915361A (en) Group upgrading method and device
CN106790282A (en) A kind of method of protocol conversion, device and air-conditioning system
CN102143506A (en) Management processing method, management processing device and management processing system for wireless repeater
CN101945377A (en) Base station controller and batch configuration method thereof
CN107872431B (en) Data transmitting and receiving method, device and base station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610