Method, apparatus, computer device and storage medium for configuring relay resource
By obtaining the capacity and channel utilization of the gateway switching device, and dynamically selecting resource configuration components, the problem of resource waste in the OSU switching unit is solved, and the maximum utilization of resources and investment benefits are achieved.
Patent Information
- Application Number
- CN202411662323.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-11-20
AI Technical Summary
Due to limitations in capacity and number of channels, resource usage in OSU adapter units can easily lead to resource waste.
By obtaining the capacity utilization and channel utilization of the gateway switching device, the target resource configuration components are dynamically selected and the resource configuration is optimized to maximize resource utilization.
It maximizes the data transfer resources of the gateway transfer resources, ensures the maximum return on investment, and simplifies the configuration and operation complexity of network services.
Smart Images

Figure CN119583992B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of optical fiber communication technology, in particular to a switching resource configuration method and device, computer equipment and storage medium. BACKGROUND
[0002] In order to make the OTN (Optical Transport Network) technology better adapt to the scene of small particle bandwidth service demand in the existing network, the OSU technology is put forward in the OTN technology system. OSU is (Optical Service Unit) optical service unit. The OSU technology integrates the characteristics of time division service and packet service, and can cope with various application scenarios of the access layer and support bandwidth subdivision and adjustment.
[0003] In order to solve the network fusion problem in the application of OSU technology, the OSU switching board card is born, which protects the network investment by using the ODUk (Optical Data Unit-k) line card with low bandwidth utilization rate in the old city core node. But after actual application, it is found that the resource use of OSU switching unit is limited by the capacity and channel number, which is easy to cause resource waste. SUMMARY
[0004] Therefore, it is necessary to provide a switching resource configuration method and device, computer equipment and storage medium which can prevent resource waste.
[0005] In a first aspect, the present application provides a switching resource configuration method. The method comprises:
[0006] Obtaining the capacity utilization rate and the channel number utilization rate corresponding to the gateway switching device;
[0007] According to the capacity utilization rate and the channel number utilization rate, selecting a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components;
[0008] According to the target resource configuration component, the gateway switching device is configured with switching resources.
[0009] In one embodiment, according to the capacity utilization rate and the channel number utilization rate, selecting a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components comprises:
[0010] Determining the size relationship between the capacity utilization rate and the channel number utilization rate;
[0011] According to the size relationship, a target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components.
[0012] In one embodiment, the selecting the target resource configuration component corresponding to the gateway switching device from the at least two candidate resource configuration components according to the size relationship comprises:
[0013] If the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, a first component in which both ends of the candidate resource configuration component are ODUk line cards is selected as the target resource configuration component corresponding to the gateway switching device.
[0014] In one embodiment, the selecting the target resource configuration component corresponding to the gateway switching device from the at least two candidate resource configuration components according to the size relationship comprises:
[0015] If the size relationship is that the capacity usage rate is less than the channel number usage rate, a second component in which one end of the candidate resource configuration component is an OSU board card and the other end is an ODUk line card is selected as the target resource configuration component corresponding to the gateway switching device.
[0016] In one embodiment, the candidate resource configuration component comprises the first component and the second component.
[0017] The resource configuration of the gateway switching device according to the target resource configuration component comprises:
[0018] In a case where the target resource configuration component is the first component, both ends of the gateway switching device are configured as ODUk line cards based on the first component.
[0019] In a case where the target resource configuration component is the second component, one end of the gateway switching device is configured as an OSU board card and the other end is configured as an ODUk line card based on the second component.
[0020] In one embodiment, the capacity usage rate is a ratio between a used OSU capacity and a total OSU capacity of the gateway switching device.
[0021] The channel number usage rate is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device, wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0022] In a second aspect, the application further provides a resource configuration device. The device comprises:
[0023] The acquisition module is configured to acquire a capacity usage ratio and a channel number usage ratio corresponding to the gateway switching device.
[0024] The selection module is configured to select a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage ratio and the channel number usage ratio.
[0025] The configuration module is configured to perform switching resource configuration on the gateway switching device according to the target resource configuration component.
[0026] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor. The memory stores a computer program. The processor implements the following steps when executing the computer program:
[0027] The acquisition module is configured to acquire a capacity usage ratio and a channel number usage ratio corresponding to the gateway switching device.
[0028] The selection module is configured to select a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage ratio and the channel number usage ratio.
[0029] The configuration module is configured to perform switching resource configuration on the gateway switching device according to the target resource configuration component.
[0030] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps:
[0031] The acquisition module is configured to acquire a capacity usage ratio and a channel number usage ratio corresponding to the gateway switching device.
[0032] The selection module is configured to select a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage ratio and the channel number usage ratio.
[0033] The configuration module is configured to perform switching resource configuration on the gateway switching device according to the target resource configuration component.
[0034] In a fifth aspect, the present application provides a computer program product. The computer program product comprises a computer program. The computer program is executed by a processor to implement the following steps:
[0035] The acquisition module is configured to acquire a capacity usage ratio and a channel number usage ratio corresponding to the gateway switching device.
[0036] The selection module is configured to select a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage ratio and the channel number usage ratio.
[0037] According to the target resource configuration component, the gateway switching device is configured with switching resources.
[0038] The switching resource configuration method, device, computer device and storage medium described above, by obtaining the capacity usage rate and the channel number usage rate corresponding to the gateway switching device, the target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components according to the capacity usage rate and the channel number usage rate, and then the gateway switching device is configured with switching resources according to the target resource configuration component. According to the above content, by obtaining the capacity usage rate and the channel number usage rate corresponding to the gateway switching device, the resource utilization of the gateway switching device is intuitively obtained, and then in the process of determining the target resource configuration component corresponding to the gateway switching device according to the capacity usage rate and the channel number usage rate, the target resource configuration component corresponding to the gateway switching device is dynamically selected according to the resource utilization of the gateway switching device, so as to realize the data switching resource maximization operation for the gateway switching resource, ensure the investment benefit maximization for the gateway switching resource, and simplify the network service configuration and operation complexity for the gateway switching resource. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 An application environment diagram of a switching resource configuration method provided by an embodiment of the present application;
[0040] Figure 2 A flowchart of a first switching resource configuration method provided by an embodiment of the present application;
[0041] Figure 3 A schematic diagram of a gateway switching device connected to two candidate resource configuration components respectively provided by an embodiment of the present application;
[0042] Figure 4 A deployment position schematic diagram of a gateway switching device provided by an embodiment of the present application;
[0043] Figure 5 A flowchart of a second switching resource configuration method provided by an embodiment of the present application;
[0044] Figure 6 A flowchart of a third switching resource configuration method provided by an embodiment of the present application;
[0045] Figure 7 A flowchart of a fourth switching resource configuration method provided by an embodiment of the present application;
[0046] Figure 8 A structure block diagram of a switching resource configuration device provided by an embodiment of the present application;
[0047] Figure 9Fig. 1 is a diagram of an internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] For the purpose of making the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application.
[0049] It can be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application. In the description of the present application, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" means that the specific features, structures, materials or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.
[0050] The gateway switching device resource configuration method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . Wherein, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. By obtaining the capacity utilization rate and the channel number utilization rate of the gateway switching device, the target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components according to the capacity utilization rate and the channel number utilization rate, and then the gateway switching device is configured with switching resources according to the target resource configuration component. Wherein, the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices, Internet of Things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0051] In one embodiment, as shown in Figure 2 , a gateway switching device resource configuration method is provided, which is applied to the server 104 in Figure 1 for example, including the following steps:
[0052] S201, acquire the capacity usage ratio and the channel number usage ratio corresponding to the gateway switching device.
[0053] It should be noted that the capacity usage ratio is the ratio between the used OSU capacity and the total OSU capacity of the gateway switching device; the channel number usage ratio is the ratio between the number of used data transmission channels and the total number of data transmission channels included in the gateway switching device; wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0054] Therefore, when the capacity usage ratio and the channel number usage ratio corresponding to the gateway switching device are needed to be acquired, the used OSU capacity and the total OSU capacity of the gateway switching device can be acquired respectively, and then the capacity usage ratio is determined according to the ratio between the used OSU capacity and the total OSU capacity; the number of used data transmission channels and the total number of data transmission channels of the gateway switching device can be acquired respectively, and then the channel number usage ratio is determined according to the ratio between the number of used data transmission channels and the total number of data transmission channels.
[0055] S202, according to the capacity usage ratio and the channel number usage ratio, select the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components.
[0056] It should be noted that the at least two candidate resource configuration components can include a first component with both ends being ODUk line cards and a second component with one end being an OSU board card and the other end being an ODUk line card; since the service in the first component can enter the gateway switching device from the line card at one end in the form of ODUk signal, be demapped to OSU, be crossed to the other end in the gateway switching device, and be mapped to ODUk to enter the line card at the other end. Each service needs to be converted from ODUk to OSU twice, occupying two ODUk to OSU data transmission channels; and the service in the second component can enter the gateway switching device from the board card at one end in the form of OSU signal, be crossed to the other end in the gateway switching device, be mapped to ODUk to enter the line card at the other end. Each service needs to be converted from ODUk to OSU once, occupying one ODUk to OSU data transmission channel.
[0057] Further, according to the capacity usage ratio and the channel number usage ratio, the target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components, which can be according to the size relationship between the capacity usage ratio and the channel number usage ratio to improve the channel number usage ratio of the gateway switching device or improve the capacity usage ratio corresponding to the gateway switching device, so as to balance the resources.
[0058] S203, according to the target resource configuration component, perform resource configuration on the gateway switching device.
[0059] It should be noted that when it is necessary to configure the switching resource of the gateway switching device, the gateway switching state can be connected with the target resource configuration component to realize the operation of configuring the switching resource of the gateway switching device according to the target resource configuration component. As an example, the case where the gateway switching device is connected with two candidate resource configuration components is shown in Figure 3 .
[0060] It should be noted that the purpose of the switching resource configuration method is to maximize the utilization of the switching device resource, and therefore, the method can be applied to a metropolitan area network aggregation node (M3) or a core node (M4), and the deployment position is shown in Figure 4 .
[0061] The above-mentioned switching resource configuration method realizes the selection of the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity utilization rate and the channel number utilization rate, and then configures the switching resource of the gateway switching device according to the target resource configuration component. According to the above content, the capacity utilization rate and the channel number utilization rate corresponding to the gateway switching device are obtained to intuitively obtain the resource utilization of the gateway switching device, and then the target resource configuration component corresponding to the gateway switching device is dynamically selected according to the capacity utilization rate and the channel number utilization rate in the process of determining the target resource configuration component, so as to realize the data switching resource maximization operation for the gateway switching resource, ensure the investment benefit maximization for the gateway switching resource, and simplify the network service configuration and operation complexity for the gateway switching resource.
[0062] In one embodiment, as shown in Figure 5 , when it is necessary to select the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity utilization rate and the channel number utilization rate, the following content can be included:
[0063] S501, determining the size relationship between the capacity utilization rate and the channel number utilization rate.
[0064] It should be noted that the size relationship between the capacity utilization rate and the channel number utilization rate is determined to represent the utilization of the capacity resource and the transmission channel resource of the gateway switching device according to the size relationship.
[0065] Specifically, if the size relationship is that the capacity usage ratio is greater than or equal to the channel number usage ratio, it indicates that the capacity usage ratio occupies higher, and therefore it is recommended to increase the channel number usage ratio to balance the capacity usage ratio and the channel number usage ratio; if the size relationship is that the capacity usage ratio is less than the channel number usage ratio, it indicates that the channel number usage ratio occupies higher, and therefore it is recommended to increase the capacity usage ratio to balance the capacity usage ratio and the channel number usage ratio.
[0066] S502, according to the size relationship, selecting the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components.
[0067] In an embodiment of the present application, if the size relationship is that the capacity usage ratio is greater than or equal to the channel number usage ratio, a first component in which both ends are ODUk line cards is selected as the target resource configuration component corresponding to the gateway switching device.
[0068] Since each service in the first component needs to be converted twice from ODUk to OSU, occupying two ODUk to OSU data transmission channels, therefore, in the case of the capacity usage ratio being greater than or equal to the channel number usage ratio, the first component is recommended as the target resource configuration component to improve the utilization rate of the data transmission channel and achieve resource balance.
[0069] In another embodiment of the present application, if the size relationship is that the capacity usage ratio is less than the channel number usage ratio, a second component in which one end is an OSU board card and the other end is an ODUk line card is selected as the target resource configuration component corresponding to the gateway switching device.
[0070] Since each service in the second component needs to be converted once from ODUk to OSU, occupying one ODUk to OSU data transmission channel, therefore, in the case of the capacity usage ratio being less than the channel number usage ratio, the second component is recommended as the target resource configuration component to improve the capacity usage ratio and achieve resource balance.
[0071] The above switching resource configuration method selects the first component and the second component as the target resource configuration component corresponding to the gateway switching device in the case of the capacity usage ratio being greater than or equal to the channel number usage ratio and the case of the capacity usage ratio being less than the channel number usage ratio, respectively, so as to dynamically select the target resource configuration component corresponding to the gateway switching device according to the resource utilization of the gateway switching device, thereby realizing the data switching resource maximization operation for the gateway switching resource and ensuring the investment benefit maximization for the gateway switching resource.
[0072] In an embodiment, as Figure 6As shown, when it is needed to configure the gateway switching device according to the target resource configuration component, the following steps can be included:
[0073] S601, in the case that the target resource configuration component is the first component, configuring both ends of the gateway switching device as ODUk line cards based on the first component.
[0074] In an embodiment of the present application, since both ends of the first component are configured as ODUk line cards, in the case that the gateway switching device cannot be connected to the first component, the gateway switching device can be connected to at least one other component to configure both ends of the gateway switching device as ODUk line cards.
[0075] S602, in the case that the target resource configuration component is the second component, configuring one end of the gateway switching device as an OSU board card and the other end as an ODUk line card based on the second component.
[0076] In an embodiment of the present application, since one end of the second component is an optical service unit (OSU) board card and the other end is an ODUk line card, in the case that the gateway switching device cannot be connected to the second component, the gateway switching device can be connected to at least one other component to configure one end of the gateway switching device as an OSU board card and the other end as an ODUk line card.
[0077] The above-mentioned switching resource configuration method configures both ends of the gateway switching device as ODUk line cards or configures one end of the gateway switching device as an OSU board card and the other end as an ODUk line card, so as to dynamically select the target resource configuration component corresponding to the gateway switching device according to the resource utilization of the gateway switching device, thereby ensuring the maximization of the investment benefit of the gateway switching resource and simplifying the network service configuration and operation complexity of the gateway switching resource.
[0078] In an embodiment, as shown in the following table, when it is needed to configure the gateway switching device, the following steps can be included: Figure 7
[0079] S701, obtaining the capacity usage rate and the channel number usage rate corresponding to the gateway switching device.
[0080] S702, determining the size relationship between the capacity usage rate and the channel number usage rate. If the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, S703 is executed; if the size relationship is that the capacity usage rate is less than the channel number usage rate, S704 is executed.
[0081] S703, taking the first component with both ends being optical path data unit (ODUk) line cards in the candidate resource configuration components as the target resource configuration component corresponding to the gateway switching device.
[0082] S704, taking the second component in the candidate resource configuration component, which has one end as an OSU board card and the other end as an ODUk line card, as the target resource configuration component corresponding to the gateway switching device.
[0083] S705, performing switching resource configuration on the gateway switching device according to the target resource configuration component.
[0084] The above switching resource configuration method, by obtaining the capacity usage rate and the channel number usage rate corresponding to the gateway switching device, realizes selecting the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage rate and the channel number usage rate, and then performing switching resource configuration on the gateway switching device according to the target resource configuration component. According to the above content, by obtaining the capacity usage rate and the channel number usage rate corresponding to the gateway switching device, the resource utilization of the gateway switching device is intuitively obtained, and then in the process of determining the target resource configuration component corresponding to the gateway switching device according to the capacity usage rate and the channel number usage rate, the target resource configuration component corresponding to the gateway switching device is dynamically selected according to the resource utilization of the gateway switching device, so as to realize the data switching resource maximization operation for the gateway switching resource, ensure the investment benefit maximization for the gateway switching resource, and simplify the network service configuration and operation complexity for the gateway switching resource.
[0085] It should be understood that, although each step in the flowchart involved in the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0086] Based on the same inventive concept, the embodiments of the present application also provide a switching resource configuration device for implementing the above-mentioned switching resource configuration method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more switching resource configuration device embodiments provided below can refer to the limitations of the switching resource configuration method in the above text, which will not be repeated here.
[0087] In one embodiment, as Figure 8As shown, a gateway switching device resource configuration apparatus is provided, comprising: an obtaining module 10, a selecting module 20 and a configuring module 30, wherein:
[0088] The obtaining module 10 is configured to obtain a capacity usage rate and a channel number usage rate corresponding to the gateway switching device.
[0089] The selecting module 20 is configured to select a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage rate and the channel number usage rate.
[0090] The configuring module 30 is configured to perform resource configuration on the gateway switching device according to the target resource configuration component.
[0091] In an embodiment, a size relationship between the capacity usage rate and the channel number usage rate is determined.
[0092] According to the size relationship, the target resource configuration component corresponding to the gateway switching device is selected from the at least two candidate resource configuration components.
[0093] In an embodiment, if the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, a first component in which both ends are ODUk line cards in the candidate resource configuration components is selected as the target resource configuration component corresponding to the gateway switching device.
[0094] In an embodiment, if the size relationship is that the capacity usage rate is less than the channel number usage rate, a second component in which one end is an OSU board card and the other end is an ODUk line card in the candidate resource configuration components is selected as the target resource configuration component corresponding to the gateway switching device.
[0095] In an embodiment, performing resource configuration on the gateway switching device according to the target resource configuration component comprises:
[0096] In a case where the target resource configuration component is the first component, both ends of the gateway switching device are configured as ODUk line cards based on the first component.
[0097] In a case where the target resource configuration component is the second component, one end of the gateway switching device is configured as an OSU board card and the other end is configured as an ODUk line card based on the second component.
[0098] In an embodiment, the channel number usage rate is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device; wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0099] The above-mentioned switching resource configuration device obtains the capacity usage rate and the channel number usage rate corresponding to the gateway switching device, selects the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components according to the capacity usage rate and the channel number usage rate, and then configures the switching resource of the gateway switching device according to the target resource configuration component. According to the above content, the capacity usage rate and the channel number usage rate corresponding to the gateway switching device are obtained to intuitively obtain the resource utilization of the gateway switching device, and then in the process of determining the target resource configuration component corresponding to the gateway switching device according to the capacity usage rate and the channel number usage rate, the target resource configuration component corresponding to the gateway switching device is dynamically selected according to the resource utilization of the gateway switching device, so as to realize the data switching resource maximization operation for the gateway switching resource, ensure the investment benefit maximization for the gateway switching resource, and simplify the network service configuration and operation complexity for the gateway switching resource.
[0100] The modules in the above-mentioned switching resource configuration device can be all or partially realized by software, hardware and a combination thereof. The modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the modules.
[0101] In one embodiment, a computer device, which can be a terminal, is provided, and an internal structure diagram of the computer device can be as shown in Figure 9The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program is executed by the processor to implement a switching resource configuration method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.
[0102] Those skilled in the art can understand that, Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0103] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:
[0104] Obtaining a capacity usage rate and a channel number usage rate corresponding to the gateway switching device;
[0105] According to the capacity usage rate and the channel number usage rate, selecting a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components;
[0106] According to the target resource configuration component, performing switching resource configuration on the gateway switching device.
[0107] In one embodiment, the processor executing the computer program further implements the following steps:
[0108] Determining the size relationship between the capacity usage rate and the channel number usage rate;
[0109] According to the size relationship, a target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components.
[0110] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0111] If the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, a first component in which both ends of the candidate resource configuration component are ODUk line cards is selected as the target resource configuration component corresponding to the gateway switching device.
[0112] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0113] If the size relationship is that the capacity usage rate is less than the channel number usage rate, a second component in which one end of the candidate resource configuration component is an OSU board card and the other end is an ODUk line card is selected as the target resource configuration component corresponding to the gateway switching device.
[0114] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0115] According to the target resource configuration component, the gateway switching device is configured with switching resources, including:
[0116] In the case that the target resource configuration component is the first component, both ends of the gateway switching device are configured as ODUk line cards based on the first component;
[0117] In the case that the target resource configuration component is the second component, one end of the gateway switching device is configured as an OSU board card and the other end is configured as an ODUk line card based on the second component.
[0118] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0119] The channel number usage rate is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device; wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0120] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps:
[0121] A capacity usage rate and a channel number usage rate corresponding to the gateway switching device are obtained;
[0122] According to the capacity usage rate and the channel number usage rate, a target resource configuration component corresponding to the gateway switching device is selected from at least two candidate resource configuration components;
[0123] According to the target resource configuration component, the gateway switching device is configured with a switching resource.
[0124] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0125] Determine the size relationship between the capacity usage rate and the channel number usage rate;
[0126] According to the size relationship, select the target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components.
[0127] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0128] If the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, a first component in the candidate resource configuration components, in which both ends are optical path data unit (ODUk) line cards, is selected as the target resource configuration component corresponding to the gateway switching device.
[0129] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0130] If the size relationship is that the capacity usage rate is less than the channel number usage rate, a second component in the candidate resource configuration components, in which one end is an optical service unit (OSU) board card and the other end is an ODUk line card, is selected as the target resource configuration component corresponding to the gateway switching device.
[0131] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0132] In the case where the target resource configuration component is the first component, based on the first component, both ends of the gateway switching device are configured as ODUk line cards;
[0133] In the case where the target resource configuration component is the second component, based on the second component, one end of the gateway switching device is configured as an OSU board card and the other end is configured as an ODUk line card.
[0134] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0135] The channel number usage rate is a ratio between the number of used data transmission channels and the total number of data transmission channels included in the gateway switching device; wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0136] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by the processor, implements the following steps:
[0137] acquire a capacity usage rate and a channel number usage rate corresponding to the gateway switching device;
[0138] select, according to the capacity usage rate and the channel number usage rate, a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components;
[0139] configure the gateway switching device with switching resources according to the target resource configuration component.
[0140] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0141] determine a size relationship between the capacity usage rate and the channel number usage rate;
[0142] select, according to the size relationship, a target resource configuration component corresponding to the gateway switching device from at least two candidate resource configuration components.
[0143] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0144] if the size relationship is that the capacity usage rate is greater than or equal to the channel number usage rate, a first component in which both ends are optical path data unit (ODUk) line cards in the candidate resource configuration components is selected as the target resource configuration component corresponding to the gateway switching device.
[0145] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0146] if the size relationship is that the capacity usage rate is less than the channel number usage rate, a second component in which one end is an optical service unit (OSU) board card and the other end is an ODUk line card in the candidate resource configuration components is selected as the target resource configuration component corresponding to the gateway switching device.
[0147] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0148] in a case where the target resource configuration component is the first component, both ends of the gateway switching device are configured as ODUk line cards based on the first component;
[0149] in a case where the target resource configuration component is the second component, one end of the gateway switching device is configured as an OSU board card and the other end is configured as an ODUk line card based on the second component.
[0150] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0151] The channel number usage rate is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device; wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
[0152] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0153] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments of each method. In the embodiments provided in the present application, any reference to memory, database or other medium can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0154] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations do not conflict with each other, they should be considered to be within the scope of the present disclosure.
[0155] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be pointed out that for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for configuring a transit resource, the method comprising: receiving a request for a resource configuration; and providing a resource configuration to the requestor. The method comprises: acquiring a capacity usage ratio and a channel number usage ratio corresponding to a gateway switching device; determining a size relationship between the capacity usage ratio and the channel number usage ratio; if the size relationship is that the capacity usage ratio is greater than or equal to the channel number usage ratio, taking a first component in a candidate resource configuration component, which is an optical path data unit (ODUk) line card at both ends, as a target resource configuration component corresponding to the gateway switching device; if the size relationship is that the capacity usage ratio is less than the channel number usage ratio, taking a second component in the candidate resource configuration component, which is an optical service unit (OSU) board card at one end and an ODUk line card at the other end, as the target resource configuration component corresponding to the gateway switching device; performing switching resource configuration on the gateway switching device according to the target resource configuration component.
2. The method of claim 1, wherein, The capacity usage ratio is a ratio between used OSU capacity and total OSU capacity of the gateway switching device.
3. The method of claim 1, wherein, The channel number usage ratio is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device.
4. The method of claim 3, wherein, The data transmission channel is a signal transmission channel for ODUk and OSU.
5. The method according to any one of claims 1 to 4, characterized in that, The candidate resource configuration component comprises the first component and the second component. The performing switching resource configuration on the gateway switching device according to the target resource configuration component comprises: in a case where the target resource configuration component is the first component, configuring both ends of the gateway switching device as ODUk line cards based on the first component; in a case where the target resource configuration component is the second component, configuring one end of the gateway switching device as an OSU board card and the other end as an ODUk line card based on the second component.
6. The method according to any one of claims 1 to 4, characterized in that, The capacity usage ratio is a ratio between used OSU capacity and total OSU capacity of the gateway switching device. The channel number usage ratio is a ratio between a number of used data transmission channels and a total number of data transmission channels included in the gateway switching device, wherein the data transmission channel is a signal transmission channel for ODUk and OSU.
7. A resource allocation transfer device, characterized in that, The device comprises: an acquisition module configured to acquire a capacity usage ratio and a channel number usage ratio corresponding to a gateway switching device; a selection module configured to determine a size relationship between the capacity usage ratio and the channel number usage ratio, and take a first component in a candidate resource configuration component, which is an optical path data unit (ODUk) line card at both ends, as a target resource configuration component corresponding to the gateway switching device if the size relationship is that the capacity usage ratio is greater than or equal to the channel number usage ratio, and take a second component in the candidate resource configuration component, which is an optical service unit (OSU) board card at one end and an ODUk line card at the other end, as the target resource configuration component corresponding to the gateway switching device if the size relationship is that the capacity usage ratio is less than the channel number usage ratio; a configuration module configured to perform switching resource configuration on the gateway switching device according to the target resource configuration component.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor implements the steps of the method in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Data frame sending method and network equipment
CN114286205A
Channel configuration method, optical transmission device, chip and communication system
CN118678253A