摘要:
Disclosed in the present invention are a method and a system for managing BIOS configuration data of a basic input/output system. The method includes: reading a BIOS program code, and executing a BIOS program; when executing the BIOS program, executing different code segments in the BIOS program according to read BIOS configuration data; and when new BIOS configuration data is required for executing the BIOS program, using a value in a new storage area as the new BIOS configuration data. Through the solution provided by the present invention, it can be ensured that, after the BIOS program is upgraded and when the number of configuration items is increased, current BIOS configuration data in a storage medium is still read effectively.
摘要:
The present invention provides a method and an apparatus for data traffic restriction, which is applied to a network device where a link aggregation group interface includes member ports located on different chipsets of single boards, firstly, configuring, for each link aggregation group interface, a credit bucket for storing tokens overflowing from a token bucket corresponding to each member port, and the tokens overflowing from the different token buckets are distinctively labeled; receiving a packet to be sent, if a number of tokens in the token bucket is not sufficient for sending the packet to be sent, borrowing, from the credit bucket, tokens overflowing from a non-current token bucket, if the tokens of the current token bucket and the borrowed tokens are sufficient for sending the packet to be sent, sending the packet to be sent, and meanwhile, reducing the number of tokens in the current token bucket and tokens in the credit bucket. A dynamic restriction of data traffic over a plurality of links of each link aggregation group interface in the network equipment is achieved, so that the sum of the data traffic over the member ports in the link aggregation group interfaces can be better matched with the entire data traffic restricted for the link aggregation group interfaces.
摘要:
Embodiments of the present invention provide a latch and a D flip-flop. The latch includes: a switch, a resistive random-access memory, a bleeder circuit, and a voltage converter. When the switch is in an on state, the voltage converter is configured to output an output signal of the latch according to an input signal of the latch, where the output signal remains consistent with the input signal. When the switch changes from the on state to an off state, the resistive random-access memory is configured to work together with the bleeder circuit to enable an output signal of the latch when the switch is in the off state to remain consistent with an output signal of the latch when the switch is in the on state, thereby implementing a nonvolatile latching function. Because fewer components are used in the latch in the embodiments of the present invention, a circuit structure is simple, a circuit area is reduced, and integrity of an existing logic circuit can be improved.
摘要:
The present invention provides a method and an apparatus for data traffic restriction, which is applied to a network device where a link aggregation group interface includes member ports located on different chipsets of single boards, firstly, configuring, for each link aggregation group interface, a credit bucket for storing tokens overflowing from a token bucket corresponding to each member port, and the tokens overflowing from the different token buckets are distinctively labeled; receiving a packet to be sent, if a number of tokens in the token bucket is not sufficient for sending the packet to be sent, borrowing, from the credit bucket, tokens overflowing from a non-current token bucket, if the tokens of the current token bucket and the borrowed tokens are sufficient for sending the packet to be sent, sending the packet to be sent, and meanwhile, reducing the number of tokens in the current token bucket and tokens in the credit bucket. A dynamic restriction of data traffic over a plurality of links of each link aggregation group interface in the network equipment is achieved, so that the sum of the data traffic over the member ports in the link aggregation group interfaces can be better matched with the entire data traffic restricted for the link aggregation group interfaces.