Data retransmission device and method for distributing buffer to ports
A forwarding device and port technology, applied in the field of communication, can solve problems such as packet loss, unused port shared cache, waste of port exclusive cache, etc., and achieve the effect of improving usage efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] The first embodiment of the present invention provides a port buffer allocation method, such as image 3 As shown, including the following steps:
[0053] Step 301: The data forwarding device obtains the connection status of the port. When the port is not connected, go to step 302; when the port is connected, go to step 303;
[0054] The data forwarding device reads the chip port status register of the corresponding port, and the connection status of the port is stored in the register.
[0055] Step 302: The data forwarding device does not allocate a buffer for the port.
[0056] Step 303: The data forwarding device obtains the allocation mode of the buffer corresponding to the port, and allocates the buffer to the port according to the allocation mode.
[0057] Specifically, the data forwarding device stores the correspondence between the allocation mode of the buffer corresponding to the port and the port identifier (for example, the port number), and the data forwarding devic...
Embodiment 2
[0062] The second embodiment of the present invention provides a port buffer allocation method, such as Figure 4 As shown, including the following steps:
[0063] Step 401: The data forwarding device obtains the allocation mode of the buffer corresponding to the port.
[0064] Specifically, the allocation mode of the buffer corresponding to the port includes one or more of the following modes: normal mode, burst mode, and automatic mode.
[0065] Step 402: When the allocation mode of the buffer corresponding to the port is the normal mode, the data forwarding device obtains the connection status of the port. When the port is not connected, the data forwarding device does not allocate the buffer to the port. When the port is connected, the data forwarding The device allocates an exclusive buffer and a first shared buffer to the port.
[0066] Step 403: When the allocation mode of the buffer corresponding to the port is burst mode, the data forwarding device obtains the connection stat...
Embodiment 3
[0070] The third embodiment of the present invention provides a port buffer allocation method, such as Figure 5 As shown, the data forwarding device includes 4 ports A to D. Because port A is not connected, the data forwarding device senses that port A is not connected, and therefore does not allocate an exclusive buffer and a shared buffer to port A. The buffer allocation modes of port B, port C, and port D are: normal mode, burst mode, and auto mode. The data forwarding device stores the allocation mode of the buffer corresponding to each port. Preferably, configure the cache allocation mode of each port according to the cache utilization rate of each port. For example, configure the port for which the cache utilization rate is stable to be configured as normal mode or burst mode, and for ports that are difficult to determine the cache utilization rate, or cache utilization Ports with large rate changes are configured to auto mode. According to the normal mode or burst mod...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 