Invention content
In view of the foregoing deficiencies of prior art, the configuration of the port shared the purpose of the present invention is to provide multi-VLAN
Method and system solve the problems, such as optical-fiber network VLAN realization methods blank in the prior art.
To realize above-mentioned target and other related objectives, the present invention provides the configuration side of port that a kind of multi-VLAN shares
Method, including:Receiving port configuration information, the port configuration information include:Port PVID, the polymerization transformation rule configuration of port
Information and the translation transformation rule configuration information of port;Port to be configured is configured according to the port configuration information with
As the foundation of port processing VLAN messages, the configuration includes:Translation transformation rule is established for the port, including:
One to the one translation conversion to the VID from the port ascending VLAN message and the VID from the port downlink VLAN messages
One to one anti-translation conversion;Polymerization transformation rule is established for the port, including:To from the port ascending VLAN message
The more to one polymerization conversion of VID and one of VID from the port downlink VLAN messages to more anti-polymerization conversions.
Optionally, the translation transformation rule and polymerization transformation rule are corresponding with list, and the list includes a plurality of list item,
Every list item includes at least matching field and corresponding action;The port includes the processing of the VLAN messages of process following
One or more:1) according to the VLAN ID of the VLAN messages with tag from the port uplink, in the translation transformation rule
Or the matching of matching field is carried out in list corresponding to polymerization transformation rule, if matching, it is dynamic to perform corresponding translation conversion
Make or polymerize switching motion, to realize the conversion of message VID;2) to being added from the VLAN messages without tag of the port uplink
The port PVID;3) according to the VLAN ID of the VLAN messages with tag from the port downlink, in the translation conversion
The matching of matching field is carried out in list corresponding to rule or polymerization transformation rule, if matching, performs the matching field
Corresponding translation switching motion or polymerization switching motion, to realize the conversion of message VID.
Optionally, the port by the processing of VLAN messages to further including one or more following:If 1) from the end
Tag in the VLAN messages with tag of mouth uplink is the PVID of the port, then without abandoning;If 2) from the port
Tag in the VLAN messages with tag of downlink is the PVID of the port, then divests the tag before VLAN messages are forwarded.
Optionally, the port by the processing of VLAN messages to further including:The VLAN messages unmatched to described into
Row abandons.
Optionally, PON port of the port for the OLT device in fiber optic network.
To realize above-mentioned target and other related objectives, the present invention provides the configuration system of port that a kind of multi-VLAN shares
System, including:Interactive interface module, for receiving port configuration information, the port configuration information includes:Port PVID, port
Polymerization transformation rule configuration information and port translation transformation rule configuration information;Port configuration module, for according to
Port configuration information is configured port to be configured using the foundation as port processing VLAN messages, the configuration packet
It includes:Translation transformation rule is established for the port, including:It is turned over to one to one of the VID from the port ascending VLAN message
Translate the anti-translation conversion of one to the one of conversion and the VID from the port downlink VLAN messages;Polymerization is established for the port to turn
Rule is changed, including:To more to one polymerization of the VID from port ascending VLAN message conversion and from the port downlink
The one of the VID of VLAN messages converts to more anti-polymerizations.
Optionally, the translation transformation rule and polymerization transformation rule are corresponding with list, and the list includes a plurality of list item,
Every list item includes at least matching field and corresponding action;The port includes the processing of the VLAN messages of process following
One or more:1) according to the VLAN ID of the VLAN messages with tag from the port uplink, in the translation transformation rule
Or the matching of matching field is carried out in list corresponding to polymerization transformation rule, if matching, it is dynamic to perform corresponding translation conversion
Make or polymerize switching motion, to realize the conversion of message VID;2) to being added from the VLAN messages without tag of the port uplink
The port PVID;3) according to the VLAN ID of the VLAN messages with tag from the port downlink, in the translation conversion
The matching of matching field is carried out in list corresponding to rule or polymerization transformation rule, if matching, performs the matching field
Corresponding translation switching motion or polymerization switching motion, to realize the conversion of message VID.
Optionally, the port by the processing of VLAN messages to further including one or more following:If 1) from the end
Tag in the VLAN messages with tag of mouth uplink is the PVID of the port, then without abandoning;If 2) from the port
Tag in the VLAN messages with tag of downlink is the PVID of the port, then divests the tag before VLAN messages are forwarded.
Optionally, the port by the processing of VLAN messages to further including:The VLAN messages unmatched to described into
Row abandons.
Optionally, PON port of the port for the OLT device in fiber optic network.
In conclusion the configuration method and system of the port that multi-VLAN provided by the invention shares, are matched by receiving port
Confidence ceases, and the port configuration information includes:The translation of port PVID, the polymerization transformation rule configuration information of port and port turn
Change rule configuration information;Port to be configured is configured according to the port configuration information to be handled as the port
The foundation of VLAN messages, the configuration include:Translation transformation rule is established for the port, including:To from the port uplink
The translation conversion and one to the one anti-translation of the VID from the port downlink VLAN messages of one to the one of the VID of VLAN messages
Conversion;Polymerization transformation rule is established for the port, including:To more to one of the VID from the port ascending VLAN message
Polymerize conversion and the VID from the port downlink VLAN messages one converts to more anti-polymerizations, solves asking for the prior art
Topic.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, the embodiment in the application
And the feature in embodiment can be combined with each other.
As shown in Figure 1, the present invention provides the configuration method of port that a kind of multi-VLAN shares, in one embodiment, preferably
, the port is the PON ports of the OLT device in fiber optic network.
The method includes:
Step S1:Receiving port configuration information, the port configuration information include:Port PVID, the polymerization conversion of port
Rule configuration information and the translation transformation rule configuration information of port.
In one embodiment, the port configuration information can be input by user, in addition to the above, may also include
Translation conversion, message amount etc. of polymerization conversion, for example, following exemplary provide the definition of specific implementation:
Parameter declaration:
defaultVlan:Port PVID
tslGroupNum:Port translation converts number
vlanModeTranslateGroup:Translate transformational relation design parameter
aggGroupNum:Number is converted in port trunking
vlanModeAggreGroup:It polymerize transformational relation design parameter
Step S2:Port to be configured is configured according to the port configuration information to be handled as the port
The foundation of VLAN messages, the configuration include:Translation transformation rule is established for the port, including:To from the port uplink
The translation conversion and one to the one anti-translation of the VID from the port downlink VLAN messages of one to the one of the VID of VLAN messages
Conversion;Polymerization transformation rule is established for the port, including:To more to one of the VID from the port ascending VLAN message
Polymerize conversion and the VID from the port downlink VLAN messages one converts to more anti-polymerizations.
In one embodiment, the translation transformation rule and polymerization transformation rule are corresponding with list, and the list includes more
List item, every list item includes at least matching field and corresponding action, and (such as polymerization conversion or translation conversion, i.e., will be in message
Old VID be converted to the new VID of target), principle is similar to flow table or flow table realization can be used directly;The port is to passing through
The processing of VLAN messages include one or more following:1) according to the VLAN messages with tag from the port uplink
VLAN ID carry out the matching of matching field, if matching in list corresponding to the translation transformation rule or polymerization transformation rule
On, then corresponding translation switching motion or polymerization switching motion are performed, to realize the conversion of message VID;2) to from the port
The VLAN messages without tag of uplink add the port PVID;3) according to the VLAN messages with tag from the port downlink
VLAN ID, the matching of matching field is carried out corresponding to transformation rule in list in the translation transformation rule or polymerize, if
It mixes, then the corresponding translation switching motion of the matching field or polymerization switching motion is performed, to realize the conversion of message VID.
Specifically, the processing about message is summarized as follows, including:Port uplink translation lists matching less than band
Tag packet loss;Port downlink translation lists matching less than band tag packet loss;Downlink is matched in translation lists
Less than without tag (untagged) packet loss;The message of the band default VLAN ID (i.e. port PVID) of port uplink should not
It abandons;The band tag messages matched in translation lists the stripping tag of port downlink.
In one embodiment, the port by the processing of VLAN messages to further including one or more following:If 1) from
Tag in the VLAN messages with tag of the port uplink is the PVID of the port, then without abandoning;If 2) from institute
The PVID that the tag in the VLAN messages with tag of port downlink is the port is stated, then divests this before VLAN messages are forwarded
tag。
In one embodiment, it is preferred that the port by the processing of VLAN messages to further including:Described is unmatched
VLAN messages abandoned.
Illustrate above-mentioned principle, it is first determined the function to be reached is configured in port, is only needed at present in VLAN messages
VID field value is converted, other field values can need not first change, such as shown in following table:
Again as shown in Fig. 2, providing specifically to carrying out VID translation transfer processes from the message of the port uplink, specifically,
The conversion of VID to NEW_VID is realized based on port using VLAN_XLATE list items in existing table (translation of VID is converted);It and can
Using the switching motion of VLAN_XLATE list items by predefined ING_VLAN_TAG_ACTION_PROFILE list items come real
It is existing;Predefined SOT_TAG_ACTION actions are replace VLAN, that is, for performing corresponding end in aforementioned Message processing
The respective action of mouth uplink.
Again as shown in figure 3, providing specifically that VID is counter to translate transfer process to being carried out from the message of the port downlink, realize
Function includes:A. downlink realizes the conversion of VID to NEW_VID using predefined EGR_VLAN_XLATE list items based on port;
The switching motion of b.EGR_VLAN_XLATE list items is realized by predefined EGR_VLAN_TAG_ACTION_PROFILE;
C. it is replace VLAN to predefine SOT_TAG_ACTION actions, that is, for performing corresponding ports in aforementioned Message processing
The respective action of downlink.
As shown in figure 4, providing specifically to the polymerization transfer process of the message progress more to one from the port uplink, realize
Function includes:Uplink realizes the conversion of VID to NEW_VID using VLAN_XLATE list items based on port;B.VLAN_XLATE tables
The switching motion of item is realized by predefined ING_VLAN_TAG_ACTION_PROFILE list items;C. SOT_ is predefined
The action of TAG_ACTION configurations is replace VLAN, that is, for performing corresponding ports uplink in aforementioned Message processing
Respective action.;D. VPORT (port) is configured in predefined ING_DVP_TABLE list items and NEXT_HOP_INDEX is (next
Jump index) correspondence, to know the transmission objectives of message.
As shown in figure 5, providing specifically to the polymerization transfer process of the message progress more to one from the port downlink, realize
Function includes:A. downlink finds the corresponding VPORT of HOP_INDEX by predefined EGR_L3_NEXT_HOP list items, to know report
The transmission objectives of text;B. downlink finds corresponding VLAN transformational relations by predefined ING_DVP_TABLE, i.e. VLAN's
Translation type;C. downlink realizes the conversion of VID to NEW_VID using predefined EGR_VLAN_XLATE list items based on port;
The switching motion of d.EGR_VLAN_XLATE list items is realized by predefined EGR_VLAN_TAG_ACTION_PROFILE;
E. it is replace VLAN to predefine SOT_TAG_ACTION actions, that is, for performing corresponding ports in aforementioned Message processing
The respective action of downlink.
As shown in fig. 6, the present invention provides the configuration system 1 of port that a kind of multi-VLAN shares, principle and the above method
It is no longer repeated for similar therefore identical technical detail;The system 1 includes:Interactive interface module 11, for receiving port
Configuration information, the port configuration information include:Port PVID, the polymerization transformation rule configuration information of port and the translation of port
Transformation rule configuration information;Port configuration module 12, for being matched according to the port configuration information to port to be configured
It puts using the foundation as port processing VLAN messages, the configuration includes:Translation transformation rule, packet are established for the port
It includes:Translation conversion to one to one of the VID from the port ascending VLAN message and from the port downlink VLAN messages
The anti-translation conversion of one to the one of VID;Polymerization transformation rule is established for the port, including:To from the port ascending VLAN
The polymerization conversion of more to the one of the VID of message and one of the VID from the port downlink VLAN messages turn to more anti-polymerizations
It changes.
In one embodiment, the translation transformation rule and polymerization transformation rule are corresponding with list, and the list includes more
List item, every list item include at least matching field and corresponding action;The port is to the processing packet of the VLAN messages of process
Include one or more following:1) according to the VLAN ID of the VLAN messages with tag from the port uplink, in the translation
The matching of matching field is carried out in list corresponding to transformation rule or polymerization transformation rule, if matching, performs corresponding turn over
Switching motion or polymerization switching motion are translated, to realize the conversion of message VID;2) to the VLAN without tag from the port uplink
Message adds the port PVID;3) according to the VLAN ID of the VLAN messages with tag from the port downlink, described
It translates transformation rule or polymerize the matching that matching field is carried out in list corresponding to transformation rule, if matching, described in execution
The corresponding translation switching motion of matching field or polymerization switching motion, to realize the conversion of message VID.
In one embodiment, the port by the processing of VLAN messages to further including one or more following:If 1) from
Tag in the VLAN messages with tag of the port uplink is the PVID of the port, then without abandoning;If 2) from institute
The PVID that the tag in the VLAN messages with tag of port downlink is the port is stated, then divests this before VLAN messages are forwarded
tag。
In one embodiment, the port by the processing of VLAN messages to further including:The VLAN unmatched to described
Message is abandoned.
In one embodiment, PON port of the port for the OLT device in fiber optic network.
In conclusion the configuration method and system of the port that multi-VLAN provided by the invention shares, are matched by receiving port
Confidence ceases, and the port configuration information includes:The translation of port PVID, the polymerization transformation rule configuration information of port and port turn
Change rule configuration information;Port to be configured is configured according to the port configuration information to be handled as the port
The foundation of VLAN messages, the configuration include:Translation transformation rule is established for the port, including:To from the port uplink
The translation conversion and one to the one anti-translation of the VID from the port downlink VLAN messages of one to the one of the VID of VLAN messages
Conversion;Polymerization transformation rule is established for the port, including:To more to one of the VID from the port ascending VLAN message
Polymerize conversion and the VID from the port downlink VLAN messages one converts to more anti-polymerizations, solves asking for the prior art
Topic.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, has usually intellectual complete without departing from disclosed spirit and institute under technological thought such as in bent technical field
Into all equivalent modifications or change, should by the present invention claim be covered.