Router and routing method
AssigneeRealtek Semiconductor Corp.
InventorsTSUNG JEN HO, CHUNG CHANG LIN
Life of this patent
Estimating the term…
Abstract
The application discloses a router coupled to a first device and a second device. The router includes a first packet input interface, a second packet input interface, a first register, a second register, a control circuit and a switch module. The switch module includes a control port, a first packet output interface and a second packet output interface. The application further discloses a routing method. The router and routing method saves idle time and improves quality of service.
Claims20
A router, coupled to a first device and a second device, the router comprising:
- a first packet input interface;
- a second packet input interface;
- a first register, configured to temporarily store a plurality of packets from the first packet input interface;
- a second register, configured to temporarily store a plurality of packets from the second packet input interface;
- a control circuit, configured to selectively read the first register or the second register to generate a plurality of packets corresponding to the first register or the second register;
- and
- a switch module, including:
- a first packet output interface, coupled to the first device;
- a second packet output interface, coupled to the second device;
- and
- a control port, configured to receive the plurality of packets generated by the control circuit to allow the switch module to accordingly generate a plurality of output packets corresponding to the first register or the second register to the first packet output interface or the second packet output interface;
- wherein, when the switch module generates the plurality of output packets corresponding to the first register to the first packet output interface according to the plurality of packets generated by the control circuit, and the control port receives a flow control signal for pausing transmission from the first packet input interface, the control port generates a register pause signal to the control circuit, so as to instruct the control circuit to pause reading the first register.
A routing method, configured to couple a first packet input interface or a second packet input interface to a first device and a second device through a first packet output interface and a second packet output interface, the routing method comprising:
- temporarily storing a plurality of packets from the first packet input interface in a first register;
- temporarily storing a plurality of packets from the second packet input interface in a second register;
- selectively reading the first register or the second register to generate a plurality of packets corresponding to the first register or the second register;
- receiving the plurality of packets and generating a plurality of output packets to the first packet output interface or the second packet output interface corresponding to the first register or the second register;
- and
- when generating the plurality of output packets corresponding to the first register to the first packet output interface according to the plurality of packets generated, and receiving a flow control signal for pausing transmission from the first packet input interface, generating a register pause signal to pause reading the first register.
Dependencies are inferred from the claim text.