CN105337851B - A kind of message processing method and ports-Extending plate - Google Patents
A kind of message processing method and ports-Extending plate Download PDFInfo
- Publication number
- CN105337851B CN105337851B CN201410313154.6A CN201410313154A CN105337851B CN 105337851 B CN105337851 B CN 105337851B CN 201410313154 A CN201410313154 A CN 201410313154A CN 105337851 B CN105337851 B CN 105337851B
- Authority
- CN
- China
- Prior art keywords
- message
- load
- load message
- packet filtering
- target
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
Abstract
The present invention provides a kind of message processing method and ports-Extending plate, and the method is executed by ports-Extending plate PE, and the PE includes forwarding chip and central processing unit;The method includes:The forwarding chip receives load message, and the load message carries PE file data to be loaded;For the forwarding chip according to preset packet filtering rule, selection target loads message from the load message received, and the file data of target load message is sent to the central processing unit and is handled;The destination address of the target load message is the PE.The present invention improves the starting speed of PE.
Description
Technical field
The present invention relates to the communication technology, in particular to a kind of message processing method and ports-Extending plate.
Background technique
In third generation intelligent elastic framework (Intelligent Resilient Framework3.0, abbreviation:IRF3) system
In system, including control bridge (Control Bridge, referred to as:CB) and ports-Extending plate (Port Extender, referred to as:PE), respectively
PE equipment is connected in CB equipment, and provides ports-Extending function for CB equipment.PE is to need needed for loading starting on startup
Version file, but PE itself can't save these version files, but when PE starts every time, by CB by CB with
Version file needed for PE starting is sent to PE, specifically can be through load message and send by the data link between PE.
Specifically, CB the device identification of the purpose PE transmitted by file can be arranged in load message, for example, it is assumed that CB
When the version file needed for sending PE1, then by the device identification setting of PE1 in load message.If equipment mark will be arranged
The field of knowledge is known as identification field, then in the side PE, it can be by central processing unit (Central Processing Unit, letter
Claim:CPU) the load identification software that is stored in advance in PE executes the identification to the identification field;For example, the CPU in PE1 will
Judge whether the device identification being arranged in identification field is the mark of PE1 itself, if it is, determining that the message is destined to
PE1's, CPU continues with the version file data carried in message.But PE is when executing above-mentioned message identifying processing,
Not only speed is slower, but also the case where be easy to happen processing failure, seriously reduces the starting speed of PE.
Summary of the invention
In view of this, the present invention provides a kind of message processing method and ports-Extending plate, to improve the starting speed of PE.
Specifically, the present invention is achieved through the following technical solutions:
In a first aspect, providing a kind of message processing method, the method is executed by ports-Extending plate PE, and the PE includes turning
Send out chip and central processing unit;The method includes:
The forwarding chip receives load message, and the load message carries PE file data to be loaded;
The forwarding chip is according to preset packet filtering rule, and selection target adds from the load message received
Message is carried, and the file data of target load message is sent to the central processing unit and is handled;It is described
The destination address that target loads message is the PE.
With reference to first aspect, in the first possible implementation, the forwarding chip is according to preset packet filtering
Rule, selection target loads message from the load message received, including:The forwarding chip obtains the load report
The PE device identification of identification field setting in text;If the in the PE device identification and preset packet filtering rule
One PE facility information is identical, then the forwarding chip determines that the load message is the target load message, the first PE
Facility information is used to indicate that the destination address of the load message to be the PE.
With reference to first aspect, in the second possible implementation, the forwarding chip is according to preset packet filtering
Rule, selection target loads message from the load message received, including:The forwarding chip obtains the load report
The PE device identification of identification field setting in text;If the in the PE device identification and preset packet filtering rule
Two PE facility informations are different, then the forwarding chip determines that the load message is the target load message, the 2nd PE
Facility information is used to indicate that the destination address of the load message to be other PE except the PE.
The possible implementation of with reference to first aspect the first or second of possible implementation, it is possible at the third
Implementation in, the forwarding chip obtain it is described load message in identification field setting PE device identification before,
Further include:The forwarding chip obtains the type of message information of the type field setting in the load message, and described in determination
Type of message information is identical as the Target type information in the preset packet filtering rule, and the Target type information is used for
Indicate to need to be determined according to the packet filtering rule load message whether be target load message type of message.
With reference to first aspect, in the fourth possible implementation, before the forwarding chip receives load message,
Further include:The forwarding chip stores the preset message mistake in user-defined domain in a manner of accesses control list
Filter rule.
Second aspect provides a kind of ports-Extending plate PE, including:Forwarding chip and central processing unit;The forwarding core
Piece includes:Message receiving unit, for receiving load message, the load message carries PE file data to be loaded;
Packet filtering unit, for regular, the load report received from the message receiving unit according to preset packet filtering
Selection target loads message in text, and the destination address of the target load message is the PE;Packet sending unit is used for institute
The file data for stating the target load message that packet filtering unit obtains is sent to the central processing unit and carries out
Processing.
In conjunction with second aspect, in the first possible implementation, the packet filtering unit is specifically used for obtaining institute
State the PE device identification of the identification field setting in load message;If the PE device identification and the preset packet filtering are advised
The first PE facility information in then is identical, it is determined that the load message is the target load message, the first PE equipment
Information is used to indicate that the destination address of the load message to be the PE.
In conjunction with second aspect, in the second possible implementation, the packet filtering unit is specifically used for obtaining institute
State the PE device identification of the identification field setting in load message;If the PE device identification and the preset packet filtering are advised
The 2nd PE facility information in then is different, it is determined that the load message is the target load message, the 2nd PE equipment
Information is used to indicate that the destination address of the load message to be other PE except the PE.
It is possible at the third in conjunction with the first possible implementation or second of possible implementation of second aspect
Implementation in, the packet filtering unit, be also used to obtain it is described load message in identification field setting PE set
Before standby mark, the type of message information of the type field setting in the load message is obtained, and determines the type of message
Information is identical as the Target type information in the preset packet filtering rule, and the Target type information is needed for indicating
Determine whether the load message is type of message that the target records message according to the packet filtering rule.
In conjunction with second aspect, in the fourth possible implementation, the forwarding chip further includes:Storage unit is used
In before the message receiving unit receives load message, in user-defined domain, deposited in a manner of accesses control list
Store up the preset packet filtering rule.
In the present embodiment, above-mentioned message identification is carried out by hardware, that is, forwarding chip in PE, is sentenced by forwarding chip
Whether disconnected message is target load message, and processing speed will greatly improve, and the negative of CPU is accordingly alleviated after hardware handles
Load, PE is also relatively stable, the case where load failure less easily occurs.In this way, PE is in the transmission version file for receiving CB
After loading message, the message can be quickly recognized and belong to PE, and rapidly can successfully be loaded, to improve opening for PE
Dynamic speed.
Detailed description of the invention
Fig. 1 is a kind of optional application system framework provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of message processing method provided in an embodiment of the present invention;
Fig. 3 is message processing method provided in an embodiment of the present invention using PE structural schematic diagram;
Fig. 4 is the application scenario diagram of another message processing method provided in an embodiment of the present invention;
Fig. 5 is the message format applied in message processing method provided in an embodiment of the present invention;
Fig. 6 is the message field (MFLD) schematic diagram in message processing method provided in an embodiment of the present invention;
Fig. 7 is that the message in message processing method provided in an embodiment of the present invention sends precedence diagram;
Fig. 8 is a kind of structural schematic diagram of ports-Extending plate PE provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another ports-Extending plate PE provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of message processing method, this method can be applied to the biography of the message between CB and PE
Defeated scene.Referring to Fig. 1, a kind of optional application system framework is illustrated, each PE is connected in CB equipment, and provides end for CB
Mouth extension function.CB can provide some PE itself for PE needs file to be loaded, for example, PE start required for version file,
Or patch file or upgrade file etc., these files can be referred to as to PE file to be loaded, these files are ok
PE is sent to by loading message by CB.Whether which kind of file can use Message processing provided in an embodiment of the present invention
Method, this method are executed by PE, and mainly PE is filtered the load message received using this method, and is by PE
In hardware be filtered.It will be described in this method as follows:
Embodiment one
Fig. 2 is a kind of flow diagram of message processing method provided in an embodiment of the present invention, and this method is executed by PE, more
Specifically, being executed by the forwarding chip in PE.As shown in connection with fig. 3, Fig. 3 provides the hardware configuration of PE, which may include
Forwarding chip 31 and central processing unit 32;Wherein, forwarding chip 31 can be used for receiving various messages, and the report that will be received
Text is sent to central processing unit 32 and is handled.For example, the version file to be loaded for PE, during forwarding chip 31 is sent to
After Central Processing Unit 32, central processing unit 32 can be loaded this document on PE, so that PE can pass through the number of this document
According to being started.As shown in Fig. 2, this method may include:
201, forwarding chip receives load message, which carries PE file data to be loaded;
Wherein, it after the message that CB is sent reaches PE, is received by the forwarding chip of PE, for example, in the present embodiment, the forwarding core
Piece receives load message, carries the data of PE file data to be loaded, such as version file, upgrade file etc..At this
It in the subsequent descriptions of the embodiment of invention, is illustrated by taking version file as an example, it will be appreciated by a person skilled in the art that should
Method may be equally applicable for the processing of alternative document.
202, forwarding chip is according to preset packet filtering rule, the selection target load report from the load message received
Text, and the file data of target load message is sent to central processing unit and is handled;The purpose of target load message
Address is the PE where forwarding chip.
In the present embodiment, forwarding chip will add according to packet filtering rule from what is received after receiving load message
It carries selection target in message and loads message, the destination address of target load message is the PE itself where forwarding chip, i.e. mesh
PE itself file data to be loaded is carried in mark load message.
It is exemplified below:It is PE1, PE2 and PE3 respectively assuming that being connected to three PE under CB, CB has sent some load report
Literary B1, the message will be sent to PE1 and PE2, then PE device identification can be arranged in CB in the load message, for marking
Know (it may also be said that the file data in identification message is which PE is to be loaded) which PE message is destined to, that
, the PE device identification of PE1 and PE2 will be arranged in messages.In the side PE, PE1 and PE2 can be according to packet filtering rules really
The fixed above-mentioned message B1 received is target load message, because the destination address of B1 is PE itself;And for PE3, due to report
The destination address of literary B1 does not simultaneously include PE3, so the B1 is not the target load message of PE3.
Wherein, the packet filtering rule, which can be, is preset on forwarding chip;Forwarding chip adds in confirmation target
After carrying message, the file data which loads message can be sent to central processing unit and handled, such as by version
The data of file are loaded to start PE.
The message processing method of the embodiment of the present invention is compared with the message processing method of the prior art:The prior art
In, the side PE will be judged whether message that some is received is that the target of the PE loads message by CPU load identification software, this
Processing mode is due to being that software executes, and not only speed is slower, but also the case where be easy to happen processing failure;And the embodiment of the present invention
In, above-mentioned message identification is carried out by hardware, that is, forwarding chip in PE, judges whether message is target by forwarding chip
Message is loaded, processing speed will greatly improve, and the burden of CPU is accordingly alleviated after hardware handles, and PE is also relatively stable, compared with
It is not easy the case where load failure occur.In this way, PE receive CB transmission version file load message after, can be quick
It identifies that the message belongs to PE, and rapidly can successfully load, to improve the starting speed of PE.And for other classes
PE load document, such as upgrade file of type etc., PE similarly quickly can be identified and be loaded.
Embodiment two
The present embodiment describes answering for message processing method provided in an embodiment of the present invention by a specific application scenarios
With.Fig. 4 is the application scenario diagram of another message processing method provided in an embodiment of the present invention, is connected to three PE under CB, point
It is not PE1, PE2 and PE3;Currently, some version file is sent to these three PE by CB, and uses multicast mode, file
Need to be sent to three PE.In this case, for CB, what is sent carries certain load message of version file,
It is to be required to be sent to three PE;And each PE, the message processing method for executing the present embodiment is required, to identify the report
Text.
In order to enable method provided in this embodiment is more understood and is readily appreciated that, the present embodiment is respectively to the report of the side CB
Literary transmission process and the Message processing process of the side PE are described.
Firstly, the message format that the side CB is sent:What the side CB generated carries PE file to be loaded (such as version file)
Message is loaded, basic message format may refer to Fig. 5, and referring to Fig. 5, loading message includes heading and data portion, number
According to partially carrying specific file data, such as version file data;And heading includes multiple fields.The explanation of each field
It is as follows:
DMAC:The field occupies 6 bytes, and not used MAC specially inside 0180-c2xx-xxxx protocol suite is prevented
With existing protocol MAC Address conflict;For example, 0180-c2ff-fff0, the embodiment of the present invention is described all with the address;Specifically,
The present embodiment sends message using the sending method of multicast, and general customized multicast is all 01 beginning, and general
Layer 2 Multicast address is typically all what 0180-c2 started, this address can freely customize (on condition that other agreements of getting along well have
Conflict), the present embodiment is by taking 0180-c2ff-fff0 as an example.
SMAC:The field occupies 6 bytes, the generally internal mac of CPU, usually unicast address MAC, the present embodiment
The field be such as CB MAC;
802.1Q:The field occupies 4 bytes, and default fields 0x81000001 uses default vlan-tag and ID;
ETYPE:The field occupies 2 bytes, using private type, for example, 0xDCBA, if the field is 0xDCBA
(certainly in specific implementation, the setting of the field can be changed as other forms), then be shown to be the load report of version file
Text;The field is properly termed as type field, and the information of above-mentioned such as 0xDCBA is properly termed as type of message information;
DEST NODE BITMAP(DNBMP):In IRF3 management domain, each PE equipment has a globally unique node
Number, that is, plate number;Message is for when foreboard is effective, position corresponding with the plate number is set as 1 in DNBMP field.
The structure of above-mentioned DNBMP field is illustrated as follows:A kind of optional mode is, referring to Fig. 6, DNBMP field
It is since the 19th byte, because the fields such as DMAC, SMAC in front have occupied 18 bytes in total.In Fig. 6 only
Three bytes in DNBMP are shown, each byte includes 8 bits.It, can be by each bit in the present embodiment
Corresponding one piece of PE sets 1 for the numerical value of the corresponding bit of the PE if selecting certain PE as the destination address of message.
Than as shown in Figure 6, it is assumed that the corresponding relationship of PE and bit is as follows:Slot id is 1 PE --- corresponding the
1st bit of 19 bytes;Slot id is 2 PE --- the 2nd bit of corresponding 19th byte;Slot id is 3
PE --- the 3rd bit of corresponding 19th byte, and so on.Assuming that setting the PE that slot id is 2 to the hair of message
Destination address is sent, then as shown in Figure 6, sets 1 for the 2nd bit of the 19th byte, other bit positions are 0.More
Further, it is assumed that slot id is that 10 PE is set as the transmission destination address of message and is divided by then 10%8 can be calculated
Obtaining integer is 1, and remainder is 2, which is 1, and showing will be from the start byte of DNBMP toward one byte of pusher, that is, Fig. 6
In the 20th byte, remainder is 2, the 2nd bit in the 20th byte is shown to be, then setting 1 for the bit
?.
Then, the file transmitting method of the side CB:The present embodiment provides a kind of optional message transmitting party formulas, but are embodied
In be not limited thereto.In conjunction with scene shown in Figure 4, if the load of the required carrying version file data of every PE
The quantity of message is N number of;For PE1, PE2 and PE3 shown in Fig. 4, CB is sent using sequence, for example, PE1 starts load report
It is t1 at the time of literary, is t3 at the time of starting to load message at the time of PE2 starts to load message for t2, PE3, wherein t1<t2<
T3, i.e. CB first send load message to PE1, send load message to PE2 again after a period of time, then give again after a period of time
PE3 sends load message.Present embodiment assumes that it is that T (only has this that if every PE independent loads, which complete total time used,
Platform PE load), and t2-t1 is set<T, t3-t1<T, it is assumed that the Packet Forwarding Rate of CB is r=N/T.
Sequence arrangement when illustrating that CB sends load message in conjunction with Fig. 7:As shown in fig. 7, CB send message be divided into it is following several
Section:
The first round sends:
1, in t1~t2 period, multicast group 1 is created, fills the DNBMP of PE1, i.e. CB can be in the load message of transmission
DNBMP field in correspondence PE1 flag bit be set as " for indicate PE1 be message send destination address information ",
If DNBMP field is known as identification field, that is, the device identification of PE1 is arranged in the identification field, with
For indicating that PE1 is message destination address;It should be noted that message is only sent to PE1 within t1~t2 period, institute
Only to include PE1 in above-mentioned multicast group 1.
The number n1 of load message that this stage CB is sent is:N1=(t2-t1) * r;
2, in t2~t3 period, multicast group 2 is created, fills the DNBMP of PE1 and PE2, i.e. CB can be in the load report of transmission
It in DNBMP field in text, sets the flag bit for respectively corresponding PE1 and PE2 to " for indicating PE1 and PE2 is that message is sent
Destination address information ", that is to say, that the device identification of PE1 and PE2 is arranged in the identification field, for indicating
PE1 and PE2 is message destination address;Within t2~t3 period, message is sent to PE1 and PE2 simultaneously;
The number n2 of load message that this stage CB is sent is:N2=(t3-t2) * r;
3, in t3~(t1+T) period, multicast group 3 is created, fills the DNBMP of PE1, PE2, PE3, that is to say, that will
The device identification of PE1, PE2 and PE3 are arranged in identification field, to be message destination for indicating PE1, PE2 and PE3
Location;In the t3~(t1+T) in the period, message is sent to PE1, PE2 and PE3 simultaneously:
The number n3 of load message that this stage CB is sent is:N3=((t1+T)-t3) * r;
At this point, having sent N number of message, the state of three PE is as follows:PE1 load is completed, PE2 difference t1~t2 period
N1 interior message, (n1+n2) a message in PE3 difference t1~t3 period;
Then CB starts the transmission of the second wheel:
4, in (t1+T)~(t2+T) period, multicast group 4 is created, fills the DNBMP of PE2, PE3;During this period of time,
Since PE1 has loaded completion, CB is by no longer using PE1 as the destination address of message, but only by the equipment mark of PE2 and PE3
Know and be arranged in identification field, to be message destination address for indicating PE2 and PE3;In (t1+T)~(t2+T) time
In section, message is sent to PE2 and PE3 simultaneously;
The number n4 of load message that this stage CB is sent is:N4=(t2-t1) * r;
5, in (t2+T)~(t3+T) period, multicast group 5 is created, the DNBMP of PE3 is filled;During this period of time, PE1
Completion is all loaded with PE2, only the device identification of PE3 is arranged in identification field by CB, for indicating that PE3 is message mesh
Address;In (t2+T)~(t3+T) in the period, message is sent to PE3;
The number n5 of load message that this stage CB is sent is:N5=(t3-t2) * r;
Three equipment just load OK, practical used time completely at this time:
T=(n1+n2+n3+n4+n5)/r=T+ (t3-t1)
Using the above-mentioned side CB file transmitting method, the load time of message can will be shortened compared with the existing technology, i.e.,
Improve the starting speed of PE;For example, the practical message amount sent of CB is 3N, three PE if loaded using mode of unicast
Practical used time t=3N/r=3T is completed in load.
Finally, the message processing method of the side PE:Three PE shown in Fig. 4, when receiving the load message of CB transmission,
Same process flow can be used, i.e., message is filtered by the forwarding chip of PE.Reality is in processing, PE meeting
Obtain some information from the load message received, such as the PE device identification etc. of identification field setting, by these information with
Corresponding informance in the upper preset packet filtering rule of PE is compared, and is compared by information, corresponding with comparison result to take
Operation processing.The embodiment of the present invention is not intended to limit the setting form of above-mentioned packet filtering rule.
Optionally, a kind of forwarding chip confirmation message whether be target load message mode it is as follows:Forwarding chip is in root
According to preset packet filtering rule, (target loads message when selection target loads message from the load message received
Destination address is the message of PE itself), specifically it can be:The PE that forwarding chip obtains the identification field setting in load message is set
Standby mark, which is, for example, above-mentioned DNBMP field;If the in PE device identification and preset packet filtering rule
One PE facility information is identical, then forwarding chip determines therefrom that the load message is target load message, and the first above-mentioned PE is set
Standby information is used to indicate that the destination address of load message to be PE.
It is exemplified below:Assuming that application scenarios are that CB in Fig. 4 only sends load message to PE1, then CB will be in DNBMP word
The device identification of section setting PE1;A kind of optional mode is PE1, PE2 and PE3, under this scene, by the corresponding bit of PE1
It is set as " 1 ", here it is the above-mentioned device identifications in DNBMP field setting PE1.
For PE1 after receiving message, the PE device identification for the identification field setting that forwarding chip obtains is exactly PE1 corresponding
DNBMP field in the information of corresponding bits position be " 1 ".The first PE equipment letter is also provided in preset packet filtering rule
Breath, the first PE facility information are used to indicate that the destination address of load message to be PE, for example can be set to " PE1 --- 1 ", this
With above from load Receive message information be identical, so that it may determine therefrom that load message be target load message, i.e., should
Message is destined to PE's oneself.And the message is received if it is PE2, the PE device identification of the identification field setting obtained
And information " PE1 --- 1 ", but the first PE facility information in the preset packet filtering rule on PE2 is exactly
" PE2 --- 1 ", i.e. the target load message that PE2 to be selected are PE2 oneself, therefore above-mentioned message can be judged as and is not by PE2
The target of PE2 loads message.
In specific implementation, packet filtering rule is preset on PE, can be PE in the user-defined domain of forwarding chip
(User Defined Field, referred to as:UDF arranging access control list (Access Control Lists, abbreviation in):
ACL), which is to be presented in the form of ACL, and the information such as above-mentioned PE device identification of identification field setting are also to deposit
Storage is in ACL.More specifically, PE can configure mac address table after power-up initializing, and the exit port of forwarding chip is arranged
To be sent to CPU, the PE received load message is forwarded to CPU;Also, PE configures ACL in the UDF of forwarding chip.
Optionally, the form of the ACL may refer to following table 1:
The acl list of the affirmative form of table 1
It is according to the information in Rule, to execute the Action of the corresponding information in above-mentioned table 1.It is as follows, in conjunction with
The meaning of each field in table 1 is described in detail in Fig. 6:Offset indicates the byte of offset of turning right since start byte, for example,
ETYPE field, it is evident that see from Fig. 6, which has 16 bytes, so offset value is 16, referring in Rule
The first row condition;Length indicates field length, and in conjunction with Fig. 6, the length of ETYPE field is 2 bytes, so in table 1 in Rule
The length value of the first row condition be 2;Mask indicates that mask, data indicate mask value, this mask and data are exactly in fact
After indicating offset16 byte, the numerical value in the length of 2 bytes, so, in general first in the Rule in table 1
Row condition " 16 --- 2 --- 0xffff --- 0xDCBA ", the condition demonstrate the need for meeting " ETYPE field in Fig. 6
Value, needs to be OxDCBA ".
Referring back to the second row condition " --- 1 --- 1 18+ (Slot ID/8) in Rule>>(SlotID%8) ---
1 ", wherein 18+ (Slot ID/8) expression needs to check " by plate slot id divided by 8 since DNBMP field start byte
The byte of obtained integer representation ", for example, slot id is 3, then be 0 by the plate slot id integer obtained divided by 8, that
That is 18+0=18, i.e., move to right 18 bytes since start byte (start byte from the DMAC of left side), then see
Length=1, the content in 1 byte after checking, referring to Fig. 6, it is exactly the 19th that starting, which moves to right 1 byte of 18 bytes,
A byte, remainder are 3, just check the 3rd bit of the 19th byte;Assuming that slot id is 10, then by plate slot
The integer that id is obtained divided by 8 is 1, that is, say 18+1=19, i.e., from start byte move to right 19 bytes after 1 byte be exactly
20th byte, remainder is 2, just checks the 2nd bit in the 20th byte;1>>(SlotID%8) basis just referred to
Which bit of the remainder in certain byte.According to the second row condition in Rule, which needs to meet corresponding bit
Position is 1, i.e. the corresponding PE of the bit is selected.
For example, being provided with two information in Rule in table 1, an information is the type field setting loaded in message
Type of message information be OxDCBA, be properly termed as Target type information, be load message for indicating type of message such as;Separately
One information be load message identification field setting PE device identification be the corresponding flag bit of this PE (such as some ratio
Special position) on value be 1.
So, PE can first obtain the report of the type field setting in the load message when receiving load message
Literary type information, which is such as exactly OxDCBA, this believes with the target type in preset packet filtering rule
Manner of breathing is same, i.e., identical as the OxDCBA of first information setting in table 1, is load message;So, PE is then obtained from message
Taking the PE device identification of identification field setting, such as the corresponding flag bit acquired value of PE1 of PE1 from the DNBMP field of message is
1, this is identical as the first PE facility information in packet filtering rule, i.e. value " 1 " phase with the Article 2 information setting in table 1
Together, the destination address for showing the message is this PE, then accordingly PE by the message be determined as target load message.Then, PE is executed
Corresponding Action in table 1, is sent to CPU for message.
Optionally, another forwarding chip confirmation message whether be target load message mode it is as follows:Forwarding chip exists
According to preset packet filtering rule, (target load message when selection target loads message from the load message received
It is the message that destination address is PE itself), specifically it can be:Forwarding chip obtains the PE of the identification field setting in load message
Device identification, the identification field are, for example, above-mentioned DNBMP field;If in PE device identification and preset packet filtering rule
2nd PE facility information is different, then forwarding chip determines therefrom that the load message is target load message, the 2nd above-mentioned PE
Facility information is used to indicate that the destination address of load message to be other PE except the PE.
It is exemplified below:Illustrating in conjunction with table 2 can be clearer:
The acl list of the refusal form of table 2
Referring to table 2, the 2nd PE facility information is " the corresponding mark of the PE in the Article 2 information in the Rule of the present embodiment
The value of position is 0 ", if by taking Fig. 7 as an example, that is, in the ACL above PE1, is provided that " PE1 is corresponding in Article 2 information
Flag bit be 0 ", corresponding Action is refusal (Deny), mean, PE1 if it find that in received message,
The corresponding flag bit of PE1 in DNBMP is 0, then shows that the destination address of the message is not the PE1, the then processing that PE1 takes
Action is rejection, abandons the message, which is not sent to CPU.So see in turn, if what PE1 was received
It loads in message, the PE device identification of the identification field setting in the acquisition load message is that the flag bit of PE1 is 1, i.e., should
The 2nd PE facility information (PE1 --- 0) in PE device identification and ACL is different, then indicating that the load message is mesh
Mark load message.From the above, it is seen that the 2nd PE facility information being arranged in the ACL in table 2 in fact be intended to indicate that it is described
The destination address for loading message is not the PE itself, other PE except that namely PE.
In the embodiment corresponding to table 2, forwarding chip can equally be set in the identification field obtained in load message
Before the PE device identification set, the type of message information of the type field setting in load message is also obtained, when determining the report
When literary type information is identical as the Target type information in preset packet filtering rule, determine that the message needs to continue according to report
Literary filtering rule determines whether its destination address is the PE itself.
Message processing method provided in an embodiment of the present invention, by carrying out message mistake by hardware, that is, forwarding chip in PE
Filter, processing speed will greatly improve, and the burden of CPU is accordingly alleviated after hardware handles, and PE is also relatively stable, less easily
There is the case where load failure;In this way, PE can be quickly recognized after receiving the load message of transmission version file of CB
The message belongs to PE, and rapidly can successfully load, to improve the starting speed of PE.
Embodiment three
The embodiment of the invention provides a kind of ports-Extending plate PE, which can execute the side of any embodiment of that present invention
Method, the present embodiment only briefly describe the structure of the PE, and specific working principle can be in conjunction with referring to embodiment of the method.
Can be in conjunction with referring to Fig. 3, forwarding chip in Fig. 3, for receiving load message, described in the load message carrying
File data PE to be loaded;Also, forwarding chip is according to preset packet filtering rule, from the load message received
Middle selection target loads message, and the file data of target load message is sent to the central processing unit,
The destination address of the target load message is the PE;And central processing unit, it can be used for receiving to from forwarding chip
Message handled.
Specifically, chip can be divided into multiple units according to the function of forwarding chip, referring to Fig. 8, but need
Bright, the division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation,
Such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored, or not hold
Row.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some communications
The indirect coupling or communication connection of interface, device or unit can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each
Unit physically exists alone, and can also be integrated in one unit with two or more units.
Fig. 8 is a kind of structural schematic diagram of ports-Extending plate PE provided in an embodiment of the present invention, as shown in figure 8, the PE can
To include:Forwarding chip 31 and central processing unit 32, forwarding chip 31 include:Message receiving unit 311, packet filtering unit
312 and packet sending unit 313;Wherein,
Message receiving unit 311, for receiving load message, the load message carries PE number of files to be loaded
According to;
Packet filtering unit 312, for being received from the message receiving unit according to preset packet filtering rule
Selection target loads message in the load message, and the destination address of the target load message is the PE;
Packet sending unit 313, the text of the target load message for obtaining the packet filtering unit
Number of packages evidence is sent to the central processing unit and is handled.
Further, packet filtering unit 312, specifically for obtaining the PE of the identification field setting in the load message
Device identification;If the PE device identification is identical as the first PE facility information in the preset packet filtering rule, really
The fixed load message is the target load message, and the first PE facility information is used to indicate the purpose of the load message
Address is the PE.
Further, packet filtering unit 312, specifically for obtaining the PE of the identification field setting in the load message
Device identification;If the PE device identification is different from the 2nd PE facility information in the preset packet filtering rule, really
The fixed load message is the target load message, and the 2nd PE facility information is used to indicate the purpose of the load message
Address is other PE except the PE.
Further, packet filtering unit 312 is also used in the PE for obtaining the identification field setting in the load message
Before device identification, the type of message information of the type field setting in the load message is obtained, and determines the message class
Type information is identical as the Target type information in the preset packet filtering rule, and the Target type information is needed for indicating
To determine whether the load message is type of message that the target records message according to the packet filtering rule.
Fig. 9 is the structural schematic diagram of another ports-Extending plate PE provided in an embodiment of the present invention, structure shown in Fig. 8
On the basis of, which further includes:Storage unit 33, for the message receiving unit receive load message before, user from
In domain, the preset packet filtering rule is stored in a manner of accesses control list.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of message processing method, which is characterized in that the method is executed by ports-Extending plate PE, and the PE includes forwarding core
Piece and central processing unit;The method includes:
The forwarding chip receives load message, and the load message carries PE file data to be loaded;
The forwarding chip is according to preset packet filtering rule, the selection target load report from the load message received
Text, and the file data of target load message is sent to the central processing unit and is handled;The target
The destination address for loading message is the PE.
2. the method according to claim 1, wherein the forwarding chip is according to preset packet filtering rule,
Selection target loads message from the load message received, including:
The forwarding chip obtains the PE device identification of the identification field setting in the load message;
If the PE device identification is identical as the first PE facility information in the preset packet filtering rule, the forwarding
Chip determines that the load message is the target load message, and the first PE facility information is for indicating the load message
Destination address be the PE.
3. the method according to claim 1, wherein the forwarding chip is according to preset packet filtering rule,
Selection target loads message from the load message received, including:
The forwarding chip obtains the PE device identification of the identification field setting in the load message;
If the PE device identification is different from the 2nd PE facility information in the preset packet filtering rule, the forwarding
Chip determines that the load message is the target load message, and the 2nd PE facility information is for indicating the load message
Destination address be other PE except the PE.
4. according to the method in claim 2 or 3, which is characterized in that obtained in the load message in the forwarding chip
Identification field setting PE device identification before, further include:
The forwarding chip obtains the type of message information of the type field setting in the load message, and determines the message
Type information is identical as the Target type information in the preset packet filtering rule, and the Target type information is for indicating
Need to be determined according to the packet filtering rule load message whether be target load message type of message.
5. the method according to claim 1, wherein also being wrapped before the forwarding chip receives load message
It includes:
The forwarding chip stores the preset packet filtering rule in user-defined domain in a manner of accesses control list
Then.
6. a kind of ports-Extending plate PE, which is characterized in that including:Forwarding chip and central processing unit;
The forwarding chip includes:
Message receiving unit, for receiving load message, the load message carries PE file data to be loaded;
Packet filtering unit, for according to preset packet filtering rule, from the message receiving unit receive described in plus
It carries selection target in message and loads message, the destination address of the target load message is the PE;
Packet sending unit, the file data hair of the target load message for obtaining the packet filtering unit
It send to the central processing unit and is handled.
7. PE according to claim 6, which is characterized in that
The packet filtering unit, specifically for obtaining the PE device identification of the identification field setting in the load message;If
The PE device identification is identical as the first PE facility information in the preset packet filtering rule, it is determined that the load report
Text is the target load message, and the first PE facility information is used to indicate that the destination address of the load message to be described
PE。
8. PE according to claim 6, which is characterized in that
The packet filtering unit, specifically for obtaining the PE device identification of the identification field setting in the load message;If
The PE device identification is different from the 2nd PE facility information in the preset packet filtering rule, it is determined that the load report
Text is the target load message, and the 2nd PE facility information is used to indicate that the destination address of the load message to be the PE
Except other PE.
9. PE according to claim 7 or 8, which is characterized in that
The packet filtering unit, be also used to obtain it is described load message in identification field setting PE device identification it
Before, the type of message information of the type field setting in the load message is obtained, and determine the type of message information and institute
The Target type information stated in preset packet filtering rule is identical, and the Target type information is needed according to for indicating
Packet filtering rule determines whether the load message is type of message that the target records message.
10. PE according to claim 6, which is characterized in that the forwarding chip further includes:
Storage unit, in user-defined domain, being controlled with accessing before the message receiving unit receives load message
The mode of list processed stores the preset packet filtering rule.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410313154.6A CN105337851B (en) | 2014-07-02 | 2014-07-02 | A kind of message processing method and ports-Extending plate |
PCT/CN2015/083142 WO2016000627A1 (en) | 2014-07-02 | 2015-07-02 | Message processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410313154.6A CN105337851B (en) | 2014-07-02 | 2014-07-02 | A kind of message processing method and ports-Extending plate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337851A CN105337851A (en) | 2016-02-17 |
CN105337851B true CN105337851B (en) | 2018-11-27 |
Family
ID=55018465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410313154.6A Active CN105337851B (en) | 2014-07-02 | 2014-07-02 | A kind of message processing method and ports-Extending plate |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105337851B (en) |
WO (1) | WO2016000627A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259228B (en) * | 2017-12-22 | 2021-06-08 | 新华三技术有限公司 | Network equipment virtualization system and equipment configuration method and device thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184109A (en) * | 2011-04-12 | 2011-09-14 | 杭州华三通信技术有限公司 | Boot software automatic updating control method and device |
CN103209130A (en) * | 2013-04-22 | 2013-07-17 | 杭州华三通信技术有限公司 | Method for synchronizing media access control (MAC) address table entries and forwarding chips |
CN103516609A (en) * | 2013-09-17 | 2014-01-15 | 杭州华三通信技术有限公司 | Method and equipment for transmitting service messages |
CN103763135A (en) * | 2014-01-06 | 2014-04-30 | 杭州华三通信技术有限公司 | PE traffic scheduling method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100446503C (en) * | 2005-03-22 | 2008-12-24 | 杭州华三通信技术有限公司 | Enhanced VPN network optimization method and apparatus |
JP5022863B2 (en) * | 2007-11-01 | 2012-09-12 | 株式会社東芝 | Terminal, method and program for registering user address information |
CN102281181B (en) * | 2010-06-08 | 2015-01-28 | 中兴通讯股份有限公司 | Method, device and system for realizing multicast forwarding in EVB (Extended VLAN (Virtual Local Area Network) Bridge) equipment |
CN102143026B (en) * | 2011-04-29 | 2014-03-12 | 杭州华三通信技术有限公司 | Method for avoiding loop circuit in virtual two layer network |
CN103166874B (en) * | 2013-03-25 | 2016-03-02 | 杭州华三通信技术有限公司 | A kind of message forwarding method and equipment |
-
2014
- 2014-07-02 CN CN201410313154.6A patent/CN105337851B/en active Active
-
2015
- 2015-07-02 WO PCT/CN2015/083142 patent/WO2016000627A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184109A (en) * | 2011-04-12 | 2011-09-14 | 杭州华三通信技术有限公司 | Boot software automatic updating control method and device |
CN103209130A (en) * | 2013-04-22 | 2013-07-17 | 杭州华三通信技术有限公司 | Method for synchronizing media access control (MAC) address table entries and forwarding chips |
CN103516609A (en) * | 2013-09-17 | 2014-01-15 | 杭州华三通信技术有限公司 | Method and equipment for transmitting service messages |
CN103763135A (en) * | 2014-01-06 | 2014-04-30 | 杭州华三通信技术有限公司 | PE traffic scheduling method and device |
Non-Patent Citations (1)
Title |
---|
《H3C核心交换机智能弹性架构技术原理及应用》;王春璞;《科技信息》;20121215(第35期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105337851A (en) | 2016-02-17 |
WO2016000627A1 (en) | 2016-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9219698B2 (en) | Providing a layer-3 interface | |
CN105207873B (en) | A kind of message processing method and device | |
US9819551B2 (en) | Systems and methods for testing networks with a controller | |
JP5221685B2 (en) | Method and filter arrangement for filtering messages arriving at a subscriber of a network via a serial data bus of a communication network | |
EP3531635B1 (en) | Message processing method and network device | |
CN106878194B (en) | Message processing method and device | |
CN103118149B (en) | Communication control method between same tenant's server and the network equipment | |
EP2924934B1 (en) | Ethernet switch and method for establishing forwarding patterns in an ethernet switch | |
EP4009596A1 (en) | Message forwarding method, device, and system in sr network | |
CN109981329A (en) | Determine the method, equipment and system of network equipment connection relationship | |
WO2017101815A1 (en) | Message processing method, device and system | |
US9515881B2 (en) | Method, device, and system for packet processing | |
JP7101308B2 (en) | High-speed transfer table creation | |
CN110062060B (en) | System and method for IP address allocation | |
CN104410581A (en) | Configuration information design and information extraction of AFDX (Avionics Full Duplex Switched Ethernet) network | |
WO2015196923A1 (en) | Method for sending information and network device | |
CN107846433A (en) | A kind of synchronous methods, devices and systems of session information | |
CN112787922A (en) | Message processing method, network node and system | |
CN110351135B (en) | Network equipment configuration method and device in multiple DCs | |
CN108028779B (en) | Deliberately corrupted packets for connection information | |
US9235207B2 (en) | Method for automatically generating dynamic frame packing groups | |
CN105337851B (en) | A kind of message processing method and ports-Extending plate | |
CN103986660B (en) | The device of loading micro code and the method for loading micro code | |
CN108989175A (en) | A kind of communication means and device | |
CN106330783A (en) | Method and device for reporting OpenFlow switch capabilities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |