CN101667953A - Reporting method of rapid looped network physical link state and device therefor - Google Patents

Reporting method of rapid looped network physical link state and device therefor Download PDF

Info

Publication number
CN101667953A
CN101667953A CN200910180032A CN200910180032A CN101667953A CN 101667953 A CN101667953 A CN 101667953A CN 200910180032 A CN200910180032 A CN 200910180032A CN 200910180032 A CN200910180032 A CN 200910180032A CN 101667953 A CN101667953 A CN 101667953A
Authority
CN
China
Prior art keywords
data
high level
processing module
master control
module
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
CN200910180032A
Other languages
Chinese (zh)
Other versions
CN101667953B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009101800323A priority Critical patent/CN101667953B/en
Publication of CN101667953A publication Critical patent/CN101667953A/en
Application granted granted Critical
Publication of CN101667953B publication Critical patent/CN101667953B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a reporting method of rapid looped network physical link state, comprising: when detecting Ethernet port information, a service processing module sends at least nine continuoushigh levels to a main control processing module and then sends a low level which is taken as a start bit, so as to inform the main control processing module to prepare to receive data; when sending eight valid data bits in the Ethernet port information, the service processing module sends one byte flag and then sends a stop bit after sequentially sending all the bytes of the Ethernet port information; and after acquiring the Ethernet port information, the main control processing module reports the information to a main control module. The invention guarantees the accuracy of the received dataand improves the capacity of resisting disturbance of a data transmission line.

Description

A kind of report method of rapid looped network physical link state and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of report method and device of rapid looped network physical link state.
Background technology
At present, the technology of solution double layer network loop problem has STP (Spanning Tree Protocol, Spanning-Tree Protocol) and RRPP (Rapid Ring Protection Protocol, ring protection agreement fast).STP is applied to loop network, by certain algorithm realizing route redundancy, simultaneously loop network is trimmed to loop-free tree network, thereby avoids hyperplasia and the Infinite Cyclic of message in loop network.RRPP is the link layer protocol that is specifically applied to Ethernet ring, is applied to the link layer protocol of Ethernet ring, can prevent the broadcast storm that data loopback causes in the Ethernet ring; When a link disconnects on the Ethernet ring, can enable backup link rapidly to recover the communication between each node on the looped network.
Though STP uses comparative maturity, convergence rate is a second level.RRPP has the convergence rate (being lower than 50ms) faster than STP, and the node number is irrelevant on the convergence time of RRPP and the looped network, can be applicable to larger-diameter network.Therefore the RRPP protocol link layer requires to obtain fast from bottom (physical layer) operating state of ethernet port.
The telecommunication apparatus of distributed frame will be realized the RRPP agreement looped network purpose of convergence fast, requires the ethernet port state on the business board can reliably report master control borad in real time.In the prior art, ethernet port condition detection method on the business board is more, Ethernet electricity mouthful state-detection generally judges that by the link detecting function of PHY (physical layer) self link disconnects, and interrupts reporting this plate CPU (CenterProcessor Unit, CPU) then; Ethernet light mouth state-detection is key signal Los, the Present by detecting the optical module physical link state, Fault etc. generally, but be not limited to these signals, when these key signal output states are unusual, expression network interface link down, this state just is recorded to CPLD (Complex Programmable Logic Device, CPLD) related register position interrupts reporting this plate CPU then.Report master control borad by data transmission channel behind these status signals that business board CPU collects.
Yet, because status signal is that CPLD by business board obtains in the prior art, sending to the CPU of business board, business board CPU sends to master control borad CPU by data transmission channel.Because each state information report all needs all can take certain resource through CPU, if quantity increases, will reduce operational efficiency.And, owing to reporting, status signal in the prior art adopts common send mode again, may there be the wrong report phenomenon.
Summary of the invention
The invention provides a kind of report method and device of rapid looped network physical link state, can guarantee real-time, promptness that the port failure state reports, can also guarantee the reliability of status data transmission, greatly improved the operational efficiency of equipment RRPP agreement.
The invention provides a kind of report method of rapid looped network physical link state, be applied to comprise in the device of at least one master control borad, at least one business board, described master control borad comprises master control control module and master control processing module, described business board comprises Service Processing Module, said method comprising the steps of:
Described Service Processing Module detects ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data;
8 valid data positions in the described ethernet port information of the every transmission of described Service Processing Module then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
After described master control processing module is obtained described ethernet port information, report described master control control module.
Send at least 9 continuous high level, also comprise before:
Described Service Processing Module monitors on the circuit and just sends start bit behind described at least 9 high level of continued presence, if between described at least 9 high period of counting, there is low level to occur, remove counter and restart counting, after being consecutively detected described at least 9 high level, just send start bit.
8 valid data positions of described every transmission then send 1 bit byte flag bit, also comprise afterwards:
If it is high level that described Service Processing Module detects described byte flag position, then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
Described master control processing module is obtained ethernet port information, specifically comprises:
Described master control processing module detects and has occurred described at least 9 high level on the circuit, is initial state by the IDLE state exchange, begins to receive data, counter O reset;
When counting down to 9 integer figure according to the time for low level, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
The invention provides a kind of reporting device of rapid looped network physical link state, comprise at least one master control borad, at least one business board, described master control borad comprises master control control module and master control processing module, and described business board comprises Service Processing Module,
Described Service Processing Module is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
Described master control processing module, be used to obtain described ethernet port information after, report described master control control module.
Described Service Processing Module specifically comprises:
Detector is used to detect ethernet port information;
Transmitter is connected with described detector, is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
Counter is connected with described transmitter, is used for sending the position counting.
Described Service Processing Module also comprises:
Line monitor, be connected with described counter with described transmitter respectively, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described transmitter at least and send start bit, if between described at least 9 high period of counting, there is low level to occur, removes described counter and restart counting, after being consecutively detected described 9 high level, just trigger described transmitter at least and send start bit.
Described line monitor, also being used to monitor described byte flag bit level is 1 o'clock, then misregistration information jumps to the IDLE state then, asks described transmitter to resend, and described counter O reset.
Described master control processing module specifically comprises:
Detector is used for whether occurring on the detection line described at least 9 high level;
Receiver is connected with described detector, is used to detect on the circuit when described at least 9 high level occurring, begins to receive data, makes counter O reset;
Counter is connected with described receiver, is used for data with clock information is counted;
Processor is connected with described counter, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
The invention provides a kind of data transmission method, be applied to comprise in the system of at least one sending ending equipment and at least one receiving device, said method comprising the steps of:
Described sending ending equipment sends at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data;
8 valid data positions of the every transmission of described sending ending equipment then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest;
Described receiving device detects and has occurred described at least 9 high level on the circuit, is initial state by the IDLE state exchange, begins to receive data, counter O reset.
At least 9 continuous high level of described transmission also comprise before:
Described sending ending equipment monitors on the circuit and just sends start bit behind described at least 9 high level of continued presence, if between described at least 9 high period of counting, there is low level to occur, remove counter and restart counting, after being consecutively detected described at least 9 high level, just send start bit.
8 valid data positions of described every transmission then send 1 bit byte flag bit, also comprise afterwards:
If it is high level that described sending ending equipment detects described byte flag position, then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
Described receiving device begins to receive data, specifically comprises:
When counting down to 9 integer figure according to the time for low level, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
The invention provides a kind of data transmission set, be applied to comprise in the system of sending ending equipment and receiving device, described data transmission set comprises during as sending ending equipment:
Sending module is used for sending at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data; 8 valid data positions of every then transmission then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest;
Counting module is connected with described sending module, is used for sending the position counting.
Also comprise
The circuit monitoring module, be connected with described counting module with described sending module respectively, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described sending module at least and send start bit, if between described at least 9 high period of counting, there is low level to occur, removes described counting module and restart counting, after being consecutively detected described 9 high level, just trigger described sending module at least and send start bit.
Described circuit monitoring module, also being used to detect described byte flag position is high level, and then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
The invention provides a kind of data transmission set, be applied to comprise in the system of sending ending equipment and receiving device, described data transmission set comprises during as receiving device:
Detection module is used for whether occurring on the detection line at least 9 high level;
Receiver module is connected with described detection module, is used to detect on the circuit when described at least 9 high level occurring, begins to receive data, makes the counting module zero clearing;
Counting module is connected with described receiver module, is used for data with clock information is counted;
Processing module is connected with described counting module, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
Compared with prior art, the present invention has the following advantages:
Among the present invention, state information directly is reported to the CPLD of master control borad by the CPLD of business board, and adopts special frame transformat, ensured the correctness of Data Receiving, can improve the data transmission link antijamming capability.
Description of drawings
Fig. 1 is the link detecting theory diagram of ethernet port among the present invention;
Fig. 2 is a data frame format schematic diagram among the present invention;
Fig. 3 is a data transmission state schematic diagram among the present invention;
Fig. 4 is a CPLD inner function module schematic diagram among the present invention;
Fig. 5 is a transmit status machine schematic diagram among the present invention;
Fig. 6 is an accepting state machine schematic diagram among the present invention;
Fig. 7 is a kind of data transmission method flow chart among the present invention;
Fig. 8 is a kind of data transmission set structure chart among the present invention;
Fig. 9 is an another kind of data transmission set structure chart among the present invention.
Embodiment
Core concept of the present invention is: state information directly is reported to the CPLD of master control borad by the CPLD of business board, sets up special-purpose data transmission channel, give master control borad with the state information real-time report of detected ethernet port.And, adopt special transfer of data frame format, can not only guarantee transfer of data accurately and reliably, can also improve the error correcting capability of data circuit, reduce receiving the error rate.In addition, data transmission channel among the present invention not only is used to transmit the ethernet port state information, can also be used to carry other data message, comprise other style interface state information etc., the user can define the data that will transmit according to self practical business situation.
The invention provides a kind of report method of rapid looped network physical link state, be applied to comprise in the device of at least one master control borad, at least one business board, described master control borad comprises master control control module (for example CPU) and master control processing module (for example CPLD), described business board comprises message control module (for example CPU) and Service Processing Module (for example CPLD), said method comprising the steps of:
1, described Service Processing Module detects ethernet port information (for example fault message or other state informations etc.), send at least 9 continuous high level to described master control processing module, send a low level then, notify described master control processing module to prepare to receive data as start bit; 8 valid data positions in the described ethernet port information of the every transmission of described then Service Processing Module then send 1 bit byte flag bit (for example low level is effective), successively described all bytes of ethernet port information are sent the back and send position of rest.
Generally, Service Processing Module is in normal operating conditions, should be in the IDLE state before beginning to send ethernet port information, and promptly continuous at least 9 high level can normally send data bit to the master control processing module according to above-mentioned mode of operation.But some situation, Service Processing Module may break down, therefore, normally transmit, need to introduce monitoring mechanism in order to guarantee data, monitor sending the position on the circuit, be specially: monitor on the circuit and just send start bit behind described at least 9 high level of continued presence,, have low level to occur if between described at least 9 high period of counting, remove counter and restart counting, after being consecutively detected described at least 9 high level, just can then send start bit.
In addition, this monitoring mechanism can also be monitored the data process of transmitting, specifically comprise: if detect on circuit this moment 1 bit byte flag bit level behind 8 valid data positions for high, illustrate in the data bit process of transmitting and mistake occurs, misregistration information then, jump to the IDLE state then, request resends data and counter O reset.
2, after described master control processing module is obtained described ethernet port information, report described master control control module.
Wherein, described master control processing module is obtained ethernet port information, specifically comprises: described master control processing module detects and has occurred described at least 9 high level on the circuit, is initial state by the IDLE state exchange, begins to receive data, counter O reset; When counting down to 9 integer figure according to the time for low level, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
Among the present invention, the physical link passage adopts CPLD to realize the point-to-point asynchronous serial transmission of single line, gives the data transmission channel that RRPP physical link port status detects provides a special use, has realized that CPLD realizes the collection of transfer of data and veneer port status between plate.Avoid other data service to take data channel, compare the Ethernet data passage, ensured real time of data transmission.
The link detecting theory diagram of ethernet port of the present invention comprises master control borad 1 and master control borad 2 as shown in Figure 1, business board 1, business board 2 ..., business board N.The present invention is as example, and master control borad and business board also can be other quantity in the practical application.Master control borad comprises master control CPLD and master cpu, communicates by letter with INT by the master control borad local bus between master control CPLD and the master cpu; Business board comprises professional CPLD and business CPU, communicates by letter with INT by the business board local bus between professional CPLD and the business CPU.
Wherein, professional CPLD (Service Processing Module) is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
Master control CPLD (master control processing module), be used to obtain described ethernet port information after, report master cpu (master control control module).
Professional CPLD specifically comprises: detector is used to detect ethernet port information; Transmitter is connected with described detector, is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest; Counter is connected with described transmitter, is used for sending the position counting.
Normally transmit in order to guarantee data, professional CPLD can also comprise: line monitor, be connected with described transmitter, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described transmitter at least and send start bit,, have low level to occur if between described at least 9 high period of counting, remove described counter and restart counting, after being consecutively detected described 9 high level, just trigger described transmitter at least and send start bit.Line monitor, when also to be used to monitor described byte flag bit level be high, then misregistration information jumped to the IDLE state then, asks described transmitter to resend, and described counter O reset.
Master control CPLD specifically comprises: detector is used for whether occurring on the detection line described at least 9 high level; Receiver is connected with described detector, is used to detect when at least 9 high level occurring on the circuit, begins to receive data, makes counter O reset; Counter is connected with described receiver, is used for data with clock information is counted; Processor is connected with described counter, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
RRPP port status physical link passage among the present invention is the serial transmission passage, data/address bus has only a signal line between business board and the polylith master control borad, realize that by backboard the star bus topological structure connects each other, business board is responsible for collecting the ethernet port state information and is sent by serial-port, and master control borad is responsible for receiving the ethernet port state information that comes from business board.If there are a plurality of business boards in distributed system, between every business board and the master control borad RRPP data channel is arranged all, independently of one another.The RRPP data channel of each business board converges in master control borad CPLD, and master control CPLD is uploaded to master cpu again and handles.If RRPP data channel number is more, master control borad can adopt one or more CPLD to satisfy system requirements according to the CPLD logical resource.
The break-make of the business board energy fast detecting ethernet port physical link among the present invention, in case port status changes, CPLD can obtain each port information in a short period of time, transmit the state information to the CPLD of master control borad then by the asynchronous serial data passage., when receiving data channel information, when one of them master control borad carries out hot plug, do not influence another piece master control borad and receive data for dual master control CPLD.
Among the present invention,, ensure the reliability that main control board data receives, design a kind of data frame format, can improve the error correcting capability of data circuit, reduce receiving the error rate, guarantee transfer of data accurately and reliably according to the characteristics of data channel physical link.Adopt CPLD to realize the serial transmission of Frame, professional CPLD is responsible for sending data, and master control CPLD is responsible for receiving data.Frame format defines as shown in Figure 2:
X, the expression data bit is 0 (low level) or two kinds of level values of 1 (high level);
S, i.e. start of frame bits, 0 level is represented the start frame transmission;
Data, the data significance bit is defined as 8bits, i.e. a byte;
Data 1~Data n represents that this data frame transfer data payload is the n byte, and n is a natural number, and size is defined by the user;
Sp, the byte flag position represents that an effective byte position sends or receives, 0 level is effective;
P, promptly the frame position of rest is represented the n byte data end of transmission one time, 0 level is effective;
IDLE, spare bits, bus rests in 1 level in idle condition, and spare bits is more than or equal to 9.
From above frame structure schematic diagram as can be seen its length be 9 (idle)+1 (start)+n*[8 (data)+1 (space)], wherein variable n can decide according to business board ethernet port quantity, the 1bit among the corresponding 1Byte data bit of each the Ethernet mode bit data.In order to guarantee that receiving terminal judges absolutely accurate to start of frame bits, insert one 0 level byte flag position between every 8bit data, under data transmission state, the situation of continuous 91 level can not appear on the circuit, thus with the IDLE state under continuous 91 level differentiate.If therefore receiving terminal will begin to receive data, necessary first counter O reset, counting is judged situation about before whether having occurred on the circuit more than or equal to 91 level then, if then explanation is in the IDLE state, can the accepting state data, if not the explanation line be busy, wait for receiving next frame.
This frame structure has guaranteed the reliability of Data Receiving for single master control and many master control systems.
A concrete application scenarios using above data transfer mode is as follows, wherein, is that example describes to send 9 continuous high level as data transmission beginning condition, specifically may further comprise the steps:
One, transmitting terminal (business board CPLD) sends ethernet port information.
After business board CPLD is enabled transmit mechanism, if detect the ethernet port status fault, business board CPLD starts ethernet port state information sending function, transmitter among the business board CPLD is before sending start bit, send 9 continuous high level earlier, send a low level then as start bit, the receiver of notice master control borad CPLD prepares to receive data, 8 valid data positions of every then transmission, then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest, as shown in Figure 3.
In order to improve the circuit error correcting capability, avoid causing the receiver erroneous judgement to be start bit because circuit disturbs the generation low level unusually, can increase a line status watch-dog in business board CPLD inside, the data circuit is detected in real time, as shown in Figure 4.In a transmission cycle, the line status watch-dog must monitor on the circuit and just send start bit behind 9 high level of continued presence, between 9 high period of counting, counter restarts counting in case find to have low level just to occur clearly, just can and then send start bit after being consecutively detected 9 high level.After finishing, the start bit transmission then sends 1 byte port status information, whenever after sending 1 byte status, and then send a low level byte flag position, indicate that an effective byte is sent completely, and guarantees can not occur on the circuit the possible situation of continuous 9 high level simultaneously under data transmission state.Circuit is a high level if the line status watch-dog detects this moment, and then notice transmitter misregistration information jumps to the IDLE state then, and request immediately resends, and counter O reset.After sending last 1 byte data, send position of rest, represent that frame data send end.Circuit enters the IDLE state, and the transmitter wait command sends the next frame data, sends the data mode machine as shown in Figure 5:
Two, receiving terminal (master control borad CPLD) receives ethernet port information.
Receiver is with a multidigit counter, and the 1bit state machine can realize that 1 the tunnel receives control.State has only 2: IDLE and START.Under the IDLE state, detect the circuit high level and counter is added 1.The a certain moment receives low level, and less than 9 zero clearings, state machine still is the IDLE state as if counter; If it is the START state that counting equals 9 change state machines, with counter O reset, begin to receive data b it, every reception 1bit data counter adds 1.Whenever counting down to 9 integer figure according to the time for low level, this bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, and then receive position of rest, receiver enters the IDLE state.
If 9 integer figure then jumps to the IDLE state according to being high level in whole receiving course, the expression Data Receiving is made mistakes, and with counter O reset, the accepting state machine as shown in Figure 6.
In order to satisfy the fast speed of convergence of RRPP, and strive for the more time remaining sum for link layer, the present invention can finish Data Detection and transmission in 1ms.Because transfer of data is an asynchronous system, thus all necessary clock that adopts with frequency or frequency multiplication relation of receiving-transmitting sides, as data channel transmission, receive clock source.Message transmission rate can determine that speed range can be selected from several KHz to several megahertzes according to the payload position that will transmit.Sample detecting clock to line status will satisfy sampling thheorem, is 2 times of message transmission rate at least, but the sampling clock of receiving-transmitting sides homology not.
In addition, the rise and fall of data actual signal judge that along influencing the logic sampling logic need data pin be set to Schmidt's attribute on the circuit.
The whole data of the present invention send and reception mechanism, and the mechanism for correcting errors of line status watch-dog, can fully guarantee the reliable transmission of data, especially for many master controls distributed system of supporting the master control hot plug, can strengthen the antijamming capability of circuit.In addition, the port status that adopts special-purpose data channel transmission RRPP to require has improved real time of data transmission.
An organic whole is not only in the realization of the physical link that the present invention relates to, frame format definition, three parts of transmission mechanism, every partial design method can be by independent employing simultaneously, and therefore part utilizes one of them design or composite design all can not walk around the present invention.
The present invention realizes physical transmission link and the host-host protocol except utilizing CPLD, can also utilize all programming devices such as FPGA, microprocessor/controller to realize identical functions.Therefore all adopt programming device to realize that this programme is all within limited field of the present invention.
The present invention also provides a kind of data transmission method, is applied to comprise that described method may further comprise the steps as shown in Figure 7 in the system of at least one sending ending equipment and at least one receiving device:
Step 701, described sending ending equipment sends at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data.At least 9 continuous high level of described transmission, also comprise: described sending ending equipment monitors on the circuit and just sends start bit behind described at least 9 high level of continued presence before, if between described at least 9 high period of counting, there is low level to occur, remove counter and restart counting, after being consecutively detected described at least 9 high level, just send start bit.
Step 702,8 valid data positions of the every transmission of described sending ending equipment then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest.8 valid data positions of described every transmission then send 1 bit byte flag bit, also comprise afterwards: if described sending ending equipment detects described byte flag position is high level, misregistration information then, jump to the IDLE state then, request resends, and counter O reset.
Step 703, described receiving device detect and have occurred described at least 9 high level on the circuit, are initial state by the IDLE state exchange, begin to receive data, counter O reset.Specifically comprise: when counting down to 9 integer figure according to for low level the time, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
The invention provides a kind of data transmission set, be applied to comprise in the system of sending ending equipment and receiving device, it is characterized in that, described data transmission set as shown in Figure 8, comprising during as sending ending equipment:
Sending module 810 is used for sending at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data; 8 valid data positions of every then transmission then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest;
Counting module 820 is connected with sending module 810, is used for sending the position counting.
Circuit monitoring module 830, be connected with counting module 820 with sending module 810 respectively, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described sending module at least and send start bit, if between described at least 9 high period of counting, there is low level to occur, removes described counting module and restart counting, after being consecutively detected described 9 high level, just trigger described sending module at least and send start bit.
Circuit monitoring module 830, also being used to detect described byte flag position is high level, and then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
The invention provides a kind of data transmission set, be applied to comprise in the system of sending ending equipment and receiving device, described data transmission set as shown in Figure 9, comprising during as receiving device:
Detection module 910 is used for whether occurring on the detection line at least 9 high level;
Receiver module 920 is connected with detection module 910, is used to detect on the circuit when described at least 9 high level occurring, begins to receive data, makes the counting module zero clearing;
Counting module 930 is connected with receiver module 920, is used for data with clock information is counted;
Processing module 940 is connected with counting module 930, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
Method for designing of the present invention is the description of design framework structure, line status monitor functions module for example, and perfect representation is not the method for designing that can directly use, therefore carries out part optimization or revise still being subjected to restriction of the present invention on basis of the present invention.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (17)

1, a kind of report method of rapid looped network physical link state, be applied to comprise in the device of at least one master control borad, at least one business board, described master control borad comprises master control control module and master control processing module, described business board comprises Service Processing Module, it is characterized in that, said method comprising the steps of:
Described Service Processing Module detects ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data;
8 valid data positions in the described ethernet port information of the every transmission of described Service Processing Module then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
After described master control processing module is obtained described ethernet port information, report described master control control module.
2, the method for stating as claim 1 is characterized in that, sends at least 9 continuous high level, also comprises before:
Described Service Processing Module monitors on the circuit and just sends start bit behind described at least 9 high level of continued presence, if between described at least 9 high period of counting, there is low level to occur, remove counter and restart counting, after being consecutively detected described at least 9 high level, just send start bit.
3, the method for stating as claim 1 is characterized in that, 8 valid data positions of described every transmission then send 1 bit byte flag bit, also comprise afterwards:
If it is high level that described Service Processing Module detects described byte flag position, then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
4, the method for stating as claim 1 is characterized in that, described master control processing module is obtained ethernet port information, specifically comprises:
Described master control processing module detects and has occurred described at least 9 high level on the circuit, is initial state by the IDLE state exchange, begins to receive data, counter O reset;
When counting down to 9 integer figure according to the time for low level, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
5, a kind of reporting device of rapid looped network physical link state comprises at least one master control borad, at least one business board, and described master control borad comprises master control control module and master control processing module, and described business board comprises Service Processing Module, it is characterized in that,
Described Service Processing Module is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
Described master control processing module, be used to obtain described ethernet port information after, report described master control control module.
6, device as claimed in claim 5 is characterized in that, described Service Processing Module specifically comprises:
Detector is used to detect ethernet port information;
Transmitter is connected with described detector, is used to detect ethernet port information, sends at least 9 continuous high level to described master control processing module, sends a low level then as start bit, notifies described master control processing module to prepare to receive data; 8 valid data positions in the described ethernet port information of every then transmission then send 1 bit byte flag bit, successively described all bytes of ethernet port information are sent the back and send position of rest;
Counter is connected with described transmitter, is used for sending the position counting.
7, device as claimed in claim 6 is characterized in that, described Service Processing Module also comprises:
Line monitor, be connected with described counter with described transmitter respectively, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described transmitter at least and send start bit, if between described at least 9 high period of counting, there is low level to occur, removes described counter and restart counting, after being consecutively detected described 9 high level, just trigger described transmitter at least and send start bit.
8, device as claimed in claim 5 is characterized in that, described line monitor, also being used to monitor described byte flag bit level is 1 o'clock, and then misregistration information jumps to the IDLE state then, ask described transmitter to resend, and described counter O reset.
9, device as claimed in claim 5 is characterized in that, described master control processing module specifically comprises:
Detector is used for whether occurring on the detection line described at least 9 high level;
Receiver is connected with described detector, is used to detect on the circuit when described at least 9 high level occurring, begins to receive data, makes counter O reset;
Counter is connected with described receiver, is used for data with clock information is counted;
Processor is connected with described counter, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
10, a kind of data transmission method is applied to comprise in the system of at least one sending ending equipment and at least one receiving device, it is characterized in that, said method comprising the steps of:
Described sending ending equipment sends at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data;
8 valid data positions of the every transmission of described sending ending equipment then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest;
Described receiving device detects and has occurred described at least 9 high level on the circuit, is initial state by the IDLE state exchange, begins to receive data, makes counter O reset.
11, the method for stating as claim 10 is characterized in that, at least 9 continuous high level of described transmission also comprise before:
Described sending ending equipment monitors on the circuit and just sends start bit behind described at least 9 high level of continued presence, if between described at least 9 high period of counting, there is low level to occur, remove counter and restart counting, after being consecutively detected described at least 9 high level, just send start bit.
12, the method for stating as claim 10 is characterized in that, 8 valid data positions of described every transmission then send 1 bit byte flag bit, also comprise afterwards:
If it is high level that described sending ending equipment detects described byte flag position, then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
13, method as claimed in claim 10 is characterized in that, described receiving device begins to receive data, specifically comprises:
When counting down to 9 integer figure according to the time for low level, described bit data is abandoned, other position deposits reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, enter the IDLE state; If when 9 integer figure certificate is high level, then jump to the IDLE state, the expression Data Receiving is made mistakes, and with counter O reset.
14, a kind of data transmission set is applied to comprise in the system of sending ending equipment and receiving device, it is characterized in that, described data transmission set comprises during as sending ending equipment:
Sending module is used for sending at least 9 continuous high level to described receiving device, sends a low level then as start bit, notifies described receiving device to prepare to receive data; 8 valid data positions of every then transmission then send 1 bit byte flag bit, successively all bytes are sent the back and send position of rest;
Counting module is connected with described sending module, is used for sending the position counting.
15, data transmission set as claimed in claim 14 is characterized in that, also comprises
The circuit monitoring module, be connected with described counting module with described sending module respectively, be used to monitor the level that sends the position, after monitoring described 9 high level of continued presence, trigger described sending module at least and send start bit, if between described at least 9 high period of counting, there is low level to occur, removes described counting module and restart counting, after being consecutively detected described 9 high level, just trigger described sending module at least and send start bit.
16, data transmission set as claimed in claim 15 is characterized in that, described circuit monitoring module, and also being used to detect described byte flag position is high level, and then misregistration information jumps to the IDLE state then, and request resends, and counter O reset.
17, a kind of data transmission set is applied to comprise in the system of sending ending equipment and receiving device, it is characterized in that, described data transmission set comprises during as receiving device:
Detection module is used for whether occurring on the detection line at least 9 high level;
Receiver module is connected with described detection module, is used to detect on the circuit when described at least 9 high level occurring, begins to receive data, makes the counting module zero clearing;
Counting module is connected with described receiver module, is used for data with clock information is counted;
Processing module is connected with described counting module, is used for when the integer figure certificate that count down to 9 is low level, this bit data is abandoned, other the position deposit reception data buffer in as valid data, receive last 1 byte data after, receive position of rest, make described receiver enter the IDLE state.
CN2009101800323A 2009-10-23 2009-10-23 Reporting method of rapid looped network physical link state and device therefor Expired - Fee Related CN101667953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101800323A CN101667953B (en) 2009-10-23 2009-10-23 Reporting method of rapid looped network physical link state and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101800323A CN101667953B (en) 2009-10-23 2009-10-23 Reporting method of rapid looped network physical link state and device therefor

Publications (2)

Publication Number Publication Date
CN101667953A true CN101667953A (en) 2010-03-10
CN101667953B CN101667953B (en) 2012-04-18

Family

ID=41804400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101800323A Expired - Fee Related CN101667953B (en) 2009-10-23 2009-10-23 Reporting method of rapid looped network physical link state and device therefor

Country Status (1)

Country Link
CN (1) CN101667953B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN103812709A (en) * 2014-02-28 2014-05-21 上海斐讯数据通信技术有限公司 Light ray road administration end system and data statistics method thereof
CN105955911A (en) * 2016-05-09 2016-09-21 杭州宏杉科技有限公司 Hot-plug control circuit and control method thereof
CN110890989A (en) * 2019-12-03 2020-03-17 杭州迪普科技股份有限公司 Channel connection method and device
CN111953498A (en) * 2020-07-31 2020-11-17 新华三技术有限公司 Signal transmission method and device
CN112751719A (en) * 2021-02-07 2021-05-04 深圳合芯谷微电子有限公司 Multi-stage series data communication method, system, terminal and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN102148724B (en) * 2011-01-31 2014-12-31 中兴通讯股份有限公司 Link detecting method and network access device
CN103812709A (en) * 2014-02-28 2014-05-21 上海斐讯数据通信技术有限公司 Light ray road administration end system and data statistics method thereof
CN103812709B (en) * 2014-02-28 2020-02-25 上海斐讯数据通信技术有限公司 Optical line local side system and data statistical method therein
CN105955911A (en) * 2016-05-09 2016-09-21 杭州宏杉科技有限公司 Hot-plug control circuit and control method thereof
CN110890989A (en) * 2019-12-03 2020-03-17 杭州迪普科技股份有限公司 Channel connection method and device
CN111953498A (en) * 2020-07-31 2020-11-17 新华三技术有限公司 Signal transmission method and device
CN111953498B (en) * 2020-07-31 2022-07-12 新华三技术有限公司 Signal transmission method and device
CN112751719A (en) * 2021-02-07 2021-05-04 深圳合芯谷微电子有限公司 Multi-stage series data communication method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN101667953B (en) 2012-04-18

