CN105933162B - Low time delay ethernet repeater and method based on T-type structure - Google Patents

Low time delay ethernet repeater and method based on T-type structure Download PDF

Info

Publication number
CN105933162B
CN105933162B CN201610472276.9A CN201610472276A CN105933162B CN 105933162 B CN105933162 B CN 105933162B CN 201610472276 A CN201610472276 A CN 201610472276A CN 105933162 B CN105933162 B CN 105933162B
Authority
CN
China
Prior art keywords
frame
port
sent
processing module
data frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610472276.9A
Other languages
Chinese (zh)
Other versions
CN105933162A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention proposes a kind of low time delay ethernet repeater and method based on T-type structure, for solving existing for existing switch, time delay existing for wiring redundancy issue and existing retransmission method is larger and time delay uncertain problem, transponder includes port and the processing unit of T-shaped distribution, and processing unit includes: left port frame processing module, right output port frame processing module, user port frame processing module, address learning and searching module, specialized protocol processing module and user port adaptation module;Retransmission method includes: link state judgement, and data cached frame, frame identifies classification, rebuilds link, and PAUSE frame classification configures transponder, address learning and lookup, establishes output queue, sets up PAUSE frame, output to port.The present invention can be substantially reduced user's access wiring redundancy, reduce Forwarding Delay and guarantee that Forwarding Delay determines, and detect establishing network link of laying equal stress in time in network link failure, can be used for setting up high speed access network in real time.

Description

Low time delay ethernet repeater and method based on T-type structure
Technical field
The invention belongs to field of communication technology, it is related to a kind of forwarded device and retransmission method, and in particular to Yi Zhongji In the low time delay Ethernet retransmission unit and method of T-type structure, it can be used for setting up high speed access network in real time.
Background technique
Ethernet is internetwork connection mode common in local area network, and user generally first accesses switching equipment in a network, such as Switch or router, then other networks are connected to by switching equipment.Ethernet switch seeks to fill that multi-user while accessing The demand of data exchange when network, traditional ethernet interchanger are usually multi port switch, when multiple access interchanger, are adopted To the star net forming mode centered on interchanger, each user requires the use that interchanger is connected to by an independent cable Family interface requires to be routed succinct occasion, such as in aircraft, high-speed rail environment, redundancy is routed brought by star net forming some Problem will be difficult to receive.
Traditional ethernet interchanger generallys use store and forward message mode, and forwarding process is as follows:
(1) input processing, the main reception for completing data frame, verification, data format matched function;
(2) flow point class and packet transaction are mainly used for extracting frame critical field information, and according to the information to ether netting index Classify according to frame, executes corresponding processing according to classification results;
(3) address learning and address search, are learnt according to source MAC and source port number, then according to purpose MAC Address carries out address search, obtains destination port;
(4) it joins the team, according to information such as destination slogan and priority, distributes buffer address for data frame, and be deposited into Corresponding output queue;
(5) go out team, according to scheduling information, inquire the buffer address where group frame, and remove it output queue;
(6) output is handled, the main data frame buffer memory and the matched function of data frame format completed at output port;
Wherein input-buffer, join the team and export caching and etc. in all data frame can completely be cached, lead to data The Forwarding Delay of frame is larger, and since the length of data frame is not fixed, and the Forwarding Delay that interchanger introduces has not really It is qualitative.
Summary of the invention
It is an object of the invention to overcome defect existing for traditional ethernet switching technology, propose a kind of based on T junction The low time delay Ethernet retransmission unit and method of structure, for solve existing for existing switch wiring redundancy, time delay it is larger and when Prolong uncertain problem.
To achieve the goals above, technical thought of the invention are as follows: forwarded with traditional ethernet interchanger only with storage 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 is clog-free When, for interchanger using straight-through forward mode, interchanger starts data frame after receiving the ethernet type field of data frame at once Lookup forwarding, entire repeating process caches complete data frame due to not needing, ensure that repeating process it is low when Prolong, and since the length of the partial data frame of caching is fixed, guarantees the certainty of Forwarding Delay;When output port blocks When, interchanger uses store and forward message mode, and interchanger exports poll after data frame buffer memory to output port.
To achieve the above object, the present invention is based on the low time delay ethernet repeaters of T-type structure, including port and processing list Member, it is characterised in that:
The port, using T-type distributed architecture, i.e. respectively left port, right output port and user port, left port and right end Mouth is the network port, and for connecting the network equipment, user port is accessed for user terminal;
The processing unit, comprising:
Left port frame processing module, for receiving the data frame, right output port frame processing module and the user that input at left port The data frame of port frame processing module output, and extract the source port and source MAC address information feeding of left port input data frame Address learning and searching module;
Right output port frame processing module, for receiving the data frame, left port frame processing module and the user that input at right output port The data frame of port frame processing module output, and extract the source port and source MAC address information feeding of right output port input data frame Address learning and searching module;
User port frame processing module, for receiving at user port adaptation module at the data frame, left port frame of input The data frame of module and the output of right output port frame processing module is managed, and extracts the source port of user port adaptation module input data frame Address learning and searching module are sent into source MAC address information;
Address learning and searching module, for according to left port frame processing module, right output port frame processing module and user terminal Mouth frame processing module is sent into the source port of data frame and source MAC address information establishes address table, and is counted by address search According to the destination port of frame;
Specialized protocol processing module, for receiving the dedicated association at left port frame processing module and right output port frame processing module Frame is discussed, and the configuration and management to transponder are realized according to specialized protocol frame;
User port adaptation module, for the user input data at user port to be converted to data frame used in transponder It is sent into user port frame processing module, and realizes Ethernet 10/100/1000M adaptation function.
To achieve the above object, the present invention is based on the low time delay Ethernet retransmission methods of T-type structure, including;
1) data reception step:
1.1) network link situation is judged according to the connection status in PHY chip register: if PHY chip connection status is ON, then link is normal, executes step 1.2), if PHY chip connection status is OFF, link failure executes step 1.4);
1.2) cross clock domain processing is carried out to the asynchronous data frame of input, obtains synchrodata frame, cache synchronization data frame To the field of ethernet type domain, step 1.3) is executed;
1.3) its target MAC (Media Access Control) address, source MAC and type domain information are extracted from the cache contents of synchrodata frame, Judge the type of the synchrodata frame: if synchrodata frame for PAUSE frame, executes step 1.5), if synchrodata frame is dedicated Protocol frame, the i.e. ethernet frame of self defined class offset execute step 1.6), if synchrodata frame is normal data frame, execute step It is rapid 1.7);
1.4) it rebuilds link and generates network link failure information alert frame:
Address table 1.4a) is emptied, and address table is re-established by address learning, realizes that network link is rebuild;
1.4b) building network link failure information alerts frame, and the frame is sent into non-faulting port, executes sending step 2);
1.5) judge the type of PAUSE frame: if PAUSE frame is off frame, after the output flow for stopping port, abandoning The PAUSE frame after the output flow at unlatching port, abandons the PAUSE frame if PAUSE frame is wake-up association;
1.6) corresponding configuration and management are carried out to transponder according to the content of specialized protocol frame, and judges the specialized protocol Whether frame, which needs, forwards, and if necessary to forward, then enters data sending step 2), otherwise abandon;
1.7) address learning is carried out according to the source MAC of normal data frame and source port number, and according to normal data frame Target MAC (Media Access Control) address search destination port, into data sending step 2);
2) data sending step:
2.1) three queues are established at destination port, store other two ports data 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 follow the steps 2.2), no to then follow the steps 2.3);
2.2) it sets up PAUSE and stops frame, and PAUSE stopping frame being passed to and reaches end corresponding to the queue of warning line Mouth is sent;
2.3) three queues in poll output 2.1) preferentially export specialized protocol if there is specialized protocol frame to be sent Frame.
Compared with prior art, the present invention having the advantage that
First, the present invention due to using T-type structure, realized by transponder cascade more again by user accessing user port first The network insertion of user, and conventional switch realizes the network insertion of multi-user using stelliform connection topology configuration, therefore the present invention is big Reduce the wiring redundancy issue of user's access greatly.
Second, the present invention extracts number since input processing does not cache data frame completely, when as long as receiving data frame Can be carried out searching forwarding according to the type field of frame, and without joining the team, go out team, can work when exporting clog-free Make under direct mode operation, greatly reduce Forwarding Delay, and since the length of the partial data frame of caching is fixed, guarantees forwarding The certainty of time delay.
Third, the present invention is since when network link breaks down, address search and study module can be by emptying address Table, and address table is retrieved by address learning, it realizes that network link is rebuild, enhances the reliability of network.
Detailed description of the invention
Fig. 1 is the overall structure block diagram of apparatus of the present invention;
Fig. 2 is the structural block diagram of apparatus of the present invention processing unit;
Fig. 3 is the structural block diagram of apparatus of the present invention left port frame processing module;
Fig. 4 is the structural block diagram of apparatus of the present invention right output port frame processing module;
Fig. 5 is the structural block diagram of apparatus of the present invention user port frame processing module;
Fig. 6 is the data receiver flow diagram of retransmission method of the present invention;
Fig. 7 is the data transmission flow block diagram of retransmission method of the present invention.
Specific embodiment
Below in conjunction with drawings and examples, invention is further described in detail.
Referring to Fig.1, apparatus of the present invention include three ports and a processing unit, and three ports are respectively left port, the right side Port and user port, three T-shaped distributions in port, wherein left port and right output port are the network port, and the network port uses Gigabit ethernet interface, user port can be the port of multiple interfaces agreement, and two network ports are for apparatus of the present invention Interconnection is connected with external network, and user port is for connecting user.
Referring to Fig. 2, the processing unit of apparatus of the present invention includes: left port frame processing module 1, right output port frame processing module 2, User port frame processing module 3, address learning and searching module 4, specialized protocol processing module 5, user port adaptation module 6.
The left port frame processing module 1, for receive left port data frame and extract data frame target MAC (Media Access Control) address, Target MAC (Media Access Control) address therein and source MAC are sent to address learning and searching module 4 by source MAC and type, will be dedicated Protocol frame is sent to specialized protocol processing module 5;Receive the output of right output port frame processing module 2 and user port frame processing module 3 Data frame is simultaneously exported to left port.
The right output port frame processing module 2, for receive right output port data frame and extract data frame target MAC (Media Access Control) address, Target MAC (Media Access Control) address therein and source MAC are sent to address learning and searching module 4 by source MAC and type, will be dedicated Protocol frame is sent to specialized protocol processing module 5;Receive the output of left port frame processing module 2 and user port frame processing module 3 Data frame is simultaneously exported to left port.
The user port frame processing module 3, for receiving user port data frame and extracting the purpose MAC of data frame Target MAC (Media Access Control) address therein and source MAC are sent to address learning and searching module 4 by location, source MAC and type, are received The output data frame of left port frame processing module 2 and right output port frame processing module 3 is simultaneously exported to left port.
The address learning and searching module 4, establish address table using the source port and source MAC address information of data frame, Address search is carried out using the target MAC (Media Access Control) address of data frame and obtains the destination port of data frame, after network link failure Network link rebuilds the address table that instruction empties transponder, and re-establishes address table by address learning, realizes network link It rebuilds.
The specialized protocol processing module 5 is used for according to specialized protocol frame, the i.e. ethernet frame of self defined class offset, real Network link failure information and other ports now to the configuration of transponder and management, and for receiving and parsing the port turn The network link failure information alert frame sent generates network link and rebuilds instruction, and the network link is rebuild instruction and is sent To address learning and searching module 4, and building network link failure information alerts frame, waits the frame processing of the non-faulting network port Module polls forwarding.
The user port adaptation module 6, since the user data at user port may be with data frame used in transponder Difference needs to be converted to the user input data at user port data frame used in transponder and is sent into user port frame processing mould Block 3, and realize Ethernet 10/100/1000M adaptation function.
Above-mentioned left port frame processing module 1, right output port frame processing module 2 and user port frame processing module 3 are connected with each other, Address learning and searching module 4 are handled with left port frame processing module 1, right output port frame processing module 2 and user port frame respectively Module 3 is connected, and specialized protocol processing module 5 is connected with left port frame processing module 1 and right output port frame processing module respectively, user Port adaptation module 6 is connected with user port frame processing module 3.
Referring to Fig. 3, left port frame processing module 1 of the invention includes: input processing submodule 11, frame identification submodule 12, flow control submodule 13 and output processing submodule 14.
Fault message is sent to dedicated association for detecting possible network link failure by the input processing module 11 Discuss processing module 5;By using asynchronous FIFO eliminate data frame cross clock domain metastable issues, receive and data cached frame extremely Ethernet type domain field, and the data frame partial bytes of caching are sent to frame identification module 12.
The frame identification module 12, the partial data frame for being cached according to input processing module 11 extract the mesh of data frame MAC Address, source MAC and frame type, and judge extracted frame type:
It is normal frames if it is data frame, then sends request of tabling look-up to address learning and searching module 4, obtains destination Mouthful, then destination port is judged: if destination port is right output port, the output processing that normal frames are sent to right output port is sub The output that normal frames are sent to user port is handled submodule 34 if destination port is user port by module 24;
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule 13;
If it is specialized protocol frame, then the frame is sent to specialized protocol processing module 5.
The flow-control module 13, for realizing flow control according to the storage state of the data frame queue at destination port System sets up PAUSE and stops frame when data frame queue reaches warning line, at the end of flow control, sets up PAUSE wake-up association, and will The PAUSE wake-up association or PAUSE stop the output processing module that frame is sent at corresponding ports and are forwarded;And it parses and is identified from frame The PAUSE frame that module 11 is sent extracts flow-control information, and flow-control information is sent to output processing module 14.
The output processing module 14, the data frame and protocol frame sent for receiving other two ports, and delay respectively There are in two data frame queues and PAUSE frame queue, successively two data frame queues of poll and PAUSE frame queue are sent out It send, if specialized protocol processing module 3 has network link failure information alert frame, preferentially sends the network link failure information Alert frame;And for receiving the flow-control information that flow-control module 13 is sent, if it is flow control Stop message, then send current After data frame, stop polling data frame queue, at the end of receiving flow control and waking up information or flow control, restarts polling data Frame queue.
Referring to Fig. 4, right output port frame processing module 2 of the invention includes: input processing submodule 21, frame identification submodule 22, flow control submodule 23 and output processing submodule 24.
Fault message is sent to dedicated association for detecting possible network link failure by the input processing module 21 Discuss processing module 5;By using asynchronous FIFO eliminate data frame cross clock domain metastable issues, receive and data cached frame extremely Ethernet type domain field, and the data frame partial bytes of caching are sent to frame identification module 22.
The frame identification module 22, the partial data frame for being cached according to input processing module 21 extract the mesh of data frame MAC Address, source MAC and frame type, and judge extracted frame type:
It is normal frames if it is data frame, then sends request of tabling look-up to address learning and searching module 4, obtains destination Mouthful, then destination port is judged: if destination port is left port, the output processing that normal frames are sent to right output port is sub The output that normal frames are sent to user port is handled submodule 34 if destination port is user port by module 14;
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule 23;
If it is specialized protocol frame, then the frame is sent to specialized protocol processing module 5.
The flow-control module 23, for realizing flow control according to the storage state of the data frame queue at destination port System sets up PAUSE and stops frame when data frame queue reaches warning line, at the end of flow control, sets up PAUSE wake-up association, and will The PAUSE wake-up association or PAUSE stop the output processing module that frame is sent at corresponding ports and are forwarded;And it parses and is identified from frame The PAUSE frame that module 21 is sent extracts flow-control information, and flow-control information is sent to output processing module 24.
The output processing module 14, the data frame and protocol frame sent for receiving other two ports, and delay respectively There are in two data frame queues and PAUSE frame queue, successively two data frame queues of poll and PAUSE frame queue are sent out It send, if specialized protocol processing module 3 has network link failure information alert frame, preferentially sends the network link failure information Alert frame;And for receiving the flow-control information that flow-control module 23 is sent, if it is flow control Stop message, then send current After data frame, stop polling data frame queue, at the end of receiving flow control and waking up information or flow control, restarts polling data Frame queue.
Referring to Fig. 5, user port frame processing module 3 of the invention includes: input processing submodule 31, frame identification submodule 32, flow control submodule 33 and output processing submodule 34.
The input processing module 31 is eliminated the metastable issues of data frame cross clock domain by using asynchronous FIFO, connect It receives and data cached frame is to ethernet type domain field, and the data frame partial bytes of caching are sent to frame identification module 32.
The frame identification module 32, the partial data frame for being cached according to input processing module 31 extract the mesh of data frame MAC Address, source MAC and frame type, and judge extracted frame type:
It is normal frames if it is data frame, then sends request of tabling look-up to address learning and searching module 4, obtains destination Mouthful, then destination port is judged: if destination port is left port, the output processing that normal frames are sent to right output port is sub The output that normal frames are sent to user port is handled submodule 24 if destination port is right output port by module 14;
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule 33;
The flow-control module 33, for realizing flow control according to the storage state of the data frame queue at destination port System sets up PAUSE and stops frame when data frame queue reaches warning line, at the end of flow control, sets up PAUSE wake-up association, and will The PAUSE wake-up association or PAUSE stop the output processing module that frame is sent at corresponding ports and are forwarded;And it parses and is identified from frame The PAUSE frame that module 31 is sent extracts flow-control information, and flow-control information is sent to output processing module 34.
The output processing module 14, the data frame and protocol frame sent for receiving other two ports, and delay respectively There are in two data frame queues and PAUSE frame queue, successively two data frame queues of poll and PAUSE frame queue are sent out It send;And current data has then been sent if it is flow control Stop message for receiving the flow-control information that flow-control module 13 is sent After frame, stop polling data frame queue, at the end of receiving flow control and waking up information or flow control, restarts polling data frame team Column.
Retransmission method of the invention includes data receiver process and data transmission flow.
Referring to Fig. 6, the data receiver process of the method for the present invention is as follows:
Step 1, network link situation is judged according to the content in PHY chip register.
The content of its register is read by the MDio interface of PHY chip, one of them specific register indicates PHY chip Connection status, if connection status is ON, network link is normal, executes step 2, if connection status is OFF, network link event Barrier executes step 4.
Step 2, cross clock domain processing is carried out to the data frame of input, obtains synchrodata frame.
(2a) receives the asynchronous data frame of input using asynchronous FIFO, solves the problems, such as cross clock domain and obtains synchrodata Frame;
(2b) cache synchronization data frame to ethernet type domain field, i.e., buffer structure depth herein only has 16 bytes, Step 3 is executed later.
Step 3, the characteristic information of synchrodata frame is extracted.
(3a) extracts the wherein target MAC (Media Access Control) address of data frame, source due to having cached part synchrodata frame in step (2b) The frame format of MAC Address and type field, Ethernet is as shown in table 1;
1 Ethernet data frame format of table (B:byte, byte)
Lead code Frame start delimiter Destination address Source address Type field Data load Frame check code Frame period
7B 1B 6B 6B 2B 46B-1500B 4B 12B
(3b) judges the type of the data frame according to type field: when type field is 0x8808, which is PAUSE Frame executes step 5;When type field is customized particular value, which is specialized protocol frame, executes step 6;Work as type When for other values, which is normal data frame, executes step 7.
Step 4, link is rebuild.
(4a) can not correctly realize address search, therefore empty once visited place due to there is the port broken down in old address table Location table establishes new address table by address learning;
(4b) fault message needs to be reported to other transponders and server, therefore building network link failure information alerts Frame, and the frame is sent into non-faulting port, execute sending step.
Step 5, judge the type of PAUSE frame.
Judge PAUSE frame type: if it is PAUSE wake-up association, then the output flow at unlatching port, and abandoning should PAUSE wake-up association stops frame if it is PAUSE, then stops output module and send data frame and abandon PAUSE stopping frame, until When receiving PAUSE wake-up association or flow control time-out, stops flow control and abandon PAUSE wake-up association.
Wherein, the destination address of PAUSE is special multicast address: 01-80-C2-00-00-01, and type thresholding is 0x8808, MAC control code are 0x0001, and it is not that 0, PAUSE wake-up association MAC control parameter is that PAUSE, which stops frame MAC control parameter, 0, Ethernet PAUSE frame format is as shown in table 2.
2 Ethernet PAUSE frame format (B:byte, byte) of table
Step 6, transponder is configured.
Corresponding configuration and management are carried out to transponder according to the content of specialized protocol frame, and judge that the specialized protocol frame is No to need to forward, if the specialized protocol frame needs that multiple transponders are managed for configuration, which just needs Forwarding, into data sending step;If the specialized protocol frame only abandons after the completion of configuration management current transponder, configuration The frame.
Step 7, address learning and lookup.
(7a) carries out address learning according to the source MAC and source port of data frame, with learning the source MAC of normal data frame The mapping relations of location and source port number establish address table by the mapping relations;
(7b) searches destination port according to the target MAC (Media Access Control) address of data frame, sends into data.
Referring to Fig. 7, data transmission flow of the invention is as follows:
Step 8, output queue is established.
When (8a) is consistent due to the output port two ports, it is understood that there may be output obstruction, therefore built at destination port Three queues are stood, store other two ports data frame to be sent and PAUSE frame to be sent respectively;
In (8b) judgement (8a) the storage state of data frame queue represents if data frame queue storage reaches warning line It needs to carry out flow control at this time, executes step 9, it is no to then follow the steps 10.
Step 9, PAUSE frame is set up.
Set up PAUSE stop frame, and by the PAUSE stopping frame passing to reach port corresponding to the queue of warning line into Row is sent, and pause data in request opposite end are sent, and realizes flow control with this.
Step 10, it exports to port.
(10a) when destination port is clog-free, data frame, which reaches, may be output to port, as straight-through operating mode;
(10b) when destination port has obstruction, three queues in poll (8a), and exporting to port, if having to be sent Specialized protocol frame, it is preferential that specialized protocol frame is selected to be exported after the data frame that is exporting completes output.
The above is only preferred embodiments of the invention, do not constitute any limitation of the invention, it is clear that structure according to the present invention Think, those skilled in the art can make different modification and displacement, but these are in the column of protection of the invention.

Claims (9)

1. a kind of low time delay ethernet repeater based on T-type structure, including port and processing unit, it is characterised in that:
The port, using T-type distributed architecture, i.e., respectively left port, right output port and user port, left port and right output port are The network port, for connecting the network equipment, user port is accessed for user terminal;
The processing unit, comprising: left port frame processing module (1), right output port frame processing module (2), the processing of user port frame Module (3), address learning and searching module (4), specialized protocol processing module (5) and user port adaptation module (6), in which:
Left port frame processing module (1), for receiving the data frame inputted at left port, right output port frame processing module (2) and using The data frame of family port frame processing module (3) output, and extract the source port and source MAC address information of left port input data frame Address learning and searching module (4) are sent into, which includes: input processing submodule (11), frame identification Submodule (12), flow control submodule (13) and output processing submodule (14), in which:
Input processing submodule (11) caches frame originating point information, while detecting network link for receiving and synchronizing input data frame Network link failure information is simultaneously sent to specialized protocol processing module (5) by failure;
Frame identifies submodule (12), and the frame originating point information for being cached according to input processing submodule (11) extracts the purpose of data frame MAC Address, source MAC and frame type, and judge extracted frame type:
If data frame is normal frames, request of tabling look-up is sent to address learning and searching module (4), obtains the purpose of normal frames Port, then destination port is judged: if destination port is right output port, the output that normal frames are sent to right output port is handled Normal frames are sent to output processing submodule (34) of user port if destination port is user port by submodule (24);
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule (13);
If data frame is specialized protocol frame, specialized protocol frame is sent to specialized protocol processing module (5);
Flow control submodule (13) is flowed for being realized according to the storage state of the data frame queue at right output port or user port Amount control, and the PAUSE frame received is parsed, flow-control information is extracted to output processing submodule (14);
Output processing submodule (14), for receive right output port and normal frames and PAUSE frame that user port is sent and store to Respective queue, successively poll is exported to left port, and judges flow-control information according to the flow-control information of flow control submodule (13) Type:
If it is flow control Stop message, then after having sent current data frame, stop poll output;
Information is waken up if it is flow control, then restarts poll output;
Right output port frame processing module (2), for receiving the data frame inputted at right output port, left port frame processing module (1) and using The data frame of family port frame processing module (3) output, and extract the source port and source MAC address information of right output port input data frame It is sent into address learning and searching module (4);
User port frame processing module (3), for receiving the data frame inputted at user port adaptation module (6), left port frame The data frame of processing module (1) and right output port frame processing module (2) output, and extract user port adaptation module (6) input number Address learning and searching module (4) are sent into according to the source port and source MAC address information of frame;
Address learning and searching module (4), for according to left port frame processing module (1), right output port frame processing module (2) and use Family port frame processing module (3) is sent into the source port of data frame and source MAC address information establishes address table, and passes through address search Obtain the destination port of data frame;
Specialized protocol processing module (5), for receiving at left port frame processing module (1) and right output port frame processing module (2) Specialized protocol frame, and the configuration and management to transponder are realized according to specialized protocol frame;
User port adaptation module (6), for the user input data at user port to be converted to data frame used in transponder It is sent into user port frame processing module (3), and realizes Ethernet 10/100/1000M adaptation function.
2. the low time delay ethernet repeater according to claim 1 based on T-type structure, which is characterized in that address learning With searching module (4) when network link breaks down, address learning is re-started after address table obtain new address by emptying Table realizes that network link is rebuild.
3. the low time delay ethernet repeater according to claim 2 based on T-type structure, which is characterized in that specialized protocol Processing module (5) received specialized protocol frame be self defined class offset ethernet frame.
4. the low time delay ethernet repeater according to claim 3 based on T-type structure, which is characterized in that right output port frame Processing module (2) includes:
Input processing submodule (21) caches frame originating point information, while detecting network link for receiving and synchronizing input data frame Network link failure information is simultaneously sent to specialized protocol processing module (5) by failure;
Frame identifies submodule (22), and the frame originating point information for being cached according to input processing submodule (21) extracts the purpose of data frame MAC Address, source MAC and frame type, and judge extracted frame type:
If data frame is normal frames, request of tabling look-up is sent to address learning and searching module (4), obtains the purpose of normal frames Port, then destination port is judged: if destination port is left port, the output that normal frames are sent to left port is handled Normal frames are sent to output processing submodule (34) of user port if destination port is user port by submodule (14);
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule (23);
If data frame is specialized protocol frame, specialized protocol frame is sent to specialized protocol processing module (5);
Flow control submodule (23) is flowed for being realized according to the storage state of the data frame queue at left port or user port Amount control, and the PAUSE frame received is parsed, flow-control information is extracted to output processing submodule (24);
Output processing submodule (24), for receive left port and normal frames and PAUSE frame that user port is sent and store to Respective queue, successively poll is exported to right output port, and judges flow-control information according to the flow-control information of flow control submodule (23) Type:
If it is flow control Stop message, then after having sent current data frame, stop poll output;
Information is waken up if it is flow control, then restarts poll output.
5. the low time delay ethernet repeater according to claim 4 based on T-type structure, which is characterized in that user port Frame processing module (3) includes:
Input processing submodule (31) caches frame originating point information for receiving and synchronizing input data frame;
Frame identifies submodule (32), the frame originating point information rapidly extracting data frame for being cached according to input processing submodule (31) Target MAC (Media Access Control) address, source MAC and frame type feature information, and judge extracted frame type:
If data frame is normal frames, request of tabling look-up is sent to address learning and searching module (4), obtains the purpose of normal frames Port, then destination port is judged: if destination port is left port, the output processing that normal frames are sent to left port is sub Normal frames are sent to output processing submodule (24) of right output port if destination port is right output port by module (14);
If data frame is PAUSE frame, PAUSE frame is sent to flow control submodule (33);
Flow control submodule (33), for realizing flow according to the storage state of the data frame queue at left port or right output port Control, and for parsing the PAUSE frame received, flow-control information is extracted, and flow-control information is sent to output processing submodule (34);
Output processing submodule (34), for receiving data frame and PAUSE frame that left port and right output port are sent and storing to phase Queue is answered, successively poll is exported to user port adaptation module (6), and is sentenced according to the flow-control information of flow control submodule (33) Cutout control information type:
If it is flow control Stop message, then after having sent current data frame, stop poll output;
Information is waken up if it is flow control, then restarts poll output.
6. the low time delay ethernet repeater according to claim 5 based on T-type structure, which is characterized in that left port frame Input processing submodule (21) in input processing submodule (11), right output port frame processing module (2) in processing module (1) and Input processing submodule (31) in user port frame processing module (3) includes an asynchronous FIFO, to input data frame into The processing of row cross clock domain, obtains synchrodata frame.
7. the low time delay ethernet repeater according to claim 6 based on T-type structure, which is characterized in that the left end The input processing submodule in input processing submodule (11) and right output port frame processing module (2) in mouth frame processing module (1) (21) network link failure is detected by way of reading PHY chip register.
8. the low time delay ethernet repeater according to claim 7 based on T-type structure, which is characterized in that the left end The output in output processing submodule (14), right output port frame processing module (2) in mouth frame processing module (1) handles submodule (24) and in user port frame processing module (3) output processing submodule (34) include three queues, when output port without When obstruction, data frame is sent according to straight-through pass-through mode and passes through fair poll three queue realities when output port has obstruction The forwarding of existing data frame.
9. a kind of 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 register: if PHY chip connection status for ON, Then link is normal, executes step 1.2), if PHY chip connection status is OFF, link failure executes step 1.4);
1.2) cross clock domain processing is carried out to the asynchronous data frame of input, obtains synchrodata frame, cache synchronization data frame to Too after net type field field, step 1.3) is executed;
1.3) its target MAC (Media Access Control) address, source MAC and type domain information are extracted from the cache contents of synchrodata frame, are judged The type of the synchrodata frame: if synchrodata frame is PAUSE frame, executing step 1.5), if synchrodata frame is specialized protocol Frame, the i.e. ethernet frame of self defined class offset execute step 1.6), if synchrodata frame is normal data frame, execute step 1.7);
1.4) it rebuilds link and generates network link failure information alert frame:
Address table 1.4a) is emptied, and address table is re-established by address learning, realizes that network link is rebuild;
1.4b) building network link failure information alerts frame, and the frame is sent into non-faulting port, executes sending step 2);
1.5) judge the type of PAUSE frame: if PAUSE frame is off frame, after the output flow for stopping port, abandoning should PAUSE frame after the output flow at unlatching port, abandons the PAUSE frame if PAUSE frame is wake-up association;
1.6) corresponding configuration and management are carried out to transponder according to the content of specialized protocol frame, and judges that the specialized protocol frame is It is no to need to forward, if necessary to forward, then enter data sending step 2), otherwise abandon;
1.7) address learning is carried out according to the source MAC of normal data frame and source port number, and according to the mesh of normal data frame MAC Address search destination port, into data sending step 2);
2) data sending step:
2.1) three queues are established at destination port, store other two ports data 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 follow the steps 2.2), It is no to then follow the steps 2.3);
2.2) set up PAUSE stop frame, and by the PAUSE stopping frame passing to reach port corresponding to the queue of warning line into Row is sent;
2.3) three queues in poll output 2.1), it is preferential to export specialized protocol frame if there is specialized protocol frame to be sent.
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 CN105933162A (en) 2016-09-07
CN105933162B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107248963B (en) 2017-05-19 2020-05-22 闫晓峰 Multi-channel switch based on Ethernet, channel arbitration method and communication method
US20190165874A1 (en) * 2017-11-24 2019-05-30 Microelectronics Technology, Inc. Network switch device and method of operating the same
CN108306835B (en) * 2018-01-23 2021-05-04 中国航空工业集团公司洛阳电光设备研究所 Input caching and data forwarding method of Ethernet switch
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
CN110401558B (en) * 2019-04-28 2023-07-25 北京广利核系统工程有限公司 Security level multi-point communication network equipment, system and security level network communication method
CN111431812B (en) * 2020-03-25 2022-04-01 新华三信息安全技术有限公司 Message forwarding control method and device
KR102549279B1 (en) * 2020-08-19 2023-06-28 아즈빌주식회사 Network device and network configuration determining method
CN112887059B (en) * 2021-01-26 2023-04-07 芯河半导体科技(无锡)有限公司 Method for expanding MAC frame format in-band transmission flow control data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4616535B2 (en) * 1999-12-23 2011-01-19 シテイシャン ネットワークス インコーポレイテッド Network switching method using packet scheduling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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网络研究;姜秀柱等;《计算机应用》;20090331;第29卷(第3期);正文第2.3节

Also Published As

Publication number Publication date
CN105933162A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105933162B (en) Low time delay ethernet repeater and method based on T-type structure
CN106850466B (en) Method and device for forwarding data packet in time-triggered network
US11228515B2 (en) Data packet detection method, device, and system
CN103297309B (en) For can redundant operation industrial communication network communication equipment and for the method that operates communication equipment
US7675859B2 (en) Transmission apparatus and transmission system
US8462804B2 (en) Self-cleaning mechanism for error recovery
CN108306835B (en) Input caching and data forwarding method of Ethernet switch
CN107508640B (en) Double-ring redundant self-healing optical fiber network construction method based on optical fiber channel technology
CN101385288A (en) Managing the distribution of control protocol information in a network node
US8189601B2 (en) Communication apparatus and method for terminating a maintenance message
CN110493147B (en) Parallel redundant Ethernet communication controller and control method thereof
US8897308B2 (en) Node, a monitoring management method used for a node, and a transfer system, an input circuit and an output circuit
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
US20150172173A1 (en) Communication system, communication apparatus and path switching method
CN105406920B (en) A kind of optical module for supporting gigabit Ethernet protocol processes
US20090213745A1 (en) Frame monitoring device and frame monitoring method
CN113300800B (en) Multi-mode deterministic data processing device and method
US8369223B2 (en) Packet processing apparatus, interface unit and method thereof
US6195334B1 (en) Apparatus and method for terminating a data transfer in a network switch in response to a detected collision
US20110078181A1 (en) Communication device
CN110213118B (en) FC network system and flow control method thereof
CN105790984A (en) Operation, administration and maintenance function configuration and realization method and forwarder
CN109660394B (en) Packet transport network management method, apparatus, system, device and storage medium
US6987761B2 (en) Inbound data stream controller with pre-recognition of frame sequence
WO2018224052A1 (en) Real-time data scheduling method having fault tolerance function for use in field of rail transportation

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