Disclosure of Invention
In view of the above, an object of one or more embodiments of the present disclosure is to provide a method and an apparatus for allocating routing resources to solve the problem of resource allocation of overlapping signals.
In view of the above, one or more embodiments of the present specification provide a routing resource allocation method, including:
determining the shortest path between a source node and a destination node according to the new service request;
determining at least one optional path which accords with an overlapping constraint condition with the shortest path from the established paths;
calculating spectrum resources required by the new service request, and pre-distributing the spectrum resources on each optional path to obtain a pre-distribution result of each optional path;
calculating the state index of each selectable path according to the pre-distribution result;
and selecting the optimal optional path as the path of the new service request according to the state index.
Optionally, determining at least one optional path that meets the overlap constraint with the shortest path from the established paths includes:
selecting an intermediate path which is superposed with the shortest path at a superposed node and then continuously transmitted along the same path from the paths;
and determining the intermediate path with the use times less than two as the optional path.
Optionally, the pre-allocating the spectrum resources on each selectable path includes:
splitting an optional path into a first path and a second path, wherein the first path is from the source node to the coincident node, and the second path is from the coincident node to the destination node;
determining a frequency spectrum interval corresponding to the occupied frequency spectrum resource of the selectable path on the first path, and searching for a continuous frequency spectrum slot with the same size as the frequency spectrum resource, wherein one part of the frequency spectrum slot is partially overlapped with the frequency spectrum interval, and the other part of the frequency spectrum slot is an idle frequency spectrum slot;
and searching for a spectrum slot which is equal to the spectrum resource in size and is continuous on the second path, wherein one part of the spectrum slot is partially overlapped with the occupied spectrum resource of the selectable path, and the other part of the spectrum slot is a free spectrum slot.
Optionally, the state index of each optional path is calculated as:
and calculating the state index according to the number of the spectrum gaps occupied by the spectrum resources and the spectrum resources occupied by the selectable path on the superposed path, the number of the rest idle spectrum sections on the superposed path, the number of the spectrum gaps contained in the rest idle spectrum sections and the preset optimal state parameter of the overlapped spectrum resources.
Optionally, according to the state index, selecting an optimal optional path as follows:
and selecting the selectable path with the maximum state index value as the optimal selectable path.
An embodiment of the present specification further provides a routing resource allocation apparatus, including:
the shortest path calculation module is used for determining the shortest path between the source node and the destination node according to the new service request;
the optional path determining module is used for determining at least one optional path which accords with the overlapping constraint condition with the shortest path from the established paths;
the pre-allocation module is used for calculating the spectrum resources required by the new service request, and pre-allocating the spectrum resources on each selectable path to obtain the pre-allocation result of each selectable path;
the index calculation module is used for calculating the state indexes of all the selectable paths according to the pre-distribution result;
and the path determining module is used for selecting the optimal optional path as the path of the new service request according to the state index.
Optionally, the optional path determining module is configured to select, from the paths, an intermediate path that is overlapped with the shortest path at one overlapped node and then continuously transmitted along the same path; and determining the intermediate path with the use times less than two as the optional path.
Optionally, the pre-allocation module is configured to split an optional path into a first path and a second path, where the first path is from the source node to the coincident node, and the second path is from the coincident node to the destination node; determining a frequency spectrum interval corresponding to the occupied frequency spectrum resource of the selectable path on the first path, and searching for a continuous frequency spectrum slot with the same size as the frequency spectrum resource, wherein one part of the frequency spectrum slot is partially overlapped with the frequency spectrum interval, and the other part of the frequency spectrum slot is an idle frequency spectrum slot; and searching for a spectrum slot which is equal to the spectrum resource in size and is continuous on the second path, wherein one part of the spectrum slot is partially overlapped with the occupied spectrum resource of the selectable path, and the other part of the spectrum slot is a free spectrum slot.
Optionally, the index calculation module is configured to calculate the state index according to the number of spectrum slots occupied by the spectrum resources and the spectrum resources occupied by the selectable path on the overlapping path, the number of remaining idle spectrum segments on the overlapping path, the number of spectrum slots included in the remaining idle spectrum segments, and a preset optimal state parameter of the overlapped spectrum resources.
Optionally, the path determining module is configured to select the selectable path with the largest state index value as the optimal selectable path.
As can be seen from the foregoing, in the routing resource allocation method and apparatus provided in one or more embodiments of the present disclosure, according to a new service request, a shortest path between a source node and a destination node is determined, at least one optional path that meets an overlap constraint condition with the shortest path is determined from established paths, a spectrum resource required by the new service request is calculated, the spectrum resource is pre-allocated on each optional path, a pre-allocation result of each optional path is obtained, a state index of each optional path is calculated according to the pre-allocation result, and an optimal optional path is selected as a path of the new service request according to the state index. By using the method of the specification, resource allocation is realized based on signal overlapping, the utilization rate of network resources can be improved, and more flexible and diversified services can be realized.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present specification should have the ordinary meaning as understood by those of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the specification is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As shown in fig. 1 and 2, an embodiment of the present specification provides a routing resource allocation method, including:
s101: determining the shortest path between a source node and a destination node according to the new service request;
in this embodiment, a new service request is received, a source node and a destination node for data transmission are determined according to the new service request, and at least one shortest path between the source node and the destination node is determined by using a predetermined shortest routing algorithm. The shortest routing algorithm used is not particularly limited.
S102: determining at least one optional path which accords with the overlapping constraint condition with the shortest path from the established paths;
in this embodiment, according to the determined shortest path and the established paths, the selectable path satisfying the overlap constraint condition is selected from the established paths, and the selectable path and the shortest path can implement signal overlap transmission, thereby improving the resource utilization rate. The established path refers to a path which is already established according to the service request before the new service request comes, and service related data is transmitted on the established path.
S103: calculating spectrum resources required by the new service request, and pre-distributing the spectrum resources on each optional path to obtain a pre-distribution result of each optional path;
in this embodiment, after the shortest path and the selected optional path are determined, the spectrum resource occupied by the new service request is calculated, and the spectrum resource is pre-allocated in sequence on each optional path to obtain the pre-allocation result on each optional path.
In some approaches, the method of computing spectrum resources is:
wherein, BmFor spectrum resources, speed is a transmission rate required by a service request, m is a spectrum efficiency of a signal modulation format, a numerical value of the spectrum efficiency decreases as a routing length of the service request increases, and a relationship between the spectrum efficiency of the signal modulation format and a transmission distance is shown in table 1:
table 1 modulation format spectral efficiency and longest transmission distance
S104: calculating the state index of each selectable path according to the pre-distribution result;
s105: and selecting the optimal optional path as the path of the new service request according to the state index.
In this embodiment, after the pre-allocation is performed on each selectable path, the pre-allocation result corresponding to each selectable path is obtained, then, the state index of each selectable path is calculated according to the pre-allocation result, the optimal selectable path is selected according to the state index to serve as the path of the new service request, and the data of the new service request is transmitted by using the path.
The embodiment provides a routing resource allocation method, which comprises the steps of determining the shortest path between a source node and a destination node according to a new service request, determining at least one optional path which accords with the overlapping constraint condition with the shortest path from established paths, calculating the frequency spectrum resource required by the new service request, pre-allocating the frequency spectrum resource on each optional path to obtain the pre-allocation result of each optional path, calculating the state index of each optional path according to the pre-allocation result, and selecting the optimal optional path as the path of the new service request according to the state index. According to the method, the new service request and the ongoing service can share the spectrum resource through signal overlapping, and meanwhile, the optimal path is distributed for the overlapping signals, so that the resource is efficiently, flexibly and reasonably utilized.
In some embodiments, determining at least one alternative path from the established paths that meets the overlap constraint with the shortest path comprises:
selecting an intermediate path which is superposed with the shortest path at a superposed node from the established paths and then continuously transmitted along the same path;
and determining the intermediate path with the use times less than two as the optional path.
In this embodiment, based on the signal overlapping technology, the overlap constraint condition is determined as follows: selecting an intermediate path from all established paths, wherein the basis for selecting the intermediate path is as follows: and determining a coincident node of the shortest path and the established path according to the shortest path and the established path, wherein the shortest path and the established path reach the same destination node along a common path from the coincident node. Considering that the receiver can detect two paths of signals through coherent detection, therefore, the same section of spectrum resource can be occupied by at most two service requests simultaneously, based on this, based on the selected intermediate path, whether the intermediate path has been used twice is judged, if the intermediate path has been used twice, the intermediate path cannot be reused, if the intermediate path is used only once, the intermediate path is selected as an alternative path for signal overlapping with the new service request.
In some embodiments, pre-allocating spectrum resources on each selectable path includes:
splitting the selectable path into a first path and a second path; the first path is from the source node to the coincident node, and the second path is from the coincident node to the destination node;
determining a frequency spectrum interval corresponding to the occupied frequency spectrum resource of the selectable path on the first path, and searching continuous frequency spectrum slots with the same size as the frequency spectrum resource, wherein one part is partially overlapped with the frequency spectrum interval, and the other part is an idle frequency spectrum slot;
and searching for a continuous spectrum slot with the same size as the spectrum resource on the second path, wherein one part of the spectrum slot is partially overlapped with the occupied spectrum resource of the optional path, and the other part of the spectrum slot is a free spectrum slot.
In this embodiment, considering that services on each selectable path are different and occupied spectrum resources are different, spectrum resources of a new service request are overlapped on different selectable paths, and each selectable path may generate spectrum fragments of different degrees, which affects establishment of a subsequent new service request and resource utilization rate of the whole network. Therefore, after selecting a plurality of selectable paths, allocating the spectrum resource of the new service request on each selectable path in advance, and selecting a most suitable selectable path as a path which is suitable for being overlapped with the new service request and can establish connection for the new service request according to an allocation result.
For each optional path, when the spectrum resource of the new service request is pre-allocated, the optional path is firstly split into two paths, wherein one path is from a source node to a coincident node, and the other path is from the coincident node to a destination node, and whether the spectrum resource of the new service request can be allocated on the two paths is respectively judged. For the first path, although the shortest path of the new service request does not coincide with the optional path, and there is no situation that the spectrum resource occupied by the established path overlaps with the spectrum resource of the new service request, the influence of the occupied spectrum resource on the spectrum resource of the new service request still needs to be considered in consideration of the consistency and continuity of the spectrum resource allocation of the elastic optical network. Therefore, during pre-allocation, the two split paths both need to satisfy the spectrum resource allocation requested by the new service.
And on the first path, determining a frequency spectrum interval corresponding to the frequency spectrum resource occupied by the selectable path, searching a starting point in the frequency spectrum interval, and starting from the starting point, wherein the starting point has the same number of continuous frequency spectrum slots as the frequency spectrum slots required by the new service request. If the first path has a starting point in a spectrum interval and has continuous spectrum slots with the required number of spectrum slots, one part of the continuous spectrum slots is partially overlapped with the spectrum interval, and the other part of the continuous spectrum slots is idle spectrum slots, the first path can meet the spectrum resource allocation of a new service request.
And on the second path, the optional path occupied spectrum resources exist, the occupied spectrum resource segment is taken as a search interval, a starting point is searched in the search interval, and the starting point has the same number of continuous spectrum slots as the number of the spectrum slots required by the new service request. If the second path has a starting point in the search interval and has continuous spectrum slots with the required number of spectrum slots, one part of the continuous spectrum slots is partially overlapped with the spectrum interval, and the other part of the continuous spectrum slots is idle spectrum slots, the second path can meet the spectrum resource allocation of the new service request. In this way, by pre-allocating resources on the first path and the second path, the selectable paths which can be overlapped with the established paths and meet the resource allocation required by the new service request are further screened out, and the pre-allocation results of the pre-allocated selectable paths are obtained.
In some embodiments, the spectrum resource requested by the new service is pre-allocated on the optional path to obtain a pre-allocation result, and the state index of the optional path is calculated according to the pre-allocation result, where the calculation method is as follows: and calculating the state index according to the number of the spectrum gaps occupied by the spectrum resources and the spectrum resources occupied by the selectable path on the superposed path, the number of the rest idle spectrum sections on the superposed path, the number of the spectrum gaps contained in the rest idle spectrum sections and the preset optimal state parameter of the overlapped spectrum resources. In this embodiment, when it is determined that the first path and the second path of the selectable path both have the spectrum resources available for the new service request, a connection may be established for the new service request on the selectable path, and the resource state on the selectable path after the resources are allocated by the overlapping signal is evaluated by using the state index in combination with the resources occupied on the overlapping signal path and the degree of influence on the idle spectrum resources.
In some embodiments, the formula for calculating the status indicator is:
wherein, SUColThe spectrum resource representing the new service request and the number of spectrum slots occupied by the spectrum resource occupied by the optional path on the superposed path, and the NSC represents the number of idle spectrum segments on the superposed path,NSnIndicating the number of spectrum slots, Max, contained in the nth free spectrum segmentfThe method is characterized in that the preset optimal state parameter of the overlapped spectrum resource is calculated according to the number of spectrum slots in the optical fiber link, and the optimal state of the overlapped spectrum resource is as follows: when one coincidence path is occupied by only one existing service and a newly arrived service (occupied by only occupied spectrum resources and spectrum resources requested by a new service), the calculation formula of the state index corresponding to the first spectrum slot of the overlapped spectrum resources is as follows:
according to the state index, SUC, shown in equation (2)olThe smaller the spectrum resource requested by the new service and the spectrum resource of the established path, that is, the less the spectrum resource occupied by the overlapped signal, the larger the second term of the formula, the more complete the idle spectrum resource existing after the pre-allocation, and the less likely to generate fragments, so that the larger the state index value is, the more suitable it is to be selected to be overlapped with the new service request in combination with the used spectrum resource and the unoccupied idle spectrum resource.
Therefore, according to the state indexes, the optimal optional path is selected as follows: and selecting the selectable path with the maximum state index value as the optimal selectable path. That is, when the screened multiple selectable paths can meet the service requirement of the new service request, according to the state index after the spectrum resource of the new service request is pre-allocated to the selectable paths, the selectable path with the maximum state index value is selected as the optimal selectable path, and the new service request establishes connection with the optimal selectable path to realize service data transmission. The selected optimal selectable path occupies less frequency spectrum resources, is not easy to generate fragments, and improves the resource utilization rate.
The following describes a routing resource allocation method according to this specification with reference to a specific embodiment.
As shown in fig. 3, the network topology includes 7 nodes 1-7, and when a new service request R arrives, the shortest path from the source node 1 to the destination node 7 is determined to be 1-2-4-6-7 (assuming that there is only one shortest path) according to the shortest routing algorithm. For ease of illustration, the paths shown represent transmission distances in terms of number of hops.
As shown in fig. 4A, 4B, 4C, and 4D, the established paths in the network are obtained, and four paths R having the same destination node as the new service request R are screened out1、r2、r3And r4. Wherein, the path r1Is 2-4-5-6-7, path r2Is 3-4-6-7, path r3Is 5-6-7, path r4Is 2-5-6-7.
And for the four paths, further screening out selectable paths according to the overlapping constraint conditions. For path r1Shortest path and path r1The coincident node of (2) is node 4, and from node 4, the shortest path and path r1Along different paths to the destination node 7, whereby path r1The overlap constraint is not satisfied. For path r2Shortest path and path r2The coincident node of (2) is node 4, and from node 4, the shortest path and path r2Along the same path 4-6-7 to the destination node 7, and path r2Used only once, and thus, path r2And may be selected as an alternative path. For path r3Shortest path and path r3The coincident node of (2) is a node 6, and the shortest path and the path r start from the node 63Along the same path 6-7 to the destination node 7, and path r3Used only once, and thus, path r3And may be selected as an alternative path. For path r4Shortest path and path r4The coincident node of (2) is a node 6, and the shortest path and the path r start from the node 64Along the same path 6-7 to the destination node 7, and path r4Used only once, and thus, path r4And may be selected as an alternative path. Thus, through screening of the overlapping constraint conditions, the selectable path is determined to be r2、r3、r4。
And then, calculating the frequency spectrum resources required by the new service request, setting the transmission rate required by the new service to be 100bits/s, setting the frequency spectrum efficiency m of the modulation format to be 3, and obtaining the required frequency spectrum slots with the number of 3 according to the calculation formula.
As shown in fig. 5A, 5B, the desired spectral slots are pre-allocated on alternative paths. A total of 11 spectrum slots are set on a link. The shortest path is split into a first path 1-2-4 and a second path 4-6-7.
For path r2Which over 11 spectral slots of the path 3-4-6-7, occupies 3 consecutive spectral slots starting from the 3 rd spectral slot. On a first path, determining a spectrum interval corresponding to occupied spectrum resources, namely determining a spectrum interval formed by 3 rd to 5 th spectrum slots on the first path, starting from the 3 rd spectrum slot to the 5 th spectrum slot, searching whether spectrum resources required by a new service request exist, namely, searching whether continuous 3 spectrum slots exist starting from the 3 rd spectrum slot, finding that the 5 th spectrum slot overlaps with the spectrum interval, and the 6 th to 7 th spectrum slots are continuous idle spectrum slots (as shown in fig. 5A), and determining that the first path can meet resource allocation of the new service request. On the second path, the occupied search interval is formed by the 3 rd to 5 th spectrum slots, the 5 th to 7 th spectrum slots are found to be partially overlapped with the search interval, and the non-overlapped part is an idle spectrum slot, namely, the 5 th spectrum slot is overlapped with the occupied spectrum slot, the 6 th and 7 th spectrum slots are idle spectrum slots (as shown in fig. 5B), it is determined that the second path can meet the resource allocation of the new service request, and on the first and second paths, the 5 th to 7 th spectrum slots all meet the condition, and can meet the requirements of spectrum continuity and consistency.
FIG. 6A shows the path r2The pre-allocation result obtained by the resource state of the spectrum resource of the new service pre-allocation request is as follows: occupied spectrum slot and spectrum slot required by new service request are on path r2The number of occupied frequency spectrum slots is 5 (3 rd to 7 th frequency spectrum slots), and the pre-allocated path r2The number of the last remaining free spectrum portions is 2, the number of spectrum slots of the first free spectrum portion is 1 (2 nd spectrum slot), and the number of spectrum slots of the second free spectrum portion is 1 (11 th spectrum slot). On path r according to the new service request2Calculating the state index according to the pre-distribution result:
wherein Max is calculated according to equation (3) for a link having 11 spectral slotsfThe value is 100.
For path r3Which over 11 spectral slots of the path 5-6-7 occupies 3 consecutive spectral slots starting from the 4 th spectral slot. On the first path, determining a frequency spectrum interval formed from the 4 th frequency spectrum slot to the 6 th frequency spectrum slot, starting from the 4 th frequency spectrum slot to the 6 th frequency spectrum slot, searching whether continuous 3 frequency spectrum slots exist, and enabling R and R to be3Not only meets the condition that the part is overlapped, but also the part which is not overlapped is a free spectrum slot; and determining that the 5 th to the 7 th frequency spectrum slots are overlapped with the 5 th and the 6 th frequency spectrum slots, and the 7 th frequency spectrum slot is idle, and determining that the first path can meet the resource allocation of the new service request. On the second path, the occupied search interval is formed by the 4 th to the 6 th spectrum slots, the 5 th to the 7 th spectrum slots are found to be partially overlapped with the search interval, and the non-overlapped part is an idle spectrum slot, namely, the 5 th and the 6 th spectrum slots are overlapped with the occupied spectrum slot, and the 7 th spectrum slot is an idle spectrum slot, and the second path is determined to be capable of meeting the resource allocation of the new service request.
FIG. 6B shows the path r3The pre-allocation result obtained by the resource state of the spectrum resource of the new service pre-allocation request is as follows: occupied spectrum slot and spectrum slot required by new service request are on path r3The number of occupied frequency spectrum slots is 4 (4 th to 7 th frequency spectrum slots), and the pre-allocated path r3The number of the last remaining free spectrum segments is 3, the number of spectrum slots of the first free spectrum segment is 3 (1 st to 3 rd spectrum slots), the number of spectrum slots of the second free spectrum segment is 1 (8 th spectrum slot), and the number of spectrum slots of the third free spectrum segment is 1 (11 th spectrum slot). On path r according to the new service request3Calculating the state index according to the pre-distribution result:
for path r4Which over 11 spectral slots of the path 2-5-6-7, occupies 3 consecutive spectral slots starting from the 3 rd spectral slot. According to path r2The determining method determines that the first path and the second path can meet the resource allocation of the new service request. FIG. 6C shows the path r4The pre-allocation result obtained by the resource state of the spectrum resource of the new service pre-allocation request is as follows: occupied spectrum slot and spectrum slot required by new service request are on path r4The number of occupied frequency spectrum slots is 5 (3 rd to 7 th frequency spectrum slots), and the pre-allocated path r4The number of the last remaining free spectrum segments is 3, the number of spectrum slots of the first free spectrum segment is 2 (1 st-2 nd spectrum slots), the number of spectrum slots of the second free spectrum segment is 1 (8 th spectrum slot), and the number of spectrum slots of the third free spectrum segment is 1 (11 th spectrum slot). On path r according to the new service request4Calculating the state index according to the pre-distribution result:
with reference to fig. 2, an embodiment of the present disclosure provides a routing resource allocation method, where when a new service request arrives, a shortest path is calculated first, then an optional path that meets an overlap constraint condition with the shortest path is selected from established paths, spectrum resources required by the new service are pre-allocated on the optional path, a state index is calculated according to a pre-allocation result, and an optional path with an optimal state index is selected for carrying service data transmission of the new service request, so as to update a network resource state; if no optional path meeting the conditions is found, or the state index of the optional path does not reach a preset value, a K shortest path algorithm (selecting the K paths with the shortest distance in all reachable paths) and/or a first hit algorithm (searching whether enough continuous spectrum slots can accommodate the request in the public spectrum resources of the passed paths according to the number of the spectrum slots required by the new service request, and allocating the found first spectrum segment meeting the conditions to the new service request) are adopted to select a proper path for establishing connection for the new service request. The method of the embodiment preferentially selects the frequency spectrum resource which can be overlapped and shared with the established path, allocates the optimal resource for the new service request, and can provide the resource utilization rate.
It should be noted that the method of one or more embodiments of the present disclosure may be performed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above description describes certain embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
As shown in fig. 7, an embodiment of the present specification provides a routing resource allocation apparatus, including:
the shortest path calculation module is used for determining the shortest path between the source node and the destination node according to the new service request;
the optional path determining module is used for determining at least one optional path which accords with the overlapping constraint condition with the shortest path from the established paths;
the pre-allocation module is used for calculating the spectrum resources required by the new service request, pre-allocating the spectrum resources on each selectable path and obtaining the pre-allocation result of each selectable path;
the index calculation module is used for calculating the state indexes of all the selectable paths according to the pre-distribution result;
and the path determining module is used for selecting the optimal optional path as the path of the new service request according to the state index.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Fig. 8 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the spirit of the present disclosure, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present description as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the understanding of one or more embodiments of the present description, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the one or more embodiments of the present description are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
It is intended that the one or more embodiments of the present specification embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the present disclosure are intended to be included within the scope of the present disclosure.