CN106533700A - Implementation method and apparatus of interface function - Google Patents
Implementation method and apparatus of interface function Download PDFInfo
- Publication number
- CN106533700A CN106533700A CN201610930395.4A CN201610930395A CN106533700A CN 106533700 A CN106533700 A CN 106533700A CN 201610930395 A CN201610930395 A CN 201610930395A CN 106533700 A CN106533700 A CN 106533700A
- Authority
- CN
- China
- Prior art keywords
- interface
- equipment
- communication
- line
- couplet
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
The embodiment of the invention discloses an implementation method and apparatus of an interface function, being applied to upper connection equipment which is connected with communication equipment. The implementation method of an interface function includes the steps: when a communication interface of the communication equipment is not provided with a function module corresponding to the interface function; according to the interface of the communication interface, creating a virtual network card corresponding to the communication equipment, and setting a virtual communication interface corresponding to the communication interface on the virtual network card; by means of a forwarding module of upper connection equipment, sending an interface state setting request aiming at the virtual communication interface to a forwarding module of the communication equipment so as to enable the communication equipment to set the interface state of the communication interface; by means of the forwarding module of the upper connection equipment, receiving a protocol message which is sent through the forwarding module of the communication equipment and is matched with the interface state, of the communication equipment; and by means of the function module of the upper connection equipment, processing the protocol message. By means of application of the embodiment of the implementation method of an interface function, the communication equipment with relatively simple hardware and software can realize a complicated interface function and can improve the user experience.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of implementation method of interface function and device.
Background technology
There is all fairly simple communication equipment of some hardware and softwares, such as panel AP (Access in communication equipment
Point, access point), FitAP, sensor, Internet of things node etc..
The communication interface of these communication equipments is often only capable of realizing some simple interface functions, it is impossible to realize complex interface work(
Can, cause Consumer's Experience relatively low.For example, the LAN mouths of panel AP cannot realize that (Spanning Tree Protocol are generated STP
Tree protocol) the complex interface function such as function, 802.1X authentication functions.
The content of the invention
The embodiment of the invention discloses a kind of implementation method of interface function and device, so that hardware and software all compares
Simple communication equipment realizes complicated interface function, and then improves Consumer's Experience.
For reaching above-mentioned purpose, the embodiment of the invention discloses a kind of implementation method of interface function, is applied to and communication
The first line of a couplet equipment of equipment connection;Methods described includes:
When the communication equipment functional module corresponding with interface function to be achieved, according to the communication equipment
The interface message of communication interface, creates corresponding with communication equipment Microsoft Loopback Adapter, and arrange on the Microsoft Loopback Adapter with
The corresponding virtual communication interface of the communication interface;
By the forwarding module of the first line of a couplet equipment, the Interface status for the virtual communication interface are arranged into request and is sent out
The forwarding module of the communication equipment is given, so as to the communication equipment arranges request according to the Interface status for obtaining arrange
The Interface status of the communication interface;
By the forwarding module of the first line of a couplet equipment, forwarding module of the communication equipment by the communication equipment is received
The protocol massages matched with the Interface status for sending;
The protocol massages are processed by the functional module of the first line of a couplet equipment.
For reaching above-mentioned purpose, the embodiment of the invention also discloses a kind of implementation method of interface function, is applied to communication
Equipment, methods described include:
When the communication equipment functional module corresponding with interface function to be achieved, by the logical of the communication equipment
The interface message of letter interface is sent to the first line of a couplet equipment of the communication equipment, so that the first line of a couplet equipment is according to the communication interface
Interface message, create corresponding with communication equipment Microsoft Loopback Adapter, and arrange on the Microsoft Loopback Adapter and the communication
The corresponding virtual communication interface of interface;
By the forwarding module of the communication equipment, forwarding module of the first line of a couplet equipment by the first line of a couplet equipment is received
The Interface status for the virtual communication interface for sending arrange request;
By the forwarding module of the communication equipment, arranged according to the Interface status and asked, the communication interface is set
Interface status;
By the forwarding module of the communication equipment, the association matched with the Interface status that the communication interface is received
View message is sent to the forwarding module of the first line of a couplet equipment, so that the first line of a couplet equipment obtains the protocol massages, and passes through institute
The functional module for stating first line of a couplet equipment processes the protocol massages.
For reaching above-mentioned purpose, the embodiment of the invention also discloses a kind of interface function realizes device, it is applied to and leads to
The first line of a couplet equipment of letter equipment connection;Described device includes:
Creation module, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, according to
The interface message of the communication interface of the communication equipment, creates Microsoft Loopback Adapter corresponding with the communication equipment, and in the void
Intend arranging virtual communication interface corresponding with the communication interface on network interface card;
Forwarding module, sets for the Interface status setting request for the virtual communication interface is sent to the communication
Standby forwarding module, so that the communication equipment arranges request according to the Interface status for obtaining arranges the communication interface
Interface status;And it is being sent by the forwarding module of the communication equipment with the Interface status to receive the communication equipment
The protocol massages matched somebody with somebody;
Functional module, for processing the protocol massages that the forwarding module is received.
For reaching above-mentioned purpose, the embodiment of the invention also discloses a kind of interface function realizes device, communication is applied to
Equipment, described device include:
Sending module, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, by institute
The interface message for stating the communication interface of communication equipment is sent to the first line of a couplet equipment of the communication equipment, so that the first line of a couplet equipment root
According to the interface message of the communication interface, Microsoft Loopback Adapter corresponding with the communication equipment is created, and on the Microsoft Loopback Adapter
Virtual communication interface corresponding with the communication interface is set;
Forwarding module, for receive the first line of a couplet equipment by the forwarding module of the first line of a couplet equipment send for described
The Interface status of virtual communication interface arrange request, and arrange request according to the Interface status, arrange the communication interface
Interface status, and the protocol massages matched with the Interface status that the communication interface is received are sent to the first line of a couplet and set
Standby forwarding module, so that the first line of a couplet equipment obtains the protocol massages, and at the functional module by the first line of a couplet equipment
Manage the protocol massages.
A kind of implementation method of interface function and device is embodiments provided, is set on the first line of a couplet equipment of communication equipment
Microsoft Loopback Adapter corresponding with communication equipment is equipped with, virtual communication corresponding with communication interface is provided with the Microsoft Loopback Adapter and is connect
Mouthful, when the interface function of communication interface of communication equipment is realized, realized between first line of a couplet equipment and communication equipment by forwarding module
Communication, complete on communication equipment and the first line of a couplet equipment work conversion between Microsoft Loopback Adapter, allow first line of a couplet equipment to think Microsoft Loopback Adapter just
It is communication equipment, and then the communication equipment for causing hardware and software all fairly simple realizes the interface function of complexity, improves
Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Having will needed for technology description
The accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with attached according to these
Figure obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the implementation method of interface function provided in an embodiment of the present invention;
Fig. 2 is a kind of communication structure schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another kind of communication structure schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the implementation method of another kind of interface function provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation for realizing device of interface function provided in an embodiment of the present invention;
Fig. 6 is the structural representation for realizing device of another kind of interface function provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
With reference to Fig. 1, Fig. 1 is a kind of schematic flow sheet of the implementation method of interface function provided in an embodiment of the present invention, should
Method is applied to the first line of a couplet equipment being connected with communication equipment.Wherein, communication equipment can be understood as:Hardware and software is all simpler
Single communication equipment, and there is no the corresponding functional module of interface function to be achieved;First line of a couplet equipment can be understood as:With treating reality
The communication equipment of the corresponding functional module of existing interface function.
It is general, the CPU of all fairly simple communication equipment of hardware and software (Central Processing Unit, in
Central processor) and internal memory it is all weaker, process the collapse that may cause equipment when complex data are calculated, and the first line of a couplet set
Standby CPU and internal memory are all stronger, can process complex data and calculate, and easily realize complexity using first line of a couplet equipment
Interface function.
In one embodiment of the invention, communication equipment can be AP, sensor, Internet of things node etc.;First line of a couplet equipment
Can be switching equipment, AC (Access Control, access controller) or convergence device etc..
Specifically, the implementation method of above-mentioned interface function includes:
S101:When the communication equipment functional module corresponding with interface function to be achieved, according to the communication
The interface message of the communication interface of equipment, creates Microsoft Loopback Adapter corresponding with the communication equipment, and on the Microsoft Loopback Adapter
Virtual communication interface corresponding with the communication interface is set;
After first line of a couplet equipment and communication equipment are set up and be connected, if the communication equipment needs to realize that interface function (is appreciated that
For interface function to be achieved), but the communication equipment does not have the corresponding functional module of interface function to be achieved, and on first line of a couplet equipment
With the corresponding functional module of interface function to be achieved, then first line of a couplet equipment can get the communication equipment from the communication equipment
Communication interface interface message, such as:Communication interface quantity, communication interface load condition etc.;According to the interface message for obtaining, on
Connection equipment can create Microsoft Loopback Adapter corresponding with the communication equipment, and arrange the communication with communication equipment on the Microsoft Loopback Adapter
The corresponding virtual communication interface of interface.Here, the communication of the interface message of the virtual communication interface of Microsoft Loopback Adapter and communication equipment
The interface message matching of interface.
In one embodiment of the invention, each functional module can realize a kind of interface function, various in order to realize
Interface function, is configured with least one functional module on first line of a couplet equipment;In addition, first line of a couplet equipment can be with least one communication equipment
Connection, so when the interface function of communication equipment is realized, it is, in the interface function of the communication interface for realizing communication equipment
When, it is possible to reduce network struction cost.For example, there is n communication equipment to be connected with first line of a couplet equipment, can create on first line of a couplet equipment
Go out n Microsoft Loopback Adapter, so, reduce the quantity for realizing the first line of a couplet equipment of the interface function configuration of communication equipment, reduce
Network struction cost;In addition, from from the point of view of first line of a couplet equipment, creating Microsoft Loopback Adapter on first line of a couplet equipment, it can be understood as, communication
Equipment is inserted on the expansion card of first line of a couplet equipment, so, has the interface function that communication equipment needs corresponding in first line of a couplet equipment
In the case of functional module, just it is very easy to realize the interface function on communication equipment.
S102:By the forwarding module of the first line of a couplet equipment, the Interface status for the virtual communication interface are arranged
Request is sent to the forwarding module of the communication equipment;
In this case, communication equipment can obtain Interface status and arrange request, and then arrange request according to Interface status
The Interface status of communication interface are set.
General, Interface status are set, are realized interface function, can only is for the machine, it is, first line of a couplet equipment can only
The Interface status of the communication interface of setting itself or virtual communication interface, the communication interface of realization itself or virtual communication interface
Interface function, it is impossible to realize the interface function of the communication interface of the communication equipment of its connection.In this case, in order to can pass through
First line of a couplet equipment realizes the interface function of the communication interface of communication equipment, can all arrange one on first line of a couplet equipment and communication equipment
Forwarding module, by the communication between forwarding module, completes the virtual communication of the actual communication interface and first line of a couplet equipment of communication equipment
Work conversion between interface, it is, the virtual communication interface of the actual communication interface of shielded communication equipment and first line of a couplet equipment
Between difference, allow first line of a couplet equipment to think that virtual communication interface is exactly real communication interface.
In one embodiment of the invention, the structure for being provided with the first line of a couplet equipment and communication equipment of forwarding module is referred to
Fig. 2, Microsoft Loopback Adapter 200 are corresponding with communication equipment, and virtual communication interface 500 is corresponding with communication interface 600.In the case of so, connect
Mouthful state arranges request and can be understood as functional module 100 and creates and be sent to Microsoft Loopback Adapter 200, then by Microsoft Loopback Adapter 200
Give the forwarding module 300 of first line of a couplet equipment.Based on above-mentioned situation, S102 can be:
Functional module 100 creates Interface status and arranges request, and Interface status setting request is sent to Microsoft Loopback Adapter
200;
Interface status are arranged the forwarding module 300 that request is sent to first line of a couplet equipment by Microsoft Loopback Adapter 200 again;
Interface status are arranged the forwarding module 400 that request is sent to communication equipment by forwarding module 300 again.
So, communication equipment just can obtain Interface status by forwarding module 400 and arrange request, and then according to interface shape
State arranges request, arranges the Interface status of communication interface 600.For example, Interface status arrange request and ask for the setting of BLOCK states
Ask, communication interface can be set to BLOCK states by communication equipment.The interface shape of communication interface 600 is provided with communication equipment
After state, the communication interface 600 can just be docked the message of receipts and be filtered, it is, abandoning unmatched with the Interface status
Message, retains the message matched with the Interface status.
It is noted that communication equipment can include at least one communication interface, now, the pin set up on first line of a couplet equipment
To corresponding at least one virtual communication interface will be provided with the Microsoft Loopback Adapter of the communication equipment.In addition, interface function can
Being, for a certain communication interface, in this case, in order to the Interface status for accurately arranging communication interface, to realize communication
The interface function of interface, what forwarding module was received are that the Interface status setting of which virtual communication interface from Microsoft Loopback Adapter please
Ask, the corresponding communication equipment of Microsoft Loopback Adapter can only arrange the Interface status of the corresponding communication interface of the virtual communication interface.
S103:By the forwarding module of the first line of a couplet equipment, the communication equipment turning by the communication equipment is received
Send out the protocol massages matched with the Interface status that module sends;
After the communication interface of communication equipment obtains the protocol massages matched with Interface status, communication interface is by the protocol massages
The forwarding module of the communication equipment is sent to, the protocol massages are sent to first line of a couplet equipment by the forwarding module of the communication equipment again
Forwarding module.With reference to Fig. 2, the protocol massages can be sent to Microsoft Loopback Adapter 200 by forwarding module 300, then by Microsoft Loopback Adapter 200
The protocol massages are sent to into functional module 100;Now, functional module 100 thinks that the protocol massages are by Microsoft Loopback Adapter 200
What virtual communication interface 500 was received, the virtual communication interface 500 of Microsoft Loopback Adapter 200 needs to realize interface function.
S104:The protocol massages are processed by the functional module of the first line of a couplet equipment.
In this case, the interface function of the communication interface of communication equipment is completed by first line of a couplet equipment, such as interface shape
State arranges request and is issued by first line of a couplet equipment, and protocol massages are by first line of a couplet equipment process etc., and then auxiliary means of communication realizes communication
The complex interface function of the communication interface of equipment.
After the functional module of first line of a couplet equipment receives protocol massages, processing protocol message, according to the information in protocol massages,
Determine the next Interface status of virtual communication on Microsoft Loopback Adapter, and by the forwarding module of first line of a couplet equipment by next interface shape
The setting request of state is sent to the forwarding module of communication equipment, to arrange the next interface shape of the communication interface of the communication equipment
State.
Below with switching equipment as first line of a couplet equipment, panel AP is communication equipment, and switching equipment sub-panel AP realizes LAN mouths
STP (Spanning Tree Protocol, Spanning-Tree Protocol) function as a example by, describe interface function in detail and realize process,
Specifically:
After A, switching equipment and panel AP set up connection, switching equipment obtains the interface message of the LAN mouths of panel AP, creates
Microsoft Loopback Adapter corresponding with panel AP, and virtual lan mouth corresponding with LAN mouths is set on the Microsoft Loopback Adapter;
Here, switching equipment can save as always panel AP establishment Microsoft Loopback Adapter and respective fictional LAN mouths, so as to
Without the need for creating again when panel AP is again coupled to after disconnecting, directly can use;It is of course also possible to connect disconnecting with panel AP
The Microsoft Loopback Adapter and respective fictional LAN mouths of establishment is deleted after connecing, and recycles step A to re-create when being connected with panel AP again.
B, switching equipment start STP functional modules, and the STP functional modules send to Microsoft Loopback Adapter and arrange virtual lan mouth
Interface status arrange request for the Interface status of BLOCK states, and the Interface status are arranged request and are sent to exchange by Microsoft Loopback Adapter
The forwarding module of equipment;
The Interface status are arranged request and are sent to the forwarding module of panel AP by C, the forwarding module of switching equipment;
D, the forwarding module of panel AP arrange request according to the Interface status, and the LAN mouths of panel AP are set to BLOCK shapes
State.Now the LAN mouths of panel AP will can be received except BPDU (Bridge Protocol Data Unit, bridge protocol data
Unit) packet loss outside protocol massages, the BPDU protocol massages for receiving are sent to into the forwarding module of panel AP, panel
The forwarding module of AP does not process the BPDU protocol massages, but the BPDU protocol massages are transmitted to the forwarding mould of switching equipment
Block.
After E, the forwarding module of switching equipment receive BPDU protocol massages, the BPDU protocol massages are sent to into virtual net
Card, then the BPDU protocol massages are sent to into STP functional modules by Microsoft Loopback Adapter, STP functional modules think the BPDU agreement reports
Text is that Microsoft Loopback Adapter is received, and according to the BPDU protocol massages, carries out STP calculating, obtains the next interface of virtual lan mouth
State (for example, FORWARDING states);
E, STP functional module is FORWARDING states to the Interface status that Microsoft Loopback Adapter sends setting virtual lan mouth
Interface status arrange request, and this Interface status is arranged Microsoft Loopback Adapter the forwarding module that request is sent to switching equipment, by exchanging
The forwarding module of equipment is transmitted to the forwarding module of panel AP, and the LAN mouths of panel AP are set to by the forwarding module of panel AP
LAN mouths are set to the processing procedure after BLOCK states with above-mentioned panel AP by FORWARDING states, processing procedure afterwards
Similar, the protocol massages matched with FORWARDING states are transmitted to the forwarding module of panel AP the forwarding mould of switching equipment
Block, is finally processed by STP functional modules.
From above-mentioned example as can be seen that by arranging forwarding module on switching equipment and creating Microsoft Loopback Adapter, can be by
LAN mouths on the panel AP of distal end virtually on switching equipment, such that it is able to using existing complex interface function on switching equipment
Functional module, sub-panel AP realizes the complex interface function of LAN mouths, improves Consumer's Experience.
In one embodiment of the invention, using the implementation method of above-mentioned interface function, panel AP can also be realized
The authentication function of LAN mouths, for example, it is desired to realize the 802.1X authentication functions of panel AP LAN mouths, the process realizes face with above-mentioned
The similar process of the STP functions of plate AP LAN mouths, difference is:
01st, functional module is authentication function module, and interface function is 802.1X authentication functions;
02nd, the message matched with Interface status is EAPOL (Extensible Authentication Protocolover
Over Lan, the Extensible Authentication Protocol based on LAN) message;
03rd, authentication function module is needed and AAA (Authentication Authorization according to EAPOL messages
Accounting, authentication and authorization charging) server carry out communication determine relevant interface state.
It should be noted that above-mentioned interface function can also be other complex interface functions, here will not enumerate.
Embodiments provide a kind of implementation method of interface function, be provided with the first line of a couplet equipment of communication equipment with
The corresponding Microsoft Loopback Adapter of communication equipment, is provided with virtual communication interface corresponding with communication interface, on the Microsoft Loopback Adapter in reality
During the interface function of the communication interface of existing communication equipment, the communication between first line of a couplet equipment and communication equipment is realized by forwarding module,
The work conversion between Microsoft Loopback Adapter on communication equipment and first line of a couplet equipment is completed, allows first line of a couplet equipment to think that Microsoft Loopback Adapter is exactly that communication sets
It is standby, and then the communication equipment for causing hardware and software all fairly simple realizes the interface function of complexity, improves Consumer's Experience.
It should be noted that above-mentioned steps 101 can be realized by the creation module being provided separately within first line of a couplet equipment
(that is, arranging virtual communication interface by creation module establishment Microsoft Loopback Adapter and on Microsoft Loopback Adapter), by the work(of first line of a couplet equipment
Interacting between energy module and creation module, interacting between creation module and the forwarding module of first line of a couplet equipment, and the first line of a couplet set
Interacting between standby forwarding module and the forwarding module of communication equipment, the communication interface for carrying out auxiliary means of communication realize that complexity connects
Mouth function.
Certainly, above-mentioned steps 101 can be being realized (that is, by forwarding module by the above-mentioned forwarding module on first line of a couplet equipment
Create Microsoft Loopback Adapter and virtual communication interface be set on Microsoft Loopback Adapter), by the functional module of first line of a couplet equipment and forwarding mould
Interacting between the interaction between block, and forwarding module and the forwarding module of communication equipment, carrys out the communication of auxiliary means of communication
Interface realizes complex interface function.
For example, in another embodiment of the present invention, the first line of a couplet equipment and the knot of communication equipment of forwarding module are provided with
Structure refers to Fig. 3, and Microsoft Loopback Adapter 200 is corresponding with communication equipment, and virtual communication interface 500 is corresponding with communication interface 600.Such feelings
Under condition, Interface status arrange the forwarding module 300 that request is that functional module 100 creates and be sent to first line of a couplet equipment.Based on upper
Situation is stated, S102 can be:
Functional module 100 creates Interface status and arranges request, and Interface status setting request is sent to first line of a couplet equipment
Forwarding module 300;
Interface status are arranged the forwarding module 400 that request is sent to communication equipment by forwarding module 300 again.
So, communication equipment just can obtain Interface status by forwarding module 400 and arrange request, and then according to interface shape
State arranges the Interface status that request arranges communication interface 600.
Here, before Interface status setting request is sent to forwarding module 400 by forwarding module 300 again, the forwarding module
According to the interface message of its Microsoft Loopback Adapter 200 for creating, 300 can determine that the Interface status arrange the corresponding Microsoft Loopback Adapter of request
200 (this kind of situation is adapted to the situation that forwarding module 300 creates multiple Microsoft Loopback Adapters), and then determine that the Interface status are arranged
Corresponding communication equipment is asked, then Interface status are arranged into the forwarding module 400 that request is sent to the communication equipment of determination.
It is noted that communication equipment can include at least one communication interface, now, the pin set up on first line of a couplet equipment
To corresponding at least one virtual communication interface will be provided with the Microsoft Loopback Adapter of the communication equipment.In addition, interface function can
Being, for a certain communication interface, in this case, in order to the Interface status for accurately arranging communication interface, to realize communication
According to the interface message of its Microsoft Loopback Adapter for creating, the interface function of interface, the forwarding module can determine that the Interface status set
The virtual communication interface that the corresponding Microsoft Loopback Adapter of request and the Interface status arrange the corresponding Microsoft Loopback Adapter of request is put, is entered
And determine that the Interface status arrange the corresponding communication equipment of request and the Interface status arrange the corresponding communication equipment of request
Communication interface, then by Interface status arrange request be sent to determined by communication equipment forwarding module.So, forwarding module is just
The Interface status of communication interface determined by only can arranging.
In addition, after the communication interface of communication equipment obtains the protocol massages matched with Interface status, this is assisted by communication interface
View message is sent to the forwarding module of the communication equipment, and the protocol massages are sent to the first line of a couplet and are set by the forwarding module of the communication equipment
Standby forwarding module.Based on Fig. 3, the protocol massages directly can be sent to functional module 100 by forwarding module 300;Now, work(
Energy module 100 thinks that the protocol massages are that the virtual communication interface of the Microsoft Loopback Adapter 200 created by forwarding module 300 is received,
The virtual communication interface of Microsoft Loopback Adapter 200 needs to realize interface function.
With reference to Fig. 4, Fig. 4 applies the flow process of the implementation method of another kind of interface function that embodiment is provided and illustrates for the present invention
Figure, the method are applied to communication equipment.Wherein, communication equipment can be understood as:The all fairly simple communication of hardware and software sets
It is standby, and there is no the corresponding functional module of interface function to be achieved.
S401:When communication equipment functional module corresponding with interface function to be achieved, by the communication equipment
The interface message of communication interface is sent to the first line of a couplet equipment of the communication equipment;
So, the first line of a couplet equipment just can be created corresponding with the communication equipment according to the interface message of the communication interface
Microsoft Loopback Adapter, and corresponding with communication interface virtual communication interface is set on Microsoft Loopback Adapter.
Here, first line of a couplet equipment can be understood as:Communication equipment with the corresponding functional module of interface function to be achieved.
In one embodiment of the invention, communication equipment can be AP, sensor, Internet of things node etc.;First line of a couplet equipment
Can be switching equipment, AC or convergence device etc..
S402:By the forwarding module of the communication equipment, the first line of a couplet equipment turning by the first line of a couplet equipment is received
Send out the Interface status setting request for the virtual communication interface that module sends
S403:By the forwarding module of the communication equipment, arranged according to the Interface status and asked, the communication is set
The Interface status of interface;
After communication equipment is provided with the Interface status of communication interface, the communication interface can just be docked the message of receipts and be carried out
Filter, it is, abandoning and the unmatched message of the Interface status, retain the message matched with the Interface status.
S404:By the forwarding module of the communication equipment, by communication interface reception and the Interface status
The protocol massages matched somebody with somebody are sent to the forwarding module of the first line of a couplet equipment.
It should be noted that in the embodiment of the present invention, the structure and the concrete friendship of the two of first line of a couplet equipment and communication equipment
Mutually process is illustrated in the above-described embodiments, be will not be described in detail herein.
Embodiments provide a kind of implementation method of interface function, be provided with the first line of a couplet equipment of communication equipment with
The corresponding Microsoft Loopback Adapter of communication equipment, is provided with virtual communication interface corresponding with communication interface, on the Microsoft Loopback Adapter in reality
During the interface function of the communication interface of existing communication equipment, the communication between first line of a couplet equipment and communication equipment is realized by forwarding module,
The work conversion between Microsoft Loopback Adapter on communication equipment and first line of a couplet equipment is completed, allows first line of a couplet equipment to think that Microsoft Loopback Adapter is exactly that communication sets
It is standby, and then the communication equipment for causing hardware and software all fairly simple realizes the interface function of complexity, improves Consumer's Experience
Energy.
With reference to Fig. 5, Fig. 5 is a kind of structural representation for realizing device of interface function provided in an embodiment of the present invention, with
Fig. 1 is corresponding, is applied to the first line of a couplet equipment being connected with communication equipment;Described device includes:
Creation module 501, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, root
According to the interface message of the communication interface of the communication equipment, Microsoft Loopback Adapter corresponding with the communication equipment is created, and described
Virtual communication interface corresponding with the communication interface is set on Microsoft Loopback Adapter;
Forwarding module 502, is sent to described leading to for the Interface status for the virtual communication interface are arranged request
The forwarding module of letter equipment, so as to the communication equipment arranges the request setting communication according to the Interface status for obtaining connect
Mouthful Interface status, and it is being sent by the forwarding module of the communication equipment with the interface shape to receive the communication equipment
The protocol massages of state matching;
Functional module 504, for processing the protocol massages that the forwarding module is received.
In one embodiment of the invention, Interface status arrange request and create for the functional module and be sent to described
Microsoft Loopback Adapter, then be sent to the forwarding module of the first line of a couplet equipment by the Microsoft Loopback Adapter, this situation is applied to above-mentioned wound
Modeling block 501 and above-mentioned forwarding module 502 are single two modules, as shown in Figure 5;Or create simultaneously for the functional module
The forwarding module of the first line of a couplet equipment is sent to, this situation is applied to above-mentioned creation module 501 and above-mentioned forwarding module 502
For same module, i.e. be forwarding module.
In one embodiment of the invention, the communication equipment be AP, the first line of a couplet equipment be switching equipment, AC or
Convergence device.
Embodiments provide a kind of device of realizing of interface function, be provided with the first line of a couplet equipment of communication equipment with
The corresponding Microsoft Loopback Adapter of communication equipment, is provided with virtual communication interface corresponding with communication interface, on the Microsoft Loopback Adapter in reality
During the interface function of the communication interface of existing communication equipment, the communication between first line of a couplet equipment and communication equipment is realized by forwarding module,
The work conversion between Microsoft Loopback Adapter on communication equipment and first line of a couplet equipment is completed, allows first line of a couplet equipment to think that Microsoft Loopback Adapter is exactly that communication sets
It is standby, and then the communication equipment for causing hardware and software all fairly simple realizes the interface function of complexity, improves Consumer's Experience
Energy.
With reference to Fig. 6, Fig. 6 is a kind of structural representation for realizing device of interface function provided in an embodiment of the present invention, with
Fig. 4 is corresponding, is applied to communication equipment, and described device includes:
Sending module 601, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, will
The interface message of the communication interface of the communication equipment is sent to the first line of a couplet equipment of the communication equipment, so that the first line of a couplet equipment
According to the interface message of the communication interface, Microsoft Loopback Adapter corresponding with the communication equipment is created, and in the Microsoft Loopback Adapter
It is upper that virtual communication interface corresponding with the communication interface is set;
Forwarding module 602, for receiving the first line of a couplet equipment by being directed to that the forwarding module of the first line of a couplet equipment sends
The Interface status of the virtual communication interface arrange request, and arrange request according to the Interface status, arrange the communication and connect
The Interface status of mouth, and the protocol massages matched with the Interface status that the communication interface is received are sent on described
The forwarding module of connection equipment, so that the first line of a couplet equipment obtains the protocol massages, and by the function mould of the first line of a couplet equipment
The block process protocol massages.
In one embodiment of the invention, the communication equipment be AP, the first line of a couplet equipment be switching equipment, AC or
Convergence device.
Embodiments provide a kind of device of realizing of interface function, be provided with the first line of a couplet equipment of communication equipment with
The corresponding Microsoft Loopback Adapter of communication equipment, is provided with virtual communication interface corresponding with communication interface, on the Microsoft Loopback Adapter in reality
During the interface function of the communication interface of existing communication equipment, the communication between first line of a couplet equipment and communication equipment is realized by forwarding module,
The work conversion between Microsoft Loopback Adapter on communication equipment and first line of a couplet equipment is completed, allows first line of a couplet equipment to think that Microsoft Loopback Adapter is exactly that communication sets
It is standby, and then the communication equipment for causing hardware and software all fairly simple realizes the interface function of complexity, improves Consumer's Experience
Energy.
For device embodiment, as which is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part is illustrated referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or deposit between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those
Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
One of ordinary skill in the art will appreciate that all or part of step in realizing said method embodiment is can
Instruct related hardware to complete with by program, described program can be stored in computer read/write memory medium,
The storage medium for obtaining designated herein, such as:ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of implementation method of interface function, it is characterised in that be applied to the first line of a couplet equipment being connected with communication equipment;The side
Method includes:
When the communication equipment functional module corresponding with interface function to be achieved, according to the communication of the communication equipment
The interface message of interface, creates corresponding with communication equipment Microsoft Loopback Adapter, and arrange on the Microsoft Loopback Adapter with it is described
The corresponding virtual communication interface of communication interface;
By the forwarding module of the first line of a couplet equipment, the Interface status for the virtual communication interface are arranged into request and is sent to
The forwarding module of the communication equipment, so that the communication equipment is according to the Interface status for obtaining arrange request setting
The Interface status of communication interface;
By the forwarding module of the first line of a couplet equipment, receive the communication equipment and sent by the forwarding module of the communication equipment
The protocol massages matched with the Interface status;
The protocol massages are processed by the functional module of the first line of a couplet equipment.
2. method according to claim 1, it is characterised in that the Interface status arrange request for functional module wound
Build and be sent to the Microsoft Loopback Adapter, then be sent to the forwarding module of the first line of a couplet equipment by the Microsoft Loopback Adapter, Huo Zhewei
The functional module is created and is sent to the forwarding module of the first line of a couplet equipment.
3. method according to claim 1, it is characterised in that the communication equipment is access point AP, the first line of a couplet equipment
For switching equipment, access controller AC or convergence device.
4. a kind of implementation method of interface function, it is characterised in that be applied to communication equipment, methods described includes:
When the communication equipment functional module corresponding with interface function to be achieved, the communication of the communication equipment is connect
The interface message of mouth is sent to the first line of a couplet equipment of the communication equipment, so that first line of a couplet equipment the connecing according to the communication interface
Message ceases, and creates Microsoft Loopback Adapter corresponding with the communication equipment, and arranges on the Microsoft Loopback Adapter and the communication interface
Corresponding virtual communication interface;
By the forwarding module of the communication equipment, receive the first line of a couplet equipment and sent by the forwarding module of the first line of a couplet equipment
For the virtual communication interface Interface status arrange request;
By the forwarding module of the communication equipment, arranged according to the Interface status and asked, connecing for the communication interface is set
Mouth state;
By the forwarding module of the communication equipment, the agreement report matched with the Interface status that the communication interface is received
Text is sent to the forwarding module of the first line of a couplet equipment, so that the first line of a couplet equipment obtains the protocol massages, and passes through on described
The functional module of connection equipment processes the protocol massages.
5. method according to claim 4, it is characterised in that the communication equipment is access point AP, the first line of a couplet equipment
For switching equipment, access controller AC or convergence device.
6. a kind of interface function realizes device, it is characterised in that be applied to the first line of a couplet equipment being connected with communication equipment;The dress
Put including:
Creation module, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, according to described
The interface message of the communication interface of communication equipment, creates Microsoft Loopback Adapter corresponding with the communication equipment, and in the virtual net
Virtual communication interface corresponding with the communication interface is set on card;
Forwarding module, is sent to the communication equipment for the Interface status for the virtual communication interface are arranged request
Forwarding module, so that the communication equipment arranges the interface that request arranges the communication interface according to the Interface status for obtaining
State, and the communication equipment is received by matching with the Interface status of sending of the forwarding module of the communication equipment
Protocol massages;
Functional module, for processing the protocol massages that the forwarding module is received.
7. device according to claim 6, it is characterised in that the Interface status arrange request for functional module wound
Build and be sent to the Microsoft Loopback Adapter, then be sent to the forwarding module of the first line of a couplet equipment by the Microsoft Loopback Adapter, Huo Zhewei
The functional module is created and is sent to the forwarding module of the first line of a couplet equipment.
8. device according to claim 6, it is characterised in that the communication equipment is access point AP, the first line of a couplet equipment
For switching equipment, access controller AC or convergence device.
9. a kind of interface function realizes device, it is characterised in that be applied to communication equipment, described device includes:
Sending module, for when the communication equipment does not have the corresponding functional module of interface function to be achieved, described will lead to
The interface message of the communication interface of letter equipment is sent to the first line of a couplet equipment of the communication equipment, so that the first line of a couplet equipment is according to institute
The interface message of communication interface is stated, Microsoft Loopback Adapter corresponding with the communication equipment is created, and is arranged on the Microsoft Loopback Adapter
Virtual communication interface corresponding with the communication interface;
Forwarding module, for receive the first line of a couplet equipment by the forwarding module of the first line of a couplet equipment send for described virtual
The Interface status of communication interface arrange request, and arrange request according to the Interface status, arrange the interface of the communication interface
State, and the protocol massages matched with the Interface status that the communication interface is received are sent to into the first line of a couplet equipment
Forwarding module, so that the first line of a couplet equipment obtains the protocol massages, and processes institute by the functional module of the first line of a couplet equipment
State protocol massages.
10. device according to claim 9, it is characterised in that the communication equipment is access point AP, the first line of a couplet equipment
For switching equipment, access controller AC or convergence device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930395.4A CN106533700B (en) | 2016-10-31 | 2016-10-31 | Method and device for realizing interface function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930395.4A CN106533700B (en) | 2016-10-31 | 2016-10-31 | Method and device for realizing interface function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106533700A true CN106533700A (en) | 2017-03-22 |
CN106533700B CN106533700B (en) | 2021-03-02 |
Family
ID=58292748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610930395.4A Active CN106533700B (en) | 2016-10-31 | 2016-10-31 | Method and device for realizing interface function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106533700B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532540A (en) * | 2019-09-17 | 2021-03-19 | 华为技术有限公司 | Interface management method, device and system |
WO2021052399A1 (en) * | 2019-09-17 | 2021-03-25 | 华为技术有限公司 | Interface extension method, apparatus and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
CN103957242A (en) * | 2014-04-16 | 2014-07-30 | 北京大学工学院南京研究院 | Internet-of-things gateway achieving IP virtualization conversion |
CN104158768A (en) * | 2014-07-01 | 2014-11-19 | 汉柏科技有限公司 | Method and system for extending network interfaces, and method for receiving and sending message |
WO2015109478A1 (en) * | 2014-01-23 | 2015-07-30 | 华为技术有限公司 | Method, switch, and controller for implementing arp |
-
2016
- 2016-10-31 CN CN201610930395.4A patent/CN106533700B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
WO2015109478A1 (en) * | 2014-01-23 | 2015-07-30 | 华为技术有限公司 | Method, switch, and controller for implementing arp |
CN105379228A (en) * | 2014-01-23 | 2016-03-02 | 华为技术有限公司 | Method, switch, and controller for implementing ARP |
CN103957242A (en) * | 2014-04-16 | 2014-07-30 | 北京大学工学院南京研究院 | Internet-of-things gateway achieving IP virtualization conversion |
CN104158768A (en) * | 2014-07-01 | 2014-11-19 | 汉柏科技有限公司 | Method and system for extending network interfaces, and method for receiving and sending message |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532540A (en) * | 2019-09-17 | 2021-03-19 | 华为技术有限公司 | Interface management method, device and system |
WO2021052399A1 (en) * | 2019-09-17 | 2021-03-25 | 华为技术有限公司 | Interface extension method, apparatus and system |
EP4024793A4 (en) * | 2019-09-17 | 2022-11-02 | Huawei Technologies Co., Ltd. | Interface extension method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN106533700B (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107332867A (en) | The more new system and update method of mobile unit, the mobile unit | |
US8838800B2 (en) | Binding resources in a shared computing environment | |
CN106341834A (en) | Internet-of-things device configuration method, Internet-of-things device configuration apparatus, Internet-of-things device configuration system and Internet-of-things device | |
CN204759403U (en) | System based on data pass realization equipment internal module thoroughly and upgrade | |
CN105700924B (en) | A kind of method and device for multiple module burning programs | |
CN109981360A (en) | Internet of things equipment website activating method, device, system and storage medium | |
CN106909752A (en) | The analogue system of high-speed railway computer interlock system external interface test | |
CN105930732B (en) | A kind of credible startup method of suitable VPX appliance services board | |
CN104883277B (en) | A kind of information interacting method and system based on BMC | |
CN108833268A (en) | A kind of control system and operation method of family wireless Sensor Network variable description equipment | |
CN106533700A (en) | Implementation method and apparatus of interface function | |
CN104349396B (en) | A kind of data packet forwarding method, apparatus and system | |
CN107943732A (en) | One kind realizes 1553B bus modules based on production domesticization FPGA device | |
CN107862185A (en) | USB identifying systems and USB system | |
CN105429903A (en) | Switch and configuration method | |
CN207182023U (en) | The network control board and modular instrument for being controlled and being communicated based on network | |
CN106301894A (en) | The control method of intelligent gateway, mobile terminal and system | |
CN101114962A (en) | Device and method for exhibiting establishment and termination course of TCP protocol | |
CN107770219A (en) | A kind of sharing method, gateway server and the system of form window | |
CN103905228B (en) | The collocation method and system of serial line interface attribute | |
CN101141258B (en) | Method and system for completing authentication in software installation process | |
JP2609078B2 (en) | Centralized management system using bus interface unit | |
CN109858209A (en) | A kind of system interaction method and heterogeneous system | |
CN107786411A (en) | Inter-application communication tunnel connection/verification method/system, medium and equipment | |
WO2021072763A1 (en) | Unmanned aerial vehicle activation method, unmanned aerial vehicle unbinding method, device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310 Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |