CN1984025A - Method for releasing invalid-occupied resource and storage converter - Google Patents
Method for releasing invalid-occupied resource and storage converter Download PDFInfo
- Publication number
- CN1984025A CN1984025A CNA2006100783810A CN200610078381A CN1984025A CN 1984025 A CN1984025 A CN 1984025A CN A2006100783810 A CNA2006100783810 A CN A2006100783810A CN 200610078381 A CN200610078381 A CN 200610078381A CN 1984025 A CN1984025 A CN 1984025A
- Authority
- CN
- China
- Prior art keywords
- output port
- timer
- send
- message
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
This invention relates to the method and store - and-forward device which can release void occupation resource. The core is: when detect there is no data message sent on the output end, it will start the timer which is set on the corresponding output end to record time; when the record time of the timer reaches regular cycle, it will release void occupation resource. Through this invention, when the work of output end is abnormal, it will not only release the allocation of resource timely, and it needn't the CPU participation and software running.
Description
Technical field
The present invention relates to the communications field, relate in particular to the storage retransmission technique.
Background technology
Usually use the structure of as shown in Figure 1 " storage-forwarding " in the chip of data communication, this structure comprises cache module, the forwarding processing module of receiving management module, message data and sends administration module.Described receiving management module comprises at least one receiving port, and described transmission administration module comprises at least one output port, and the output queue of corresponding described output port.
When carrying out data communication, described receiving management module intactly receives message data by each receiving port, to the corresponding cache resources of message data cache module application,, then the message data that receives is discarded then if can not apply for corresponding cache resources; If can apply for corresponding cache resources, then described receiving management module can obtain to store the memory address of the message data that receives, and according to described memory address with the storage that receives in the message data cache module, simultaneously the partial content of described memory address and message data (comprise " destination address " information of being positioned at the message data head with " source address " information etc.) as the forwarding process information, is sent to described forwarding processing module; Described forwarding processing module is carried out analyzing and processing to transmitting process information, and determines to comprise the forwarding information of message data whether message data needs to abandon, or be forwarded to which output port etc. according to analysis result.After described forwarding processing module draws the forwarding information of message data, will the storage address information of message data correspondence be written in the output queue of " first in first out " of each output port correspondence according to described forwarding information, wait to be sent then.Described transmission administration module reads address information in the output queue according to the situation of output port dateout, and from the message data cache module, reading the message data of corresponding described address according to described address information, the output port by correspondence sends then.
After message data was exported from output port, described chip discharged by described message data shared cache resources and queue resource.
In the said process, when chip carried out analyzing and processing to the forwarding process information of current data message, receiving port may receive some data messages of follow-up arrival, and this moment, chip must distribute some cache resources to come message data is stored; Yet these storage resources and queue resource will be waited until just can be recovered after message data sends from output port once more and utilize.In addition, carry out in the process of work at chip, the situation that occurs the unexpected link down of some output port sometimes, for example netting twine disconnects, power failure, user do not have the network equipment of stop butt joint according to the rules etc. suddenly, had some buffer memorys or queue resource to distribute to this output port this moment in chip, if it is normal that these ports can not in time recover, these buffer memorys that have been assigned with or queue resource will be taken for a long time so, can not be utilized by other port again, thereby the performance of chip is impacted.Therefore need often to detect the operating state of output port,, and when link down, can in time discharge the buffer memory or the queue resource that have been assigned with so that in time judge the connection status of link.
The prior art one relevant with the present invention provides the buffer memory that a kind of release has been assigned with or the method for queue resource, and its main thought is:
Send administration module and check that constantly the circuit on the output port connects signal, promptly the Link signal is known the connection status of the link of output port, and detected information is initiatively reported CPU; After described CPU is known output port generation link down according to the described information that reports, controlling described transmission administration module constantly will send to this output port from corresponding formation, buffer memory data message abandons, the link-recovery that learns output port until described CPU connects, then stop this discard processing, recover normal data message and send.
Prior art one needs CPU to handle, thereby can increase the burden of CPU.
The prior art two relevant with the present invention provides the buffer memory that another kind of release has been assigned with or the method for queue resource, and its main thought is:
Check periodically, constantly that by high layer software whether output port is sending data (the particularly data message of some protocol types), and judge according to detected information whether link is online always; After being checked through output port generation link down, the data message that constantly will send to this output port from corresponding formation, buffer memory abandons, thereby realizes the recovery of occupied resource.Connect in case reexamine the link-recovery of port, then stop this discard processing, recover normal data message and send.
Prior art two needs high layer software to handle, and can cause the running software expense, has increased the burden of the CPU of operating software.
Summary of the invention
The purpose of this invention is to provide method and storing and forwarding device that a kind of release is disabled the resource that takies, by the present invention, solved in the prior art when the output port operation irregularity, for realizing the recovery of occupied resource, need the participation of CPU, maybe need to move high layer software and drawback such as handle.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides the method that a kind of release is disabled the resource that takies, it comprises:
A, when on detecting output port, not having data message to send, then start corresponding described output port and the timer that is provided with picks up counting;
B, when the timing time of described timer reaches timing cycle, discharge and to be disabled the resource that takies.
Needed time when each data message sent when wherein, the timing cycle of described timer was greater than normal output.
Wherein, described steps A specifically comprises:
Send administration module and detect and whether have data message to send on each output port that sets within it, and when when detecting a certain output port on, not having the data message transmission, then start corresponding described output port and the timer that is provided with picks up counting;
Or,
Send administration module and detect and whether have data message to send on each output port that is arranged on its outside, and when when detecting a certain output port on, not having the data message transmission, then corresponding described output port and the timer that is provided with picks up counting.
Wherein, specifically comprise at described step B:
B1, before the timing time no show timing cycle of described timer, whether continue to detect on the described output port has data message normally to send, and when on detecting described output port, having data message to send, then described timer is resetted, and stop timing, continue steps A then; When on detecting described output port, not having data message to send, execution in step B2 then;
B2, when the timing of described timer reaches timing cycle, then read the memory address in the output queue of described output port correspondence, and from the message data cache module, read the message data of corresponding described memory address according to described memory address, then it is discarded, and discharge described memory address corresponding queues resource and described message data corresponding cache resource; Simultaneously described timer is resetted, change steps A then over to.
The invention provides a kind of storing and forwarding device, comprise at least one output port, wherein, corresponding each output port also comprises a timer, be used for when output port does not have data message to send, then startup picks up counting, and when timing time equals timing cycle, then triggers described storing and forwarding device release and be disabled the resource that takies.
Needed time when each data message sent when wherein, the timing cycle of described timer was greater than normal output.
Wherein, described timer is positioned at output port inside, or is positioned at the outside of output port.
Wherein, described storing and forwarding device also comprises:
The message data cache module is used for the buffer memory message data;
Sending administration module, whether have data message send, when not having data message to send, send the described timer of signal triggering if being used to detect described output port; And when the timing time of timer arrived timing cycle, being triggered discharged being disabled the resource that takies.
Wherein, the described resource that takies that is disabled comprises:
The message resource of buffer memory in queue resource in the output queue of having distributed to output port but can not being sent out and the corresponding described message data cache module.
Wherein, described output port is positioned at described transmission administration module inside, or is positioned at described transmission administration module outside, and is connected with described transmission administration module.
As seen from the above technical solution provided by the invention, among the present invention, when on detecting certain output port, not having data message to send, start corresponding described output port and the timer that is provided with picks up counting; And when the timing time of described timer reached timing cycle, release was disabled the resource that takies.Therefore when the output port operation irregularity, the present invention not only can in time discharge the resource that has been assigned with, and does not need the participation of CPU, does not need the operation of software.
Description of drawings
Fig. 1 is the fundamental diagram of the chip of " storage-forwarding " structure of providing in the background technology;
Fig. 2 is the flow chart of first embodiment provided by the invention;
Fig. 3 is the schematic diagram of second embodiment provided by the invention;
Fig. 4 is for sending the administration module outside when output port is arranged among the 3rd embodiment provided by the invention, and each timer is arranged on and sends in the administration module, and with the schematic diagram of each output port to seasonable storing and forwarding device.
Embodiment
Data communication chip to " storage-forwarding " structure, when it occurs situation (for example netting twine disconnection that some output port generation link interrupts suddenly in the course of the work, have a power failure suddenly, the user is program off-line etc. according to the rules not) time, had some cache resources or queue resource to distribute to this output port this moment in chip, these resources are called as and are disabled the resource that takies, if these resources are discharged timely, Limited resources is fully utilized, be not disabled the resource that takies if there is the participation of the participation of CPU or high layer software just can in time discharge, then even more ideal.
The invention provides first embodiment is not need the participation of CPU participation or high layer software just can in time discharge a kind of method that is disabled the resource that takies, its core is: corresponding each output port is provided with a timer, when described transmission administration module detects when not having data message to send on certain output port, the timer that then starts on the corresponding described output port picks up counting.When the timing time of described timer reached timing cycle, then described transmission administration module discharged the resource of ineffective occupation.Its specific implementation process comprises the steps: as shown in Figure 2
Step 1, corresponding each output port is provided with a timer, and the timing cycle of setting described timer needed time when each data message sends during greater than normal output.
When described timer does not only have data message to send on the output port of correspondence, just pick up counting, when having data message normally to export on the output port of correspondence, then described timer is in reset mode, can not carry out timing and handle.
The timing cycle of described timer can be provided with different numerical value, to adapt to different working conditions.
Step 2, send administration module and detect and whether have data message to send on each output port, and when not having the data message transmission when detecting a certain output port on, then execution in step 3, promptly start the timer that is arranged on the described output port and pick up counting, execution in step 5 then; When detecting each output port and all have data message to send, then execution in step 4, are about to described timer and place reset mode, continue step 2 then.
Step 5, before the timing time no show timing cycle of described timer, whether continue to detect on the described output port has data message normally to send, when described transmission administration module detects when having data message to send on the described output port, then execution in step 6, be about to described timer and reset, and stop timing, continue step 2 then; When not having data message to send on detecting described output port, then execution in step 7.
Step 7, when the timing of described timer reaches timing cycle, then described transmission administration module reads the storage address information in the output queue of scold described output port correspondence, and from the message data cache module, read the message data of corresponding described memory address according to described storage address information, then it is discarded, discharge described storage address information corresponding queues resource and described message data corresponding cache resource.Simultaneously described timer is resetted, change step 2 then over to.
In case the link of output port interrupts, then will can not send data on the output port for a long time and protect literary composition, the timer on the at this moment described output port can reach the predetermined timing cycle.
Second embodiment provided by the invention is a kind of storing and forwarding device, and its operation principle comprises as shown in Figure 3:
Receiving management module, message data cache module, forwarding processing module and transmission administration module; Wherein said receiving management module comprises at least one receiving port, and described transmission administration module comprises the output queue of at least one output port, corresponding described output port and is arranged on timer on each output port; The timing cycle of described timer needed time when each data message sends during greater than normal output.
When carrying out data communication, described receiving management module intactly receives message data by described each receiving port, then to the corresponding cache resources of described message data cache module application, if can not apply for corresponding cache resources, then the message data that receives is discarded; If can apply for corresponding cache resources, then described receiving management module can obtain to store the memory address of the message data that receives, and according to described memory address with the storage that receives in described message data cache module, simultaneously the partial content information in described memory address and the message data (comprise " destination address " information of being positioned at the message data head with " source address " information etc.) as the forwarding process information, is sent to described forwarding processing module.
Described forwarding processing module is carried out analyzing and processing to transmitting process information, and determines to comprise the forwarding information of message data whether message data needs to abandon, or be forwarded to which output port etc. according to analysis result.After the forwarding processing module draws the forwarding information of message data, to the memory address of message data correspondence be written in the output queue of " first in first out " of output port of the correspondence in the described transmission administration module according to described forwarding information, wait to be sent then.
Whether described transmission administration module detects has data message to send on the described output port, when on detecting described output port, having data message normally to send, then constantly read the memory address in the output queue of described output port correspondence, and from the message data cache module, read the message data of corresponding described memory address according to described memory address, send by described output port then.
When described transmission administration module detects when not having data message to send on the described output port, then start the timer that is arranged on the described output port and pick up counting; If before the timing time no show timing cycle of described timer, and described transmission administration module detects when having data message to send on the described output port, and then described transmission administration module resets described timer, and stops timing.If before the timing time of described timer arrives timing cycle, all the time there is not data message on described output port, to send, then the timing of described timer can reach timing cycle, described timer can trigger described transmission administration module release and be disabled the resource that takies at this moment: that is to say, described transmission administration module then reads the memory address in the output queue of described output port correspondence, and from the message data cache module, read the message data of corresponding described memory address according to described memory address, then it is discarded, and discharge described memory address corresponding queues resource and described message data corresponding cache resource.Subsequently described timer is resetted, restart timing, go round and begin again like this, when the timing time of described timer reaches its timing cycle, then abandon a data message, and discharge corresponding buffer memory and queue resource.When described transmission administration module detects when having data message to send on the described port, just stop to abandon.
In the foregoing description, described timer also can not be arranged on each output port, and is independent of each output port and is arranged on and sends in the administration module, but this moment, described each timer still needed corresponding each output port.
The 3rd embodiment provided by the invention is another kind of storing and forwarding device, and the difference of itself and second embodiment is that described output port is arranged on and sends the administration module outside, and is connected with described transmission administration module.Each timer can be arranged on and send in the administration module this moment, and corresponding with each output port; Each timer also can be arranged on each corresponding output port.Provided output port as shown in Figure 4 and be arranged on and send the administration module outside, and each timer is arranged on and sends in the administration module, and with the schematic diagram of each output port to seasonable storing and forwarding device.
The information exchanging process among the 3rd embodiment between each module and timer and second embodiment are similar substantially, are not described in detail here.
By the specific embodiments of the invention described above as can be seen, when on detecting certain output port, not having data message to send among the present invention, start corresponding described output port and the timer that is provided with picks up counting; And when the timing time of described timer reached timing cycle, release was disabled the resource that takies.Therefore when the output port operation irregularity, the present invention not only can in time discharge the resource that has been assigned with, and does not need the participation of CPU, does not need the operation of software.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1, a kind of release is disabled the method for the resource that takies, and it is characterized in that, comprising:
A, when on detecting output port, not having data message to send, then start corresponding described output port and the timer that is provided with picks up counting;
B, when the timing time of described timer reaches timing cycle, discharge and to be disabled the resource that takies.
2, method according to claim 1 is characterized in that:
The timing cycle of described timer needed time when each data message sends during greater than normal output.
3, method according to claim 1 and 2 is characterized in that, described steps A specifically comprises:
Send administration module and detect and whether have data message to send on each output port that sets within it, and when when detecting a certain output port on, not having the data message transmission, then start corresponding described output port and the timer that is provided with picks up counting;
Or,
Send administration module and detect and whether have data message to send on each output port that is arranged on its outside, and when when detecting a certain output port on, not having the data message transmission, then corresponding described output port and the timer that is provided with picks up counting.
4, method according to claim 3 is characterized in that, specifically comprises at described step B:
B1, before the timing time no show timing cycle of described timer, whether continue to detect on the described output port has data message normally to send, and when on detecting described output port, having data message to send, then described timer is resetted, and stop timing, continue steps A then; When on detecting described output port, not having data message to send, execution in step B2 then;
B2, when the timing of described timer reaches timing cycle, then read the memory address in the output queue of described output port correspondence, and from the message data cache module, read the message data of corresponding described memory address according to described memory address, then it is discarded, and discharge described memory address corresponding queues resource and described message data corresponding cache resource; Simultaneously described timer is resetted, change steps A then over to.
5, a kind of storing and forwarding device, comprise at least one output port, it is characterized in that, corresponding each output port also comprises a timer, be used for when output port does not have data message to send, then startup picks up counting, and when timing time equals timing cycle, then triggers described storing and forwarding device release and be disabled the resource that takies.
6, storing and forwarding device according to claim 5 is characterized in that:
The timing cycle of described timer needed time when each data message sends during greater than normal output.
7, storing and forwarding device according to claim 5 is characterized in that:
Described timer is positioned at output port inside, or is positioned at the outside of output port.
8, storing and forwarding device according to claim 5 is characterized in that, also comprises:
The message data cache module is used for the buffer memory message data;
Sending administration module, whether have data message send, when not having data message to send, send the described timer of signal triggering if being used to detect described output port; And when the timing time of timer arrived timing cycle, being triggered discharged being disabled the resource that takies.
According to claim 5,6,7 or 8 described storing and forwarding devices, it is characterized in that 9, the described resource that takies that is disabled comprises:
The message resource of buffer memory in queue resource in the output queue of having distributed to output port but can not in the timing cycle of timer, being sent out and the corresponding described message data cache module.
10, storing and forwarding device according to claim 9 is characterized in that:
Described output port is positioned at described transmission administration module inside, or is positioned at described transmission administration module outside, and is connected with described transmission administration module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100783810A CN1984025B (en) | 2006-05-17 | 2006-05-17 | Method for releasing invalid-occupied resource and storage converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100783810A CN1984025B (en) | 2006-05-17 | 2006-05-17 | Method for releasing invalid-occupied resource and storage converter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1984025A true CN1984025A (en) | 2007-06-20 |
CN1984025B CN1984025B (en) | 2012-05-30 |
Family
ID=38166273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100783810A Expired - Fee Related CN1984025B (en) | 2006-05-17 | 2006-05-17 | Method for releasing invalid-occupied resource and storage converter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1984025B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137293A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Resource allocation method, user business terminal and head end system of streaming media service |
CN101699795B (en) * | 2009-10-29 | 2012-07-18 | 中兴通讯股份有限公司 | Message congestion processing method and system |
CN103077152A (en) * | 2012-12-25 | 2013-05-01 | 北京四方继保自动化股份有限公司 | Communication acceleration method used among chips of terminal equipment of intelligent substation |
CN104461924A (en) * | 2014-11-04 | 2015-03-25 | 福建星网锐捷网络有限公司 | Collection method and system for message memories |
WO2018014688A1 (en) * | 2016-07-18 | 2018-01-25 | 深圳市中兴微电子技术有限公司 | Frame stream control method and device, and computer storage medium |
CN110297732A (en) * | 2019-06-14 | 2019-10-01 | 杭州迪普科技股份有限公司 | A kind of detection method and device of FPGA state |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6529497B1 (en) * | 1998-04-30 | 2003-03-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Channel allocation and release for packet data services |
CN1281080C (en) * | 2004-06-08 | 2006-10-18 | 华为技术有限公司 | Method for realeasing terminal resource in media gateway |
-
2006
- 2006-05-17 CN CN2006100783810A patent/CN1984025B/en not_active Expired - Fee Related
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699795B (en) * | 2009-10-29 | 2012-07-18 | 中兴通讯股份有限公司 | Message congestion processing method and system |
CN102137293A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Resource allocation method, user business terminal and head end system of streaming media service |
CN103077152A (en) * | 2012-12-25 | 2013-05-01 | 北京四方继保自动化股份有限公司 | Communication acceleration method used among chips of terminal equipment of intelligent substation |
CN103077152B (en) * | 2012-12-25 | 2015-09-30 | 北京四方继保自动化股份有限公司 | A kind of communication acceleration method for terminal equipment of intelligent substation chip chamber |
CN104461924A (en) * | 2014-11-04 | 2015-03-25 | 福建星网锐捷网络有限公司 | Collection method and system for message memories |
WO2018014688A1 (en) * | 2016-07-18 | 2018-01-25 | 深圳市中兴微电子技术有限公司 | Frame stream control method and device, and computer storage medium |
CN107634914A (en) * | 2016-07-18 | 2018-01-26 | 深圳市中兴微电子技术有限公司 | A kind of frame method of flow control and device |
CN107634914B (en) * | 2016-07-18 | 2021-01-22 | 深圳市中兴微电子技术有限公司 | Frame stream control method and device |
CN110297732A (en) * | 2019-06-14 | 2019-10-01 | 杭州迪普科技股份有限公司 | A kind of detection method and device of FPGA state |
CN110297732B (en) * | 2019-06-14 | 2024-01-23 | 杭州迪普科技股份有限公司 | FPGA state detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN1984025B (en) | 2012-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1984025B (en) | Method for releasing invalid-occupied resource and storage converter | |
US20180316607A1 (en) | Providing non-interrupt failover using a link aggregation mechanism | |
WO2019233179A1 (en) | Data message detection method, device and system | |
JP3649580B2 (en) | A system for reporting errors in a distributed computer system. | |
CN103684835B (en) | Link fault reporting method and processing method, and transmission node and primary node | |
US7876769B2 (en) | Self-cleaning mechanism for error recovery | |
CN101227319B (en) | Redundancy switching method | |
CN101729231B (en) | Industrial Ethernet in distributed control system | |
US20140050078A1 (en) | Communication interruption time reduction method in a packet communication network | |
CN102415056A (en) | Pon system, station-end apparatus and subscriber-end apparatus | |
CN1777137A (en) | Data translation device and system based on ethernet and serial communication technology | |
JP3214454B2 (en) | Packet processing device with built-in program | |
CN103442035A (en) | Method for achieving dual-network hot standby redundancy of blank pipe automatic system | |
CN103139818A (en) | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) | |
US20030014516A1 (en) | Recovery support for reliable messaging | |
JP2915939B2 (en) | Real-time message exchange system | |
EP2426855A1 (en) | Address refresh method and system | |
CN100566293C (en) | The method that the method for multicast static group backup and multicast message are transmitted | |
CN101841424A (en) | EMS network management system and method based on SOCKS proxy connection | |
CN113507431B (en) | Message management method, device, equipment and machine-readable storage medium | |
JP2009200849A (en) | Frame monitoring device and frame monitoring method | |
CN101159494A (en) | Service protecting method for automatic exchange optical network | |
CN101951327B (en) | iSCSI network system and network fault detection method | |
US7649906B2 (en) | Method of reducing buffer usage by detecting missing fragments and idle links for multilink protocols and devices incorporating same | |
CN101848165B (en) | The method recovered after controlling interrupted communication link and interface board |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120530 Termination date: 20170517 |
|
CF01 | Termination of patent right due to non-payment of annual fee |