Movatterモバイル変換


[0]ホーム

URL:


CN104125150A - Protocol message processing method, device and system - Google Patents

Protocol message processing method, device and system
Download PDF

Info

Publication number
CN104125150A
CN104125150ACN201410349905.XACN201410349905ACN104125150ACN 104125150 ACN104125150 ACN 104125150ACN 201410349905 ACN201410349905 ACN 201410349905ACN 104125150 ACN104125150 ACN 104125150A
Authority
CN
China
Prior art keywords
mac address
protocol massages
vlan
output port
forwarding module
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.)
Pending
Application number
CN201410349905.XA
Other languages
Chinese (zh)
Inventor
蔡振兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co LtdfiledCriticalFujian Star Net Communication Co Ltd
Priority to CN201410349905.XApriorityCriticalpatent/CN104125150A/en
Publication of CN104125150ApublicationCriticalpatent/CN104125150A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The invention discloses a protocol message processing method, device and system. The method includes that a controller receives a protocol message which is sent by a forwarding module; when a table item which is matched with an MAC address and VLAN ID of the protocol message can not be found out in a software MAC address table, MAC address learning is performed on the protocol message, the MAC address and the VLAN ID of the protocol message and an objective output port which corresponds to the MAC address are correspondingly stored in the software MAC address table, and objective output port information of the protocol message and a response message obtained by processing of the protocol message are sent to the forwarding module so that the forwarding module can forward the response message through the objective output port. By means of the scheme, package issuing loads of a physical switching device can be lowered, the number of received invalid protocol messages by a non-response objective terminal can be reduced, and the utilizing ratio of network bandwidth can be increased.

Description

A kind of protocol message processing method, Apparatus and system
Technical field
The present invention relates to computer network communication field, relate in particular to a kind of protocol message processing method, Apparatus and system.
Background technology
In the process by physical exchange equipment, message being forwarded in network, conventionally physical exchange equipment is divided into control plane and Forwarding plane, Forwarding plane is realized by hardware forwarding chip, by message is carried out to medium access control (MAC, Media Access Control) address learning forwards message between the port of hardware forwarding chip.
Message in network is different by processing mode, is divided into data message and protocol massages.The structural representation that is illustrated in figure 1 the protocol massages treatment system under single VLAN (VLAN, Virtual Local Area Network) scene, when protocol massages is forwarded under single VLAN scene, existing processing mode is mainly:
The hardware forwarding chip of Forwarding plane receives by port the protocol massages that terminal sends, and protocol massages is reported to the protocol module of control plane, in this protocol massages, carry MAC Address and VLAN ID (VLAN ID, Virtual Local Area Network Identification), simultaneously when hardware forwarding chip does not find the list item corresponding with the MAC Address of this protocol massages and VLAN ID in address forwarding table, this protocol massages is carried out to MAC address learning, the MAC Address of this protocol massages will be comprised, the list item of VLAN ID and object output port corresponding relation reports control plane, control plane adds this list item in the software mac address table of self storing, wherein, this object output port is the port of the protocol massages of hardware forwarding chip receiving terminal transmission.
The protocol module of control plane receives the protocol massages of the hardware forwarding chip transmission of Forwarding plane, and this protocol massages is processed, generate back message using, the target MAC (Media Access Control) address of back message using, VLAN ID respectively with the MAC Address of this protocol massages, VLAN ID is identical, list item corresponding to target MAC (Media Access Control) address that to search with this protocol massages MAC Address in software mac address table in control plane be back message using, obtain the object output port of this back message using, the object output port of back message using and this back message using is sent to the hardware forwarding chip of Forwarding plane, hardware forwarding chip is forwarded this back message using by object output port.Owing to E-Packeting according to the object output port corresponding with the MAC Address of this protocol massages, be actually correspondence and export to terminal, hardware forwarding chip is transmitted to this terminal by this back message using.
The above-mentioned processing mode under the scene of single VLAN, protocol massages being forwarded, be equally applicable to super VLAN (Super VLAN, Super Virtual Local Area Network), under scene, be illustrated in figure 2 the structural representation of the protocol massages treatment system under Super VLAN scene.Super VLAN is tied to a plurality of sub-interfaces in a virtual interface, and each sub-interface is the Sub-VLAN of Super VLAN, i.e. SubVLAN.When the terminal under SubVLAN goes up datagram protocol message to this SubVLAN, hardware forwarding chip is learnt the MAC Address of this protocol massages, and the list item of the MAC of this protocol massages, Super VLAN ID and object output port corresponding relation is reported to control plane, control plane adds this list item in the software mac address table of self storing to.
Above-mentioned existing in protocol massages method for processing forwarding, protocol massages the transmission of Forwarding plane and control plane and hardware forwarding chip by study to mac address table to report control plane be to realize in two different paths, be two independently processing procedures.When the protocol module of control plane is processed and generated back message using the protocol massages reporting, while searching list item corresponding to MAC Address with this protocol massages in software mac address table, if now the hardware forwarding chip of Forwarding plane does not also report control plane by the list item that comprises the object output port corresponding relation that this MAC Address and VLAN ID are corresponding, be that hardware forwarding chip reports this list item to postpone, protocol module can not find the list item corresponding with this protocol massages in software mac address table so, make in earlier stage to occur in protocol massages communication the situation of a large amount of protocol massages broadcast.Owing to carrying out frequently protocol massages broadcast, the non-object terminal of replying can receive invalid protocol massages, has greatly taken the bandwidth resources of local area network (LAN), has reduced the utilance of the network bandwidth.
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.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, is used from explanation the present invention with the embodiment of the present invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structural representation of the protocol massages treatment system under single VLAN scene in prior art;
Fig. 2 is the structural representation of the protocol massages treatment system under single Super VLAN scene in prior art;
The flow chart of the protocol message processing method that Fig. 3 provides for the embodiment of the present invention;
The flow chart of the protocol message processing method that Fig. 4 provides for the embodiment of the present invention 1;
The flow chart of the protocol message processing method that Fig. 5 provides for the embodiment of the present invention 2;
The structural representation of the protocol massages processing unit that Fig. 6 provides for the embodiment of the present invention 3;
The structural representation of the protocol massages treatment system that Fig. 7 provides for the embodiment of the present invention 4;
The structural representation of the controller that Fig. 8 provides for the embodiment of the present invention 4.
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.

Claims (10)

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;
CN201410349905.XA2014-07-222014-07-22Protocol message processing method, device and systemPendingCN104125150A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410349905.XACN104125150A (en)2014-07-222014-07-22Protocol message processing method, device and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410349905.XACN104125150A (en)2014-07-222014-07-22Protocol message processing method, device and system

Publications (1)

Publication NumberPublication Date
CN104125150Atrue CN104125150A (en)2014-10-29

Family

ID=51770418

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410349905.XAPendingCN104125150A (en)2014-07-222014-07-22Protocol message processing method, device and system

Country Status (1)

CountryLink
CN (1)CN104125150A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016074500A1 (en)*2014-11-112016-05-19中兴通讯股份有限公司Method and device for synchronizing media access control (mac) address
CN107332610A (en)*2017-06-232017-11-07青岛海信宽带多媒体技术有限公司A kind of optical-fiber network is registered one's residence the method and apparatus of device forwards protocol massages
CN109982384A (en)*2019-03-282019-07-05新华三技术有限公司Message forwarding method, device, the network equipment and medium
CN111555981A (en)*2020-04-032020-08-18深圳震有科技股份有限公司Data transmission method, switch and storage medium
CN113542277A (en)*2021-07-162021-10-22上海海得控制系统股份有限公司Method, system, medium, and apparatus for CANOPEN device bridging through TSN network
EP4366267A4 (en)*2022-01-292024-11-27Huawei Technologies Co., Ltd. METHOD, SYSTEM AND APPARATUS FOR DATA TRANSMISSION

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070171918A1 (en)*2006-01-262007-07-26Migaku OtaFrame forwarding apparatus for converting VLAN identifiers
CN101719877A (en)*2010-01-152010-06-02福建星网锐捷网络有限公司Message forwarding device, network equipment and method
CN101958938A (en)*2010-06-012011-01-26福建星网锐捷网络有限公司Learning method and device of MAC address table based on network processor
CN102811173A (en)*2012-07-262012-12-05杭州华三通信技术有限公司Media access control (MAC) address learning method and equipment
CN102938794A (en)*2012-11-142013-02-20华为技术有限公司Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN103430497A (en)*2013-02-272013-12-04华为技术有限公司 Medium access control MAC address learning method, controller and switching device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070171918A1 (en)*2006-01-262007-07-26Migaku OtaFrame forwarding apparatus for converting VLAN identifiers
CN101719877A (en)*2010-01-152010-06-02福建星网锐捷网络有限公司Message forwarding device, network equipment and method
CN101958938A (en)*2010-06-012011-01-26福建星网锐捷网络有限公司Learning method and device of MAC address table based on network processor
CN102811173A (en)*2012-07-262012-12-05杭州华三通信技术有限公司Media access control (MAC) address learning method and equipment
CN102938794A (en)*2012-11-142013-02-20华为技术有限公司Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN103430497A (en)*2013-02-272013-12-04华为技术有限公司 Medium access control MAC address learning method, controller and switching device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016074500A1 (en)*2014-11-112016-05-19中兴通讯股份有限公司Method and device for synchronizing media access control (mac) address
CN105656783A (en)*2014-11-112016-06-08中兴通讯股份有限公司Method and device for synchronizing MAC (Media Access Control) addresses
CN105656783B (en)*2014-11-112020-03-13中兴通讯股份有限公司MAC address synchronization method and device
CN107332610A (en)*2017-06-232017-11-07青岛海信宽带多媒体技术有限公司A kind of optical-fiber network is registered one's residence the method and apparatus of device forwards protocol massages
CN109982384A (en)*2019-03-282019-07-05新华三技术有限公司Message forwarding method, device, the network equipment and medium
CN109982384B (en)*2019-03-282022-05-24新华三技术有限公司Message forwarding method, device, network equipment and medium
CN111555981A (en)*2020-04-032020-08-18深圳震有科技股份有限公司Data transmission method, switch and storage medium
CN113542277A (en)*2021-07-162021-10-22上海海得控制系统股份有限公司Method, system, medium, and apparatus for CANOPEN device bridging through TSN network
EP4366267A4 (en)*2022-01-292024-11-27Huawei Technologies Co., Ltd. METHOD, SYSTEM AND APPARATUS FOR DATA TRANSMISSION

