Data sending method and device
A data sending method and a technology of a data sending device, which are applied in the field of communication, can solve problems such as long processing time of data sending and receiving processes, affect other process scheduling processing, and reduce router performance, so as to improve polling scheduling efficiency and data sending and receiving efficiency, and avoid FIFO overflow error, performance improvement effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] figure 1 It is a flow chart of the data sending method provided by Embodiment 1 of the present invention. The embodiment of the present invention is suitable for performing data sending and receiving processing on multiple channels belonging to one physical port in the fast-forward mode, that is, polling and scheduling the channels in units of physical ports. When receiving and processing data on multiple channels of the physical port, the hardware has already received the data into the first-in-first-out queue (First Input First Output, FIFO for short), and each round-robin scheduling only needs to extract data from the FIFO and upload it to the upper layer for forwarding Or local processing, so the data receiving processing for one physical port will not affect the scheduling processing for other physical ports, but when all channels of a physical port have data to send at the same time, all channels of a physical port need to be rotated Inquiry and scheduling proces...
Embodiment 2
[0028] On the basis of Embodiment 1, the data to be sent is acquired from the core framework, and before the data is sent to the buffer queues of the corresponding channels, the buffer queues corresponding to all channels of the same physical port are reset. The data to be sent is obtained from the core framework, and if the obtained data is not empty, the data is sent to the buffer queue of the corresponding channel.
[0029] Before obtaining the data to be sent from the core framework, first reset the buffer queues corresponding to all channels of the same physical port, specifically, reset the hardware state of the channel, or clear the data in the buffer queue corresponding to the channel.
[0030] If the data to be sent obtained from the core framework is not empty, the data is sent to the buffer queue of the corresponding channel, and if the number of the data exceeds the length of the buffer queue, the data exceeding the length of the buffer queue is discarded.
[0031]...
Embodiment 3
[0034] figure 2It is a schematic diagram applicable to the data sending method provided by Embodiment 3 of the present invention. On the basis of the above embodiment, the sequentially sending the data in the buffer queue to the hardware FIFO, and sending the data by hardware includes sending one piece of the data in the buffer queue to the hardware FIFO, Make the hardware send the data from the hardware FIFO in a first-in-first-out manner; or send the data in a plurality of buffer queues to the hardware FIFO, so that the hardware sequentially sends the data from the hardware FIFO in a first-in-first-out manner Send the data.
[0035] Such as figure 2 As shown in , after sending the data obtained from the core framework to the buffer queue of the corresponding channel, the channel is polled, and if there is data to be sent in the buffer queue corresponding to the channel, the data in the buffer queue is sequentially sent to Hardware FIFO; for example, a channel group cont...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com