Summary of the invention
The embodiment of the present invention provides a kind of protocol message processing method, Apparatus and system, low in order to solve the network bandwidth utilization factor that the processing protocol message that exists in prior art causes, and a large amount of broadcast issues of protocol massages.
The embodiment of the present invention provides a kind of protocol message processing method, comprising:
Controller receives the protocol massages that forwarding module sends, and described protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address of the terminal of described protocol massages, described protocol massages to described forwarding module;
When not finding the list item mating with MAC Address and the VLAN ID of described protocol massages in software mac address table, described protocol massages is carried out to MAC address learning, by the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address in described software mac address table;
Described protocol massages is processed to the back message using that obtains and the object output port information of described protocol massages is issued to described forwarding module, for described forwarding module, by described object output port, forward described back message using.
The method that adopts the embodiment of the present invention to provide, owing to receiving when controller the protocol massages reporting, initiatively this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages that study is obtained, VLAN ID and object output port stores synchronized are in local software mac address table, without the message information corresponding with this protocol massages MAC Address of waiting for that forwarding module reports, avoided forwarding module to report the situation of delay, and then avoided postponing to cause controller not find protocol massages in software mac address table and the situation of a large amount of Radio Broadcasting Agreements messages because forwarding module reports, reduced the load of giving out a contract for a project of physical exchange equipment, and reduced the non-quantity that object terminal receives invalidation protocol message of replying, thereby improved the utilance of the network bandwidth.
Further, described VLAN is any sub-VLAN SubVLAN in SuperVLAN in super VLAN;
Described protocol massages is carried out to MAC address learning, the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address, in described software mac address table, is specifically comprised:
Obtain the SuperVLAN ID of described MAC Address, SubVLAN ID and SubVLAN ID binding that described protocol massages carries;
By the described MAC Address of described protocol massages, described SubVLAN ID, SuperVLAN ID that described SubVLAN ID is corresponding, and object output port corresponding stored corresponding to described MAC Address is in described software mac address table.
Further, determine the object output port corresponding with described MAC Address, specifically comprise:
Described forwarding module is received to the input port that described terminal sends described protocol massages and be defined as object output port corresponding to described MAC Address.
Further, said method, also comprises:
When finding the list item mating with MAC Address and the VLAN ID of described protocol massages in software mac address table, by described protocol massages process the back message using that obtains and find be issued to described forwarding module with described MAC Address, object output port that VLAN ID is corresponding, for described forwarding module, by described object output port, forward described back message using.
The embodiment of the present invention also provides a kind of protocol massages processing unit, comprising:
Receiving element, the protocol massages sending for receiving forwarding module, described protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address of the terminal of described protocol massages, described protocol massages to described forwarding module;
Unit, for when not finding the list item mating with MAC Address and the VLAN ID of described protocol massages at software mac address table, described protocol massages is carried out to MAC address learning, by the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address in described software mac address table;
First issues unit, for described protocol massages being processed to the back message using that obtains and the object output port information of described protocol massages, is issued to described forwarding module, for described forwarding module, by described object output port, forwards described back message using.
The device that adopts the embodiment of the present invention to provide, owing to receiving when controller the protocol massages reporting, initiatively this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages that study is obtained, VLAN ID and object output port stores synchronized are in local software mac address table, without the message information corresponding with this protocol massages MAC Address of waiting for that forwarding module reports, avoided forwarding module to report the situation of delay, and then avoided postponing to cause controller not find protocol massages in software mac address table and the situation of a large amount of Radio Broadcasting Agreements messages because forwarding module reports, reduced the load of giving out a contract for a project of physical exchange equipment, and reduced the non-quantity that object terminal receives invalidation protocol message of replying, thereby improved the utilance of the network bandwidth.
Further, described VLAN is any sub-VLAN SubVLAN in SuperVLAN in super VLAN;
Described unit, specifically for obtaining the SuperVLAN ID of described MAC Address, SubVLAN ID and SubVLAN ID binding that described protocol massages carries; By the described MAC Address of described protocol massages, described SubVLAN ID, SuperVLAN ID that described SubVLAN ID is corresponding, and object output port corresponding stored corresponding to described MAC Address is in described software mac address table.
Further, described unit, is defined as object output port corresponding to described MAC Address specifically for described forwarding module being received to the input port that described terminal sends described protocol massages.
Further, said apparatus, also comprises:
Second issues unit, for when finding the list item mating with MAC Address and the VLAN ID of described protocol massages at software mac address table, by described protocol massages process the back message using that obtains and find be issued to described forwarding module with described MAC Address, object output port that VLAN ID is corresponding, for described forwarding module, by described object output port, forward described back message using.
The embodiment of the present invention also provides a kind of protocol massages treatment system, comprising: controller and forwarding module, wherein:
Described controller, comprises above-mentioned protocol massages processing unit;
Described forwarding module, for sending protocol massages to described controller; Receive the described back message using of described controller transmission and the object output port information of described protocol massages; By described object output port, forward described back message using.
The system that adopts the embodiment of the present invention to provide, owing to receiving when controller the protocol massages reporting, initiatively this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages that study is obtained, VLAN ID and object output port stores synchronized are in local software mac address table, without the message information corresponding with this protocol massages MAC Address of waiting for that forwarding module reports, avoided forwarding module to report the situation of delay, and then avoided postponing to cause controller not find protocol massages in software mac address table and the situation of a large amount of Radio Broadcasting Agreements messages because forwarding module reports, reduced the load of giving out a contract for a project of physical exchange equipment, and reduced the non-quantity that object terminal receives invalidation protocol message of replying, thereby improved the utilance of the network bandwidth.
Further, described controller comprises: study module and protocol module, wherein:
Described study module, the described protocol massages sending for receiving described forwarding module, described protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address of the terminal of described protocol massages, described protocol massages to described forwarding module; Described protocol massages is sent to described protocol module; When not finding the list item mating with MAC Address and the VLAN ID of described protocol massages in software mac address table, described protocol massages is carried out to MAC address learning, by the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address in described software mac address table; Described object output port information is sent to described protocol module;
Described protocol module, the described protocol massages sending for receiving described study module; Described protocol massages is processed, obtained back message using; The described object output port information of described back message using and reception is sent to described forwarding module.
The application's further feature and advantage will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the application.The application's object and other advantages can be realized and be obtained by specifically noted structure in the specification write, claims and accompanying drawing.
Embodiment
Network bandwidth utilization factor while improving processing protocol message in order to provide, avoid the implementation of a large amount of broadcast of protocol massages, the embodiment of the present invention provides a kind of protocol message processing method, Apparatus and system, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein only, for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The embodiment of the present invention provides a kind of protocol message processing method, as shown in Figure 3, comprising:
Step 301, controller receive the protocol massages that forwarding module sends, and this protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address, this protocol massages of the terminal of this protocol massages to this forwarding module.
Step 302, when not finding the list item mating with MAC Address and the VLAN ID of this protocol massages in software mac address table, this protocol massages is carried out to MAC address learning, by the MAC Address of protocol massages, VLAN ID and the object output port corresponding stored corresponding with this MAC Address in software mac address table.
Step 303, this protocol massages is processed to the back message using that obtains and the object output port information of this protocol massages is issued to this forwarding module, and control this forwarding module and forward back message using by object output port.
In method shown in above-mentioned Fig. 3 that the embodiment of the present invention provides, the protocol massages that adopts controller to report forwarding module carries out medium access control (MAC, Media Access Control) address learning, can be applied to single VLAN (VLAN, Virtual Local Area Network) protocol massages under scene forwards, the protocol massages that also can be applied under super VLAN (Super VLAN, Super Virtual Local Area Network) scene forwards.Protocol massages is carried out to MAC address learning to be referred to when physical exchange equipment receives protocol massages from certain physical port, read MAC Address and the VLAN ID of message, and object output port corresponding to MAC Address, VLAN ID and this MAC Address recorded.
Below in conjunction with accompanying drawing, with specific embodiment, method provided by the invention and device and corresponding system are described in detail.
Embodiment 1:
It is example that the protocol massages under single VLAN scene of take forwards, and the flow chart of the protocol message processing method that Fig. 4 provides for the embodiment of the present invention 1, specifically comprises following treatment step:
Step 401, when forwarding module receives protocol massages, this protocol massages is sent to controller.
The protocol massages that the protocol massages that forwarding module receives sends for the terminal being connected with this forwarding module.This protocol massages carries this forwarding module and sends the MAC Address of the terminal of this protocol massages, the VLAN ID of the affiliated VLAN of this protocol massages.
Step 402, when this controller receives this protocol massages, this protocol massages is carried out to respective handling, obtain back message using.
In this step, for different protocol massages, process accordingly respectively, for example: when this protocol massages is the message of request online, controller will be IP address of terminal distribution of this protocol massages of transmission, and the back message using of this IP address is carried in generation.
Step 403, when controller receives this protocol massages, obtain MAC Address and VLAN ID that this protocol massages carries.
Step 404, this controller search whether there is the list item mating with MAC Address and the VLAN ID of this protocol massages in local software mac address table, if so, enter step 405, if not, enter step 407.
Wherein, in this software mac address table, store the corresponding relation of MAC Address, VLAN ID and the object output port corresponding with this MAC Address.
Step 405, when this controller finds the list item corresponding with the MAC Address of this protocol massages and VLAN ID in local software mac address table, the object output port information in this back message using and the list item that finds is issued to this forwarding module.
In this step, while finding the list item mating with MAC Address and the VLAN ID of this protocol massages in this software mac address table, the list item finding comprises the object output port that MAC Address, VLAN ID and this MAC Address are corresponding, i.e. explanation before this this MAC Address, terminal that VLAN ID is corresponding sent protocol massages via forwarding module to this controller, and had recorded the corresponding relation between this MAC Address, VLAN ID and object output port.
Step 406, when this forwarding module receives this back message using and object output port information, by this object output port, forward this back message using.
In this step, because this object output port is corresponding with the MAC Address of the terminal of transmission protocol massages, this forwarding module is transmitted to this terminal by this back message using.
Step 407, when this controller does not find the list item corresponding with the MAC Address of this protocol massages and VLAN ID in local software mac address table, read MAC Address and VLAN ID in this protocol massages.
Step 408, controller receive by this forwarding module the input port that this terminal sends this protocol massages and are defined as object output port corresponding to this MAC Address.
Concrete, this forwarding module is when sending this protocol massages to this controller, the input port information that this protocol massages that receiving terminal is sent is used sends to this controller, and controller is using the input port receiving as object output port corresponding to this MAC Address.
Step 409, controller are stored in the MAC Address of this protocol massages, VLAN ID and this object output port in local software mac address table.
Step 410, controller are handed down to forwarding module by the object output port information of this back message using and protocol massages corresponding to this back message using.
Concrete, controller can be searched the object output port corresponding with MAC Address, the VLAN ID of this protocol massages in software mac address table, the back message using that this protocol massages is corresponding is handed down to forwarding module with the object output port information finding, here, because carrying out respective handling to this protocol massages, back message using obtains, do not change MAC Address, VLAN id information in this protocol massages, the target MAC (Media Access Control) address of this back message using, VLAN ID are identical with MAC Address, the VLAN ID of this protocol massages.
Step 411, receive after this back message using and this object output port information when this forwarding module, this forwarding module forwards this response by this object output port and forwards this back message using.
In this step, because this object output port is corresponding with the MAC Address of the terminal of transmission protocol massages, this forwarding module is transmitted to this terminal by this back message using.
Between above-mentioned steps 402 and step 403,404,407,408,409, there is no strict sequencing.Step 402 also can be synchronizeed and carry out with arbitrary step in step 403,404,407,408,409.
In the embodiment of the present invention 1, protocol massages is in being sent to the uplink process of controller by forwarding module, the MAC Address that this protocol massages is corresponding is equivalent to send the source MAC of the terminal of this protocol massages, the back message using obtaining after controller is processed due to this protocol massages finally still will be transmitted to this terminal, therefore for controller, to forwarding module, send in the downlink transmission process of back message using, the source MAC that this protocol massages is corresponding with respect to controller is equivalent to the target MAC (Media Access Control) address of back message using, but in fact, here said source MAC and target MAC (Media Access Control) address are identical, it is all the MAC Address that sends the terminal of this protocol massages, it is the MAC Address in the embodiment of the present invention.
Further, controller is when initiatively carrying out MAC address learning to the protocol massages reporting, forwarding module can adopt the mode of prior art to carry out MAC address learning to protocol massages, forwarding module can also carry out MAC address learning to data message, and by the MAC Address of the message obtaining, VLAN ID and object output port report controller, controller is searched the list item that whether exists the message information that reports with forwarding module to mate in local software mac address table, if there is no, the message information forwarding module being reported adds in software mac address table, to can search message information in software mac address table while needing to use message information the situation except retransmission protocol message.
Further, controller can also be issued to list item protocol massages being carried out in software mac address table that MAC address learning obtains on forwarding module, thereby avoid, because forwarding module carries out MAC address learning failure, causing data message via the problem of a large amount of broadcast of forwarding module.
The method providing by the above-mentioned enforcement 1 of the present invention, owing to receiving when controller the protocol massages reporting, initiatively this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages that study is obtained, VLAN ID and object output port stores synchronized are in local software mac address table, without the message information corresponding with this protocol massages MAC Address of waiting for that forwarding module reports, avoided forwarding module to report the situation of delay, and then avoided postponing to cause controller not find protocol massages in software mac address table and the situation of a large amount of Radio Broadcasting Agreements messages because forwarding module reports, reduced the load of giving out a contract for a project, and reduced the non-quantity that object terminal receives invalidation protocol message of replying, thereby improved the utilance of the network bandwidth.
Embodiment 2:
It is example that the protocol massages of take under Super VLAN scene forwards, under Super VLAN, bind a plurality of SubVLAN, under each SubVLAN, can access a plurality of terminals, the flow chart of the protocol message processing method that Fig. 5 provides for the embodiment of the present invention 1, specifically comprises following treatment step:
Step 501, when forwarding module receives protocol massages, this protocol massages is sent to controller.
The protocol massages that the protocol massages that forwarding module receives sends for the terminal being connected with this forwarding module.This protocol massages carries the MAC Address that this forwarding module sends the terminal of this protocol massages, the SubVLAN ID of SubVLAN under this protocol massages, and with the Super VLAN ID of this SubVLAN ID binding.
Step 502, when this controller receives this protocol massages, this protocol massages is carried out to respective handling, obtain back message using.
In this step, for different protocol massages, process accordingly respectively, for example: when this protocol massages is the message of request online, controller will be IP address of terminal distribution of this protocol massages of transmission, and the back message using of this IP address is carried in generation.
Step 503, when controller receives this protocol massages, obtain MAC Address that this protocol massages carries, SubVLAN ID and with the Super VLAN ID of this SubVLAN ID binding.
Step 504, this controller search whether there is the list item mating with MAC Address and the Super VLAN ID of this protocol massages in local software mac address table, if so, enter step 505, if not, enter step 507.
Wherein, in this software mac address table, store MAC Address, SubVLAN ID, with the Super VLAN ID of SubVLAN ID binding and with the corresponding relation of object output port corresponding to this MAC Address.
Step 505, when this controller finds the list item corresponding with the MAC Address of this protocol massages and Super VLAN ID in local software mac address table, the object output port information in this back message using and the list item that finds is issued to this forwarding module.
In this step, while finding the list item mating with MAC Address and the Super VLAN ID of this protocol massages in this software mac address table, the list item finding comprises MAC Address, SubVLAN ID, the object output port corresponding with this MAC Address with the Super VLAN ID of SubVLAN ID binding, i.e. explanation is this MAC Address before this, the terminal that Super VLAN ID is corresponding sent protocol massages via forwarding module to this controller, and recorded this MAC Address, SubVLAN ID, and the Super VLAN ID of SubVLAN ID binding and the corresponding relation between object output port.
Step 506, when this forwarding module receives this back message using and object output port information, by this object output port, forward this back message using.
In this step, because this object output port is corresponding with the MAC Address of the terminal of transmission protocol massages, this forwarding module is transmitted to this terminal by this back message using.
Step 507, when this controller does not find the list item corresponding with the MAC Address of this protocol massages and Super VLAN ID in local software mac address table, read MAC Address and Super VLAN ID in this protocol massages.
Step 508, controller receive by this forwarding module the input port that this terminal sends this protocol massages and are defined as object output port corresponding to this MAC Address.
Concrete, this forwarding module is when sending this protocol massages to this controller, the input port information that this protocol massages that receiving terminal is sent is used sends to this controller, and controller is using the input port receiving as object output port corresponding to this MAC Address.
Step 509, controller are by the MAC Address of this protocol massages, SubVLAN ID, be stored in local software mac address table with Super VLAN ID and this object output port of SubVLAN ID binding.
In this step, set up MAC Address, SubVLAN ID, and the Super VLAN ID of SubVLAN ID binding and the corresponding relation between this object output port of this protocol massages, be about to this protocol massages MAC Address, SubVLAN ID, be stored in local software mac address table with Super VLAN ID and this object output port of SubVLAN ID binding, can adopt following several mode:
First kind of way:
Software mac address table is divided into two sublists: sublist 1 and sublist 2, store M AC address in sublist 1, corresponding relation between SubVLAN ID and object output port, store M AC address in sublist 2, corresponding relation between Super VLAN ID and object output port, when controller obtains the MAC Address of protocol massages, after SubVLAN ID, by MAC Address, SubVLAN ID and definite object output port are stored in sublist 1, by MAC Address, Super VLAN ID and definite object output port are stored in sublist 2, then 2 times list items corresponding to protocol massages of sublist are replaced with to 1 time list item corresponding to this protocol massages of sublist, the content replacement that is about to the Super VLAN ID under sublist 2 is the content of the SubVLAN ID under sublist 1.
The second way:
Set up separately " MAC-SubVLAN ID redirect list item ", set up the corresponding relation between MAC Address and SubVLAN ID, can first according to MAC Address, search " MAC-SubVLAN ID redirect list item " and obtain SubVLAN ID, and search software mac address table according to SubVLAN ID and MAC Address.
The third mode:
By the MAC Address of protocol massages, SubVLAN ID, and the Super VLAN ID of SubVLAN ID binding and the corresponding relation between this object output port be all stored in software mac address table, only there is a table.
Step 510, controller by this back message using and this back message using corresponding the object output port information of protocol massages be handed down to forwarding module.
Concrete, controller can be searched the object output port corresponding with MAC Address, the Super VLAN ID of this protocol massages in software mac address table, the back message using that this protocol massages is corresponding is handed down to forwarding module with the object output port information finding, here, because carrying out respective handling to this protocol massages, back message using obtains, do not change MAC Address, Super VLAN id information in this protocol massages, the target MAC (Media Access Control) address of this back message using, Super VLAN ID are identical with MAC Address, the Super VLAN ID of this protocol massages.
Step 511, receive after this back message using and this object output port information when this forwarding module, this forwarding module forwards this response by this object output port and forwards this back message using.
In this step, because this object output port is corresponding with the MAC Address of the terminal of transmission protocol massages, this forwarding module is transmitted to this terminal by this back message using.
Between above-mentioned steps 502 and step 503,504,507,508,509, there is no strict sequencing.Step 502 also can be synchronizeed and carry out with arbitrary step in step 503,504,507,508,509.
In the embodiment of the present invention 2, protocol massages is in being sent to the uplink process of controller by forwarding module, the MAC Address that this protocol massages is corresponding is equivalent to send the source MAC of the terminal of this protocol massages, the back message using obtaining after controller is processed due to this protocol massages finally still will be transmitted to this terminal, therefore for controller, to forwarding module, send in the downlink transmission process of back message using, the source MAC that this protocol massages is corresponding with respect to controller is equivalent to the target MAC (Media Access Control) address of back message using, but in fact, here said source MAC and target MAC (Media Access Control) address are identical, it is all the MAC Address that sends the terminal of this protocol massages, it is the MAC Address in the embodiment of the present invention.
Further, controller is when initiatively carrying out MAC address learning to the protocol massages reporting, forwarding module can adopt the mode of prior art to carry out MAC address learning to protocol massages, forwarding module can also carry out MAC address learning to data message, and by the MAC Address of the message obtaining, SubVLAN ID, report controller with Super VLAN ID and the object output port of SubVLAN ID binding, controller is searched the list item that whether exists the message information that reports with forwarding module to mate in local software mac address table, if there is no, the message information forwarding module being reported adds in software mac address table, to can search message information in software mac address table while needing to use message information the situation except retransmission protocol message.
Further, controller can also be issued to list item protocol massages being carried out in software mac address table that MAC address learning obtains on forwarding module, thereby avoid, because forwarding module carries out MAC address learning failure, causing data message via the problem of a large amount of broadcast of forwarding module.
The method providing by the above-mentioned enforcement 1 of the present invention, owing to receiving when controller the protocol massages reporting, initiatively this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages that study is obtained, SubVLAN ID, with the Super VLAN ID of SubVLAN ID binding and object output port stores synchronized in local software mac address table, without the message information corresponding with this protocol massages MAC Address of waiting for that forwarding module reports, avoided forwarding module to report the situation of delay, and then avoided postponing to cause controller not find protocol massages in software mac address table and the situation of a large amount of Radio Broadcasting Agreements messages because forwarding module reports, reduced the load of giving out a contract for a project, and reduced the non-quantity that object terminal receives invalidation protocol message of replying, thereby improved the utilance of the network bandwidth.
Embodiment 2:
Based on same inventive concept, the protocol message processing method providing according to the above embodiment of the present invention, correspondingly, another embodiment of the present invention also provides protocol massages processing unit, and its structural representation as shown in Figure 6, specifically comprises:
Receiving element 601, the protocol massages sending for receiving forwarding module, described protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address of the terminal of described protocol massages, described protocol massages to described forwarding module;
Unit 602, for when not finding the list item mating with MAC Address and the VLAN ID of described protocol massages at software mac address table, described protocol massages is carried out to MAC address learning, by the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address in described software mac address table;
First issues unit 603, for described protocol massages being processed to the back message using that obtains and the object output port information of described protocol massages, be issued to described forwarding module, for described forwarding module, by described object output port, forward described back message using.
Further, described VLAN is any sub-VLAN SubVLAN in SuperVLAN in super VLAN;
Unit 602, specifically for obtaining the SuperVLAN ID of described MAC Address, SubVLAN ID and SubVLAN ID binding that described protocol massages carries; By the described MAC Address of described protocol massages, described SubVLAN ID, SuperVLAN ID that described SubVLAN ID is corresponding, and object output port corresponding stored corresponding to described MAC Address is in described software mac address table.
Unit 602, is defined as object output port corresponding to described MAC Address specifically for described forwarding module being received to the input port that described terminal sends described protocol massages.
Further, said apparatus, also comprises:
Second issues unit 604, for when finding the list item mating with MAC Address and the VLAN ID of described protocol massages at software mac address table, by described protocol massages process the back message using that obtains and find be issued to described forwarding module with described MAC Address, object output port that VLAN ID is corresponding, for described forwarding module, by described object output port, forward described back message using.
The function of above-mentioned each unit can, corresponding to the respective handling step in flow process shown in Fig. 3-Fig. 5, not repeat them here.
Embodiment 3:
Based on same inventive concept, the protocol message processing method providing according to the above embodiment of the present invention, correspondingly, another embodiment of the present invention also provides protocol massages processing unit, its structural representation as shown in Figure 7, comprising: controller 701 and forwarding module 702, wherein:
Described controller 701, comprises the protocol massages processing unit in embodiment 2;
Described forwarding module 702, for sending protocol massages to described controller; Receive the described back message using of described controller transmission and the object output port information of described protocol massages; By described object output port, forward described back message using.
Further, described controller 701, as shown in Figure 8, comprising: study module 801 and protocol module 802, wherein:
Described study module 801, the described protocol massages sending for receiving described forwarding module, described protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address of the terminal of described protocol massages, described protocol massages to described forwarding module; Described protocol massages is sent to described protocol module; When not finding the list item mating with MAC Address and the VLAN ID of described protocol massages in software mac address table, described protocol massages is carried out to MAC address learning, by the described MAC Address of described protocol massages, described VLAN ID and the object output port corresponding stored corresponding with described MAC Address in described software mac address table; Described object output port information is sent to described protocol module;
Described protocol module 802, the described protocol massages sending for receiving described study module; Described protocol massages is processed, obtained back message using; The described object output port information of described back message using and reception is sent to described forwarding module.
In sum, the scheme that the embodiment of the present invention provides, controller receives the protocol massages that forwarding module sends, and this protocol massages carries the VLAN ID VLAN ID that sends VLAN under the medium access control MAC Address, protocol massages of the terminal of protocol massages to forwarding module; When not finding the list item mating with MAC Address and the VLAN ID of protocol massages in software mac address table, protocol massages is carried out to MAC address learning, by the MAC Address of protocol massages, VLAN ID and the object output port corresponding stored corresponding with MAC Address in software mac address table; Protocol massages is processed to the back message using that obtains and the object output port information of protocol massages is issued to forwarding module, for described forwarding module, by object output port, forward back message using.The scheme that adopts the embodiment of the present invention to provide, has reduced the load of giving out a contract for a project of physical exchange equipment, and has reduced non-quantity of replying object terminal reception invalidation protocol message, thereby has improved the utilance of the network bandwidth.
Protocol massages processing unit and system that the application's embodiment provides can realize by computer program.Those skilled in the art should be understood that; above-mentioned Module Division mode is only a kind of in numerous Module Division modes; if be divided into other modules or do not divide module, as long as protocol massages processing unit and system have above-mentioned functions, all should be within the application's protection range.
The application is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present application, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.