CN112084063A - 100Gbps Ethernet filtering method - Google Patents
100Gbps Ethernet filtering method Download PDFInfo
- Publication number
- CN112084063A CN112084063A CN202010874203.9A CN202010874203A CN112084063A CN 112084063 A CN112084063 A CN 112084063A CN 202010874203 A CN202010874203 A CN 202010874203A CN 112084063 A CN112084063 A CN 112084063A
- Authority
- CN
- China
- Prior art keywords
- data
- filtering
- frame
- state machine
- lane
- 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
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 139
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012360 testing method Methods 0.000 claims abstract description 13
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 3
- 238000012216 screening Methods 0.000 abstract description 5
- 238000011161 development Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- VIEYMVWPECAOCY-UHFFFAOYSA-N 7-amino-4-(chloromethyl)chromen-2-one Chemical compound ClCC1=CC(=O)OC2=CC(N)=CC=C21 VIEYMVWPECAOCY-UHFFFAOYSA-N 0.000 description 1
- 101100498818 Arabidopsis thaliana DDR4 gene Proteins 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4498—Finite state machines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
- H04L43/028—Capturing of monitoring data by filtering
Abstract
The invention discloses a 100Gbps Ethernet filtering method which comprises a field programmable gate array, an upper computer and a memory, wherein a CMAC-IP core is arranged in the field programmable gate array, and a filtering state machine is constructed in the field programmable gate array. The field programmable gate array and the memory are connected with an upper computer through a standard electrical interface. The Ethernet data flow enters a CMAC-IP core under the test rate of 100Gbps, the CMAC-IP core is provided with 4 128 bit data channels, and the Ethernet data flow is sequentially and circularly output in the 4 128 bit data channels; the data output by the data channel enters a filtering state machine for filtering; and storing the filtered data into a memory for an upper computer to check. The 100Gbps Ethernet filtering method provided by the invention comprises a filtering method based on a standard Ethernet frame, a user-defined graph filtering method and an error code type filtering method, can realize effective data screening in 100Gbps high-speed, multi-protocol and high-flow Ethernet data, and improves the efficiency of extracting useful information.
Description
Technical Field
The invention relates to the field of filtering Ethernet data packets at a 100Gbps test rate, in particular to a 100Gbps Ethernet filtering method.
Background
With the rapid development of information technology, ultra-high speed, ultra-large capacity and ultra-wide bandwidth become the future development trend of wired communication. Currently, all parties in the industry, including telecom operators, equipment vendors, etc., are actively driving the deployment of applications for 100G technology. The Ethernet tester is developed rapidly in recent years, and shows the trends of increasing the testing speed, and increasing the capability of carrying out complex testing towards the application. The foreign high-speed network protocol testing research is mainly embodied in the technologies and implementation means of high-speed protocol detection integration, automatic testing and the like, and an evaluation result is directly obtained according to information which is highly concerned by a user. Due to the limitations of core technologies such as high interface speed, large data flow, complex and various protocols and the like, the domestic high-speed ethernet tester has the conditions of low test speed, incomplete protocol test, lack of filtering and screening capabilities of application information test and the like, and needs to be comprehensively and greatly improved.
At present, the mainstream domestic instrument testing rate is mainly concentrated on giga and tera, and the development of a 100G network tester is in progress, so that the development of the latest technology of the Ethernet is difficult to meet. Also, how to implement efficient data screening from 100Gbps high-rate, multi-protocol, and high-traffic data is a new challenge.
Disclosure of Invention
The invention aims to provide a 100Gbps Ethernet filtering method, which realizes the function of screening Ethernet frames interested by a user by setting filtering conditions by the user and improves the efficiency of extracting useful information.
The invention adopts the following technical scheme:
a100 Gbps Ethernet filtering method comprises a field programmable gate array, an upper computer and a memory, wherein a CMAC-IP core is arranged in the field programmable gate array, and a filtering state machine is constructed in the field programmable gate array; the field programmable gate array and the memory are connected with an upper computer through a standard electrical interface;
the filtering method comprises the following steps:
step 1: the Ethernet data flow enters a CMAC-IP core under the test rate of 100Gbps, the CMAC-IP core is provided with 4 128 bit data channels, and the Ethernet data flow is sequentially and circularly output in the 4 128 bit data channels;
step 2: the data output by the data channel enters a filtering state machine for filtering;
and step 3: and storing the filtered data into a memory for an upper computer to check.
Preferably, the filtering process based on standard ethernet frames:
the filtering state machine constructed in the field programmable gate array is a tree state machine which is made of protocols of the Ethernet and carries out layered classification on all the protocols of the Ethernet;
the step 2 specifically comprises the following steps:
step 2.1: the filtering state machine firstly filters the basic protocol type of the frame header, then sequentially determines specific protocols step by step, and stores the protocols and provides the protocols for the upper computer to read after the protocols meeting the conditions are found;
step 2.2: since the start position of a frame may occur in any one of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the start position is lane 0, then subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …; and the filtering state machine judges which data channel the initial position of the frame is in, the upper computer reads the stored protocol to capture the data streams in the data channels in sequence, and the captured frame is stored in the memory.
Preferably, the filtering process of the user-defined graph is as follows:
the filtering state machine constructed in the field programmable gate array is a user-defined graph filtering state machine, the user-defined graph filtering state machine comprises a base address, an offset, a graph and a mask, the base address is a reference position of a filtering condition, the offset is an integral multiple byte offset relative to the base address, the graph is information which needs to be searched by a user, the length can reach 16 bytes, the mask corresponds to the graph, the length is 16 bytes, when a mask bit is equal to 1, the corresponding graph bit is valid, and when the mask bit is zero, the corresponding bit is invalid;
the step 2 specifically comprises the following steps:
step 2.1: inputting a base address, an offset, a graph and a mask code and customizing a mapping command of a graph filtering state machine by a user through an upper computer;
step 2.2: since the starting position of data may occur in any one of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the starting position is lane 0, then subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …; and the user-defined graph filtering state machine judges which data channel the initial position of the data is in, sequentially carries out sliding comparison on data streams in the data channels through the base address, the offset, the graph and the mask, and captures the data and stores the data in a memory when the filtering condition is met.
Preferably, the filtering of the error types:
the filtering state machine constructed in the field programmable gate array is an error code type filtering state machine, and FCS error frame filtering, Undersize short frame filtering, IPv4 check sum error frame filtering are arranged in the error code type filtering state machine;
when filtering an FCS error frame, step 2 specifically includes:
the error code type filtering state machine adopts a 32-bit cyclic redundancy check algorithm, when an enabling signal RX _ ENOUT and a terminating signal RX _ EOPOUT of a data channel are simultaneously 1, namely the current time sequence is the end of a current frame, the current frame is temporarily stored in the dual-port RAM, the last 32 bits are the check code of the current frame, if the 32-bit check code calculated by the error code type filtering state machine is different from the original FCS of the current frame, the current frame is in error, namely the FCS is in error, and the error code type filtering state machine further reads data from the frame header in the dual-port RAM and sequentially writes the data into a memory;
when filtering the Undersize short frame, the step 2 specifically comprises:
the IEEE802.3 standard stipulates that the shortest of Ethernet frames is 64 bytes, when the length is less than the length, the data packet has errors, namely a short frame, in the CMAC-IP core, 4 128-bit data channels, namely 64 bytes are included, and an error code type filtering state machine always detects the start and the end of the frame, after the current frame head appears, the frame tail must appear in the last channel of the next beat of effective clock edge earliest, if the frame tail appears in advance, the frame length must be less than 64 bytes, namely the short frame is wrong, the error code type filtering state machine relocates to the frame head of the short frame, and then the whole frame is written into a memory from a double-port RAM;
when IPv4 checksum error frame filtering, step 2 specifically includes:
the error code type filtering state machine firstly locates the initial position of the IP datagram, according to the Ethernet standard, the length of the header check sum is 16-bit accumulated sum of the anti-codes, and the offset position relative to the MAC frame is 6 bytes of MAC +6 bytes of source MAC +2 bytes type +10 bytes IP header is 24 bytes relative to the 10 th byte position of the IP data message header, so the check sum corresponds to the 6 th and 7 th bytes of the next data channel of the data initial, when the check is incorrect, the error code type filtering state machine captures the frame and writes the frame into the memory.
The invention has the beneficial effects that:
the 100Gbps Ethernet filtering method provided by the invention comprises a filtering method based on a standard Ethernet frame, a user-defined graph filtering method and an error code type filtering method, can realize effective data screening in 100Gbps high-speed, multi-protocol and high-flow Ethernet data, and improves the efficiency of extracting useful information.
Drawings
FIG. 1 is a diagram of a tree state machine.
Fig. 2 is a basic schematic diagram of fixed-length 64-byte IP frame filtering.
FIG. 3 is a diagram of a user-defined graphical filtering rationale.
Fig. 4 is a basic schematic diagram of a sliding window.
Fig. 5 is a basic schematic diagram of error type filtering.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
ethernet testers typically include two basic functions, transmit and receive. The receive function includes full and partial receive. Full reception is where the tester receives and stores all of the data, while partial reception is where all of the data received is filtered, usually selectively on demand. In filtering reception, trigger reception is a special filtering, which is triggered according to a condition set by a user to capture a data packet, and generally includes a start trigger, a middle trigger, a tail trigger, and the like. The filtering receiving condition of the ethernet tester generally includes a source MAC address, a destination MAC address, a source IP address, a destination IP address, a pattern trigger, frames of different kinds of error codes, and the like.
With reference to fig. 1 to 5, a 100Gbps ethernet filtering method includes a field programmable gate array, an upper computer and a memory, where the field programmable gate array has a CMAC-IP core, and a filtering state machine is constructed in the field programmable gate array. The field programmable gate array and the memory are connected with an upper computer through a standard electrical interface. The memory is a DDR4 memory.
The field programmable gate array is an ultra Scale series high-speed FPGA, the ultra Scale is used as a programmable hardware platform, has large-scale distributed hardware resources, and has the characteristics of high speed, short development period, good parallel performance and the like, and is very suitable for processing 100Gbps high-speed data. In addition, the CMAC-IP core of the product supports the international standards IEEE std 802.3-2012CAUI-10 and CAUI-4, so the requirements of the invention can be met.
The CMAC IP core comprises a high-speed transceiver, an RS-FEC (Reed-Solomon Forward Error Correction), a PCS (physical Coding subsystem), a control state machine, a local bus LBUS (local BUS) and the like. The LBUS comprises a sending module and a receiving module, the receiving interface comprises 4 128-bit data channels RX _ DATAOUT0, RX _ DATAOUT1, RX _ DATAOUT2 and RX _ DATAOUT3, and received data sequentially appears according to a channel 0, a channel 1, a channel 2 and a channel 3 in a channel circulation mode. Each channel includes an enable, a data start, a data end, an error indication, a last byte empty indication, etc.
The filtering method comprises the following steps:
step 1: the Ethernet data flow enters a CMAC-IP core under the test rate of 100Gbps, the CMAC-IP core is provided with 4 128-bit data channels, the 4 128-bit data channels comprise a channel 0, a channel 1, a channel 2 and a channel 3, and the Ethernet data flow is sequentially and circularly output in the 4 128-bit data channels.
Step 2: the data output by the data channel enters a filtering state machine for filtering;
and step 3: and storing the filtered data into a memory for an upper computer to check.
The invention provides a filtering method based on standard Ethernet frames, a user-defined graph filtering method and an error code type filtering method.
Example 1
Since the CMAC-IP core has automatically processed the PREAMBLEs PREAMBLE and SFD (Start-of-Frame limiter), the LBUS receives data from the destination MAC address to the FCS part. According to the ethernet standard, the information relative position indication of the frame header has been fixed, so the relative position in the CMAC-IP core data channel has also been determined.
Filtering process based on standard ethernet frames:
the filtering state machine constructed in the field programmable gate array is a tree state machine which is made of protocols of the Ethernet, and the tree state machine is used for hierarchically classifying all the protocols of the Ethernet, as shown in FIG. 1.
The step 2 specifically comprises the following steps:
step 2.1: the filtering state machine firstly filters the basic protocol type of the frame header, then sequentially determines specific protocols step by step, and stores the protocols and provides the protocols for the upper computer to read after the protocols meeting the conditions are found;
step 2.2: since the start of a frame may occur in any of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the start is at lane 0, then the subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …, and the principle is similar for the start of a frame first occurring in one of the other 3 lanes. And the filtering state machine judges which data channel the initial position of the frame is in, the upper computer reads the stored protocol to capture the data streams in the data channels in sequence, and the captured frame is stored in the memory.
Since the ethernet protocols are various, taking the common IP frame with a length Of 64 bytes as an example for explanation, if the data Start position is present in channel 0, that is, when the enable signal RX _ ENAOUT is equal to 1 and the Start signal RX _ SOPOUT1 is equal to 1, the SOF (Start-Of-Packet) data is present in channel RX _ DATAOUT 0. The correspondence of the four LBUS channels is shown in tables 1 to 4.
TABLE 1 LBUS channel 0 correspondences
TABLE 2 LBUS channel 1 correspondences
TABLE 3 LBUS channel 2 correspondences
TABLE 4 LBUS channel 3 correspondences
Fig. 2 illustrates the basic principle of the hardware filtering process by taking a 64-byte IP frame as an example, and the other protocols of the ethernet network are implemented in a similar manner.
Example 2
In order to be independent of standard ethernet frame-based, users can customize some keyword graphs to filter the received data.
And (3) filtering the user-defined graph:
the filtering state machine constructed in the field programmable gate array is a self-defined graph filtering state machine, the self-defined graph filtering state machine comprises a base Address, an offset, a graph and a mask, the base Address is a reference position of a filtering condition and can be Top of Frame, Top of VLAN, Top of IPv4 Header, Top of TCP Header, Top of UDP Header, IP Address and the like, the offset is an integral multiple byte offset relative to the base Address, the graph is information required to be searched by a user, the length can reach 16 bytes, the mask corresponds to the graph, the length is also 16 bytes, when a mask bit is equal to 1, the corresponding graph bit is valid, and when the mask bit is zero, the corresponding bit is invalid;
the step 2 specifically comprises the following steps:
step 2.1: inputting a base address, an offset, a graph and a mask code and customizing a mapping command of a graph filtering state machine by a user through an upper computer;
step 2.2: since the starting position of data may occur in any one of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the starting position is lane 0, then subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …; and the user-defined graph filtering state machine judges which data channel the initial position of the data is in, sequentially carries out sliding comparison on data streams in the data channels through the base address, the offset, the graph and the mask, and captures the data and stores the data in a memory when the filtering condition is met.
The basic principle of filtering of user-defined graphics is shown in fig. 3.
The core function of the user-defined graph is realized in the user-defined graph filtering state machine, the user-defined graph filtering state machine is like a sliding window, when the received information flow sequentially comes, the user-defined graph filtering state machine continuously slides and compares on 4 data channels, when the conditions are met, the user-defined graph filtering state machine captures and stores data into a DDR memory, and an upper computer can read and check the interested information according to the user requirements. As shown in fig. 4.
Example 3
After the data is transmitted, errors may occur in the received data, and compared with the previous two embodiments, the error code type filtering and receiving function needs to wait for all frames to be received, and the specific error type of some frames can be determined only after the frames are calculated according to the check algorithm. In order to trace back frame data, the invention introduces a double-port RAM as a buffer memory for temporarily storing a current frame, and transfers a filtered data packet to a memory after determining the error type. Common errors are fcs (frame Check sequence) errors, underize short frame errors, IPv4 checksum errors, etc. The basic principle of filtration is shown in figure 5.
Filtering process of error code type:
the filtering state machine constructed in the field programmable gate array is an error code type filtering state machine, and FCS error frame filtering, Undersize short frame filtering, IPv4 check sum error frame filtering are arranged in the error code type filtering state machine;
when filtering an FCS error frame, step 2 specifically includes:
the error code type filtering state machine adopts a 32-bit cyclic redundancy check algorithm, when an enabling signal RX _ ENOUT and a terminating signal RX _ EOPOUT of a data channel are simultaneously 1, namely the current time sequence is the end of a current frame, the current frame is temporarily stored in the dual-port RAM, the last 32 bits are the check code of the current frame, if the 32-bit check code calculated by the error code type filtering state machine is different from the original FCS of the current frame, the current frame is in error, namely the FCS is in error, and the error code type filtering state machine further reads data from the frame header in the dual-port RAM and sequentially writes the data into a memory;
when filtering the Undersize short frame, the step 2 specifically comprises:
the IEEE802.3 standard stipulates that the shortest of Ethernet frames is 64 bytes, when the length is less than the length, the data packet has errors, namely a short frame, in the CMAC-IP core, 4 128-bit data channels, namely 64 bytes are included, and an error code type filtering state machine always detects the start and the end of the frame, after the current frame head appears, the frame tail must appear in the last channel of the next beat of effective clock edge earliest, if the frame tail appears in advance, the frame length must be less than 64 bytes, namely the short frame is wrong, the error code type filtering state machine relocates to the frame head of the short frame, and then the whole frame is written into a memory from a double-port RAM;
when IPv4 checksum error frame filtering, step 2 specifically includes:
the error code type filtering state machine firstly locates the initial position of the IP datagram, according to the Ethernet standard, the length of the header check sum is 16-bit accumulated sum of the anti-codes, and the offset position relative to the MAC frame is 6 bytes of MAC +6 bytes of source MAC +2 bytes type +10 bytes IP header is 24 bytes relative to the 10 th byte position of the IP data message header, so the check sum corresponds to the 6 th and 7 th bytes of the next data channel of the data initial, when the check is incorrect, the error code type filtering state machine captures the frame and writes the frame into the memory.
It is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make modifications, alterations, additions or substitutions within the spirit and scope of the present invention.
Claims (4)
1. A100 Gbps Ethernet filtering method is characterized by comprising a field programmable gate array, an upper computer and a memory, wherein a CMAC-IP core is arranged in the field programmable gate array, and a filtering state machine is constructed in the field programmable gate array; the field programmable gate array and the memory are connected with an upper computer through a standard electrical interface;
the filtering method comprises the following steps:
step 1: the Ethernet data flow enters a CMAC-IP core under the test rate of 100Gbps, the CMAC-IP core is provided with 4 128 bit data channels, and the Ethernet data flow is sequentially and circularly output in the 4 128 bit data channels;
step 2: the data output by the data channel enters a filtering state machine for filtering;
and step 3: and storing the filtered data into a memory for an upper computer to check.
2. The method of claim 1, wherein the filtering process based on standard ethernet frames is:
the filtering state machine constructed in the field programmable gate array is a tree state machine which is made of protocols of the Ethernet and carries out layered classification on all the protocols of the Ethernet;
the step 2 specifically comprises the following steps:
step 2.1: the filtering state machine firstly filters the basic protocol type of the frame header, then sequentially determines specific protocols step by step, and stores the protocols and provides the protocols for the upper computer to read after the protocols meeting the conditions are found;
step 2.2: since the start position of a frame may occur in any one of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the start position is lane 0, then subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …; and the filtering state machine judges which data channel the initial position of the frame is in, the upper computer reads the stored protocol to capture the data streams in the data channels in sequence, and the captured frame is stored in the memory.
3. The 100Gbps ethernet filtering method according to claim 1, wherein the filtering process of the user-defined graphics:
the filtering state machine constructed in the field programmable gate array is a user-defined graph filtering state machine, the user-defined graph filtering state machine comprises a base address, an offset, a graph and a mask, the base address is a reference position of a filtering condition, the offset is an integral multiple byte offset relative to the base address, the graph is information which needs to be searched by a user, the length can reach 16 bytes, the mask corresponds to the graph, the length is 16 bytes, when a mask bit is equal to 1, the corresponding graph bit is valid, and when the mask bit is zero, the corresponding bit is invalid;
the step 2 specifically comprises the following steps:
step 2.1: inputting a base address, an offset, a graph and a mask code and customizing a mapping command of a graph filtering state machine by a user through an upper computer;
step 2.2: since the starting position of data may occur in any one of the 4 128-bit data lanes, the 4 128-bit data lanes include lane 0, lane 1, lane 2, and lane 3, assuming the starting position is lane 0, then subsequent data occurs in order at lane 1, lane 2, lane 3, lane 0, … …; and the user-defined graph filtering state machine judges which data channel the initial position of the data is in, sequentially carries out sliding comparison on data streams in the data channels through the base address, the offset, the graph and the mask, and captures the data and stores the data in a memory when the filtering condition is met.
4. The method of claim 1, wherein the filtering of the error types comprises:
the filtering state machine constructed in the field programmable gate array is an error code type filtering state machine, and FCS error frame filtering, Undersize short frame filtering, IPv4 check sum error frame filtering are arranged in the error code type filtering state machine;
when filtering an FCS error frame, step 2 specifically includes:
the error code type filtering state machine adopts a 32-bit cyclic redundancy check algorithm, when an enabling signal RX _ ENOUT and a terminating signal RX _ EOPOUT of a data channel are simultaneously 1, namely the current time sequence is the end of a current frame, the current frame is temporarily stored in the dual-port RAM, the last 32 bits are the check code of the current frame, if the 32-bit check code calculated by the error code type filtering state machine is different from the original FCS of the current frame, the current frame is in error, namely the FCS is in error, and the error code type filtering state machine further reads data from the frame header in the dual-port RAM and sequentially writes the data into a memory;
when filtering the Undersize short frame, the step 2 specifically comprises:
the IEEE802.3 standard stipulates that the shortest of Ethernet frames is 64 bytes, when the length is less than the length, the data packet has errors, namely a short frame, in the CMAC-IP core, 4 128-bit data channels, namely 64 bytes are included, and an error code type filtering state machine always detects the start and the end of the frame, after the current frame head appears, the frame tail must appear in the last channel of the next beat of effective clock edge earliest, if the frame tail appears in advance, the frame length must be less than 64 bytes, namely the short frame is wrong, the error code type filtering state machine relocates to the frame head of the short frame, and then the whole frame is written into a memory from a double-port RAM;
when IPv4 checksum error frame filtering, step 2 specifically includes:
the error code type filtering state machine firstly locates the initial position of the IP datagram, according to the Ethernet standard, the length of the header check sum is 16-bit accumulated sum of the anti-codes, and the offset position relative to the MAC frame is 6 bytes of MAC +6 bytes of source MAC +2 bytes type +10 bytes IP header is 24 bytes relative to the 10 th byte position of the IP data message header, so the check sum corresponds to the 6 th and 7 th bytes of the next data channel of the data initial, when the check is incorrect, the error code type filtering state machine captures the frame and writes the frame into the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010874203.9A CN112084063B (en) | 2020-08-27 | 2020-08-27 | 100Gbps Ethernet filtering method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010874203.9A CN112084063B (en) | 2020-08-27 | 2020-08-27 | 100Gbps Ethernet filtering method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112084063A true CN112084063A (en) | 2020-12-15 |
CN112084063B CN112084063B (en) | 2024-03-26 |
Family
ID=73728105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010874203.9A Active CN112084063B (en) | 2020-08-27 | 2020-08-27 | 100Gbps Ethernet filtering method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112084063B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5442639A (en) * | 1993-10-12 | 1995-08-15 | Ship Star Associates, Inc. | Method and apparatus for monitoring a communications network |
US20040258081A1 (en) * | 2003-06-18 | 2004-12-23 | Nec Corporation | Data transfer device, data transfer method, data communication system using same, and program |
US20150334034A1 (en) * | 2014-05-19 | 2015-11-19 | Bay Microsystems, Inc. | Methods and systems for accessing remote digital data over a wide area network (wan) |
JP2016019031A (en) * | 2014-07-04 | 2016-02-01 | トヨタ自動車株式会社 | Filtering device and filtering method |
US20160344629A1 (en) * | 2015-05-22 | 2016-11-24 | Gray Research LLC | Directional two-dimensional router and interconnection network for field programmable gate arrays, and other circuits and applications of the router and network |
CN108880686A (en) * | 2018-07-14 | 2018-11-23 | 苏州大学张家港工业技术研究院 | Single-chip OUN towards the FPGA transceiver for more applying PON |
WO2019119389A1 (en) * | 2017-12-22 | 2019-06-27 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatus for configuring a flex ethernet node |
-
2020
- 2020-08-27 CN CN202010874203.9A patent/CN112084063B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5442639A (en) * | 1993-10-12 | 1995-08-15 | Ship Star Associates, Inc. | Method and apparatus for monitoring a communications network |
US20040258081A1 (en) * | 2003-06-18 | 2004-12-23 | Nec Corporation | Data transfer device, data transfer method, data communication system using same, and program |
US20150334034A1 (en) * | 2014-05-19 | 2015-11-19 | Bay Microsystems, Inc. | Methods and systems for accessing remote digital data over a wide area network (wan) |
JP2016019031A (en) * | 2014-07-04 | 2016-02-01 | トヨタ自動車株式会社 | Filtering device and filtering method |
US20160344629A1 (en) * | 2015-05-22 | 2016-11-24 | Gray Research LLC | Directional two-dimensional router and interconnection network for field programmable gate arrays, and other circuits and applications of the router and network |
WO2019119389A1 (en) * | 2017-12-22 | 2019-06-27 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatus for configuring a flex ethernet node |
CN108880686A (en) * | 2018-07-14 | 2018-11-23 | 苏州大学张家港工业技术研究院 | Single-chip OUN towards the FPGA transceiver for more applying PON |
Also Published As
Publication number | Publication date |
---|---|
CN112084063B (en) | 2024-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9912442B2 (en) | Techniques to perform forward error correction for an electrical backplane | |
US7106751B2 (en) | Apparatus for linking a SAN with a LAN | |
US6700897B1 (en) | Apparatus and method for identifying data packet types in real time on a network switch port | |
US9137166B2 (en) | In-order traffic aggregation with reduced buffer usage | |
CN106375161B (en) | Ten-gigabit Ethernet testing device | |
EP1196856A2 (en) | Method and apparatus for monitoring traffic in a network | |
WO2009004631A1 (en) | Data packet header compression | |
DE112004002503T5 (en) | Serial Ethernet device-to-device connection | |
WO2008085375A2 (en) | Method and apparatus for multicast routing | |
CN103401741B (en) | Integrated circuit and data processing method | |
US6807183B1 (en) | Arrangement for reading a prescribed location of a FIFO buffer in a network switch port | |
CN1736076A (en) | Apparatus and method for data packet classification | |
CN112751788A (en) | Double-plane switching method supporting multi-type frame mixed transmission | |
CN114143119B (en) | Market low-delay interface device based on FPGA | |
EP2071808B1 (en) | Methods and a system and devices for ipv6 datagram transmission in the ethernet | |
CN112737995B (en) | Method, device and equipment for processing Ethernet frame and storage medium | |
US20020035656A1 (en) | Asymmetric data path media access controller | |
CN1178434C (en) | Apparatus and method for buffer-free evaluation of packet data bytes with multiple min. terms | |
US7546512B2 (en) | Techniques to perform error detection | |
US7649906B2 (en) | Method of reducing buffer usage by detecting missing fragments and idle links for multilink protocols and devices incorporating same | |
CN112084063B (en) | 100Gbps Ethernet filtering method | |
US20040146052A1 (en) | Apparatus and method for address filtering in a multi-host network interface | |
US6938198B1 (en) | Method and system for accelerating ethernet checksums | |
CN111770055A (en) | Multi-protocol communication frame rapid distinguishing method applied to electric energy meter | |
CN115484202B (en) | INT-based lightweight path detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 266555 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province Applicant after: CLP kesiyi Technology Co.,Ltd. Address before: 266555 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province Applicant before: CHINA ELECTRONICS TECHNOLOGY INSTRUMENTS Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |