CN105933162A - Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure - Google Patents

Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure Download PDF

Info

Publication number
CN105933162A
CN105933162A CN201610472276.9A CN201610472276A CN105933162A CN 105933162 A CN105933162 A CN 105933162A CN 201610472276 A CN201610472276 A CN 201610472276A CN 105933162 A CN105933162 A CN 105933162A
Authority
CN
China
Prior art keywords
frame
port
submodule
processing module
sent
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
CN201610472276.9A
Other languages
Chinese (zh)
Other versions
CN105933162B (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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201610472276.9A priority Critical patent/CN105933162B/en
Publication of CN105933162A publication Critical patent/CN105933162A/en
Application granted granted Critical
Publication of CN105933162B publication Critical patent/CN105933162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2801Broadband local area networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Abstract

The invention provides a low latency Ethernet repeater and a low latency Ethernet forwarding method based on a T structure, which are used for solving the wiring redundancy problem in the existing switch and the problems that the time delay is larger and the time delay is uncertain in the existing forwarding method. The repeater comprises a port in T-type distribution and a processing unit; the processing unit comprises a left port frame processing module, a right port frame processing module, a user port frame processing module, an address learning and search module, a special protocol processing module and a user port adapter module. A forwarding method comprises the following steps: judging a link state; caching a data frame; identifying and classifying frames; reconstructing a link; classifying PAUSE frames; configuring the repeater; learning and searching an address; building an output queue; building the PAUSE frames; and outputting the PAUSE frames to the port. The low latency Ethernet repeater and the low latency Ethernet forwarding method based on the T structure provided by the invention can fully reduce the user access wiring redundancy, reduce the forwarding delay and guarantee the forwarding delay certainty, and can detect and reconstruct a network link timely during a network link failure, so that the low latency Ethernet repeater and the low latency Ethernet forwarding method can be used for building a high speed real-time access network.

Description

Low time delay ethernet repeater based on T-type structure and method
Technical field
The invention belongs to communication technical field, relate to a kind of forwarded device and retransmission method, be specifically related to a kind of base In low time delay Ethernet retransmission unit and the method for T-type structure, can be used for setting up access network the most in real time.
Background technology
Ethernet is internetwork connection mode common in LAN, and user typically first accesses switching equipment in a network, as Switch or router, then it is connected to other network by switching equipment.Ethernet switch seeks to fill that multi-user is simultaneously The demand of data exchange during access network, traditional ethernet switch is usually multi port switch, and multiple access is handed over When changing planes, using the star net forming mode centered by switch, each user is required for by an independent cable even Receive the user interface of switch, require to connect up succinct occasion, in the environment such as aircraft, high ferro, star at some The wiring redundancy issue that networking is brought accepts being difficult to.
Traditional ethernet switch generally uses store and forward message mode, and forwarding process is as follows:
(1) input processing, mainly completes the function of the coupling of the reception of Frame, verification, data form;
(2) flow point class and packet transaction, is mainly used in extracting frame critical field information, and according to this information to ether netting index Classify according to frame, perform corresponding process according to classification results;
(3) address learning and address search, learns according to source MAC and source port number, then according to purpose MAC Address carries out address search, draws destination interface;
(4) join the team, according to information such as destination slogan and priority, distribute buffer address for Frame, and be deposited into Corresponding output queue;
(5) go out team, according to schedule information, inquire group buffer address at frame place, and remove it output queue;
(6) output processes, and mainly completes the data frame buffer memory at output port and the function of data frame format coupling;
Wherein input-buffer, joining the team and exporting in the steps such as caching all completely can cache Frame, causes data The Forwarding Delay of frame is relatively big, and owing to the length of Frame is not fixed, the Forwarding Delay that therefore switch introduces has Uncertain.
Summary of the invention
It is an object of the invention to the defect overcoming traditional ethernet switching technology to exist, it is proposed that a kind of based on T junction The low time delay Ethernet retransmission unit of structure and method, for solve existing switch exist wiring redundancy, time delay bigger With time delay uncertain problem.
To achieve these goals, the technical thought of the present invention is: forward only with storage with traditional ethernet switch Mode is compared, and the present invention uses two kinds of forward modes: straight-through forward mode and store and forward message mode, when output port without During obstruction, switch uses straight-through forward mode, and switch is opened after receiving the ethernet type field of Frame at once The lookup of beginning Frame forwards, and complete Frame is cached owing to need not by whole repeating process, it is ensured that turn The low time delay of the process of sending out, and owing to the length of the part Frame of caching is fixed, it is ensured that the definitiveness of Forwarding Delay; When output port occur block time, switch use store and forward message mode, switch by data frame buffer memory to output port Rear poll exports.
For achieving the above object, present invention low time delay based on T-type structure ethernet repeater, including port and process Unit, it is characterised in that:
Described port, uses T-shaped distributed architecture, the most respectively left port, right output port and user port, left port and Right output port is the network port, is used for connecting the network equipment, and user port accesses for user terminal;
Described processing unit, including:
Left port frame processing module, for receiving Frame, right output port frame processing module and the user of input at left port The Frame of port frame processing module output, and extract source port and the source MAC letter of left port input data frame Breath is sent into address learning and searches module;
Right output port frame processing module, for receiving Frame, left port frame processing module and the user of input at right output port The Frame of port frame processing module output, and extract source port and the source MAC letter of right output port input data frame Breath is sent into address learning and searches module;
User port frame processing module, for receiving at user port adaptation module at the Frame of input, left port frame Reason module and the Frame of right output port frame processing module output, and extract the source of user port adaptation module input data frame Port and source MAC address information are sent into address learning and search module;
Address learning and lookup module, for according to left port frame processing module, right output port frame processing module and user side Source port and the source MAC address information of mouth frame processing module feeding Frame set up address table, and pass through address search Obtain the destination interface of Frame;
Specialized protocol processing module, for receiving the special association at left port frame processing module and right output port frame processing module View frame, and realize the configuration to transponder and management according to specialized protocol frame;
User port adaptation module, for being converted to Frame used by transponder by the user input data at user port Send into user port frame processing module, and realize Ethernet 10/100/1000M adaptation function.
For achieving the above object, present invention low time delay based on T-type structure Ethernet retransmission method, including;
1) data reception step:
1.1) network link situation is judged according to the connection status in PHY chip depositor: if PHY chip connects shape State is ON, then link is normal, performs step 1.2), if PHY chip connection status is OFF, then link failure, Perform step 1.4);
1.2) asynchronous data frame of input is carried out cross clock domain process, obtain synchrodata frame, cache synchronization Frame To the field of ethernet type territory, perform step 1.3);
1.3) from the cache contents of synchrodata frame, its target MAC (Media Access Control) address, source MAC and type field are extracted Information, it is judged that the type of this synchrodata frame: if synchrodata frame is PAUSE frame, performs step 1.5), if with Step data frame is specialized protocol frame, i.e. the ethernet frame of self defined class offset, performs step 1.6), if synchrodata frame For normal data frame, perform step 1.7);
1.4) rebuild link and produce network link failure information alert frame:
1.4a) empty address table, and re-establish address table by address learning, it is achieved network link is rebuild;
1.4b) building network link failure information alarm frame, and this frame is sent into non-faulting port, perform forwarding step 2);
1.5) type of PAUSE frame is judged: if PAUSE frame is off frame, then after stopping the output flow of port, Abandon this PAUSE frame, if PAUSE frame is to wake up frame up, then, after opening the output flow of port, abandon this PAUSE frame;
1.6) according to the content of specialized protocol frame transponder configured accordingly and manage, and judging this specialized protocol Frame, the need of forwarding, if needing to forward, then enters data sending step 2), otherwise abandon;
1.7) source MAC and source port number according to normal data frame carry out address learning, and according to general data The target MAC (Media Access Control) address of frame searches destination interface, enters data sending step 2);
2) data sending step:
2.1) at destination interface, set up three queues, deposit other two ports Frame to be sent and pending respectively The PAUSE frame sent, and judge the storage state of data frame queue: if data frame queue storage reaches warning line, then Perform step 2.2), otherwise perform step 2.3);
2.2) set up PAUSE and stop frame, and this PAUSE stopping frame being passed to reach corresponding to the queue of warning line Port be transmitted;
2.3) poll output 2.1) in three queues, if there being specialized protocol frame to be sent, preferential export special association View frame.
The present invention compared with prior art, has the advantage that
First, due to the fact that employing T-type structure, first user is accessed user port and is realized by transponder cascade The network insertion of multi-user, and conventional switch uses stelliform connection topology configuration to realize the network insertion of multi-user, therefore originally Invention greatly reduces the wiring redundancy issue that user accesses.
Second, due to the fact that not complete to the Frame caching of input processing, as long as extracting number during receiving data frames Can be carried out searching according to the type field of frame and forward, and without joining the team, going out the steps such as team, when exporting clog-free, just Can be operated under direct mode operation, greatly reduce Forwarding Delay, and owing to the length of the part Frame of caching is solid Fixed, it is ensured that the definitiveness of Forwarding Delay.
3rd, due to the fact that when network link breaks down, address search and study module can be by emptying address Table, and retrieve address table by address learning, it is achieved network link is rebuild, and enhances the reliability of network.
Accompanying drawing explanation
Fig. 1 is the overall structure block diagram of apparatus of the present invention;
Fig. 2 is the structured flowchart of apparatus of the present invention processing unit;
Fig. 3 is the structured flowchart of apparatus of the present invention left port frame processing module;
Fig. 4 is the structured flowchart of apparatus of the present invention right output port frame processing module;
Fig. 5 is the structured flowchart of apparatus of the present invention user port frame processing module;
Fig. 6 is the data receiver FB(flow block) of retransmission method of the present invention;
Fig. 7 is the data transmission flow block diagram of retransmission method of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.
With reference to Fig. 1, apparatus of the present invention include three ports and a processing unit, three ports be respectively left port, Right output port and user port, these three T-shaped distributions of port, wherein left port and right output port are the network port, network Port uses gigabit ethernet interface, and user port can be the port of multiple interfaces agreement, and two network ports are used for The interconnection of apparatus of the present invention or be connected with external network, user port is used for connecting user.
With reference to Fig. 2, the processing unit of apparatus of the present invention includes: left port frame processing module 1, and right output port frame processes mould Block 2, user port frame processing module 3, address learning and lookup module 4, specialized protocol processing module 5, user side Mouth adaptation module 6.
Described left port frame processing module 1, for receiving left port Frame and extracting the purpose MAC ground of Frame Location, source MAC and type, target MAC (Media Access Control) address therein and source MAC are mail to address learning with Search module 4, specialized protocol frame is mail to specialized protocol processing module 5;Receive right output port frame processing module 2 and use The output data frame of family port frame processing module 3 also exports to left port.
Described right output port frame processing module 2, for receiving right output port Frame and extracting the purpose MAC ground of Frame Location, source MAC and type, target MAC (Media Access Control) address therein and source MAC are mail to address learning with Search module 4, specialized protocol frame is mail to specialized protocol processing module 5;Receive left port frame processing module 2 and use The output data frame of family port frame processing module 3 also exports to left port.
Described user port frame processing module 3, for receiving user port Frame and extracting purpose MAC of Frame Address, source MAC and type, mail to address learning by target MAC (Media Access Control) address therein and source MAC With lookup module 4, receive left port frame processing module 2 and the output data frame of right output port frame processing module 3 also exports To left port.
Described address learning and lookup module 4, utilize the source port of Frame and source MAC address information to set up address table, The target MAC (Media Access Control) address utilizing Frame carries out address search and obtains the destination interface of Frame, according to network link event Network link after barrier is rebuild instruction and is emptied the address table of transponder, and re-establishes address table by address learning, real Existing network network link re-establishment.
Described specialized protocol processing module 5, is used for according to specialized protocol frame, the i.e. ethernet frame of self defined class offset, Realize the configuration of transponder and management, and for receive and resolve the network link failure information of the port and other Port forwards the network link failure information alert frame of coming, and produces network link and rebuilds instruction, and by this network link weight Build instruction be sent to address learning and search module 4, and building network link failure information alarm frame, wait non-faulting The frame processing module poll of the network port forwards.
Described user port adaptation module 6, owing to the user data at user port may be with Frame used by transponder Difference, needs the user input data at by user port to be converted to Frame used by transponder and sends at user port frame Reason module 3, and realize Ethernet 10/100/1000M adaptation function.
Above-mentioned left port frame processing module 1, right output port frame processing module 2 interconnect mutually with user port frame processing module 3 Connect, address learning with search module 4 respectively with left port frame processing module 1, right output port frame processing module 2 and user Port frame processing module 3 is connected, specialized protocol processing module 5 respectively with left port frame processing module 1 and right output port frame Processing module is connected, and user port adaptation module 6 is connected with user port frame processing module 3.
With reference to Fig. 3, the left port frame processing module 1 of the present invention includes: input processing submodule 11, frame identification submodule Block 12, flow-control submodule 13 and output process submodule 14.
Described input processing module 11, for detecting possible network link failure, is sent to special association by fault message View processing module 5;By using asynchronous FIFO to eliminate the metastable issues of Frame cross clock domain, receive and cache Frame is to ethernet type territory field, and the Frame partial bytes of caching is mail to frame identification module 12.
Described frame identification module 12, for extracting Frame according to the part Frame of input processing module 11 caching Target MAC (Media Access Control) address, source MAC and frame type, and judge extracted frame type:
If Frame is normal frames, then send, with searching module 4, the request of tabling look-up to address learning, obtain destination Mouthful, then destination interface is judged: if destination interface is right output port, then normal frames is sent to the output of right output port Processing submodule 24, if destination interface is user port, the output that normal frames is sent to user port processes submodule 34;
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule 13;
If specialized protocol frame, then this frame is sent to specialized protocol processing module 5.
Described flow-control module 13, for realizing flow control according to the storage state of the data frame queue at destination interface System, when data frame queue arrives warning line, sets up PAUSE and stops frame, at the end of stream control, set up PAUSE Wake up frame up, and this PAUSE is waken up frame up or PAUSE stops the output processing module that frame sends at corresponding ports and carries out Forward;And resolve the PAUSE frame sent here from frame identification module 11, extract flow-control information, and flow-control information is sent To output processing module 14.
Described output processing module 14, for receiving Frame and the protocol frame that other two ports are sent, and delays respectively Exist in two data frame queue and PAUSE frame queue, successively two data frame queue of poll and PAUSE frame queue It is transmitted, if specialized protocol processing module 3 has network link failure information alert frame, the most preferentially sends this network Link failure information alarm frame;And for receiving the flow-control information that flow-control module 13 is sent, if stream control stops Only information, then, after having sent current data frame, stop polling data frame queue, until receiving stream control to wake up information or stream up At the end of control, restart polling data frame queue.
With reference to Fig. 4, the right output port frame processing module 2 of the present invention includes: input processing submodule 21, frame identification submodule Block 22, flow-control submodule 23 and output process submodule 24.
Described input processing module 21, for detecting possible network link failure, is sent to special association by fault message View processing module 5;By using asynchronous FIFO to eliminate the metastable issues of Frame cross clock domain, receive and cache Frame is to ethernet type territory field, and the Frame partial bytes of caching is mail to frame identification module 22.
Described frame identification module 22, for extracting Frame according to the part Frame of input processing module 21 caching Target MAC (Media Access Control) address, source MAC and frame type, and judge extracted frame type:
If Frame is normal frames, then send, with searching module 4, the request of tabling look-up to address learning, obtain destination Mouthful, then destination interface is judged: if destination interface is left port, then normal frames is sent to the output of right output port Processing submodule 14, if destination interface is user port, the output that normal frames is sent to user port processes submodule 34;
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule 23;
If specialized protocol frame, then this frame is sent to specialized protocol processing module 5.
Described flow-control module 23, for realizing flow control according to the storage state of the data frame queue at destination interface System, when data frame queue arrives warning line, sets up PAUSE and stops frame, at the end of stream control, set up PAUSE Wake up frame up, and this PAUSE is waken up frame up or PAUSE stops the output processing module that frame sends at corresponding ports and carries out Forward;And resolve the PAUSE frame sent here from frame identification module 21, extract flow-control information, and flow-control information is sent To output processing module 24.
Described output processing module 14, for receiving Frame and the protocol frame that other two ports are sent, and delays respectively Exist in two data frame queue and PAUSE frame queue, successively two data frame queue of poll and PAUSE frame queue It is transmitted, if specialized protocol processing module 3 has network link failure information alert frame, the most preferentially sends this network Link failure information alarm frame;And for receiving the flow-control information that flow-control module 23 is sent, if stream control stops Only information, then, after having sent current data frame, stop polling data frame queue, until receiving stream control to wake up information or stream up At the end of control, restart polling data frame queue.
With reference to Fig. 5, the user port frame processing module 3 of the present invention includes: input processing submodule 31, frame identification Module 32, flow-control submodule 33 and output process submodule 34.
Described input processing module 31, by using asynchronous FIFO to eliminate the metastable issues of Frame cross clock domain, Receive and data cached frame is to ethernet type territory field, and the Frame partial bytes of caching is mail to frame identification module 32。
Described frame identification module 32, for extracting Frame according to the part Frame of input processing module 31 caching Target MAC (Media Access Control) address, source MAC and frame type, and judge extracted frame type:
If Frame is normal frames, then send, with searching module 4, the request of tabling look-up to address learning, obtain destination Mouthful, then destination interface is judged: if destination interface is left port, then normal frames is sent to the output of right output port Processing submodule 14, if destination interface is right output port, the output that normal frames is sent to user port processes submodule 24;
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule 33;
Described flow-control module 33, for realizing flow control according to the storage state of the data frame queue at destination interface System, when data frame queue arrives warning line, sets up PAUSE and stops frame, at the end of stream control, set up PAUSE Wake up frame up, and this PAUSE is waken up frame up or PAUSE stops the output processing module that frame sends at corresponding ports and carries out Forward;And resolve the PAUSE frame sent here from frame identification module 31, extract flow-control information, and flow-control information is sent To output processing module 34.
Described output processing module 14, for receiving Frame and the protocol frame that other two ports are sent, and delays respectively Exist in two data frame queue and PAUSE frame queue, successively two data frame queue of poll and PAUSE frame queue It is transmitted;And for receiving the flow-control information that flow-control module 13 is sent, if stream control Stop message, then After having sent current data frame, stop polling data frame queue, until receive stream control wake up up information or stream control at the end of, Restart polling data frame queue.
The retransmission method of the present invention includes data receiver flow process and data transmission flow.
With reference to Fig. 6, the data receiver flow process of the inventive method is as follows:
Step 1, judges network link situation according to the content in PHY chip depositor.
MDio interface by PHY chip reads the content of its depositor, and one of them specific depositor represents PHY Chip connection status, if connection status is ON, then network link is normal, performs step 2, if connection status is OFF, Then network link failure, performs step 4.
Step 2, carries out cross clock domain process to the Frame of input, obtains synchrodata frame.
(2a) utilize asynchronous FIFO to receive the asynchronous data frame of input, solve cross clock domain problem and obtain same step number According to frame;
(2b) cache synchronization Frame only has 16 words to ethernet type territory field, the buffer structure degree of depth the most herein Joint, performs step 3 afterwards.
Step 3, extracts the characteristic information of synchrodata frame.
(3a) owing to step (2b) having cached Partial synchronization Frame, purpose MAC of wherein Frame is extracted Address, source MAC and type field, the frame format of Ethernet is as shown in table 1;
Table 1 Ethernet data frame format (B:byte, byte)
Lead code SFD Destination address Source address Type field Data load Frame check code Frame period
7B 1B 6B 6B 2B 46B-1500B 4B 12B
(3b) judging the type of this Frame according to type field: when type field is 0x8808, this Frame is PAUSE Frame, performs step 5;When type field is self-defining particular value, this Frame is specialized protocol frame, performs step 6;When type is other values, this Frame is normal data frame, performs step 7.
Step 4, rebuilds link.
(4a) owing to old address table existing the port broken down, it is impossible to correctly realize address search, therefore empty old Address table, sets up new address table by address learning;
(4b) fault message needs to report other transponders and server, therefore building network link failure information alerts Frame, and this frame is sent into non-faulting port, perform forwarding step.
Step 5, it is judged that the type of PAUSE frame.
Judge PAUSE frame type: if PAUSE wakes up frame up, then open the output flow of port, and abandon This PAUSE wakes up frame up, if PAUSE stops frame, then stops output module and sends Frame and abandon PAUSE Stop frame, until receiving PAUSE when waking up frame or stream control time-out up, stopping stream control and abandoning PAUSE and waking up frame up.
Wherein, the destination address of PAUSE is special multicast address: 01-80-C2-00-00-01, and type thresholding is 0x8808, MAC control code is that 0x0001, PAUSE stop frame MAC to control parameter to be not 0, and PAUSE wakes up up It is 0 that frame MAC controls parameter, and Ethernet PAUSE frame format is as shown in table 2.
Table 2 Ethernet PAUSE frame format (B:byte, byte)
Step 6, configures transponder.
Transponder is configured and manages by content according to specialized protocol frame accordingly, and judges that this specialized protocol frame is No needs forwards, if this specialized protocol frame needs to be managed for configuration multiple transponders, then this specialized protocol frame is just Need to forward, enter data sending step;If this specialized protocol frame is simply in configuration management current transponder, configuration This frame is abandoned after completing.
Step 7, address learning and lookup.
(7a) address learning, the source of study normal data frame are carried out according to the source MAC of Frame with source port MAC Address and the mapping relations of source port number, set up address table by these mapping relations;
(7b) search destination interface according to the target MAC (Media Access Control) address of Frame, enter data and send.
With reference to Fig. 7, the data transmission flow of the present invention is as follows:
Step 8, sets up output queue.
(8a) due to when the output port of two ports is consistent, it is understood that there may be output is blocked, therefore at destination interface Set up three queues, deposit other two ports Frame to be sent and PAUSE frame to be sent respectively;
(8b) the storage state of data frame queue in (8a) is judged, if data frame queue storage reaches warning line, i.e. Represent and now need to carry out flow-control, perform step 9, otherwise perform step 10.
Step 9, sets up PAUSE frame.
Set up PAUSE and stop frame, and this PAUSE stopping frame being passed to the end reached corresponding to the queue of warning line Mouth is transmitted, and request opposite end is suspended data and sent, and realizes flow-control with this.
Step 10, output is to port.
(10a) when destination interface is clog-free, Frame arrives and i.e. may be output to port, is straight-through mode of operation;
(10b) when destination interface has obstruction, three queues in poll (8a), and export to port, if having Specialized protocol frame to be sent, after the Frame exported completes output, prioritizing selection specialized protocol frame exports.
These are only the preferred embodiment of the present invention, do not constitute any limitation of the invention, it is clear that according to the structure of the present invention Thinking, those skilled in the art all can make different amendments and displacement, but these are all at the row of protection of the present invention.

Claims (10)

1. a low time delay ethernet repeater based on T-type structure, including port and processing unit, it is characterised in that:
Described port, uses T-shaped distributed architecture, the most respectively left port, right output port and user port, left port and the right side Port is the network port, is used for connecting the network equipment, and user port accesses for user terminal;
Described processing unit, including:
Left port frame processing module (1), for receiving the Frame of input, right output port frame processing module (2) at left port The Frame exported with user port frame processing module (3), and extract source port and the source MAC of left port input data frame Address information is sent into address learning and searches module (4);
Right output port frame processing module (2), for receiving the Frame of input, left port frame processing module (1) at right output port The Frame exported with user port frame processing module (3), and extract source port and the source MAC of right output port input data frame Address information is sent into address learning and searches module (4);
User port frame processing module (3), is used for receiving the Frame of user port adaptation module (6) place input, left end The Frame that mouth frame processing module (1) and right output port frame processing module (2) export, and extract user port adaptation module (6) source port and the source MAC address information of input data frame is sent into address learning and searches module (4);
Address learning and lookup module (4), for according to left port frame processing module (1), right output port frame processing module (2) Set up address table with source port and the source MAC address information of user port frame processing module (3) feeding Frame, and lead to Cross address search and obtain the destination interface of Frame;
Specialized protocol processing module (5), is used for receiving left port frame processing module (1) and right output port frame processing module (2) The specialized protocol frame at place, and realize the configuration to transponder and management according to specialized protocol frame;
User port adaptation module (6), for being converted to data used by transponder by the user input data at user port Frame sends into user port frame processing module (3), and realizes Ethernet 10/100/1000M adaptation function.
Low time delay ethernet repeater based on T-type structure the most according to claim 1, it is characterised in that ground Location study and lookup module (4) are when network link breaks down, by re-starting address learning after emptying address table Obtain new address table, it is achieved network link is rebuild.
Low time delay ethernet repeater based on T-type structure the most according to claim 1, it is characterised in that special The ethernet frame that specialized protocol frame is self defined class offset that protocol process module (5) is received.
Low time delay ethernet repeater based on T-type structure the most according to claim 1, it is characterised in that left Port frame processing module (1) including:
Input processing submodule (11), is used for receiving and synchronizing input data frame, caching frame header, detects net simultaneously Network link failure information is also sent to specialized protocol processing module (5) by network link failure;
Frame identification submodule (12), extracts Frame for the frame originating point information cached according to input processing submodule (11) Target MAC (Media Access Control) address, source MAC and frame type, and judge extracted frame type:
If Frame is normal frames, then send, with searching module (4), the request of tabling look-up to address learning, obtain normal frames Destination interface, then destination interface is judged: if destination interface is right output port, then normal frames is sent to right output port Output process submodule (24), if destination interface is user port, normal frames is sent at the output of user port Reason submodule (34);
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule (13);
If Frame is specialized protocol frame, then specialized protocol frame is sent to specialized protocol processing module (5);
Flow-control submodule (13), real for the storage state according to the data frame queue at right output port or user port Existing flow-control, and resolve the PAUSE frame received, extract flow-control information and process submodule (14) to output;
Output processes submodule (14), for receiving right output port and normal frames that user port is sent and PAUSE frame deposit Storage is to respective queue, and poll output is to left port successively, and judges according to the flow-control information of flow-control submodule (13) Flow-control information type:
If stream control Stop message, then, after having sent current data frame, stop poll output;
If stream control wakes up information up, then restart poll output.
Low time delay ethernet repeater based on T-type structure the most according to claim 1, it is characterised in that right Port frame processing module (2) including:
Input processing submodule (21), is used for receiving and synchronizing input data frame, caching frame header, detects net simultaneously Network link failure information is also sent to specialized protocol processing module (5) by network link failure;
Frame identification submodule (22), extracts Frame for the frame originating point information cached according to input processing submodule (21) Target MAC (Media Access Control) address, source MAC and frame type, and judge extracted frame type:
If Frame is normal frames, then send, with searching module (4), the request of tabling look-up to address learning, obtain normal frames Destination interface, then destination interface is judged: if destination interface is left port, then normal frames is sent to left port Output process submodule (14), if destination interface is user port, normal frames is sent at the output of user port Reason submodule (34);
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule (23);
If Frame is specialized protocol frame, then specialized protocol frame is sent to specialized protocol processing module (5);
Flow-control submodule (23), real for the storage state according to the data frame queue at left port or user port Existing flow-control, and resolve the PAUSE frame received, extract flow-control information and process submodule (24) to output;
Output processes submodule (24), for receiving left port and normal frames that user port is sent and PAUSE frame deposit Storage is to respective queue, and poll output is to right output port successively, and judges according to the flow-control information of flow-control submodule (23) Flow-control information type:
If stream control Stop message, then, after having sent current data frame, stop poll output;
If stream control wakes up information up, then restart poll output.
Low time delay ethernet repeater based on T-type structure the most according to claim 1, it is characterised in that use Family port frame processing module (3) including:
Input processing submodule (31), is used for receiving and synchronizing input data frame, caching frame header;
Frame identification submodule (32), for the frame originating point information rapid extraction number cached according to input processing submodule (31) The characteristic informations such as target MAC (Media Access Control) address, source MAC and the frame type according to frame, and judge extracted frame type:
If Frame is normal frames, then send, with searching module (4), the request of tabling look-up to address learning, obtain normal frames Destination interface, then destination interface is judged: if destination interface is left port, normal frames is sent to left port Output processes submodule (14), if destination interface is right output port, the output that normal frames is sent to right output port processes submodule Block (24);
If Frame is PAUSE frame, then PAUSE frame is sent to flow-control submodule (33);
Flow-control submodule (33), realizes for the storage state according to the data frame queue at left port or right output port Flow-control, and for resolving the PAUSE frame received, extract flow-control information, and flow-control information is sent to output Process submodule (34);
Output processes submodule (34), for receiving left port and Frame that right output port is sent and PAUSE frame store To respective queue, poll exports to user port adaptation module (6) successively, and according to flow-control submodule (33) Flow-control information judges flow-control information type:
If stream control Stop message, then, after having sent current data frame, stop poll output;
If stream control wakes up information up, then restart poll output.
7., according to the low time delay ethernet repeater based on T-type structure described in claim 4 or 5 or 6, its feature exists In, input processing submodule (11), input processing submodule (21) and input processing submodule (31) all include one Individual asynchronous FIFO, carries out cross clock domain process to input data frame, obtains synchrodata frame.
8. according to the low time delay ethernet repeater based on T-type structure described in claim 4 or 5, it is characterised in that Described input processing submodule (11) and input processing submodule (21) are all by the way of reading PHY chip depositor Detection network link failure.
9., according to the low time delay ethernet repeater based on T-type structure described in claim 4 or 5 or 6, its feature exists In, described output processes submodule (14), output processes submodule (24) and output processes submodule (34) and all wraps Containing three queues, when output port is clog-free, send Frame according to straight-through pass-through mode, when output port has obstruction Time, the forwarding of Frame is realized by fair these three queues of poll.
10. a low time delay Ethernet retransmission method based on T-type structure, including;
1) data reception step:
1.1) network link situation is judged according to the connection status in PHY chip depositor: if PHY chip connection status For ON, then link is normal, performs step 1.2), if PHY chip connection status is OFF, then link failure, perform Step 1.4);
1.2) asynchronous data frame of input being carried out cross clock domain process, obtain synchrodata frame, cache synchronization Frame is extremely After the field of ethernet type territory, perform step 1.3);
1.3) from the cache contents of synchrodata frame, extract its target MAC (Media Access Control) address, source MAC and type field letter Breath, it is judged that the type of this synchrodata frame: if synchrodata frame is PAUSE frame, performs step 1.5), if same step number Be specialized protocol frame according to frame, i.e. the ethernet frame of self defined class offset, perform step 1.6), if synchrodata frame is common Frame, performs step 1.7);
1.4) rebuild link and produce network link failure information alert frame:
1.4a) empty address table, and re-establish address table by address learning, it is achieved network link is rebuild;
1.4b) building network link failure information alarm frame, and this frame is sent into non-faulting port, perform forwarding step 2);
1.5) type of PAUSE frame is judged: if PAUSE frame is off frame, then after stopping the output flow of port, Abandon this PAUSE frame, if PAUSE frame is to wake up frame up, then after opening the output flow of port, abandon this PAUSE Frame;
1.6) according to the content of specialized protocol frame transponder configured accordingly and manage, and judging this specialized protocol frame The need of forwarding, if needing to forward, then enter data sending step 2), otherwise abandon;
1.7) source MAC and source port number according to normal data frame carry out address learning, and according to normal data frame Target MAC (Media Access Control) address search destination interface, enter data sending step 2);
2) data sending step:
2.1) at destination interface, set up three queues, deposit other two ports Frame to be sent and to be sent respectively PAUSE frame, and judge the storage state of data frame queue: if data frame queue storage reaches warning line, then perform Step 2.2), otherwise perform step 2.3);
2.2) set up PAUSE and stop frame, and this PAUSE stopping frame being passed to reach corresponding to the queue of warning line Port is transmitted;
2.3) poll output 2.1) in three queues, if there being specialized protocol frame to be sent, preferentially export specialized protocol Frame.
CN201610472276.9A 2016-06-24 2016-06-24 Low time delay ethernet repeater and method based on T-type structure Active CN105933162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610472276.9A CN105933162B (en) 2016-06-24 2016-06-24 Low time delay ethernet repeater and method based on T-type structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610472276.9A CN105933162B (en) 2016-06-24 2016-06-24 Low time delay ethernet repeater and method based on T-type structure

Publications (2)

Publication Number Publication Date
CN105933162A true CN105933162A (en) 2016-09-07
CN105933162B CN105933162B (en) 2019-07-16

Family

ID=56829257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610472276.9A Active CN105933162B (en) 2016-06-24 2016-06-24 Low time delay ethernet repeater and method based on T-type structure

Country Status (1)

Country Link
CN (1) CN105933162B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107248963A (en) * 2017-05-19 2017-10-13 闫晓峰 Multichannel interchanger, passage referee method and the means of communication based on Ethernet
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN108540337A (en) * 2018-03-07 2018-09-14 百富计算机技术(深圳)有限公司 A kind of double network interface POS machine and its Network Expert Systems system, method
CN108551427A (en) * 2018-03-20 2018-09-18 西安电子科技大学 Ethernet method for rapidly converging based on T-type transponder
CN109842607A (en) * 2017-11-24 2019-06-04 台扬科技股份有限公司 Network switch and its operating method
CN110401558A (en) * 2019-04-28 2019-11-01 北京广利核系统工程有限公司 Safety level multi-point communication network equipment, system and safety level network communication method
CN111431812A (en) * 2020-03-25 2020-07-17 新华三信息安全技术有限公司 Message forwarding control method and device
CN112887059A (en) * 2021-01-26 2021-06-01 芯河半导体科技(无锡)有限公司 Method for expanding MAC frame format in-band transmission flow control data
CN114157587A (en) * 2020-08-19 2022-03-08 阿自倍尔株式会社 Network device and network configuration determination method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010036181A1 (en) * 1999-12-23 2001-11-01 Rogers Steven A. Network switch with packet scheduling
CN101083622A (en) * 2006-06-01 2007-12-05 富士通株式会社 System and method for managing forwarding database resources in a switching environment
CN101873262A (en) * 2010-06-13 2010-10-27 南京邮电大学 Industrial optical fiber Ethernet switch
CN102970182A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for testing capacity of data packet buffer of switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010036181A1 (en) * 1999-12-23 2001-11-01 Rogers Steven A. Network switch with packet scheduling
CN101083622A (en) * 2006-06-01 2007-12-05 富士通株式会社 System and method for managing forwarding database resources in a switching environment
CN101873262A (en) * 2010-06-13 2010-10-27 南京邮电大学 Industrial optical fiber Ethernet switch
CN102970182A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for testing capacity of data packet buffer of switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜秀柱等: "支持线性拓扑的EPA网络研究", 《计算机应用》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107248963A (en) * 2017-05-19 2017-10-13 闫晓峰 Multichannel interchanger, passage referee method and the means of communication based on Ethernet
US11398974B2 (en) 2017-05-19 2022-07-26 Beijing NE-net Technology Co. Ltd. Ethernet-based multi-channels switch, channel arbitration method and communication method thereof
CN107248963B (en) * 2017-05-19 2020-05-22 闫晓峰 Multi-channel switch based on Ethernet, channel arbitration method and communication method
CN109842607A (en) * 2017-11-24 2019-06-04 台扬科技股份有限公司 Network switch and its operating method
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN108540337A (en) * 2018-03-07 2018-09-14 百富计算机技术(深圳)有限公司 A kind of double network interface POS machine and its Network Expert Systems system, method
CN108540337B (en) * 2018-03-07 2020-12-22 百富计算机技术(深圳)有限公司 Dual-network-port POS machine and network state monitoring system and method thereof
CN108551427B (en) * 2018-03-20 2020-08-04 西安电子科技大学 Fast convergence method of Ethernet based on T-type transponder
CN108551427A (en) * 2018-03-20 2018-09-18 西安电子科技大学 Ethernet method for rapidly converging based on T-type transponder
CN110401558A (en) * 2019-04-28 2019-11-01 北京广利核系统工程有限公司 Safety level multi-point communication network equipment, system and safety level network communication method
CN110401558B (en) * 2019-04-28 2023-07-25 北京广利核系统工程有限公司 Security level multi-point communication network equipment, system and security level network communication method
CN111431812A (en) * 2020-03-25 2020-07-17 新华三信息安全技术有限公司 Message forwarding control method and device
CN111431812B (en) * 2020-03-25 2022-04-01 新华三信息安全技术有限公司 Message forwarding control method and device
CN114157587A (en) * 2020-08-19 2022-03-08 阿自倍尔株式会社 Network device and network configuration determination method
CN114157587B (en) * 2020-08-19 2024-04-05 阿自倍尔株式会社 Network device and network configuration determination method
CN112887059A (en) * 2021-01-26 2021-06-01 芯河半导体科技(无锡)有限公司 Method for expanding MAC frame format in-band transmission flow control data

