Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Part term involved in the application is explained below, is understood with helping reader:
" Network Management Equipment " carries out the real-time of Local or Remote to the working condition of network management exchange, network operation situation
Monitoring, manages the working condition of network management exchange total interface and the network management device of operating mode with taking a panoramic view of the situation.
" network management exchange ", including a console and multiple Ethernet interfaces, pass through Ethernet interface network management exchange
Handle non-management message, by console mouthfuls of Network Management Equipments the Ethernet interface of network management exchange configured, with postpone with
Too network interface both can handle the management message that Network Management Equipment is sent, and also can handle the non-management message of non-network management equipment transmission.
In this way, non-management message can be forwarded by network management exchange, and manages message and pipe can be carried out to network management exchange
Reason.
" outband management interface " only handles the interface for the management message that Network Management Equipment is sent, referred to as interchanger
For outband management interface.
" management message ", the message that Network Management Equipment is sent to network management exchange is used to by the message to network management exchange
It is managed.
" non-management message ", the message in addition to the message that Network Management Equipment is sent to network management exchange, as terminal is sent
Request message, what interchanger was sent E-Packets.
For the ease of clearly describing the technical solution of the embodiment of the present invention, in an embodiment of the present invention, use " the
One ", the printed words such as " second " distinguish function or the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not defined quantity and execution order.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating
Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer
It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used
Such as " word is intended to that related notion is presented in specific ways.
It should be noted that in the embodiment of the present invention, " (English: of) ", " corresponding (English: corresponding,
It relevant) " sometimes can be mixed with " corresponding (English: corresponding) ", it is noted that do not emphasizing it
When difference, meaning to be expressed is consistent.
Based on above content, the embodiment of the present invention provides a kind of management method of network management exchange, as shown in Figure 1, the party
Method includes the following steps:
101, network management exchange receives the first interface conversion instruction that Network Management Equipment is sent.
Illustratively, Network Management Equipment logs on to the console mouth of network management exchange by terminal or emulation terminal, passes through
The console mouth of network management exchange is sent to it first interface conversion instruction, and above-mentioned first interface conversion instruction includes purpose
Ethernet interface mark, is used to indicate network management exchange for purpose Ethernet interface and is converted to outband management interface.
102, network management exchange is converted to the purpose Ethernet interface in network management exchange according to first interface conversion instruction
Outband management interface.
Illustratively, network management exchange is identified according to the purpose Ethernet interface in first interface conversion instruction, identifying purpose
Ethernet interface, and purpose Ethernet interface is converted.Since the attribute of purpose Ethernet interface will be converted to outband management interface,
Therefore, it is necessary to configure to purpose Ethernet interface.
103, network management exchange is outband management interface assignment IP address, and sends connecing comprising IP address to Network Management Equipment
Mouth transition response.
104, the management message that is sent by outband management interface Network Management Equipment based on IP address and except Network Management Equipment
The non-management message that outer other equipment are sent.
105, it identifies management message and carries out Message processing.
Illustratively, above-mentioned management message is TCP/IP message, and non-management message is non-TCP/IP message, since band is outer
Management interface only handles management message, it is therefore desirable to which the non-management message received to it abandons.Specifically, above-mentioned steps
105 include:
105a, determine outband management interface to message whether be TCP/IP message.
105b, when outband management interface to message be TCP/IP message, then determine message for manage message, then know
It Chu not TCP/IP message;Or, when outband management interface to message be not TCP/IP message, then determine the non-TCP/IP
Message is non-management message, then abandons the non-TCP/IP message.
Illustratively, there are two types of the messages arrived due to network management exchange interface, respectively carries the report of VLAN tag
Literary (i.e. tag message) and the message (i.e. untag message) for not carrying VLAN tag, wherein tag message, expression need network management to hand over
It changes planes to determine whether the message enters the interface, untag message indicates the message for allowing access into the network management exchange interface,
Due to management message to allow access into outband management interface packets, so management message is untag message, but all untag
Message not necessarily all be management message, therefore, determine outband management interface to message whether be TCP/IP message before,
Also need to further determine the outband management interface to message whether be carry VLAN tag message, specifically,
Before step 105a, include the following steps:
A, determine outband management interface to message whether carry VLAN tag;
B, if so, abandoning the message of the carrying VLAN tag;Or, if it is not, then identifying that this does not carry VLAN tag
Message.
Optionally, network management exchange is because router-level topology mistake or network connectivity mistake etc. can send out oneself in network
The message gone out is returned again, will lead in network management exchange that there are loops in this way, and therefore generates loopback message, due to ring
Return text is also TCP/IP message, and network management exchange does not need to handle the message of oneself transmission, and therefore, it is necessary to outband management
Interface to TCP/IP message further determined, determine that the message that arrives of outband management interface is no for loopback report
Text.Specifically, after step 105, including the following steps:
105c, determine outband management interface to TCP/IP message whether be loopback message.
If 105d, outband management interface to TCP/IP message be loopback message when, abandon the TCP/IP message;
Or, if outband management interface to TCP/IP message be non-loopback message when, identify the TCP/IP message for management
Message is handled.
Illustratively, above-mentioned loopback message is that source MAC (English: Media Access Control, Chinese: visit by media
Ask control) and the consistent message of purpose MAC, therefore network management exchange can pass through the source MAC and purpose of detection TCP/IP message
Whether MAC unanimously determines whether the message is loopback message, wherein if consistent, to be determined as loopback message, if different
It causes, is then judged to managing message.
Network management exchange management method provided in an embodiment of the present invention receives what Network Management Equipment was sent by network management exchange
Purpose Ethernet interface in network management exchange is converted to band according to the first interface conversion instruction by first interface conversion instruction
Outer management interface, and be the outband management interface assignment IP address, and send the outband management comprising IP address to Network Management Equipment
Interface conversion response receives management message and is filtered with non-management message and to the message received, identifies management message,
And it is handled.The Ethernet interface of network management exchange is converted to outband management interface by this programme, without designing newly special
With interface, solve the problems, such as that network management exchange design cost is high, and connect by the way that the outband management converted will be entered
The message of mouth is filtered, only processing management message, and non-management message will not influence the transmission of management message, Network Management Equipment meeting
Network management exchange is managed all the time by management message, this addresses the problem other equipment transmissions that ought largely in addition to Network Management Equipment
Non-management message when being input to network management exchange, to alleviate congestion, the management report that network management exchange can send Network Management Equipment
Text abandons, and leads to that Network Management Equipment can not be managed network management exchange or design specialized interface causes interchanger high-cost
Problem.
Illustratively, the method schematic diagram of outband management interface is converted to referring to purpose Ethernet interface shown in Fig. 2, it is above-mentioned
The process that the purpose Ethernet interface in network management exchange is converted to outband management interface in step 102 can be as follows
To realize:
Step S11, network management exchange powers off purpose Ethernet interface.
Illustratively, when network management exchange receives the first interface conversion instruction of Network Management Equipment transmission, which is handed over
The mark for the purpose Ethernet interface for needing to carry out interface conversion can be parsed from the first interface conversion instruction by changing planes, thus right
The purpose Ethernet interface carries out power down process, interrupts the currently processed business of the purpose Ethernet interface, avoids message loss.If net
Pipe interchanger to the purpose Ethernet interface do not powered off just carry out outband management interface interface configuration process, then the purpose with
Too network interface still can be configured according to the interface of the outband management interface to handle non-management message, different so as to cause Message processing
Often.
Step S12, network management exchange notifies pre-converted event.
Illustratively, above-mentioned pre-converted event is used to inform that the purpose Ethernet interface will be converted to two layer service modules
For outband management interface, and all two layer services modules respond the event after receiving the pre-converted event, close its own
Two layer service functions (for example, the purpose Ethernet interface is exited into all VLAN from exchange chip).Wherein, two layers of module refer to
Be work in OSI (English: Open System Interconnection, Chinese: open system interconnection) reference model
The module of " data link layer ", two layer services refer to operating in the business of " data link layer ".
Step S13, network management exchange creates outband management interface virtual drive control block.
Illustratively, the report that above-mentioned outband management interface virtual control block is received and dispatched mainly for the treatment of outband management interface
Text.Specifically, outband management interface virtual control block by by outband management interface to TCP/IP message be forwarded to
When external network, which can be transmitted to exchange chip, network is sent for TCP/IP message by exchange chip
In;And the outband management interface virtual control block by outband management interface arrive need the network management exchange processing
When TCP/IP message, which can be given to the processing of ICP/IP protocol stack.
It should be noted that network management exchange can incite somebody to action when the outband management interface virtual drive control block creates completion
It is bound with ICP/IP protocol stack, so that ICP/IP protocol stack can be from the outband management interface virtual drive control
Block receives message.
Step S14, network management exchange creates outband management interface resource.
Illustratively, which is used to indicate that the purpose Ethernet interface attribute is converted to from Ethernet interface
Outband management interface.
Step S15, network management exchange notice outband management interface creates event.
Illustratively, above-mentioned outband management interface creation event is used to inform that outband management interface is to three layer service modules
It will create, three layers of module respond the event after receiving the outband management interface creation event, open three layer services.Specifically
, three layer service modules are bound with above-mentioned outband management interface virtual drive control block, and establish mapping table, in this way
Three layer service modules can send and receive message from above-mentioned outband management interface virtual drive control block.Also, at this
After outband management interface creates event generation, forwarding information database business module can respond the event, thus will not be to exchange
Chip issues the route table items of this outband management interface, such outband management interface and other work in the Ethernet of three tiers model
It will not mutually E-Packet between mouth or VLAN logic interfacing, it is ensured that outband management interface only handles transmiting and receive telegrams for this interface
Text.Wherein, three above-mentioned layer service modules refer to the module of " network layer " of the work in OSI Reference Model, and three layer services refer to
Be to operate in " network layer " business.
Step S16, network management exchange closes the MAC address learning function of purpose Ethernet interface.
Illustratively, since network management exchange is after being converted to outband management interface for purpose Ethernet interface, the purpose with
Too network interface no longer carries out MAC address learning, therefore network management exchange closes exchange chip MAC address learning function.
Step S17, network management exchange setting purpose Ethernet interface only receives untag message.
Illustratively, since the management message that Network Management Equipment is sent is untag class message, network management exchange needs
It configures the purpose Ethernet interface and only receives untag message.
Step S18, network management exchange setting ACL (English: Access Control List, Chinese: accesses control list)
Processing strategie.
Illustratively, above-mentioned ACL processing strategie is the processing for the message that network management exchange is used to control the disengaging of its interface
Strategy, above-mentioned ACL processing strategie are the strategy for only handling TCP/IP message, and the exchange chip of network management switching equipment is arranged in
In.Specifically, the untag message that outband management interface is received based on above-mentioned steps S17 is by ACL processing strategie, at ACL
Reason strategy carries out type of message inspection to untag message, identifies TCP/IP message as management message, other messages are then directly lost
It abandons.
Step S19, network management exchange powers on purpose Ethernet interface.
Illustratively, purpose Ethernet interface is converted to outband management interface and completed by network management exchange, network management exchange pair
Purpose Ethernet interface powers on.
Step S110, network management exchange notice converts event.
Illustratively, the above-mentioned event that converts is used to inform outside purpose Ethernet interface transfer zone to three layer service modules
Management interface converts, and three layer service modules start three layer service functions.
In conclusion through the above steps, so that it may which the purpose Ethernet interface of network management exchange is converted to outband management
Interface.
Optionally, in practical applications, it is contemplated that the bandwidth of each interface of network management exchange, for example, if currently used
Outband management interface bandwidth be 1000M, and actually serve as outband management interface using the Ethernet interface of 100M and be sufficient,
So the outband management interface conversion of 1000M can be Ethernet interface by user, which may be used for non-management
Message transmissions, the Ethernet interface of 100M is converted to outband management interface can.Another Ethernet interface may be needed to turn
It is changed to outband management interface, alternatively, not needing already existing outband management interface etc., needs the band by network management exchange outer
Management interface is converted to Ethernet interface.In this way, can reasonable utilization network management exchange Ethernet interface.Referring to such as Fig. 3 institute
The outband management interface conversion shown is the method schematic diagram of Ethernet interface, is the specific of Ethernet interface by outband management interface conversion
Steps are as follows:
201, network management exchange receives the second interface conversion instruction that Network Management Equipment is sent.
Illustratively, Network Management Equipment logs on to slave console mouthfuls of network management exchange by terminal or emulation terminal, leads to
The console mouth for crossing network management exchange is sent to it second interface conversion instruction, and above-mentioned second interface instruction includes purpose band
The mark of outer management interface, being used to indicate network management exchange for purpose outband management interface conversion is Ethernet interface.
202, purpose outband management interface conversion is Ethernet interface according to second interface conversion instruction by network management exchange,
And it deletes purpose outband management interface and corresponds to IP address.
Illustratively, network management exchange is according to the purpose outband management interface identifier in second interface conversion instruction, identification
Purpose outband management interface, and purpose outband management interface is converted.When purpose outband management interface conversion is Ethernet
When mouth, the corresponding IP address of outband management interface will be deleted, in this way, Network Management Equipment will be unable to the purpose outband management interface
Send management message.
Each function mould in the method for outband management interface is converted to below with reference to above-mentioned purpose Ethernet interface shown in Fig. 2
Block description and other associated descriptions are the net of Ethernet interface to purpose outband management interface conversion provided in an embodiment of the present invention
Pipe switch management method is introduced.The explanation of technical term relevant to above-described embodiment, concept etc. in following embodiment
The above embodiments are referred to, which is not described herein again.
Illustratively, purpose outband management interface conversion as shown in Figure 4 is the method schematic diagram of Ethernet interface, above-mentioned step
In rapid 202, by the purpose outband management interface conversion in network management exchange be Ethernet interface the step of it is as follows:
Step S21: network management exchange powers off purpose outband management interface.
Step S22: network management exchange stops purpose outband management interface virtual drive control block.
Illustratively, the working condition of purpose outband management interface virtual drive control block is set as stopping, no longer being located
TCP/IP packet sending and receiving is managed, and releases the binding with ICP/IP protocol stack.
Step S23: network management exchange deletes purpose outband management interface resource.
Illustratively, purpose outband management interface resource is deleted, indicates the attribute of the purpose outband management interface from band
Outer management interface conversion is Ethernet interface.
Step S24: network management exchange notifies purpose outband management interface deletion event.
Illustratively, above-mentioned purpose outband management interface deletion event to three layer service modules for informing outside the purpose band
Management interface needs to delete, and three layer service modules all respond the thing after receiving the purpose outband management interface deletion event
Part is closed thirdly layer service function.
Step S25: network management exchange notifies pre-converted event.
Illustratively, above-mentioned pre-converted event is used to inform that the purpose outband management interface will to two layer service modules
Ethernet interface is converted to, two layer service module response events are two layer service functions of starting (for example, Ethernet interface needs to be added
In default VLAN 1) it prepares.
Step S26: network management exchange deletes purpose outband management drive control block.
Illustratively, after deleting purpose outband management interface driver control block, network management exchange can discharge being somebody's turn to do for application
Purpose outband management connects resource.
Step S27: the MAC address learning function of network management exchange enabling Ethernet interface.
Illustratively, since purpose outband management interface conversion is being the Ethernet after Ethernet interface by network management exchange
Mouth with needing to carry out MAC learning functionality then needs the MAC address learning function of restoring Ethernet interface, it is therefore desirable to enable exchange core
Piece MAC address learning function.
Step S28: network management exchange cancels ACL processing strategie.
Illustratively, since the message that Ethernet interface receives is according at the corresponding processing mode of two layers of module
Reason, is no longer limited by ACL, it is therefore desirable to cancel the ACL processing strategie being arranged on exchange chip.
Step S29: network management exchange powers on Ethernet interface.
Step S210: network management exchange notice converts event.
Illustratively, the above-mentioned event that converts is used to inform purpose outband management interface to two layer service modules
Ethernet interface is converted to, two layer service modules respond this and convert event, start two layer service functions.
It should be noted that above-mentioned purpose Ethernet mark and purpose outband management interface identifier, can be network managements
Corresponding Ethernet interface mark in interchanger, be also possible to newly define can distinguish and network management exchange other interfaces
Mark, here without limitation.
The embodiment of the present invention provides a kind of network management exchange, as shown in figure 5, the network management exchange include: receiving module 21,
Conversion module 22, distribution module 23, identification module 24, in which:
Receiving module 21, for receiving the first interface conversion instruction of Network Management Equipment transmission, first interface conversion instruction packet
The mark of Ethernet interface containing purpose;
Conversion module 22, the first interface conversion instruction for being received according to receiving module 21, will be in network management exchange
Purpose Ethernet interface be converted to outband management interface;
Distribution module 23, the outband management interface assignment IP address for being converted by conversion module 22, and set to network management
Preparation send the interface conversion comprising IP address to respond;
Receiving module 21, the outband management interface Network Management Equipment for being also used to be converted by conversion module 22 are based on dividing
The non-management message that the management message sent with the IP address that module 23 is distributed and the other equipment in addition to Network Management Equipment are sent;
Identification module 24, receiving module 21 receives out for identification management message simultaneously carry out Message processing.
Optionally, receiving module 21 is also used to:
The second interface conversion instruction that Network Management Equipment is sent is received, second interface conversion instruction includes that purpose outband management connects
Mouth mark;
Conversion module 22 is also used to according to second interface conversion instruction, is Ethernet by purpose outband management interface conversion
Mouthful, and delete purpose outband management interface and correspond to IP address.
Optionally, management message is TCP/IP message, and identification module 24 is specifically used for:
Determine outband management interface to message whether be TCP/IP message;
If so, determining that message to manage message, then identifies TCP/IP message and handled;
If it is not, then determining that message for non-management message, then abandons non-TCP/IP message.
Optionally, identification module 24 also particularly useful for:
Determine outband management interface to message whether carry VLAN tag;
If so, abandoning the message of the carrying VLAN tag;
If it is not, then identifying that this does not carry the message of VLAN tag.
Optionally, identification module 24 also particularly useful for:
If message is TCP/IP message, determine whether TCP/IP message is loopback message, and loopback message is network management exchange
The message that machine generates;
If so, determining that TCP/IP message is loopback message, then the TCP/IP message is abandoned;
If it is not, then determining that TCP/IP message is acyclic return text, then identify the TCP/IP message for management message needs
It is handled.
Network management exchange provided in an embodiment of the present invention receives the first interface that Network Management Equipment is sent by network management exchange
Purpose Ethernet interface in network management exchange is converted to outband management and connect by conversion instruction according to the first interface conversion instruction
Mouthful, and be the outband management interface assignment IP address, and send the outband management interface conversion comprising IP address to Network Management Equipment
Response receives management message and is filtered with non-management message and to the message received, identifies management message, and to it into
Row processing.The Ethernet interface of network management exchange is converted to outband management interface by this programme, without designing new special purpose interface, is solved
Determined the high problem of network management exchange design cost, and the message by the way that the outband management interface converted will be entered into
Row filtering, only processing manages message, and non-management message will not influence the transmission of management message, and Network Management Equipment can be all the time by pipe
It manages message and manages network management exchange, this addresses the problem ought non-management report that largely other equipment in addition to Network Management Equipment are sent
When text is input to network management exchange, to alleviate congestion, the management packet loss that network management exchange can send Network Management Equipment, and lead
Cause Network Management Equipment can not be managed to network management exchange or design specialized interface causes the high-cost problem of interchanger.
It should be noted that during specific implementation, network management exchange in above-mentioned method flow as shown in figs. 1 and 3
Performed each step can be held by the computer that the processor of example, in hardware executes the software form stored in memory
Row instruction realizes that, to avoid repeating, details are not described herein again.And program corresponding to movement performed by above-mentioned network management exchange is equal
It can be stored in a software form in the memory of the network management exchange, execute the above modules pair in order to which processor calls
The operation answered.
Memory above may include volatile memory (volatile memory), such as random access memory
Device (random-access memory, RAM);It also may include nonvolatile memory (non-volatile memory), example
Such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk
Drive, HDD) or solid state hard disk (solid-state drive, SSD);It can also include the combination of the memory of mentioned kind.
Processor in equipment presented above can be a processor, be also possible to the system of multiple processing elements
Claim.For example, processor can be central processing unit (central processing unit, CPU;It may be other general places
Manage device, digital signal processor (digital signal processing, DSP), specific integrated circuit (application
Specific integrated circuit, ASIC), field programmable gate array (field-programmable gate
Array, FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..It is logical
It can be microprocessor with processor or the processor be also possible to any conventional processor etc.;It can also be dedicated processes
Device, the application specific processor may include at least one of baseband processing chip, radio frequency processing chip etc..
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.