Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for preventing first input first output (FIFO) queue from overflowing

A first-in-first-out queue and device technology, applied in the field of data communication, can solve problems such as system crashes, data writing errors, internal state machine disorder, etc., and achieve the effect of avoiding overflow

Active Publication Date: 2014-04-16
MAIPU COMM TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the FIFO overflows repeatedly, a large number of additional interrupts will be generated, further increasing the overhead of the driver software system, reducing the processing performance of the driver software, and forming a vicious circle
In addition, some hardware transceivers will cause internal state machine disorder after the FIFO overflows multiple times. In mild cases, data will no longer be received, and in severe cases, data will be written to wrong memory addresses, resulting in system crashes.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for preventing first input first output (FIFO) queue from overflowing
  • Method and device for preventing first input first output (FIFO) queue from overflowing
  • Method and device for preventing first input first output (FIFO) queue from overflowing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The basic idea of ​​the method for avoiding the overflow of the first-in-first-out queue proposed by the present invention is as follows: on the basis of the original BD ring, a BD ring is added. The BD ring that the hardware transceiver can access is called the first BD ring, or fast BD ring. The other BD loop is called the second BD loop, or slow BD loop. By transferring data between two BD rings, the first BD ring is quickly processed by the driver software, ensuring that the hardware transceiver can always find free BD write data from the first BD ring, thus avoiding the hardware transceiver FIFO overflow.

[0044] The invention is easy to realize, has obvious effects, does not depend on the characteristics of special hardware transceivers, and is a completely universal driver software design. In the design, the method of exchanging space for time is used, and the contradiction between the driver software buffer and the hardware transceiver FIFO is successfully tr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for preventing a first input first output (FIFO) queue from overflowing. The method comprises the following steps of: A, establishing a first BD (buffer descriptor) ring and a second BD ring in a device memory; B, writing data in the FIFO in an idle BD in a first BD ring through a first write pointer by a hardware transceiver, and producing a receiving interruption by the hardware transceiver after the write-in; C, reading the data from the first BD ring by using a first read pointer after driving software detects the receiving interruption; writing the read data in the second BD ring by using a second write pointer by a driving software; reading the data from the second BD ring by using a second read pointer and processing the data by the driving software. By the scheme of the invention, the FIFO can be prevented from overflowing on the premise that the hardware transceiver is not modified; correspondingly, the driving receiving stability and reliability can be improved.

Description

technical field [0001] The invention relates to the technical field of data communication, in particular to a receiving mechanism of device driver software, and in particular to a method and device for avoiding overflow of a first-in-first-out queue. Background technique [0002] Currently, in network devices, the device driver software generally adopts a buffer descriptor (BD) ring mechanism for receiving data, and the BD ring is a data buffer between the driver software and the hardware transceiver. Such as figure 1 As shown, BD 104 is allocated in device memory 103. Each BD 104 is composed of a status flag and a buffer pointer. The status flag indicates whether the BD is idle or has data to be processed. The buffer pointer points to a memory area for storing pending processed data. Multiple BDs 104 connected end to end form a BD ring. The BD ring is a data buffer between the driver software 101 and the hardware transceiver 102 . [0003] When the device is initialized...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/879H04L49/901H04L45/16
Inventor 黄伟
Owner MAIPU COMM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More