Also Published As

Publication number Publication date
CN105933162B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN105933162A (en) Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure
CN106850466B (en) Method and device for forwarding data packet in time-triggered network
CN103297309B (en) For can redundant operation industrial communication network communication equipment and for the method that operates communication equipment
US20160337146A1 (en) Method of data delivery across a network fabric in a router or ethernet bridge
US10628357B2 (en) Network controller—sideband interface port controller
KR102164032B1 (en) Network devices and how to select transmission of network devices
JPH10243014A (en) Device detecting automatically other similar device at other end of wire in computer network
US11089140B2 (en) Intelligent controller and sensor network bus, system and method including generic encapsulation mode
EP2003823A1 (en) Autonegotiation over an interface for which no autonegotiation standard exists
CN107426246A (en) High-speed data exchange system between ten thousand mbit ethernets and RapidIO agreements based on FPGA
CN101385284A (en) Node, network system, frame transfer method, and frame transfer program
CN105471836B (en) One-way junction device
CN104836753A (en) Software-defined networking (SDN) data plane strip state exchange device, SDN exchange system and SDN data plane strip state forwarding and processing method
CN109089029A (en) A kind of Gige Vision interface image Transmission system and method based on FPGA
CN104717150A (en) Exchange device and packet loss method
US7577136B1 (en) Ethernet switch fabric interface
CN106713183B (en) Interface board of network equipment, network equipment and message forwarding method
CN105406920B (en) A kind of optical module for supporting gigabit Ethernet protocol processes
CN103685028A (en) Method and device allowing mutual communication of multi-type ports
KR102164033B1 (en) Network devices and queue management methods for network devices
CN113300800B (en) Multi-mode deterministic data processing device and method
JPH10210062A (en) Ethernet accompanied with credit-base flow control
CN100521690C (en) System and component for realizing first component and second component communication
CN104363185B (en) A kind of miniature composite network data exchange system
WO2021254454A1 (en) Bier oam detection method, and device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant