CN102739537A - Method and device for forwarding Ethernet packets - Google Patents

Method and device for forwarding Ethernet packets Download PDF

Info

Publication number
CN102739537A
CN102739537A CN2012102135080A CN201210213508A CN102739537A CN 102739537 A CN102739537 A CN 102739537A CN 2012102135080 A CN2012102135080 A CN 2012102135080A CN 201210213508 A CN201210213508 A CN 201210213508A CN 102739537 A CN102739537 A CN 102739537A
Authority
CN
China
Prior art keywords
data bag
ethernet data
transmitted
key assignments
information
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.)
Granted
Application number
CN2012102135080A
Other languages
Chinese (zh)
Other versions
CN102739537B (en
Inventor
王海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Translated By Mdt Infotech Ltd Shanghai
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210213508.0A priority Critical patent/CN102739537B/en
Publication of CN102739537A publication Critical patent/CN102739537A/en
Application granted granted Critical
Publication of CN102739537B publication Critical patent/CN102739537B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and device for forwarding Ethernet packets. According to the method, the characteristic information of the Ethernet packets to be forwarded is obtained, and the Ethernet packets are parsed, classified and pre-processed through the characteristic information, wherein the characteristic information corresponds to a protocol layer to which the Ethernet packets to be forwarded belong; according to the parsed, classified and pre-processed result, the Ethernet packets to be forwarded are classified and pre-processed; and the Ethernet packets to be forwarded are forwarded according to the classified and processed result. According to the technical scheme provided by the invention, the real-time forwarding of the Ethernet packets is ensured, and the complexity of the forwarding and processing process of the Ethernet packets is reduced.

Description

The retransmission method of Ethernet data bag and device
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 efficient of network processes, guarantee quality of services for users (QoS), require the exchange treatment facility of base station to have the functions such as feature extraction of packet header filtration, parsing, classification and the Ethernet data bag of Ethernet data bag.Simultaneously, in order to satisfy the demand of agreement development, can require Ethernet data bag accelerator to have good flexibility and extensibility usually.The technical scheme that adopts in the correlation technique is that the key assignments to the Ethernet data bag extracts; And adopt the HASH checking result to carry out the classification of Ethernet data bag; When but the packet information that promptly is used to classify when key assignments is excessive is too much; The collision probability of tabling look-up is high, needs multistage tabling look-up just can obtain classification results, is difficult to the real-time that guarantees that the Ethernet data bag is handled thus.Other a kind of technical scheme in the correlation technique is to extract the specific key assignments in Ethernet data bag packet header and dispose corresponding mask.Because the invalid field of the mask of configuration in can mask key value, reduced the HASH key assignments of tabling look-up, therefore, improved the efficient of tabling look-up.But the defective of this scheme is only can extract the specific fields of Ethernet data bag; For example: information such as ethernet type, IP protocol number; And this scheme is only to functions such as the port redirection of Ethernet data bag, CPU forwarding, packet discards; Only be useful in specific Ethernet data packet switch scene, have stronger limitation.
Summary of the invention
The invention provides a kind of retransmission method and device of Ethernet data bag, to solve the real-time forwarding that can't guarantee the Ethernet data bag in the correlation technique, the problem of complex disposal process at least.
A kind of retransmission method of Ethernet data bag is provided according to an aspect of the present invention.
Retransmission method according to Ethernet data bag of the present invention comprises: the characteristic information that obtains Ethernet data bag to be transmitted; And adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment; Wherein, characteristic information is corresponding with the protocol layer that Ethernet data bag to be transmitted is belonged to; The Ethernet data bag of treating forwarding according to the pretreated result of parsing classification carries out classification processing; Treat the Ethernet data bag of forwarding transmits according to the result of classification processing.
Preferably; Obtain the characteristic information of Ethernet data bag to be transmitted, and adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment to comprise: from the packet header of Ethernet data bag to be transmitted, obtain the corresponding key assignments information of each protocol layer successively according to characteristic information; Treat the Ethernet data bag of forwarding according to the key assignments information that gets access to and resolve classification.
Preferably, from the packet header of Ethernet data bag to be transmitted, obtaining the corresponding key assignments information of each protocol layer successively according to characteristic information comprises: the key assignments of key assignments that obtains Ethernet data bag to be transmitted and Ethernet data bag to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag to be transmitted; Confirm the key assignments information of Ethernet data bag according to the key assignments that gets access to and deviant; From packet header, obtain the corresponding key assignments of each protocol layer successively according to the key assignments information after confirming.
Preferably; Carry out classification processing and comprise according to resolving Ethernet data bag that the pretreated result of classification treats forwarding: from the message characteristic coding schedule of the Ethernet data bag that is provided with in advance, obtain the message characteristic coding of Ethernet data bag to be transmitted according to resolving the pretreated result of classification, and obtain the priority of Ethernet data bag to be transmitted according to resolving the pretreated result of classification; Adopt and resolve the pretreated result of classification, message characteristic coding and priority generating feature descriptor.
Preferably, before the characteristic information that obtains Ethernet data bag to be transmitted, also comprise: media access control MAC address and/or virtual LAN VLAN number according to the Ethernet data bag that receives filter the Ethernet data bag that receives; Confirm Ethernet data bag to be transmitted according to filtering result.
Preferably, above-mentioned characteristic information comprise following one of at least: the protocol type that the Ethernet data bag is supported; The priority of Ethernet data bag; The address information of Ethernet data bag.
Preferably, above-mentioned key assignments information comprise following one of at least: the sign ID of protocol layer corresponding port number, protocol layer.
A kind of retransmission unit of Ethernet data bag is provided according to a further aspect in the invention.
Retransmission unit according to Ethernet data bag of the present invention comprises: parsing module; Be used to obtain the characteristic information of Ethernet data bag to be transmitted; And adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment; Wherein, characteristic information is corresponding with the protocol layer that Ethernet data bag to be transmitted is belonged to; Sort module is used for carrying out classification processing according to resolving the Ethernet data bag that the pretreated result of classification treats forwarding; Forwarding module is used for the Ethernet data bag that result according to classification processing treats forwarding and transmits.
Preferably, parsing module comprises: first acquiring unit is used for obtaining the corresponding key assignments information of each protocol layer successively from packet header of Ethernet data bag to be transmitted according to characteristic information; Resolution unit, the Ethernet data bag that is used for treating according to the key assignments information that gets access to forwarding is resolved.
Preferably, first acquiring unit comprises: second acquisition unit, and the key assignments of key assignments that is used to obtain Ethernet data bag to be transmitted and Ethernet data bag to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag to be transmitted; Confirm the unit, be used for the key assignments information of confirming the Ethernet data bag according to the key assignments that gets access to and deviant; The 3rd acquiring unit is used for obtaining the corresponding key assignments information of each protocol layer successively from packet header according to the key assignments information after confirming.
Preferably; Sort module comprises: the 4th acquiring unit; Be used for obtaining the message characteristic coding of Ethernet data bag to be transmitted, and obtain the priority of Ethernet data bag to be transmitted according to resolving the pretreated result of classification according to resolving the message characteristic coding schedule of the pretreated result of classification from the Ethernet data bag that is provided with in advance; Generation unit is used for adopting the pretreated result of parsing classification, message characteristic coding and priority generating feature descriptor.
Preferably, said apparatus also comprises: filtering module is used for according to the media access control MAC address and/or the virtual LAN VLAN number of the Ethernet data bag that receives the Ethernet data bag that receives being filtered; Determination module is used for confirming Ethernet data bag to be transmitted according to filtering result.
Through the present invention; Before the Ethernet data bag of treating forwarding is carried out the classification transmission processing; The characteristic information that employing gets access to is resolved the classification preliminary treatment to the Ethernet data bag, has solved the real-time forwarding that can't guarantee the Ethernet data bag in the correlation technique, the problem of complex disposal process; And then guaranteed the real-time forwarding of Ethernet data bag, reduced the complexity that the Ethernet data bag is transmitted processing procedure.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the retransmission method of the Ethernet data bag of the embodiment of the invention;
Fig. 2 is that packet is resolved 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 structured flowchart according to the retransmission unit of the Ethernet data bag of the embodiment of the invention;
Fig. 5 is the structured flowchart of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention; And
Fig. 6 is the sketch map of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the flow chart according to the retransmission method of the Ethernet data bag of the embodiment of the invention.As shown in Figure 1, this method can comprise following treatment step:
Step S102: obtain the characteristic information of Ethernet data bag to be transmitted, and adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment, wherein, characteristic information is corresponding with the protocol layer that Ethernet data bag to be transmitted is belonged to;
Step S104: the Ethernet data bag of treating forwarding according to the pretreated result of parsing classification carries out classification processing;
Step S106: the Ethernet data bag of treating forwarding according to the result of classification processing is transmitted.
In the correlation technique, can't guarantee the real-time forwarding of Ethernet data bag, complex disposal process.Adopt method as shown in Figure 1; Can extract the key assignments of the arbitrary fields in Ethernet data packet header according to protocol layer and corresponding Configuration Values as packet classification; And carry out classification according to package level with corresponding key assignments and accurately table look-up, packet dissimilar, different priorities is sent into corresponding Ethernet data bag processing unit, more flexibly, efficiently the Ethernet data bag is carried out precise classification and handle; Solved the real-time forwarding that can't guarantee the Ethernet data bag in the correlation technique; The problem of complex disposal process, and then guaranteed the real-time forwarding of Ethernet data bag has reduced the complexity that the Ethernet data bag is transmitted processing procedure.
In preferred implementation process, above-mentioned characteristic information can include but not limited to following one of at least: the address information of the protocol type that the Ethernet data bag is supported, the priority of Ethernet data bag, Ethernet data bag.
In a preferred embodiment, the Ethernet data bag is made up of packet header and payload two parts, and wherein, the header part has comprised the characteristic information of Ethernet data bag, for example: information such as protocol type, priority, address.For the handling property of the Ethernet data bag that improves system, need extract the characteristic key assignments of packet simultaneously according to the preliminary treatment of classifying of the characteristic information of packet, for example: port numbers, ID etc. generate the feature descriptor of packet.Follow-up processing flow can be handled the Ethernet data bag according to the feature descriptor that has generated, and reduces overhead; Utilize the packet of flexible configuration to transmit simultaneously,, the data of different types bag is forwarded to different subsequent treatment unit, therefore, can be useful in the occasion that multiple Ethernet data bag is handled according to classified information and priority.
Preferably, in step S102, obtain the characteristic information of Ethernet data bag to be transmitted, and adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment can to comprise following operation:
Step S1: from the packet header of Ethernet data bag to be transmitted, obtain the corresponding key assignments information of each protocol layer successively according to characteristic information;
Step S2: the Ethernet data bag of treating forwarding according to the key assignments information that gets access to is resolved.
In preferred implementation process, above-mentioned key assignments information can include but not limited to following one of at least: the sign ID of protocol layer corresponding port number, protocol layer.
Preferably, in step S1, from the packet header of Ethernet data bag to be transmitted, obtaining the corresponding key assignments information of each protocol layer successively according to characteristic information can may further comprise the steps:
Step S11: the key assignments of key assignments that obtains Ethernet data bag to be transmitted and Ethernet data bag to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag to be transmitted;
Step S12: the key assignments information of confirming the Ethernet data bag according to the key assignments that gets access to and deviant;
Step S13: from packet header, obtain the corresponding key assignments information of each protocol layer successively according to the key assignments information after confirming.
In a preferred embodiment, Fig. 2 is that packet is resolved according to the preferred embodiment of the invention, classification is tabled look-up and the flow chart of tagsort.As shown in Figure 2, this flow process can may further comprise the steps:
Step S202: receiving terminal receives the Ethernet data bag;
Step S204: the MAC Address/vlan number according to the Ethernet data bag filters, and reduces the processing load of the Ethernet data bag of system; If coupling then continues execution in step S206; If coupling is unsuccessful, then forward step S220 to;
Step S206: the message to coupling carries out classification parsing classification preliminary treatment, extracts the key assignments information of L2;
Step S208: judge according to the type of data packet of L2 whether this packet has the packet header of L3, if message does not have the head of L3, then packet is resolved and is finished, and the analysis result of L2 is sent into sort module, forwards step S216 to; If message has the packet header of L3, get into L3 packet header and handle, continue execution in step S210;
Step S210: the key assignments information of extracting L3;
Step S212: the bag type according to L3 judges whether that packet has the packet header of L4, if message does not have the head of L4, packet is resolved end and the analysis result of L3 is sent into sort module, forwards step S216 to; If message has the packet header of L4, get into L4 packet header and handle, continue execution in step S214;
Step S214: extract the key assignments information of L4 and the analysis result of L4 is sent into sort module;
Step S216: checking result output;
Step S218: sort module is classified to packet according to the packet header analysis result, utilizes key assignments and the bag characteristic extracted to form the bag descriptor simultaneously; Flow process finishes;
Step S220: with data packet discarding.
Preferably, in step S104, carry out classification processing and can comprise following operation according to resolving Ethernet data bag that the pretreated result of classification treats forwarding:
Step S3: from the message characteristic coding schedule of the Ethernet data bag that is provided with in advance, obtain the message characteristic coding of Ethernet data bag to be transmitted according to resolving the pretreated result of classification, and obtain the priority of Ethernet data bag to be transmitted according to resolving the pretreated result of classification;
Step S4: adopt and resolve the pretreated result of classification, message characteristic coding and priority generating feature descriptor.
In a preferred embodiment, in step S106, the Ethernet data bag of treating forwarding according to the result of classification processing is transmitted and can be comprised following processing: the Ethernet data bag of treating forwarding according to the feature descriptor that generates is transmitted.
In a preferred embodiment, through administration configuration interface configuration classifying rules and characteristic of correspondence value.Layering is tabled look-up the Ethernet data bag is classified.Step is following: at first utilize the key assignments of L2 to classify and table look-up, obtain the packet characteristic of L2; Next utilizes the key assignments of L3 to classify and tables look-up, and obtains the packet characteristic of L3.And the like, utilize L2-L5 packet characteristic at last, the characteristic type coding of tabling look-up and obtaining packet.According to the packet priority skew of analysis result and configuration, extract priority of data packets.According to different type of data packet and corresponding characteristic of division information, generate the feature descriptor of packet.
In a preferred embodiment, route information table is transmitted in configuration according to type of data packet, and for example: configuration SCTP packet is sent to the CPU processing queue.According to the classification results of packet, and the precedence field that classification is extracted looks into the formation classification chart, packet is sent to corresponding processing data packets unit handles.
Preferably,, obtain before the characteristic information of Ethernet data bag to be transmitted, can also may further comprise the steps at step S102:
Step S6: media access control MAC address and/or virtual LAN VLAN number according to the Ethernet data bag that receives filter the Ethernet data bag that receives;
Step S7: confirm Ethernet data bag to be transmitted according to filtering result.
In a preferred embodiment, extract the type of packet key assignments through the configuration management interface configuration and with respect to the skew in packet header; When each Ethernet data bag arrives, according to the target MAC (Media Access Control) address of packet packet is filtered, abandon illegal packet, the packet that will belong to this equipment is simultaneously given bag and is resolved and buffer unit; The Ethernet data bag is resolved, and extract the required key assignments information of classification from the packet header of packet, send into the bag sort module and carry out the packet classification processing according to configuration.
Below in conjunction with preferred embodiment shown in Figure 3 above-mentioned preferred implementation process is done further description.
Fig. 3 is the flow chart of sorting technique according to the preferred embodiment of the invention.As shown in Figure 3, this flow process can comprise following processing: at first, filter according to the MAC Address/vlan number of Ethernet data bag, reduce the processing load of the Ethernet data bag of system.Secondly, packet is carried out the result that layering resolves and will resolve output to 1-4 level table look-up module, parsing module outputs to the packet classification module according to the key assignments information of configuration information extraction packet simultaneously; 1-4 level classification table look-up module is sent to the packet classification processing module according to configuration and the analysis result type field that draws packet of tabling look-up; The packet classification processing module is utilized the classification chart of result that 1-4 level classification tables look-up and configuration to table look-up and is obtained packet classification characteristic outgoing message feature field; Produce the descriptor of packet according to resolving the key assignments, precedence field and the message characteristic that extract simultaneously, and export the packet retransmission unit to; The final data packet forwarding unit is according to the purpose processing unit of tabling look-up and obtaining packet of transmitting of classified information, priority and the configuration of packet.
Fig. 4 is the structured flowchart according to the retransmission unit of the Ethernet data bag of the embodiment of the invention.As shown in Figure 4; The retransmission unit of this Ethernet data bag can comprise: parsing module 10; Be used to obtain the characteristic information of Ethernet data bag to be transmitted; And adopt characteristic information that the Ethernet data bag is resolved the classification preliminary treatment, wherein, characteristic information is corresponding with the protocol layer that Ethernet data bag to be transmitted is belonged to; Sort module 20 is used for carrying out classification processing according to resolving the Ethernet data bag that the pretreated result of classification treats forwarding; Forwarding module 30 is used for the Ethernet data bag that result according to classification processing treats forwarding and transmits.
Adopt device as shown in Figure 4, solved the real-time forwarding that can't guarantee the Ethernet data bag in the correlation technique, the problem of complex disposal process, and then guaranteed the real-time forwarding of Ethernet data bag has reduced the complexity that the Ethernet data bag is transmitted processing procedure.
Preferably, as shown in Figure 5, parsing module 10 can comprise: first acquiring unit 100 is used for obtaining the corresponding key assignments information of each protocol layer successively from packet header of Ethernet data bag to be transmitted according to characteristic information; Resolution unit 102, the Ethernet data bag that is used for treating according to the key assignments information that gets access to forwarding is resolved.
Preferably; As shown in Figure 5; First acquiring unit 100 can comprise: second acquisition unit 1000, and the key assignments of key assignments that is used to obtain Ethernet data bag to be transmitted and Ethernet data bag to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag to be transmitted; Confirm unit 1002, be used for the key assignments information of confirming the Ethernet data bag according to the key assignments that gets access to and deviant; The 3rd acquiring unit 1004 is used for obtaining the corresponding key assignments information of each protocol layer successively from packet header according to the key assignments information after confirming.
Preferably; As shown in Figure 5; Sort module 20 can comprise: the 4th acquiring unit 200; Be used for obtaining the message characteristic coding of Ethernet data bag to be transmitted, and obtain the priority of Ethernet data bag to be transmitted according to resolving the pretreated result of classification according to resolving the message characteristic coding schedule of the pretreated result of classification from the Ethernet data bag that is provided with in advance; Generation unit 202 is used to adopt the result of classification processing, message characteristic to encode and priority generating feature descriptor.
Preferably, as shown in Figure 5, said apparatus can also comprise: filtering module 40 is used for according to the media access control MAC address and/or the virtual LAN VLAN number of the Ethernet data bag that receives the Ethernet data bag that receives being filtered; Determination module 50 is used for confirming Ethernet data bag to be transmitted according to filtering result.
Below in conjunction with preferred embodiment shown in Figure 6 above-mentioned preferred implementation process is done further description.
Fig. 6 is the sketch map of the retransmission unit of Ethernet data bag according to the preferred embodiment of the invention.As shown in Figure 6, the type of management configuration module configuration extraction packet key assignments (for example: IP/TCP/UDP) and the packet key assignments with respect to the skew in packet header; The packet classification table disposes corresponding message characteristic coding schedule and dissimilar message and different priorities message forwarding route information table according to user's request and type of data packet.Packet parsing module (being equivalent to above-mentioned parsing module) is according to the key assignments of configuration and the characteristic information of skew extraction packet; And obtain the next stage type of data packet through searching the hierarchical information table; Packet is carried out classification resolve, and the output analysis result.Packet classification module (being equivalent to above-mentioned sort module) produces the descriptor of packet simultaneously according to the message characteristic coding that result who resolves and message characteristic coding schedule obtain packet.Packet is transmitted feature coding and the packet priority of routing module (being equivalent to above-mentioned forwarding module) according to message; Packet is sent to the processing unit that disposes in the forwarding route information table; Carry out the processing of packet; For example: the packet of a TCP; Obtain the chain of command message that these data are TCP through resolving, can this message is sent to the CPU protocol stack handle, can certainly this message be sent to and be issued to next stage equipment after the packet forwarding module modification port numbers and handle through transmitting route information table with sort module.
From above description; Can find out; The foregoing description has been realized following technique effect (need to prove that these effects are effects that some preferred embodiment can reach): can extract the key assignments of the arbitrary fields in Ethernet data packet header as packet classification according to protocol layer and Configuration Values according to technical scheme provided by the invention, guarantee system flexibility; Carry out classification according to the packet level with corresponding key assignments simultaneously and accurately table look-up, when guaranteeing system real time, reduced the complexity of tabling look-up.Moreover, device of the present invention combines configurable packet classification table, can be flexibly with dissimilar, and the packet of different priorities is sent into corresponding processing data packets unit, the well compatible demand of various utilization scenes.Technical scheme of the present invention has the following advantages: a. can carry out precise classification to the Ethernet data bag fast and efficiently; The real-time of assurance system; Because adopting classification tables look-up; The list item that makes each grade table look-up is less, has effectively like this shortened the time of tabling look-up, and satisfies the requirement of gigabit Ethernet processing data packets; B. can carry out classification processing according to the arbitrary fields of Ethernet data bag, very strong flexibility is arranged,, can select to utilize any field of any one deck to classify and table look-up through the mode of configuration; C. according to classification results and priority; Can the packet of dissimilar different priorities be sent into different Ethernet data bag acceleration processing units according to the Ethernet data packet forwarding table of configuration and handle, improve the flexibility of Ethernet data bag processing unit; The packet description field that generates simultaneously can be reused for other packets quicken processing unit, has reduced the processing data packets expense of system, has improved the performance of system.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. the retransmission method of an Ethernet data bag is characterized in that, comprising:
Obtain the characteristic information of Ethernet data bag to be transmitted, and adopt said characteristic information that said Ethernet data bag is resolved the classification preliminary treatment, wherein, said characteristic information is corresponding with the protocol layer that Ethernet data bag said to be transmitted is belonged to;
According to the said parsing pretreated result that classifies Ethernet data bag said to be transmitted is carried out classification processing;
Result according to said classification processing transmits Ethernet data bag said to be transmitted.
2. method according to claim 1 is characterized in that, obtains the said characteristic information of Ethernet data bag said to be transmitted, and adopt said characteristic information to said Ethernet data bag resolve the classification preliminary treatment comprise:
From the packet header of Ethernet data bag said to be transmitted, obtain the corresponding key assignments information of each protocol layer successively according to said characteristic information;
According to the key assignments information that gets access to Ethernet data bag said to be transmitted is resolved classification.
3. method according to claim 2 is characterized in that, from the packet header of Ethernet data bag said to be transmitted, obtains the corresponding key assignments information of each protocol layer successively according to said characteristic information and comprises:
The key assignments of key assignments and Ethernet data bag said to be transmitted that obtains Ethernet data bag said to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag said to be transmitted;
Confirm the key assignments information of said Ethernet data bag according to the said key assignments that gets access to and said deviant;
From said packet header, obtain the corresponding key assignments of each protocol layer successively according to the said key assignments information after confirming.
4. method according to claim 1 is characterized in that, Ethernet data bag said to be transmitted is carried out classification processing comprises according to the said parsing pretreated result that classifies:
From the message characteristic coding schedule of the Ethernet data bag that is provided with in advance, obtain the message characteristic coding of Ethernet data bag said to be transmitted according to the said parsing pretreated result that classifies, and obtain the priority of Ethernet data bag said to be transmitted according to the said parsing pretreated result that classifies;
Adopt classify pretreated result, said message characteristic coding and said priority of said parsing to generate said feature descriptor.
5. according to each described method in the claim 1 to 4, it is characterized in that, before the said characteristic information that obtains Ethernet data bag said to be transmitted, also comprise:
Media access control MAC address and/or virtual LAN VLAN number according to the Ethernet data bag that receives filter the said Ethernet data bag that receives;
Confirm Ethernet data bag said to be transmitted according to filtering result.
6. according to each described method in the claim 1 to 4, it is characterized in that, said characteristic information comprise following one of at least:
The protocol type that said Ethernet data bag is supported;
The priority of said Ethernet data bag;
The address information of said Ethernet data bag.
7. according to each described method in the claim 1 to 4, it is characterized in that, said key assignments information comprise following one of at least:
The sign ID of protocol layer corresponding port number, protocol layer.
8. the retransmission unit of an Ethernet data bag is characterized in that, comprising:
Parsing module; Be used to obtain the characteristic information of Ethernet data bag to be transmitted; And adopt said characteristic information that said Ethernet data bag is resolved the classification preliminary treatment, wherein, said characteristic information is corresponding with the protocol layer that Ethernet data bag said to be transmitted is belonged to;
Sort module is used for according to the said parsing pretreated result that classifies Ethernet data bag said to be transmitted being carried out classification processing;
Forwarding module is used for according to the result of said classification processing Ethernet data bag said to be transmitted being transmitted.
9. device according to claim 8 is characterized in that, said parsing module comprises:
First acquiring unit is used for obtaining the corresponding key assignments information of each protocol layer successively from packet header of Ethernet data bag said to be transmitted according to said characteristic information;
Resolution unit is used for according to the key assignments information that gets access to Ethernet data bag said to be transmitted being resolved.
10. device according to claim 9 is characterized in that, said first acquiring unit comprises:
Second acquisition unit, the key assignments of key assignments and Ethernet data bag said to be transmitted that is used to obtain Ethernet data bag said to be transmitted is with respect to the deviant of the original position in the packet header of Ethernet data bag said to be transmitted;
Confirm the unit, be used for the key assignments information of confirming said Ethernet data bag according to the said key assignments that gets access to and said deviant;
The 3rd acquiring unit is used for obtaining the corresponding key assignments information of each protocol layer successively from said packet header according to the said key assignments information after confirming.
11. device according to claim 8 is characterized in that, said sort module comprises:
The 4th acquiring unit; Be used for obtaining the message characteristic coding of Ethernet data bag said to be transmitted from the message characteristic coding schedule of the Ethernet data bag that is provided with in advance, and obtain the priority of Ethernet data bag said to be transmitted according to the said parsing pretreated result that classifies according to the said parsing pretreated result that classifies; Generation unit is used to adopt classify pretreated result, said message characteristic coding and said priority of said parsing to generate said feature descriptor.
12. each described device in 11 according to Claim 8 is characterized in that said device also comprises:
Filtering module is used for according to the media access control MAC address and/or the virtual LAN VLAN number of the Ethernet data bag that receives the said Ethernet data bag that receives being filtered;
Determination module is used for confirming Ethernet data bag said to be transmitted according to filtering result.
CN201210213508.0A 2012-06-26 2012-06-26 The retransmission method and device of Ethernet data bag Expired - Fee Related CN102739537B (en)

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 true CN102739537A (en) 2012-10-17
CN102739537B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970760A (en) * 2012-11-12 2013-03-13 大唐移动通信设备有限公司 Method and device for scheduling data traffic
WO2020135215A1 (en) * 2018-12-25 2020-07-02 中国科学院沈阳自动化研究所 Handle identification-based data forwarding unit
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 (6)

* Cited by examiner, † Cited by third party
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
US20110213869A1 (en) * 2000-09-25 2011-09-01 Yevgeny Korsunsky Processing data flows with a data flow processor
CN102316121A (en) * 2011-10-19 2012-01-11 武汉烽火网络有限责任公司 Filtering matching preprocessing method supporting dynamic extended frame head and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970760A (en) * 2012-11-12 2013-03-13 大唐移动通信设备有限公司 Method and device for scheduling data traffic
WO2020135215A1 (en) * 2018-12-25 2020-07-02 中国科学院沈阳自动化研究所 Handle identification-based data forwarding unit
US11456950B2 (en) 2018-12-25 2022-09-27 Shenyang Institute Of Automation, Chinese Academy Of Sciences Data forwarding unit based on handle identifier
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

Also Published As

Publication number Publication date
CN102739537B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN104348716B (en) A kind of message processing method and equipment
CN105791214B (en) Method and equipment for converting RapidIO message and Ethernet message
WO2005026871A2 (en) Packet classification
CN1972240A (en) Fast package filter processing method and its apparatus
CN113676924B (en) Communication method, device and system
CN102739537A (en) Method and device for forwarding Ethernet packets
CN102316121A (en) Filtering matching preprocessing method supporting dynamic extended frame head and device
CN108353022A (en) A kind of processing method of data message, apparatus and system
US20170222953A1 (en) User packet forwarding control method and processing node
CN103746920B (en) A kind of method that data transfer is realized based on gateway
CN107566267A (en) A kind of message forwarding method and device based on aggregated links
CN102546364B (en) Network data distribution method and device
CN1736076A (en) Apparatus and method for data packet classification
CN108234550B (en) Information sending method, information receiving method and PDCP entity
CN1973503B (en) Flow processing
CN102420772A (en) Tunnel message transmission and receiving methods and devices
CN106533503B (en) A kind of method and device of powerline network communication
CN110431885B (en) Method and device for processing message
CN103001966A (en) Processing and identifying method and device for private network IP
WO2016119269A1 (en) Service data stream data packet processing method and device
US20080247397A1 (en) Network clustering for improving connection management and re-routing capabilities
KR101284584B1 (en) System and method for managing signaling traffic
CN105072057B (en) A kind of intermediate switching equipment and its method and system for network data transmission
US20090141712A1 (en) Router device
CN105871573A (en) Method and device for analyzing and filtering message

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
CB03 Change of inventor or designer information

Inventor after: Du Jinlin

Inventor before: Wang Haibo

TA01 Transfer of patent application right
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.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180515