Similar Documents

PublicationPublication DateTitle
CN104125150A (en)Protocol message processing method, device and system
CN103516609A (en)Method and equipment for transmitting service messages
CN105392181B (en)Networking method, device and system of intelligent equipment
CN104301238A (en)Message processing method, device and system
CN104144475A (en) Method, access point and station for realizing coordinated multi-point transmission
CN113625589B (en)Equipment control method and device, electronic equipment and storage medium
CN104378299A (en)Flow table entry processing method and device
CN105162702A (en)AC current guide method and device
US12041688B2 (en)Screen projection method and system
CN103338152A (en)Multicast message forwarding method and main control board
CN103441927A (en)Message processing method and device
CN103503413B (en)Method and device for transmitting network information
CN104301229A (en)Data packet forwarding method and device and routing table generating method and device.
US10848472B2 (en)Method and WLAN controller for managing authentication data of STA
CN111953520A (en)Method, apparatus, device and medium for implementing group control through group virtual device
CN114285695B (en)Communication method, device, apparatus, system and storage medium
US20170046306A1 (en)Data processing method, processor, and data processing device
CN103634385A (en)System, method and server for data synchronizing
CN104158877A (en)Remote control method, and device and system
CN103200110B (en)A kind of data multicast method and apparatus being applied to intelligent substation local area network
US9985926B2 (en)Address acquiring method and network virtualization edge device
CN105117401A (en)Method, device and system for parallel transmission of pictures
CN105392171A (en)Packet forwarding method and forwarding device thereof
CN109618015B (en)Data center-based de-stacking implementation method and device
CN104717216A (en)Network access control method, device and core equipment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
WD01Invention patent application deemed withdrawn after publication

Application publication date:20141029

WD01Invention patent application deemed withdrawn after publication

[8]ページ先頭

©2009-2025 Movatter.jp