Similar Documents

Publication Publication Date Title
WO2021017364A1 (en) Network failure diagnosis method and apparatus, network device, and storage medium
US7289436B2 (en) System and method for providing management of fabric links for a network element
CN101667953B (en) Reporting method of rapid looped network physical link state and device therefor
CN102984059B (en) Gigabit Ethernet redundancy network interface card and link switching condition criterion output control method thereof
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
CN103019141B (en) Control module, control method and electric power dynamic recording device and implementation method thereof
CN106899472A (en) A kind of unidirectional ring network controller and its application method
CN102694692A (en) Fault detecting method and device of distributed equipment
CN104980293A (en) Method and device for quickly transmitting and detecting OAM message
CN112118158A (en) Test method, test device, test equipment and storage medium of switch
CN109194430A (en) A kind of C6678 distribution type system time synchronous method and system based on SRIO
CN104639358B (en) batch network port switching method and switching system
WO2019079961A1 (en) Method and device for determining shared risk link group
US7719992B1 (en) System for proactive time domain reflectometry
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN109471763A (en) Grab method, apparatus, equipment and the system of NVME hard disk trace
CN107005440B (en) method, device and system for positioning link fault
CN116137603B (en) Link fault detection method and device, storage medium and electronic device
CN109412968B (en) Redundant communication receiving management system and method for time-triggered Ethernet end node
CN113810238A (en) Network monitoring method, electronic device and storage medium
US20070055913A1 (en) Facilitating detection of hardware service actions
CN111682966B (en) Network communication device with fault active reporting function, system and method thereof
CN103532728B (en) A kind of method and device resetted to failure dsp chip
CN108540364A (en) A kind of decoding of MVB bus data and collection method based on CPLD technologies
JP2013175837A (en) Communication device, failure determination method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

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

Granted publication date: 20120418

Termination date: 20201023