CN102739537B - The retransmission method and device of Ethernet data bag - Google Patents
The retransmission method and device of Ethernet data bag Download PDFInfo
- Publication number
- CN102739537B CN102739537B CN201210213508.0A CN201210213508A CN102739537B CN 102739537 B CN102739537 B CN 102739537B CN 201210213508 A CN201210213508 A CN 201210213508A CN 102739537 B CN102739537 B CN 102739537B
- Authority
- CN
- China
- Prior art keywords
- data bag
- ethernet data
- forwarded
- result
- parsing
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of retransmission method and device of Ethernet data bag, in the above-mentioned methods, obtain the characteristic information of Ethernet data bag to be forwarded, and parsing classification pretreatment is carried out to Ethernet data bag using characteristic information, wherein, characteristic information is corresponding with the protocol layer that Ethernet data bag to be forwarded is belonged to;Classification processing is carried out to Ethernet data bag to be forwarded according to the result of parsing classification pretreatment;Ethernet data bag to be forwarded is forwarded to according to the result of classification processing.The technical solution provided according to the present invention, it is ensured that the real-time forwarding of Ethernet data bag, reduces the complexity of Ethernet data bag forward process process.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of retransmission method and device of Ethernet data bag.
Background technology
At present, in field of wireless communication, in order to improve the efficiency of network processes, the service quality of user is ensured(QoS),
Ask the spy of packet header filtering of the exchange processing equipment of base station with Ethernet data bag, parsing, classification and Ethernet data bag
The functions such as sign extraction.Meanwhile in order to meet the needs of agreement development, it will usually it is required that Ethernet data bag accelerator has very well
Flexibility and scalability.The technical solution used in correlation technique is that the key assignments of Ethernet data bag is extracted, and
And the classification of Ethernet data bag is carried out using HASH checking results, but when the excessive packet information i.e. for classifying of key assignments
When excessive, the collision probability tabled look-up is high, it is necessary to multistage table look-up can just obtain classification results, is thus difficult to ensure that Ethernet data
Wrap the real-time of processing.Another technical solution in correlation technique is to extract the specific key assignments in Ethernet data bag packet header simultaneously
Configure corresponding mask.Due to the mask of configuration can be in mask key value invalid field, reduce HASH and table look-up key assignments, therefore,
Improve the efficiency tabled look-up.But the defects of program, is the specific fields for being only capable of extraction Ethernet data bag, such as:Ether
The information such as net type, IP protocol number, and the program forwards only for port redirection, the CPU of Ethernet data bag, abandons number
According to functions such as bags, specific Ethernet data packet switch scene is only useful in, there is stronger limitation.
The content of the invention
The present invention provides a kind of retransmission method and device of Ethernet data bag, with least solve can not in correlation technique
The problem of real-time forwarding of guarantee Ethernet data bag, complex disposal process.
A kind of according to an aspect of the invention, there is provided retransmission method of Ethernet data bag.
The retransmission method of Ethernet data bag according to the present invention includes:Obtain the feature of Ethernet data bag to be forwarded
Information, and using characteristic information to Ethernet data bag carry out parsing classification pretreatment, wherein, characteristic information with it is to be forwarded with
The protocol layer that too network data bag is belonged to is corresponding;According to the result of parsing classification pretreatment to Ethernet data bag to be forwarded
Carry out classification processing;Ethernet data bag to be forwarded is forwarded to according to the result of classification processing.
Preferably, the characteristic information of Ethernet data bag to be forwarded is obtained, and using characteristic information to Ethernet data
Bag, which carries out parsing classification pretreatment, to be included:Obtained successively respectively from the packet header of Ethernet data bag to be forwarded according to characteristic information
The corresponding key value information of a protocol layer;Parsing point carries out Ethernet data bag to be forwarded according to the key value information got
Class.
Preferably, each protocol layer pair is obtained according to characteristic information successively from the packet header of Ethernet data bag to be forwarded
The key value information answered includes:Obtain the key assignments of Ethernet data bag to be forwarded and the key of Ethernet data bag to be forwarded
It is worth the deviant of the initial position in the packet header relative to Ethernet data bag to be forwarded;According to the key assignments got and partially
Shifting value determines the key value information of Ethernet data bag;Each protocol layer is obtained successively from packet header according to the key value information after determining
Corresponding key assignments.
Preferably, classification processing bag carries out Ethernet data bag to be forwarded according to the result of parsing classification pretreatment
Include:Obtained according to the result of parsing classification pretreatment from the message characteristic coding schedule of pre-set Ethernet data bag and wait to turn
The message characteristic coding of the Ethernet data bag of hair, and ether netting index to be forwarded is obtained according to the result of parsing classification pretreatment
According to the priority of bag;Using the result of parsing classification pretreatment, message characteristic coding and priority generation feature descriptor.
Preferably, before the characteristic information of Ethernet data bag to be forwarded is obtained, further include:According to receive with
Too the MAC address of network data bag and/or virtual LAN VLAN number dock received Ethernet data bag
Filtered;Ethernet data bag to be forwarded is determined according to the result of filtering.
Preferably, features described above information includes at least one of:The protocol type that Ethernet data bag is supported;Ether
The priority of network data bag;The address information of Ethernet data bag.
Preferably, above-mentioned key value information includes at least one of:The corresponding port numbers of protocol layer, the mark of protocol layer
ID。
According to another aspect of the present invention, there is provided a kind of retransmission unit of Ethernet data bag.
The retransmission unit of Ethernet data bag according to the present invention includes:Parsing module, for obtaining ether to be forwarded
The characteristic information of network data bag, and parsing classification pretreatment is carried out to Ethernet data bag using characteristic information, wherein, feature letter
Breath is corresponding with the protocol layer that Ethernet data bag to be forwarded is belonged to;Sort module, for according to parsing classification pretreatment
Result classification processing is carried out to Ethernet data bag to be forwarded;Forwarding module, for being treated according to the result of classification processing
The Ethernet data bag of forwarding is forwarded to.
Preferably, parsing module includes:First acquisition unit, for according to characteristic information from Ethernet data to be forwarded
The corresponding key value information of each protocol layer is obtained in the packet header of bag successively;Resolution unit, for according to the key value information got
Ethernet data bag to be forwarded is parsed.
Preferably, first acquisition unit includes:Second acquisition unit, for obtaining the key of Ethernet data bag to be forwarded
The key assignments of Value Types and Ethernet data bag to be forwarded relative to the packet header of Ethernet data bag to be forwarded initial position
Deviant;Determination unit, for determining the key value information of Ethernet data bag according to the key assignments and deviant that get;
3rd acquiring unit, believes for obtaining the corresponding key assignments of each protocol layer successively from packet header according to the key value information after determining
Breath.
Preferably, sort module includes:4th acquiring unit, for being set according to the result of parsing classification pretreatment from advance
The message characteristic coding of Ethernet data bag to be forwarded, and root are obtained in the message characteristic coding schedule for the Ethernet data bag put
The priority of Ethernet data bag to be forwarded is obtained according to the result of parsing classification pretreatment;Generation unit, for using parsing
The result pre-processed, message characteristic coding and the priority of classifying generate feature descriptor.
Preferably, above device further includes:Filtering module, for the media access according to the Ethernet data bag received
Control MAC Address and/or virtual LAN VLAN number dock received Ethernet data bag and are filtered;Determining module, is used
In determining Ethernet data bag to be forwarded according to the result of filtering.
By the present invention, before classification transmission processing is performed to Ethernet data bag to be forwarded, using what is got
Characteristic information carries out Ethernet data bag parsing classification pretreatment, and Ethernet data bag can not be ensured by solving in correlation technique
Real-time forwarding, the problem of complex disposal process, and then ensure that the real-time forwarding of Ethernet data bag, reduce ether netting index
According to the complexity of bag forward process process.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the retransmission method of Ethernet data bag according to embodiments of the present invention;
Fig. 2 is resolve packet according to the preferred embodiment of the invention, classification is tabled look-up and the flow chart of tagsort;
Fig. 3 is the flow chart of sorting technique according to the preferred embodiment of the invention;
Fig. 4 is the structure diagram of the retransmission unit of Ethernet data bag according to embodiments of the present invention;
Fig. 5 is the structure diagram of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention;And
Fig. 6 is the schematic diagram of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention.
Embodiment
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 is the flow chart of the retransmission method of Ethernet data bag according to embodiments of the present invention.As shown in Figure 1, the party
Method can include following processing step:
Step S102:The characteristic information of Ethernet data bag to be forwarded is obtained, and using characteristic information to ether netting index
Parsing classification pretreatment is carried out according to bag, wherein, characteristic information is opposite with the protocol layer that Ethernet data bag to be forwarded is belonged to
Should;
Step S104:Classification processing is carried out to Ethernet data bag to be forwarded according to the result of parsing classification pretreatment;
Step S106:Ethernet data bag to be forwarded is forwarded to according to the result of classification processing.
In correlation technique, it can not ensure the real-time forwarding of Ethernet data bag, complex disposal process.Using as shown in Figure 1
Method, the arbitrary fields in Ethernet data packet header can be extracted as packet classification according to protocol layer and corresponding Configuration Values
Key assignments, and according to package level and corresponding key assignments be classified and accurately table look-up, by different type, the data packet of different priorities
Corresponding Ethernet data bag processing unit is sent into, precise classification processing more flexibly, efficiently is carried out to Ethernet data bag,
The problem of real-time forwarding of Ethernet data bag can not be ensured by solving in correlation technique, complex disposal process, and then ensure that
The real-time forwarding of Ethernet data bag, reduces the complexity of Ethernet data bag forward process process.
In a preferred implementation process, features described above information can include but is not limited at least one of:Ethernet data
The supported protocol type of bag, priority, the address information of Ethernet data bag of Ethernet data bag.
In a preferred embodiment, Ethernet data bag is made of packet header and payload two parts, wherein, header part includes
The characteristic information of Ethernet data bag, such as:The information such as protocol type, priority, address.In order to improve the ether netting index of system
According to the process performance of bag, it is necessary to carry out classification pretreatment according to the characteristic information of data packet, while extract the feature key of data packet
Value, such as:Port numbers, ID etc. generate the feature descriptor of data packet.Follow-up processing flow can be according to the feature generated
Descriptor handles Ethernet data bag, reduces overhead;The data packet forwarding table of flexible configuration is utilized at the same time, according to
Different types of data, are forwarded a packet to different subsequent processing units by classification information and priority, therefore, can be useful in more
The occasion of kind Ethernet data bag processing.
Preferably, in step s 102, the characteristic information of Ethernet data bag to be forwarded is obtained, and uses characteristic information
Parsing classification pretreatment is carried out to Ethernet data bag can include following operation:
Step S1:Each protocol layer pair is obtained according to characteristic information successively from the packet header of Ethernet data bag to be forwarded
The key value information answered;
Step S2:Ethernet data bag to be forwarded is parsed according to the key value information got.
In a preferred implementation process, above-mentioned key value information can include but is not limited at least one of:Protocol layer corresponds to
Port numbers, the mark ID of protocol layer.
Preferably, in step sl, obtained successively from the packet header of Ethernet data bag to be forwarded according to characteristic information
The corresponding key value information of each protocol layer may comprise steps of:
Step S11:Obtain the key assignments of Ethernet data bag to be forwarded and the key of Ethernet data bag to be forwarded
It is worth the deviant of the initial position in the packet header relative to Ethernet data bag to be forwarded;
Step S12:Key assignments and deviant according to getting determine the key value information of Ethernet data bag;
Step S13:The corresponding key value information of each protocol layer is obtained successively from packet header according to the key value information after determining.
In a preferred embodiment, Fig. 2 is resolve packet according to the preferred embodiment of the invention, classification is tabled look-up and feature
The flow chart of classification.As shown in Fig. 2, the flow may comprise steps of:
Step S202:Receiving terminal receives Ethernet data bag;
Step S204:Filtered according to MAC Address/vlan number of Ethernet data bag, reduce the ether netting index of system
According to the processing load of bag;If it does, then continue to execute step S206;If matching is unsuccessful, step S220 is gone to;
Step S206:Classification parsing classification pretreatment is carried out to matched message, extracts the key value information of L2;
Step S208:According to the type of data packet of L2 judge the data packet whether carry L3 packet header, if message without
There is the head of L3, then resolve packet terminates, and the analysis result of L2 is sent into sort module, goes to step S216;If message band
There is the packet header of L3, handled into L3 packet header, continue to execute step S210;
Step S210:Extract the key value information of L3;
Step S212:Judge whether that data packet carries the packet header of L4 according to the Packet type of L3, if message is without L4's
Head, resolve packet terminate and the analysis result of L3 are sent into sort module, go to step S216;If message carries L4's
Packet header, handles into L4 packet header, continues to execute step S214;
Step S214:Extract the key value information of L4 and the analysis result of L4 is sent into sort module;
Step S216:Checking result exports;
Step S218:Sort module classifies data packet according to header parser result, while utilizes the key assignments of extraction
Bag descriptor is formed with bag feature;Flow terminates;
Step S220:By data packet discarding.
Preferably, in step S104, according to parsing classification pretreatment result to Ethernet data bag to be forwarded into
Row classification processing can include following operation:
Step S3:Encoded according to the result of parsing classification pretreatment from the message characteristic of pre-set Ethernet data bag
The message characteristic coding of Ethernet data bag to be forwarded is obtained in table, and is obtained according to the result of parsing classification pretreatment and waits to turn
The priority of the Ethernet data bag of hair;
Step S4:Using the result of parsing classification pretreatment, message characteristic coding and priority generation feature descriptor.
In a preferred embodiment, in step s 106, according to the result of classification processing to Ethernet data bag to be forwarded
Following processing can be included by being forwarded to:Ethernet data bag to be forwarded is forwarded to according to the feature descriptor of generation.
In a preferred embodiment, classifying rules and corresponding characteristic value are configured by management configuration interface.Layering is tabled look-up pair
Ethernet data bag is classified.Step is as follows:Classification is carried out first with the key assignments of L2 to table look-up, the data packet for obtaining L2 is special
Sign;Secondly carry out classification using the key assignments of L3 to table look-up, obtain the data packet feature of L3.And so on, finally utilize L2-L5 data
Bag feature, tables look-up to obtain the characteristic type coding of data packet.Deviated, carried according to analysis result and the packet priority of configuration
Take the priority of data packet.According to different type of data packet and corresponding characteristic of division information, the feature of data packet is generated
Descriptor.
In a preferred embodiment, forwarding route information table is configured according to type of data packet, such as:Configure SCTP data packets hair
Send to CPU and handle queue.Queue classification chart is looked into according to the precedence field of the classification results of data packet, and classification extraction, will
Data packet sends to corresponding processing data packets unit and is handled.
Preferably, before step S102, the characteristic information for obtaining Ethernet data bag to be forwarded, can also include with
Lower step:
Step S6:According to the MAC address and/or virtual LAN of the Ethernet data bag received
Vlan number code docks received Ethernet data bag and is filtered;
Step S7:Ethernet data bag to be forwarded is determined according to the result of filtering.
In a preferred embodiment, by the type of configuration management interface configuration extraction data packet key assignments and relative to packet header
Offset;When each Ethernet data bag reaches, data packet is filtered according to the target MAC (Media Access Control) address of data packet, is abandoned non-
The data packet of method, while give the data packet for belonging to this equipment to Packet analyzing and buffer unit;Ethernet data bag is solved
Analysis, and the key value information according to needed for configuration from the packet header of data packet extraction classification, are sent into bag sort module and carry out data packet
Classification is handled.
The above-mentioned process that is preferable to carry out is further described with reference to the preferred embodiment shown in Fig. 3.
Fig. 3 is the flow chart of sorting technique according to the preferred embodiment of the invention.As shown in figure 3, the flow can include
Handle below:First, filtered according to MAC Address/vlan number of Ethernet data bag, reduce the Ethernet data bag of system
Processing load.Secondly, layering analysis is carried out to data packet and the result of parsing is output to 1-4 grades of table look-up modules, at the same time
Parsing module is output to packet classification module according to the key value information of configuration information extraction data packet;1-4 grades are classified mould of tabling look-up
Block tables look-up according to configuration and analysis result and show that the type field of data packet is sent to packet classification processing module;Data packet point
The result and the classification chart of configuration that class processing module is tabled look-up using 1-4 grades of classification table look-up to obtain packet classification feature output report
Literary feature field, while the descriptor of key assignments, precedence field and message characteristic the generation data packet according to parsing extraction, and
Export to data packet forwarding unit;Final data packet forwarding unit is according to the classification information of data packet, priority and configuration
Forwarding table tables look-up to obtain the purpose processing unit of data packet.
Fig. 4 is the structure diagram of the retransmission unit of Ethernet data bag according to embodiments of the present invention.As shown in figure 4, should
The retransmission unit of Ethernet data bag can include:Parsing module 10, for obtaining the feature of Ethernet data bag to be forwarded
Information, and using characteristic information to Ethernet data bag carry out parsing classification pretreatment, wherein, characteristic information with it is to be forwarded with
The protocol layer that too network data bag is belonged to is corresponding;Sort module 20, turns for being treated according to the result of parsing classification pretreatment
The Ethernet data bag of hair carries out classification processing;Forwarding module 30, for according to classification processing result to ether to be forwarded
Network data bag is forwarded to.
Using device as shown in Figure 4, solve the real-time forwarding that can not ensure Ethernet data bag in correlation technique, place
The problem of reason process is complicated, and then ensure that the real-time forwarding of Ethernet data bag, reduce Ethernet data bag forward process
The complexity of process.
Preferably, as shown in figure 5, parsing module 10 can include:First acquisition unit 100, for according to characteristic information
Obtain the corresponding key value information of each protocol layer successively from the packet header of Ethernet data bag to be forwarded;Resolution unit 102, is used
Ethernet data bag to be forwarded is parsed according to the key value information got.
Preferably, as shown in figure 5, first acquisition unit 100 can include:Second acquisition unit 1000, is treated for obtaining
The key assignments of the key assignments of the Ethernet data bag of forwarding and Ethernet data bag to be forwarded is relative to Ethernet to be forwarded
The deviant of the initial position in the packet header of data packet;Determination unit 1002, for according to the key assignments and deviant got
Determine the key value information of Ethernet data bag;3rd acquiring unit 1004, for according to determine after key value information from packet header
The corresponding key value information of each protocol layer is obtained successively.
Preferably, as shown in figure 5, sort module 20 can include:4th acquiring unit 200, for being classified according to parsing
The result of pretreatment obtains Ethernet data to be forwarded from the message characteristic coding schedule of pre-set Ethernet data bag
The message characteristic coding of bag, and according to the priority of the result acquisition of parsing classification pretreatment Ethernet data bag to be forwarded;
Generation unit 202, for the result using classification processing, message characteristic coding and priority generation feature descriptor.
Preferably, as shown in figure 5, above device can also include:Filtering module 40, for according to the Ethernet received
The MAC address and/or virtual LAN VLAN number of data packet dock received Ethernet data bag and carry out
Filtering;Determining module 50, for determining Ethernet data bag to be forwarded according to the result of filtering.
The above-mentioned process that is preferable to carry out is further described with reference to the preferred embodiment shown in Fig. 6.
Fig. 6 is the schematic diagram of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention.As shown in fig. 6,
The type of management configuration module configuration extraction data packet key assignments(Such as:IP/TCP/UDP)And data packet key assignments is relative to packet header
Offset;Packet classification table, corresponding message characteristic coding schedule and difference are configured according to user demand and type of data packet
The forwarding route information table of type message and different priorities message.Resolve packet module(Equivalent to above-mentioned parsing module)Root
According to the key assignments of configuration and the characteristic information of offset extraction data packet, and next series is obtained by searching for hierarchical information table
According to Packet type, classification parsing is carried out to data packet, and export analysis result.Packet classification module(Equivalent to above-mentioned classification mould
Block)Result and message characteristic coding schedule according to parsing obtain the message characteristic coding of data packet, while produce data packet
Descriptor.Data packet forwards routing module(Equivalent to above-mentioned forwarding module)According to the feature coding and packet priority of message
Level, sends data packets in forwarding route information table the processing unit configured, carries out the processing of data packet, such as:One TCP
Data packet, by parse and sort module obtain the data be TCP chain of command message, can be by forwarding route information table
The message is sent to CPU protocol stacks and is handled, naturally it is also possible to the message is sent to data packet forward module and changes end
Next stage equipment is issued to after slogan to be handled.
It can be seen from the above description that above embodiments enable following technique effect(It should be noted that these
Effect is the effect that some preferred embodiments can reach):The technical solution provided according to the present invention can according to protocol layer and
Key assignments of the arbitrary fields in Configuration Values extraction Ethernet data packet header as packet classification, ensure that system flexibility;At the same time
According to data packet level and corresponding key assignments be classified and accurately table look-up, while system real time is ensured, reduce and table look-up
Complexity.Moreover, the device of the invention combines configurable packet classification table, can flexibly by different type,
The data packets of different priorities is sent into corresponding processing data packets unit, the compatible well various demands with scene.This
The technical solution of invention has the following advantages:A. precise classification fast and efficiently can be carried out to Ethernet data bag, ensures system
The real-time of system, due to being tabled look-up using classification so that the list item tabled look-up per level-one is smaller, so effectively shorten table look-up when
Between, meet the requirement of gigabit Ethernet processing data packets;B. can be carried out according to the arbitrary fields of Ethernet data bag at classification
Reason, there is very strong flexibility, by way of configuring, can be classified with any one field of any one layer of Selection utilization
Table look-up;C., can be different by different type according to the Ethernet data packet forwarding table of configuration according to classification results and priority
The data packet of priority is sent into different Ethernet data bag acceleration processing units and is handled, and improves at Ethernet data bag
Manage the flexibility of device;The data packet description field of generation can be that other data packet acceleration processing units reuse at the same time, reduce
The processing data packets expense of system, improves the performance of system.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.Combined in this way, the present invention is not restricted to any specific hardware and software.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area
For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
- A kind of 1. retransmission method of Ethernet data bag, it is characterised in that including:Obtain the characteristic information of Ethernet data bag to be forwarded, and using the characteristic information to the Ethernet data bag into Row parsing classification pretreatment, wherein, the protocol layer phase that the characteristic information is belonged to the Ethernet data bag to be forwarded It is corresponding;Classification processing is carried out to the Ethernet data bag to be forwarded according to the result of the parsing classification pretreatment;The Ethernet data bag to be forwarded is forwarded to according to the result of the classification processing;Wherein, classification processing bag carries out the Ethernet data bag to be forwarded according to the result of the parsing classification pretreatment Include:Obtained according to the result of the parsing classification pretreatment from the message characteristic coding schedule of pre-set Ethernet data bag The message characteristic coding of the Ethernet data bag to be forwarded, and according to obtaining the result of the parsing classification pretreatment The priority of Ethernet data bag to be forwarded;Use it is described parsing classification pretreatment result, the message characteristic coding with And the priority generation feature descriptor.
- 2. according to the method described in claim 1, it is characterized in that, obtain the spy of the Ethernet data bag to be forwarded Reference ceases, and the use characteristic information carries out the Ethernet data bag parsing classification pretreatment and includes:Each protocol layer is obtained successively according to the characteristic information from the packet header of the Ethernet data bag to be forwarded to correspond to Key value information;Parsing classification is carried out to the Ethernet data bag to be forwarded according to the key value information got.
- 3. according to the method described in claim 2, it is characterized in that, according to the characteristic information from the Ethernet to be forwarded Obtaining the corresponding key value information of each protocol layer in the packet header of data packet successively includes:Obtain the key assignments of the Ethernet data bag to be forwarded and the key assignments phase of the Ethernet data bag to be forwarded For the deviant of the initial position in the packet header of the Ethernet data bag to be forwarded;The key assignments and the deviant according to getting determine the key value information of the Ethernet data bag;The corresponding key assignments of each protocol layer is obtained successively from the packet header according to the key value information after determining.
- 4. according to the method in any one of claims 1 to 3, it is characterised in that obtaining the Ethernet to be forwarded Before the characteristic information of data packet, further include:According to the MAC address of the Ethernet data bag received and/or virtual LAN VLAN number to institute The Ethernet data bag received is stated to be filtered;The Ethernet data bag to be forwarded is determined according to the result of filtering.
- 5. according to the method in any one of claims 1 to 3, it is characterised in that the characteristic information include it is following at least One of:The protocol type that the Ethernet data bag is supported;The priority of the Ethernet data bag;The address information of the Ethernet data bag.
- 6. according to the method in claim 2 or 3, it is characterised in that the key value information includes at least one of:The mark ID of the corresponding port numbers of protocol layer, protocol layer.
- A kind of 7. retransmission unit of Ethernet data bag, it is characterised in that including:Parsing module, for obtaining the characteristic information of Ethernet data bag to be forwarded, and using the characteristic information to described Ethernet data bag carries out parsing classification pretreatment, wherein, the characteristic information and the Ethernet data bag institute to be forwarded The protocol layer of ownership is corresponding;Sort module, for being divided according to the result of the parsing classification pretreatment the Ethernet data bag to be forwarded Class processing;Forwarding module, for being forwarded to according to the result of the classification processing to the Ethernet data bag to be forwarded;Wherein, the sort module includes:4th acquiring unit, for according to the result of the parsing classification pretreatment from advance The message characteristic that the Ethernet data bag to be forwarded is obtained in the message characteristic coding schedule of the Ethernet data bag of setting is compiled Code, and the priority of the result acquisition Ethernet data bag to be forwarded according to the parsing classification pretreatment;Generation is single Member, for generating the spy using the result of the parsing classification pretreatment, message characteristic coding and the priority Levy descriptor.
- 8. device according to claim 7, it is characterised in that the parsing module includes:First acquisition unit, for being obtained successively from the packet header of the Ethernet data bag to be forwarded according to the characteristic information Take the corresponding key value information of each protocol layer;Resolution unit, for being parsed according to the key value information got to the Ethernet data bag to be forwarded.
- 9. device according to claim 8, it is characterised in that the first acquisition unit includes:Second acquisition unit, for the key assignments for obtaining the Ethernet data bag to be forwarded and the ether to be forwarded The key assignments of network data bag relative to the initial position in the packet header of the Ethernet data bag to be forwarded deviant;Determination unit, for determining the key of the Ethernet data bag according to the key assignments and the deviant that get Value information;3rd acquiring unit, for obtaining each protocol layer pair successively from the packet header according to the key value information after determining The key value information answered.
- 10. the device according to any one of claim 7 to 9, it is characterised in that described device further includes:Filtering module, for the MAC address and/or virtual LAN according to the Ethernet data bag received Vlan number code filters the Ethernet data bag received;Determining module, for determining the Ethernet data bag to be forwarded according to the result of filtering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210213508.0A CN102739537B (en) | 2012-06-26 | 2012-06-26 | The retransmission method and device of Ethernet data bag |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210213508.0A CN102739537B (en) | 2012-06-26 | 2012-06-26 | The retransmission method and device of Ethernet data bag |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102739537A CN102739537A (en) | 2012-10-17 |
CN102739537B true CN102739537B (en) | 2018-05-15 |
Family
ID=46994349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210213508.0A Expired - Fee Related CN102739537B (en) | 2012-06-26 | 2012-06-26 | The retransmission method and device of Ethernet data bag |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102739537B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970760A (en) * | 2012-11-12 | 2013-03-13 | 大唐移动通信设备有限公司 | Method and device for scheduling data traffic |
CN109379286B (en) | 2018-12-25 | 2020-12-01 | 中国科学院沈阳自动化研究所 | Data forwarding system based on Handle identification |
CN114095255A (en) * | 2021-11-22 | 2022-02-25 | 安徽健坤通信股份有限公司 | Network security monitoring method, device and storage medium |
CN115499381A (en) * | 2022-10-12 | 2022-12-20 | 安徽青松食品有限公司 | Enterprise data management system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1972240A (en) * | 2005-11-24 | 2007-05-30 | 武汉烽火网络有限责任公司 | Fast package filter processing method and its apparatus |
CN101141390A (en) * | 2007-07-17 | 2008-03-12 | 武汉烽火网络有限责任公司 | Novel self-defining ethernet out-of-band data packet filtering method and device |
CN101364987A (en) * | 2008-09-22 | 2009-02-11 | 华为技术有限公司 | Frame processing method, apparatus and system |
US7990971B2 (en) * | 2007-09-21 | 2011-08-02 | Electronics And Telecommunications Research Institute | Packet processing apparatus and method codex |
CN102316121A (en) * | 2011-10-19 | 2012-01-11 | 武汉烽火网络有限责任公司 | Filtering matching preprocessing method supporting dynamic extended frame head and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110213869A1 (en) * | 2000-09-25 | 2011-09-01 | Yevgeny Korsunsky | Processing data flows with a data flow processor |
-
2012
- 2012-06-26 CN CN201210213508.0A patent/CN102739537B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1972240A (en) * | 2005-11-24 | 2007-05-30 | 武汉烽火网络有限责任公司 | Fast package filter processing method and its apparatus |
CN101141390A (en) * | 2007-07-17 | 2008-03-12 | 武汉烽火网络有限责任公司 | Novel self-defining ethernet out-of-band data packet filtering method and device |
US7990971B2 (en) * | 2007-09-21 | 2011-08-02 | Electronics And Telecommunications Research Institute | Packet processing apparatus and method codex |
CN101364987A (en) * | 2008-09-22 | 2009-02-11 | 华为技术有限公司 | Frame processing method, apparatus and system |
CN102316121A (en) * | 2011-10-19 | 2012-01-11 | 武汉烽火网络有限责任公司 | Filtering matching preprocessing method supporting dynamic extended frame head and device |
Also Published As
Publication number | Publication date |
---|---|
CN102739537A (en) | 2012-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104348716B (en) | A kind of message processing method and equipment | |
CN1311670C (en) | Method and system for a network node for attachment to switch fabrics | |
EP3082304B1 (en) | Service routing method and system | |
US20050060418A1 (en) | Packet classification | |
CN101217464B (en) | UDP data package transmission method | |
CN101170512B (en) | Message service processing method | |
CN101176306B (en) | Traffic analysis system and method for checking network communication service flow | |
US8605752B2 (en) | Communication apparatus, communication method, and computer program | |
WO2002093832A3 (en) | System and methods for providing differentiated services within a network communication system | |
CN102739537B (en) | The retransmission method and device of Ethernet data bag | |
CN1625159A (en) | Switch capable of controlling data packet transmission and related method | |
CN113676924B (en) | Communication method, device and system | |
CN108833299A (en) | A kind of large scale network data processing method based on restructural exchange chip framework | |
CN101789949B (en) | Method and router equipment for realizing load sharing | |
CN110300081A (en) | A kind of method and apparatus of data transmission | |
CN101267399A (en) | Packet forward method, device and its uplink interface board | |
CN103346980B (en) | A kind of business scheduling method, device and the network equipment | |
CN107295036A (en) | A kind of data transmission method for uplink and data merge equipment | |
CN108353022A (en) | A kind of processing method of data message, apparatus and system | |
WO2012109910A1 (en) | Routing method and device for link aggregation | |
CN101242362A (en) | Find key value generation device and method | |
CN107438993A (en) | For the method and system of packet to be dispatched in boundling scene based on TCP channel and primary TCP message | |
CN107689942A (en) | Method for processing business and device | |
CN1973503B (en) | Flow processing | |
CN102546364A (en) | Network data distribution method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Du Jinlin Inventor before: Wang Haibo |
|
CB03 | Change of inventor or designer information | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180309 Address after: 200437 Shanghai city Baoshan District Yixian Road No. 2816 building B 20F Applicant after: Translated by Mdt InfoTech Ltd. Shanghai Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No. Applicant before: ZTE Corp. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180515 |
|
CF01 | Termination of patent right due to non-payment of annual fee |