Random sequence generating device and random sequence generating method
By utilizing the deviation characteristics of individual network devices in a random sequence generating device to control the randomness of the latching time point, the problem of insufficient randomness of the network device identification number is solved and the possibility of identification number conflict is reduced.
Patent Information
- Application Number
- CN202211557462.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-12-06
AI Technical Summary
In the prior art, identification numbers of network devices are not random enough, resulting in a high possibility of conflict between identification numbers of different network devices.
By introducing a driving module, a delay module, a random sequence generation module and a trigger into the random sequence generation device, the process deviation, voltage deviation and ambient temperature difference of individual network devices are utilized to control the latching operation at the target time point and improve the randomness of the identification number.
The randomness of network device identification numbers is enhanced, reducing the possibility of identification number conflicts.
Smart Images

Figure CN116048459B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and specifically relates to a random sequence generation device and a random sequence generation method. Background Art
[0002] In a communication network, if the identification number of one network device matches that of another, it may affect the establishment of communication or the operation of the communication mechanism. In related art, a linear feedback shift register is typically used to generate the network device identification number. After the network device is powered on, the output of the linear feedback shift register is latched and used as the network device identification number.
[0003] However, the network device identification numbers generated by linear feedback shift registers in related technologies lack randomness, and there is a possibility of ID conflicts between different network devices. For example, if two network devices use the same network chip, the linear feedback shift registers on the same network chip have the same initial value, the same change pattern, and the same power-up process. Therefore, the linear feedback shift register of one network device may lock onto the same ID number as another network device, leading to ID conflicts between different network devices. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a random sequence generation device and a random sequence generation method, which can solve the problem of insufficient randomness of the identification numbers of network devices generated in the related art.
[0005] In a first aspect, an embodiment of the present application provides a random sequence generating device, comprising:
[0006] A driving module, a delay module, a random sequence generating module and a first trigger; the driving module is connected to the delay module, the delay module is connected to the first trigger, and the random sequence generating module is connected to the first trigger;
[0007] The random sequence generation module is used to generate a random sequence; the driving module is used to drive the delay module to work; the delay module is used to transmit a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device;
[0008] The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
[0009] In a second aspect, an embodiment of the present application provides a random sequence generation method, which is applied to the random sequence generation device described in the first aspect, comprising:
[0010] Generate a random sequence by the random sequence generation module;
[0011] Driving the delay module to work by the driving module;
[0012] The delay module transmits a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device;
[0013] The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
[0014] In an embodiment of the present application, a random sequence generating device includes: a driving module, a delay module, a random sequence generating module and a first trigger; the driving module is connected to the delay module, the delay module is connected to the first trigger, and the random sequence generating module is connected to the first trigger; the random sequence generating module is used to generate a random sequence; the driving module is used to drive the delay module to operate; the delay module is used to transmit a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of the target position in the random sequence as an identification number of the network device; wherein the target position corresponds to the target time point, and the target time point changes with the change of the performance indicator of the driving module. In this way, the driving module drives the delay module to work, and the delay module transmits a locking signal to the first trigger at the target time point after waiting for a certain period of time, and latches the value of the target position in the random sequence generated by the random sequence generation module as the identification number of the network device. Since the target time point changes with the change of the performance indicators of the driving module, and the performance indicators of the driving module fluctuate with the process deviation and voltage deviation of the individual network device when the driving module is working, the actual delay time (i.e., the target time point) of the delay module has large differences. The values of different positions in the random sequence locked at different target time points have large differences, which improves the randomness of the identification number of the network device and solves the problem of insufficient randomness of the identification number of the network device generated in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic structural diagram of a random sequence generating device provided in an embodiment of the present application;
[0016] Figure 2 is a schematic structural diagram of another random sequence generating device provided in an embodiment of the present application;
[0017] Figure 3 is a schematic structural diagram of another random sequence generating device provided in an embodiment of the present application;
[0018] Figure 4is a schematic structural diagram of another random sequence generating device provided in an embodiment of the present application;
[0019] Figure 5 is a schematic structural diagram of another random sequence generating device provided in an embodiment of the present application;
[0020] Figure 6 is a schematic structural diagram of another random sequence generating device provided in an embodiment of the present application;
[0021] Figure 7 This is a schematic flow chart of a random sequence generation method provided in an embodiment of the present application.
[0022] Description of reference numerals:
[0023] 100-random sequence generating device; 110-driving module; 120-delay module; 130-random sequence generating module; 140-first trigger; 150-reset signal generating module; 160-first data selector; 170-temperature sensing module; 180-power supply module; 190-power supply detection module; 200-clock module; 210-crystal oscillator; 220-phase-locked loop; 230-second data selector; 240-second trigger; 300-network chip. DETAILED DESCRIPTION
[0024] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0025] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0026] In order to solve the problem of insufficient randomness of the identification numbers of network devices generated in the related art, which may cause the identification number of a network device to be the same as that of another network device, thereby resulting in identification number conflicts between different network devices, the embodiment of the present application applies the various deviation characteristics existing between different individual network devices to the random sequence generation module, thereby improving the randomness of the identification numbers of the generated network devices and reducing the possibility of identification number conflicts of network devices to a certain extent.
[0027] For example, the applicant has noticed the following deviations between different network devices using the random sequence generation module of the same network chip:
[0028] 1) The network chip is located at different positions on the wafer. Due to certain deviations in manufacturing process control (including doping concentration, diffusion depth, etching degree, etc.), the speed of the MOS tube will vary. This difference will affect the operating speed of the circuit. The embodiment of the present application can apply this difference characteristic to the random sequence generation module.
[0029] 2) In actual applications, the power supply voltage connected to the network device itself also has a certain fluctuation, which will also affect the circuit working characteristics. The embodiment of the present application can apply this difference characteristic to the random sequence generation module.
[0030] 3) Different network devices are located in different environments, and the ambient temperature may also have slight differences. In addition, the temperature sensor module itself also has random detection errors. This difference characteristic can be applied to the random sequence generation module.
[0031] 4) External components of network equipment also have process deviations, which can also cause slight time deviations in the execution of the same circuit. This error characteristic can be applied to the random sequence generation module.
[0032] Based on this, the random sequence generation device provided in the embodiment of the present application can apply at least one of the multiple deviation characteristics between the above-mentioned different individual network devices to the random sequence generation module, for example:
[0033] 1) The embodiments of the present application can utilize differences in voltage and manufacturing process to allow the starting operating points of the random sequence generation module to be different, thereby improving the randomness of the random sequence generated by the random sequence generation module;
[0034] 2) The embodiments of the present application can utilize the frequency deviation of the clock module to cause deviations in the operating clock of the random sequence generation module. For example, the first stage of the random circuit uses the output of an external crystal oscillator as the operating clock, and the second stage uses the output of a phase-locked loop as the operating clock. Due to the frequency deviation of the external oscillator and the process deviations of different network devices, the output time, stabilization time, and frequency of the phase-locked loop will also vary. As a result, the operation of the circuits in the two stages will vary, causing deviations in the operating clock of the random sequence generation module.
[0035] 3) The embodiment of the present application can utilize the slight difference in ambient temperature and the random detection error of the temperature sensing module itself to combine the output of the temperature sensing module with the output of the random sequence generation module.
[0036] 4) Embodiments of the present application can utilize differences in voltage and manufacturing processes to control the latching time of the results from the random sequence generation module. For example, a driver module can be designed to act as a working clock to drive a delay circuit, which can control the latching time of the random sequence generation module's latching results. Because the driver module's operating performance fluctuates with process and voltage deviations of individual network devices, the actual delay time (i.e., latching time) of the delay module can vary significantly. Consequently, different latching time points can result in significantly different values at different positions in the random sequence.
[0037] It should be noted that the various deviation characteristics between the above-mentioned different individual network devices are independent of each other. The embodiment of the present application can apply any one of the various deviation characteristics between the above-mentioned different individual network devices or a combination of two or more deviation characteristics to the random sequence generation module according to actual needs, so as to improve the randomness of the identification number of the generated network device and reduce the possibility of identification number conflict of the network device.
[0038] The random sequence generating device provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0039] Figure 1 This is a schematic structural diagram of a random sequence generating device provided in an embodiment of the present application.
[0040] like Figure 1 As shown, the random sequence generating device provided in the embodiment of the present application may include:
[0041] A driving module 110, a delay module 120, a random sequence generating module 130 and a first trigger 140; the driving module 110 is connected to the delay module 120, the delay module 120 is connected to the first trigger 140, and the random sequence generating module 130 is connected to the first trigger 140;
[0042] The random sequence generation module 130 is used to generate a random sequence; the driving module 110 is used to drive the delay module to work; the delay module 120 is used to transmit a lock signal to the first trigger 140 at a target time point, so that the first trigger 140 outputs the value of the target position in the random sequence as the identification number of the network device;
[0043] The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
[0044] The driving module 110 may be a module that drives the delay module 120 to start working, such as an RC circuit, a power-on reset circuit, etc. Alternatively, the driving module 110 may be a module that provides an operating clock to the delay module 120 to drive the delay module 120 to work, such as an oscillator, a phase-locked loop, etc., and this application does not impose any specific limitations.
[0045] The delay module 120 may be a module for delaying a trigger signal, such as a delay circuit, etc., and this application does not impose any specific limitation thereto.
[0046] The random sequence generation module 130 may be a module that generates a random sequence. For example, to reduce the cost of the random sequence generation module, the random sequence generation module may be a linear feedback shift register. For another example, to improve the randomness of the random sequence generation module, the random sequence generation module may be a hardware random number generator, etc., and this application does not impose any specific limitations.
[0047] The first trigger 140 may be a module that latches and outputs the random sequence generated by the random sequence generation module 130 , for example, a D trigger or other types of triggers, which is not specifically limited in this application.
[0048] In an embodiment of the present application, a random sequence generating device can be used to generate a random sequence value as an identification number of a network device. The random sequence generating device can be a device in a network device for generating an identification number of a network device. Specifically, the random sequence generating module 130 is used to generate a random sequence, and the first trigger 140 is used to latch the output result of the random sequence generating module 130 as the identification number of the network device. The delay module 120 is used to control the latching time point (i.e., the target time point) at which the first trigger 140 latches the output result of the random sequence generating module. When the driving module 110 drives the delay module to work, the performance indicators of the driving module fluctuate with the process deviation and voltage deviation of the individual network devices, resulting in differences in the latching time point controlled by the delay module 120.
[0049] In the embodiment of the present application, the target time point can indicate the actual delay time of the delay module 120. Since the delay module 120 is driven by the driving module 110 to start working, the actual delay time of the delay module 120 changes with the change of the performance index of the driving module. When the driving module is working, the performance index of the driving module fluctuates with the process deviation and voltage deviation of different individual network devices, resulting in a large difference between the actual delay time of the delay module 120 and the theoretical delay time. Furthermore, the values of different positions in the random sequence locked by the delay module 120 at different target time points are greatly different, which improves the randomness of the value of the target position in the random sequence output by the first trigger 140, reduces the possibility of conflict in the identification number of the network device to a certain extent, and solves the problem of insufficient randomness of the identification number of the network device generated in the related art.
[0050] According to an embodiment of the present application, a random sequence generating device is provided, comprising a driving module, a delay module, a random sequence generating module, and a first trigger; the driving module is connected to the delay module, the delay module is connected to the first trigger, and the random sequence generating module is connected to the first trigger; the random sequence generating module is configured to generate a random sequence; the driving module is configured to drive the delay module to operate; the delay module is configured to transmit a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of a target position in the random sequence as an identification number of a network device; wherein the target position corresponds to the target time point, and the target time point varies with changes in a performance indicator of the driving module. In this way, the driving module drives the delay module to work, and the delay module transmits a locking signal to the first trigger at the target time point after waiting for a certain period of time, and latches the value of the target position in the random sequence generated by the random sequence generation module as the identification number of the network device. Since the target time point changes with the change of the performance indicators of the driving module, and the performance indicators of the driving module fluctuate with the process deviation and voltage deviation of the individual network device when the driving module is working, the actual delay time (i.e., the target time point) of the delay module has large differences. The values of different positions in the random sequence locked at different target time points have large differences, which improves the randomness of the identification number of the network device and solves the problem of insufficient randomness of the identification number of the network device generated in the related art.
[0051] In the embodiment of the present application, the driver module 110 may be a module that drives the delay module 120 to start working. Fluctuations in the performance indicators of the driver module may affect the starting time point of the delay module 120, thereby causing differences in the actual delay time (i.e., the target time point) of the delay module 120. Alternatively, the driver module 110 may be a module that provides an operating clock to the delay module 120 to drive the delay module 120 to work. Fluctuations in the performance indicators of the driver module may affect the operating frequency of the delay module 120, thereby causing differences in the actual delay time (i.e., the target time point) of the delay module 120.
[0052] In a specific embodiment, when the driver module 110 provides a working clock to the delay module 120, the driver module 110 may include an oscillator, and the performance index of the driver module includes a drift index of the oscillator, and the target time point changes with the change of the drift index of the oscillator. It can be understood that the working clock provided by the oscillator drifts significantly with the process deviation and voltage deviation of the individual network devices, causing the actual delay time of the delay module 120 to show a large difference. The actual delay time of the delay module 120 indicates the latching time point (i.e., the target time point) at which the first trigger 140 latches the output result of the random sequence generation module. The values locked at different latching time points show a large difference, thereby improving the randomness of the identification number of the network device.
[0053] In another specific embodiment, the embodiment of the present application can indirectly improve the randomness of the actual delay time (ie, the target time point) of the delay module 120 by improving the randomness of the starting working time point of the driving module 110.
[0054] For example, if Figure 2 As shown, the random sequence generating device further includes a reset signal generating module 150; the reset signal generating module 150 is connected to the driving module 110, and the reset signal generating module 150 generates a reset signal at a specified time point, and the reset signal is used to control the driving module 110 to start working; wherein, the specified time point changes with the change of the performance index of the reset signal generating module.
[0055] It can be understood that the reset signal generating module 150 generates a reset signal at a specified time point to control the driving module 110 to start working. The specified time point can be understood as the starting working time point of the driving module 110.
[0056] In the embodiment of the present application, the reset signal generating module 150 may be an RC circuit. The designated time point at which the RC circuit generates the reset signal during operation can vary significantly with process and voltage variations of individual network devices, leading to significant differences in the starting operating time point of the driver module 110. Consequently, the driver module 110 drives the delay module to operate at different starting operating time points, causing significant differences in the actual delay time of the delay module 120, thereby increasing the randomness of the latching time point (i.e., the target time point) controlled by the delay module 120.
[0057] In addition, in another specific embodiment, the embodiment of the present application can also utilize the subtle differences in ambient temperature and the random detection errors of the temperature sensing module itself to combine the output of the temperature sensing module into the output of the random sequence generation module, thereby improving the randomness of the value of the target position in the random sequence locked by the first trigger.
[0058] For example, if Figure 3 As shown, the random sequence generating device provided in the embodiment of the present application may further include a first data selector 160 and a temperature sensing module 170;
[0059] The random sequence generating module 130 has a first output terminal for outputting a first part of the random sequence and a second output terminal for outputting a second part of the random sequence;
[0060] The first data selector 160 has a first input terminal, a second input terminal, a control terminal and an output terminal;
[0061] A first output terminal of the random sequence generation module 130 is connected to a first input terminal of the first data selector 160, a second output terminal of the random sequence generation module 130 is connected to a second input terminal of the first data selector 160, the temperature sensing module 170 is connected to a control terminal of the first data selector 160, and an output terminal of the first data selector 160 is connected to the first trigger 140;
[0062] The temperature sensing module 170 generates a control signal for controlling the first data selector at a switching time point, and the switching time point changes with changes in the performance index of the temperature sensing module or the ambient temperature.
[0063] It can be understood that there is a high-resolution analog-to-digital converter inside the temperature sensing module 170. Due to the difference in temperature and the presence of noise, the sampling output of the analog-to-digital converter between different network device individuals will show a certain degree of randomness. In this application, its output is used as the selection signal of the first data selector 160 to select different parts of the random sequence output by the random sequence generation module 130.
[0064] The first data selector 160 may be a multiple-select-one selector, and is configured to transmit the value of a designated input terminal among the multiple input terminals to the first trigger 140 under the control of the temperature sensing module 170. Since the values input to each input terminal of the first data selector 160 are values of different parts of the random sequence generated by the random sequence generating module 130, and the control signal transmitted by the temperature sensing module 170 to the first data selector 160 varies with fluctuations in ambient temperature deviation and detection random error, the first data selector 160 transmits values of different input terminals to the first trigger 140, thereby improving the randomness of the value latched by the first trigger 140 and, in turn, improving the randomness of the value at the target position in the random sequence locked by the first trigger.
[0065] For example, the random sequence generated by the random sequence generation module 130 is 16-bit data. The upper 8 bits of the random sequence are input to the first input terminal of the first data selector 160, and the lower 8 bits of the random sequence are input to the second input terminal of the first data selector 160. The temperature sensing module 170 randomly outputs a first selection signal or a second selection signal to the first data selector 160 in response to fluctuations in ambient temperature deviation and detection deviation. When the temperature sensing module 170 outputs the first selection signal, the first data selector 160 transmits the upper 8 bits of the selected random sequence to the first flip-flop 140; when the temperature sensing module 170 outputs the second selection signal, the first data selector 160 transmits the lower 8 bits of the selected random sequence to the first flip-flop 140.
[0066] For example, the first selection signal output by the temperature sensor module 170 is a low-level signal, and the second selection signal output by the temperature sensor module 170 is a high-level signal. As the ambient temperature deviation and the temperature sensor module detection deviation fluctuate, the temperature sensor module 170 may switch from outputting a low-level signal to outputting a high-level signal at a random moment, causing the first data selector 160 to switch from transmitting the upper 8 bits of the random sequence originally selected to the first flip-flop 140 to selecting the lower 8 bits of the random sequence to be transmitted to the first flip-flop 140. Alternatively, as the ambient temperature deviation and the temperature sensor module detection deviation fluctuate, the temperature sensor module 170 may switch from outputting a high-level signal to outputting a low-level signal at a random moment, causing the first data selector 160 to switch from transmitting the lower 8 bits of the random sequence originally selected to the first flip-flop 140 to selecting the upper 8 bits of the random sequence to be transmitted to the first flip-flop 140. Due to the randomness of the fluctuations in the ambient temperature deviation and the temperature sensor module detection deviation, the switching timing of the first data selector 160 is also random.
[0067] In this way, since the switching time point at which the temperature sensing module generates the control signal changes with the performance indicators of the temperature sensing module or the ambient temperature, the first data selector 160 will randomly output different parts of the random sequence to the first trigger 140, thereby improving the randomness of the value of the target position in the random sequence locked by the first trigger.
[0068] It should be noted that in the above example, the bit width of the value of the target position in the random sequence locked by the first trigger 140 is 8 bits. The embodiment of the present application can modify the bit width of the random sequence generation module 130 according to actual needs to output values of different bit widths as the identification number of the network device.
[0069] In addition, in addition to applying the deviation characteristics to the random sequence output by the random sequence generation module 130 as mentioned in the above embodiment, the embodiment of the present application can also apply the deviation characteristics to the working circuit of the random sequence generation module 130 itself (such as the starting working time point or the working clock, etc.) to increase the true randomness of the random sequence output by the random sequence generation module 130 itself. The following example illustrates this.
[0070] In a specific embodiment, the embodiment of the present application can also apply the deviation characteristic to the starting working time point of the random sequence generation module 130. For example, Figure 4 As shown, the random sequence generating device further includes a power supply module 180 and a power supply detection module 190; the power supply module 180 is connected to the power supply detection module 190; the power supply detection module 190 is connected to the random sequence generating module 130;
[0071] The power detection module 190 is configured to generate a release signal when detecting that the voltage signal of the power module 180 reaches a threshold value, so as to control the random sequence generation module 130 to start operating; wherein the starting time point of the random sequence generation module 130 starting to operate varies with changes in the performance indicators of the power module 180.
[0072] The power detection module 190 may be a power-on reset circuit or other reset circuit, etc., and this application does not impose any specific limitations. The power module 180 may be provided with a voltage signal by a power supply device external to the random sequence generator. When the voltage signal provided by the power module 180 fluctuates with the voltage deviation of the external power supply device, the starting time point at which the random sequence generator 130 begins to operate may be varied, thereby improving the true randomness of the random sequence generated by the random sequence generator 130.
[0073] It is understandable that the random sequence generated by the LFSR (Linear-feedback shift register) itself has pseudo-randomness. For example, the LFSR can generate a repeated random sequence at a fixed period. If the value of the random sequence generated by the LFSR at the current moment is determined, the value of the random sequence generated by the LFSR at the next moment can be inferred, resulting in insufficient randomness of the random sequence generated by the LFSR itself. Compared to simply using the LFSR as a random sequence generation module to generate a random sequence, the above example of the present application improves the randomness of the value output by the random sequence generation module at a certain time point by improving the randomness of the starting time point when the random sequence generation module starts working, thereby improving the true randomness of the random sequence generated by the random sequence generation module.
[0074] In another specific embodiment, the present invention can also apply the deviation characteristics to the operating clock of the random sequence generation module 130. For example, the random sequence generation device provided in the present invention further includes a clock module, which is connected to the random sequence generation module; the clock module is configured to provide an operating clock to the random sequence generation module; wherein the operating frequency of the random sequence generation module varies with changes in the performance indicators of the clock module. It is understood that when the performance indicators of the clock module fluctuate with process deviations and voltage deviations of individual network devices, the operating frequency of the random sequence generation module may exhibit differences, thereby improving the randomness of the random sequence generated by the random sequence generation module 130.
[0075] For example, if Figure 5 As shown, in the case where the random sequence generating device further includes a clock module 200, the clock module 200 includes a crystal oscillator 210, a phase-locked loop 220, a second data selector 230 and a second flip-flop 240;
[0076] The crystal oscillator 210 is connected to the phase-locked loop 220;
[0077] The second data selector 230 has a first input terminal, a second input terminal, a control terminal and an output terminal;
[0078] The crystal oscillator 210 is connected to the first input end of the second data selector 230; the phase-locked loop 220 is connected to the second input end of the second data selector 230; the phase-locked loop 220 is connected to the control end of the second data selector 230 through the second trigger 240; and the output end of the second data selector 230 is connected to the random sequence generation module 130.
[0079] It is understandable that the random sequence generation module 130 can use different working clocks in different stages. For example, the random sequence generation module 130 uses the output of the crystal oscillator as the working clock in the first stage and uses the output of the phase-locked loop 220 as the working clock in the second stage. Due to the frequency deviation of the crystal oscillator and the process deviation of different individual network devices, the output time, stabilization time and frequency of the phase-locked loop 220 will also be biased. Therefore, the working frequency of the random sequence generation module 130 in the two stages will vary, making the working frequency of the random sequence generation module different, thereby improving the randomness of the random sequence generated by the random sequence generation module 130.
[0080] The operating frequency of the crystal oscillator 210 may be 25 MHz, and the operating frequency of the phase-locked loop 220 may be 1 GHz.
[0081] For example, the operating clock of the random sequence generation module 130 is provided by the crystal oscillator 210 and the phase-locked loop 220. In the first stage, the random sequence generation module 130 is provided with the operating clock by the crystal oscillator 210. At the same time, the crystal oscillator 210 provides the operating clock to the phase-locked loop 220 to drive the phase-locked loop 220 to operate. After the phase-locked loop 220 outputs the first clock, the phase-locked loop 220 controls the second trigger 240 so that the second trigger 240 transmits a switching signal to the second selector 230. The second data selector 230 switches the operating clock of the random sequence generation module 130 to the phase-locked loop 220, so that the random sequence generation module 130 is provided with the operating clock by the phase-locked loop 220 in the second stage. Due to differences in the manufacturing process and voltage of different network chips 300, there are also slight deviations in the frequency of the crystal oscillator 210 outside the network chip 300. The timing of the first clock output by the phase-locked loop 220, the timing of the stable output clock of the phase-locked loop 220, and the frequency of the output clock of the phase-locked loop 220 all vary, causing the operating frequency of the random sequence generation module 130 to vary, thereby improving the variability of the random sequences generated by the random sequence generation module 130.
[0082] It is understandable that because the LFSR generates repeated random sequences in fixed rounds, the randomness of the random sequence is insufficient. Compared to simply using the LFSR as a random sequence generation module to generate a random sequence, the above example of the present application improves the randomness of the operating frequency of the random sequence generation module and the randomness of the value output by the random sequence generation module at a certain time point by varying the frequency of the crystal oscillator, the time point of the first clock output by the phase-locked loop, the time point of the phase-locked loop output clock stabilization, and the frequency of the phase-locked loop output clock. This improves the true randomness of the random sequence generated by the random sequence generation module.
[0083] Furthermore, in practical applications, embodiments of the present application can further reduce the cost of the random sequence generator while improving the randomness of the identification number of the network device generated by the random sequence generator. Where the random sequence generator includes a driver module, a delay module, a random sequence generator module, a first trigger, a first data selector, a temperature sensor module, a power detection module, a phase-locked loop (PLL), a second data selector, and a second trigger, the driver module, the delay module, the random sequence generator module, the first trigger, the first data selector, the temperature sensor module, the power detection module, the PLL, the second data selector, and the second trigger can all be integrated on a network chip. Since the network chip incorporating the above modules is readily available and does not require customization, the cost of the random sequence generator can be further reduced.
[0084] For example, if Figure 6 As shown, the random sequence generating device provided in the embodiment of the present application may include:
[0085] Driving module 110, delay module 120, random sequence generating module 130, first trigger 140, reset signal generating module 150, first data selector 160, temperature sensing module 170, power supply module 180, power supply detecting module 190, crystal oscillator 210, phase-locked loop 220, second data selector 230 and second trigger 240;
[0086] The driving module 110 is connected to the delay module 120, the delay module 120 is connected to the first trigger 140, and the random sequence generating module 130 is connected to the first trigger 140;
[0087] The random sequence generation module 130 is used to generate a random sequence; the driving module 110 is used to drive the delay module 120 to operate; the delay module 120 is used to transmit a lock signal to the first trigger 140 at a target time point, so that the first trigger 140 outputs the value of the target position in the random sequence as the identification number of the network device; wherein the target position corresponds to the target time point, and the target time point changes with the performance indicator of the driving module;
[0088] The reset signal generating module 150 is connected to the driving module 110. The reset signal generating module 150 generates a reset signal at a specified time point. The reset signal is used to control the driving module 110 to start working. The specified time point changes with the performance index of the reset signal generating module.
[0089] The random sequence generating module 130 has a first output terminal for outputting a first part of the random sequence and a second output terminal for outputting a second part of the random sequence;
[0090] The first data selector 160 has a first input terminal, a second input terminal, a control terminal and an output terminal;
[0091] A first output terminal of the random sequence generation module 130 is connected to a first input terminal of the first data selector 160, a second output terminal of the random sequence generation module 130 is connected to a second input terminal of the first data selector 160, the temperature sensing module 170 is connected to a control terminal of the first data selector 160, and an output terminal of the first data selector 160 is connected to the first trigger 140;
[0092] The power supply module 180 is connected to the power supply detection module 190; the power supply detection module 190 is connected to the random sequence generation module 139;
[0093] The power detection module 190 is configured to generate a release signal when detecting that the voltage signal of the power module 180 reaches a threshold value, so as to control the random sequence generation module 130 to start operating; wherein the starting time point of the random sequence generation module starting to operate varies with the performance indicators of the power module;
[0094] The crystal oscillator 210 is connected to the phase-locked loop 220;
[0095] The second data selector 230 has a first input terminal, a second input terminal, a control terminal and an output terminal;
[0096] The crystal oscillator 210 is connected to the first input terminal of the second data selector 230; the phase-locked loop 220 is connected to the second input terminal of the second data selector 230; the phase-locked loop 220 is connected to the control terminal of the second data selector 230 via the second flip-flop 240; the output terminal of the second data selector 230 is connected to the random sequence generation module 130;
[0097] The driving module 110, the delay module 120, the random sequence generating module 130, the first trigger 140, the first data selector 160, the temperature sensing module 170, the power supply detection module 190, the phase-locked loop 220, the second data selector 230 and the second trigger 240 are integrated on the network chip 300.
[0098] Among them, the performance indicators of the above-mentioned modules mentioned in the embodiments of the present application may refer to indicators such as drift indicators or jitter indicators that characterize deviation characteristics, and the present application does not make specific restrictions here.
[0099] In actual applications, on the network chip 300, the driving module 110 can be an oscillator; the delay module 120 can be a delay circuit; the random sequence generation module 130 can be a linear feedback shift register; the first trigger 140 and the second trigger 240 can be D triggers; the first data selector 160 and the second data selector 230 can be two-to-one data selectors; the power detection module 190 can be a power-on reset circuit, and the temperature sensing module 170 can be a temperature sensing circuit.
[0100] In actual applications, outside the network chip 300, the reset signal generating module 150 can be an RC circuit set outside the network chip 300, the power supply module 180 can be a power supply set outside the network chip 300, and the crystal oscillator 210 can be a crystal oscillator set outside the network chip 300.
[0101] In this way, by combining the different characteristics of the existing modules of the network chip 300 and applying them to the random sequence generation module, a random sequence generation device is obtained. Since the network chip 300 itself, which integrates the above-mentioned multiple modules, is easy to obtain and does not need to be customized, the cost of the random sequence generation device is further reduced while improving the randomness of the identification number of the network device generated by the random sequence generation device, and it is easy to implement.
[0102] It should be noted that, based on the same concept, the embodiments of the present application may also provide a random sequence generation method, and the execution entity may be the random sequence generation device provided by any of the above embodiments.
[0103] Figure 7 This is a schematic flow chart of a random sequence generation method provided in an embodiment of the present application.
[0104] like Figure 7 As shown, the random sequence generation method provided in the embodiment of the present application, applied to the random sequence generation device provided in any of the above embodiments, may include:
[0105] Step 710: Generate a random sequence through the random sequence generation module;
[0106] Step 720: driving the delay module to operate via the driving module;
[0107] Step 730: The delay module transmits a lock signal to the first trigger at the target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device;
[0108] The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
[0109] According to the random sequence generation method provided by the embodiment of the present application, a random sequence is generated by the random sequence generation module; the delay module is driven to work by the driver module; the delay module transmits a locking signal to the first trigger at the target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device; wherein the target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driver module. In this way, the driver module drives the delay module to work, and the delay module waits for a certain period of time and then transmits a locking signal to the first trigger at the target time point, latching the value of the target position in the random sequence generated by the random sequence generation module as the identification number of the network device. Since the target time point changes with the change of the performance index of the driver module, and the performance index of the driver module fluctuates with the process deviation and voltage deviation of the individual network device when the driver module is working, the actual delay time (i.e., the target time point) of the delay module varies greatly, and the values of different positions in the random sequence locked at different target time points vary greatly, thereby improving the randomness of the identification number of the network device and solving the problem of insufficient randomness of the identification number of the network device generated in the related art.
[0110] The random sequence generation device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.
[0111] The random sequence generating device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine (ATM), or an automated machine, etc., which are not specifically limited in the embodiments of the present application.
[0112] The random sequence generating device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0113] Optionally, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they will not be described here.
[0114] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0115] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0116] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0117] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0119] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A random sequence generating device, characterized in that: include: A driving module, a delay module, a random sequence generating module and a first trigger; the driving module is connected to the delay module, the delay module is connected to the first trigger, and the random sequence generating module is connected to the first trigger; The random sequence generation module is used to generate a random sequence; the driving module is used to drive the delay module to work; the delay module is used to transmit a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device; The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
2. The random sequence generating device according to claim 1, characterized in that: The driving module includes an oscillator, the performance index of the driving module includes a drift index of the oscillator, and the target time point changes with the change of the drift index of the oscillator.
3. The random sequence generating device according to claim 1, characterized in that: The random sequence generating device further includes a reset signal generating module; The reset signal generating module is connected to the driving module, and the reset signal generating module generates a reset signal at a specified time point, and the reset signal is used to control the driving module to start working; wherein, the specified time point changes with the change of the performance index of the reset signal generating module.
4. The random sequence generating device according to any one of claims 1 to 3, characterized in that: The random sequence generating device further includes a first data selector and a temperature sensing module; The random sequence generation module has a first output terminal for outputting a first portion of the random sequence and a second output terminal for outputting a second portion of the random sequence; The first data selector has a first input terminal, a second input terminal, a control terminal and an output terminal; a first output terminal of the random sequence generating module connected to the first input terminal of the first data selector, a second output terminal of the random sequence generating module connected to the second input terminal of the first data selector, the temperature sensing module connected to the control terminal of the first data selector, and an output terminal of the first data selector connected to the first trigger; The temperature sensing module generates a control signal for controlling the first data selector at a switching time point, and the switching time point changes with changes in performance indicators of the temperature sensing module or ambient temperature.
5. The random sequence generating device according to claim 1, characterized in that: The random sequence generating device further comprises a power supply module and a power supply detection module; the power supply module is connected to the power supply detection module; the power supply detection module is connected to the random sequence generating module; The power detection module is used to generate a release signal when detecting that the voltage signal of the power module reaches a threshold value, so as to control the random sequence generation module to start working; wherein the starting time point of the random sequence generation module starting to work varies with the change of the performance index of the power module.
6. The random sequence generating device according to claim 1, characterized in that: The random sequence generating device further includes a clock module, which is connected to the random sequence generating module; the clock module is used to provide a working clock to the random sequence generating module; wherein the working frequency of the random sequence generating module changes with the performance index of the clock module.
7. The random sequence generating device according to claim 6, characterized in that: The clock module includes a crystal oscillator, a phase-locked loop, a second data selector and a second trigger; The crystal oscillator is connected to the phase-locked loop; The second data selector has a first input terminal, a second input terminal, a control terminal and an output terminal; The crystal oscillator is connected to the first input end of the second data selector; the phase-locked loop is connected to the second input end of the second data selector; the phase-locked loop is connected to the control end of the second data selector through the second trigger; and the output end of the second data selector is connected to the random sequence generation module.
8. The random sequence generating device according to claim 1, characterized in that: The random sequence generating module is a linear feedback shift register.
9. The random sequence generating device according to claim 1, characterized in that: When the random sequence generating device further includes a first data selector, a temperature sensing module, a power detection module, a phase-locked loop, a second data selector and a second trigger, the driving module, the delay module, the random sequence generating module, the first trigger, the first data selector, the temperature sensing module, the power detection module, the phase-locked loop, the second data selector and the second trigger are integrated on a network chip.
10. A random sequence generation method, applied to the random sequence generation device according to claim 1, characterized in that: include: Generate a random sequence by the random sequence generation module; Driving the delay module to work by the driving module; The delay module transmits a locking signal to the first trigger at a target time point, so that the first trigger outputs the value of the target position in the random sequence as the identification number of the network device; The target position corresponds to the target time point, and the target time point changes with the change of the performance index of the driving module.
Citation Information
Patent Citations
Delay device, method, and random number generator using the same
CN103927147A
Device and method for improving random effect of random number generator
CN108196824A