Port control method and device, controller, network equipment and storage medium

Through the controller delivering the reserved resources or sleep threshold information of the port group, the network device decides whether to sleep or activate the port, which solves the problem of port sleep affecting the service response speed and achieves energy saving without affecting the response speed.

CN118678401APending Publication Date: 2024-09-20CHINA MOBILE COMM LTD RES INST +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310269827.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The port dormancy of the transport network node equipment results in slow service response and affects the service quality. When new services are accessed, the port needs to be restarted, resulting in a long service response time.

Method used

The controller delivers the reserved resources or sleep threshold information of the port group to the network device. The network device decides whether to sleep or activate the port based on this information, and reserves some idle ports for new business access, reducing the time consumed by port activation after the arrival of new business. duration.

Benefits of technology

Without affecting the service response speed, the energy saving purpose of the port is achieved, the signaling interaction between the controller and the network device is reduced, and the efficiency of new service access is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678401A
    Figure CN118678401A
Patent Text Reader

Abstract

The invention discloses a port control method and device, a controller, network equipment and a storage medium, and the method comprises the steps that the controller issues corresponding first information to network equipment of a first network; wherein the first information is at least used for indicating a reserved resource or a dormancy threshold of a port group of the network equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a port control method, device, controller, network equipment and storage medium. Background Art

[0002] In the related art, the ports of the node devices of the transport network have the ability to sleep, and the energy consumption can be reduced by port sleep. However, port sleep may lead to slow service response speed and affect the service quality. Summary of the invention

[0003] To solve related technical problems, embodiments of the present application provide a port control method, apparatus, controller, network device and storage medium.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a port control method, which is applied to a controller. The method includes:

[0006] Sending corresponding first information to the network device of the first network; wherein,

[0007] The first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0008] In the above scheme, the method further includes:

[0009] Configure or update the reserved resources or sleep threshold of the port group of the network device.

[0010] In the above solution, the configuration or updating of the reserved resources or sleep threshold of the port group of the network device includes:

[0011] Configure or update the reserved resources or sleep threshold of a port group of a network device based on at least one of the following:

[0012] The total resources of the port group of the network device;

[0013] The probability of a port group of a network device carrying services;

[0014] A first number, wherein the first number represents a total number of routing paths of a group of services;

[0015] A second number characterizes the number of routing paths passing through the port group of the network device.

[0016] In the above scheme, the method further includes:

[0017] Use the following formula to determine the reserved resources or sleep threshold of the port group of the network device:

[0018] or

[0019] in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ng Represents the number of routing paths passing through the port group g of the network device n; R represents the total number of routing paths for a group of services; a represents a configuration constant.

[0020] In the above scheme, the method further includes:

[0021] Determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; wherein the second information represents the port information of the network device; every two first network devices correspond to one service, and the first network device represents the service access node in the network device of the first network;

[0022] Based on the first number and the second number, a probability that the port group of the network device carries the service is determined.

[0023] In the above scheme, the method further includes:

[0024] Acquire second information of the network device of the first network; wherein,

[0025] The second information includes at least a port identifier and / or a port status.

[0026] In the above solution, the first information includes at least one of the following:

[0027] The port group identifier;

[0028] The port list of the port group;

[0029] The port identifier of each port included in the port group;

[0030] The first identifier is used to indicate whether the port sleep function is enabled;

[0031] Reserved resources of the port group;

[0032] Sleep threshold of a port group.

[0033] In the above scheme, the method further includes:

[0034] The ports of the network device are grouped to obtain a port group of the network device.

[0035] In the above solution, the grouping of the ports of the network device includes at least one of the following:

[0036] Divide the user-side ports of the network device into a port group;

[0037] Divide the line-side ports of the network device into a port group;

[0038] Divide the ports with the same forwarding direction on the network device into a port group.

[0039] The embodiment of the present application further provides a port control method, which is applied to a network device of a first network, and the method includes:

[0040] Receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

[0041] In the above scheme, the method further includes:

[0042] Based on the received first information, port hibernation and / or port activation are performed.

[0043] In the above solution, based on the received first information, performing port hibernation includes:

[0044] When the sum of the resources of the idle ports in the port group is greater than the reserved resources or the sleep threshold of the port group, some of the idle ports in the port group are put into sleep mode.

[0045] In the above solution, based on the received first information, performing port activation includes:

[0046] When the sum of resources of idle ports in the port group is less than or equal to the reserved resources or the sleep threshold of the port group, at least some of the sleep ports in the port group are activated.

[0047] In the above solution, the sum of the resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0048] In the above solution, the first information includes at least one of the following:

[0049] The port group identifier;

[0050] The port list of the port group;

[0051] The port identifier of each port included in the port group;

[0052] The first identifier is used to indicate whether the port sleep function is enabled;

[0053] Reserved resources of the port group;

[0054] Sleep threshold of a port group.

[0055] In the above scheme, the method further includes:

[0056] Reporting second information of the network device to the controller; wherein,

[0057] The second information includes at least a port identifier and / or a port status.

[0058] The embodiment of the present application also provides a port control device, including:

[0059] The first sending unit is used to send the corresponding first information to the network device of the first network; wherein,

[0060] The first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0061] The embodiment of the present application also provides a port control device, including:

[0062] The first receiving unit is used to receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

[0063] The embodiment of the present application further provides a controller, including a first processor and a first communication interface, wherein:

[0064] The first communication interface is used to send corresponding first information to the network device of the first network; wherein the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

[0065] The embodiment of the present application further provides a network device, including a second processor and a second communication interface, wherein:

[0066] The second communication interface is used to receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

[0067] The embodiment of the present application further provides a controller, comprising a first processor and a first memory for storing a computer program that can be run on the first processor.

[0068] Wherein, the first processor is used to execute the steps of any method on the controller side when running the computer program.

[0069] The embodiment of the present application further provides a network device, comprising a second processor and a second memory for storing a computer program that can be run on the second processor.

[0070] The second processor is used to execute the steps of any method on the network device side when running the computer program.

[0071] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any method on the controller side or the steps of any method on the network device side are implemented.

[0072] In the port control method, device, controller, network device and storage medium provided in the embodiment of the present application, the controller sends corresponding first information to the network device of the first network, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device; the network device of the first network receives the first information sent by the controller, and the first information corresponds to the network device. In the above scheme, the controller can configure the reserved resources or sleep threshold of the port group of the network device at one time, reducing the frequent signaling interaction between the controller and the network device, so that the network device can decide whether to put the idle ports in the port group to sleep according to the reserved resources or sleep threshold of the port group, and can put some idle ports to sleep and retain some activated idle ports in the same port group. Therefore, when the first network accesses a new service, the network device of the first network can access the new service through the reserved idle ports, and the controller does not need to send a signaling for activating the port of the network device to the network device of the first network, which can reduce the time consumed by activating the port after the new service arrives, thereby achieving the purpose of energy saving without affecting the service response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 This is an example diagram of a port control system architecture applicable to an embodiment of the present application;

[0074] Figure 2 A schematic diagram of a port control method implementation flow in an embodiment of the present application;

[0075] Figure 3 This is a schematic diagram of another port control method implementation flow in an embodiment of the present application;

[0076] Figure 4 A schematic diagram of an interactive process of a port control method according to an embodiment of the present application;

[0077] Figure 5 This is a schematic diagram of the structure of a port control device according to an embodiment of the present application;

[0078] Figure 6 This is a schematic diagram of the structure of another port control device according to an embodiment of the present application;

[0079] Figure 7 This is a schematic diagram of the controller structure of an embodiment of the present application.

[0080] Figure 8 This is a schematic diagram of the network device structure of an embodiment of the present application. DETAILED DESCRIPTION

[0081] The transmission network consists of transmission lines (transmission media) and transmission equipment, so the transmission network is also called the basic network or transmission network. The transmission network is a means of transmitting business information for various business networks and support management networks. It is responsible for connecting the node devices of the transmission network and providing transparent transmission of information between any two node devices. It also realizes management and maintenance functions such as bandwidth scheduling management and automatic switching protection for faults.

[0082] The ports of the node devices of the transport network have the ability to sleep, and energy consumption can be reduced by putting idle ports into sleep mode. For example, when any port of a node device is idle for a set period of time, the management and control system or node device controls the port to enter the sleep state. If all idle ports in the network are put into sleep mode, the ports need to be restarted when new services need to use the dormant ports. It takes a certain amount of time to restart the ports, which will result in a longer service response time, which in turn leads to slow service response speed and affects the service quality.

[0083] Based on this, in each embodiment of the present application, the controller sends the corresponding first information to the network device of the first network, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device; the network device of the first network receives the first information sent by the controller, and the first information corresponds to the network device. In the above scheme, the controller can configure the reserved resources or sleep threshold of the port group of the network device at one time, reducing the frequent signaling interaction between the controller and the network device, so that the network device can decide whether to put the idle ports in the port group to sleep according to the reserved resources or sleep threshold of the port group, and can put some idle ports to sleep and retain some activated idle ports in the same port group. Therefore, when the first network accesses a new service, the network device of the first network can access the new service through the reserved idle ports, and the controller does not need to send a signaling for activating the port of the network device to the network device of the first network, which can reduce the time consumed to activate the port after the new service arrives, thereby achieving the purpose of energy saving without affecting the service response speed.

[0084] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0085] First, in order to better illustrate the port control method provided in the embodiment of the present application, Figure 1 This application embodiment is applicable to the supported port control system architecture example. Figure 1In the system architecture shown: the controller is used to send corresponding first information to the network device of the first network, the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device; and is used to receive second information of the network device reported by the network device, the second information at least includes the port identifier and / or the port status; the network device of the first network is used to automatically execute port sleep or execute port activation according to the received first information.

[0086] It should be noted that a control system or a network management system may be deployed in the controller, and port control may be implemented by the control system or the network management system, and the controller and the control system and the network management system may be used interchangeably. In various embodiments of the present application, for ease of description, the term "controller" is used uniformly to describe the solution.

[0087] The present application embodiment provides a port control method applied to a controller, referring to Figure 2 , the port control methods include:

[0088] Step 201: Send corresponding first information to a network device of a first network.

[0089] The first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0090] Here, the controller generates the first information of the network device and sends the corresponding first information to the network device. The first information can be understood as a sleep strategy, and the network device generally refers to any network device in the first network. The first information corresponds to the network device; the first information can indicate the reserved resources or sleep threshold of a port group of the network device, or the reserved resources or sleep threshold of each port group of the network device, and the reserved resources include reserved bandwidth. The sleep threshold of the port group is used for the network device to decide whether to control the idle ports in the port group to enter the sleep state. The reserved resources of the port group can be understood as the minimum resources or minimum resources that the port group needs to reserve, which is used for the network device to decide whether to activate the dormant ports in the port group, or control the idle ports in the port group to enter the sleep state.

[0091] The method for generating the first information of the network device may be: the controller may configure the reserved resources or the sleep threshold according to the port group of the network device to obtain the first information corresponding to the network device. In other words, the controller may configure the reserved resources or the sleep threshold based on the port group of the network device. It should be noted that the controller may configure the reserved resources or the sleep threshold for one of the port groups of the same network device, or may configure the reserved resources or the sleep threshold for all the port groups of the same network device, according to the actual situation.

[0092] In actual application, the controller can configure reserved resources or sleep thresholds for each port group of each network device in the first network, obtain the reserved resources or sleep thresholds of each port group of the network device, and generate the first information corresponding to the network device based on the reserved resources or sleep thresholds of each port group of the network device.

[0093] It should be noted that the first network can be a transmission network, and the network equipment of the first network is a node equipment of the transmission network. Network equipment includes network terminals, customer premises equipment (CPE), customer edge (CE) equipment, etc. CE equipment refers to switches (telephone switches, data switches), routers, routing switches, integrated access devices (IADs) and various metropolitan area network (MAN) equipment and wide area network (WAN) equipment for accessing terminal users. CE equipment and CPE can be used as service access points for accessing services. Service access points can be understood as network equipment for accessing services.

[0094] In one embodiment, the first information includes at least one of the following:

[0095] The port group identifier;

[0096] The port list of the port group;

[0097] The port identifier of each port included in the port group;

[0098] The first identifier is used to indicate whether the port sleep function is enabled;

[0099] Reserved resources of the port group;

[0100] Sleep threshold of a port group.

[0101] Here, since the first information can indicate the reserved resources or sleep threshold of a port group of the network device, it can also indicate the reserved resources or sleep threshold of multiple port groups of the network device; therefore, the first information at least includes the reserved resources of the port group, and / or, the sleep threshold of the port group; it can also include at least one of the following: the identifier of the port group, the port list of the port group, the port identifier of each port included in the port group, and the first identifier. Different port groups correspond to different identifiers. For example, when the network device has only one port group, the first information can include the reserved resources of the port group, and / or, the sleep threshold of the port group, and can also include the first identifier. When the network device has at least two port groups, the first information includes the reserved resources of the port group, and / or, the sleep threshold of the port group, and also includes: the identifier of the port group, the port identifier of each port included in the port group, and the first identifier. Different port groups correspond to different identifiers.

[0102] The sleep threshold of the port group can be set according to the reserved resources of the port group, and the sleep threshold of the port group can be greater than or equal to the reserved resources of the port group; when the reserved resources of the port group include the reserved bandwidth and the sleep threshold of the port group is equal to the reserved bandwidth of the port group, the reserved bandwidth of the port group is equivalent to the sleep threshold.

[0103] A port group consists of multiple ports. The multiple ports contained in a port group can be recorded in a port list. The port list contains the port identifier of each port; that is, one port list corresponds to one port group.

[0104] It should be noted that the first identifier can correspond to a network device; when the first identifier is used to indicate that the port sleep function is enabled, it indicates that the port sleep function of the network device is enabled and the network device supports the port sleep function; when the first identifier is used to indicate that the port sleep function is not enabled, it indicates that the network device does not support the port sleep function. The first identifier can also correspond to a port group of the network device; when the first identifier is used to indicate that the port sleep function is enabled, it indicates that the port group of the network device supports the port sleep function; when the first identifier is used to indicate that the port sleep function is not enabled, it indicates that the port group of the network device does not support the port sleep function.

[0105] In actual application, the first information for each network device includes the identifier of the port group, the port identifiers of the ports included in the port group, the first identifier of the port group and the reserved resources of the port group. Table 1 shows an example of the message body of the first information.

[0106] Table 1

[0107]

[0108] Before the controller sends the first information to the network device, it is also necessary to group the ports of the network device. Based on this, in one embodiment, the ports of the network device are grouped to obtain the port group of the network device.

[0109] Here, the ports of the network device can be grouped according to the set grouping rules to obtain the port group of the network device. The set grouping rules can be set according to actual conditions, and the grouping rules can also be called grouping strategies or grouping principles or grouping methods or grouping modes.

[0110] In one embodiment, grouping the ports of the network device includes at least one of the following:

[0111] Divide the user-side ports of the network device into a port group;

[0112] Divide the line-side ports of the network device into a port group;

[0113] Divide the ports with the same forwarding direction on the network device into a port group.

[0114] Here, the controller may divide the user-side ports of the network device into a port group to obtain a first port group; the user-side ports may also be referred to as client-side ports (UIN, User Interface), which may be understood as ports capable of accessing client-side services.

[0115] The controller may divide the line-side ports of the network device into a port group to obtain a second port group; the line-side ports may be understood as ports connected to the transmission lines.

[0116] For a network device with a fixed port forwarding direction, the controller divides the ports of the network device with the same forwarding direction into a port group to obtain at least one third port group.

[0117] It should be noted that the first port group and the second port group of the same network device are both one, and the number of the third port groups of the same network device is the same as the number of fixed port forwarding directions.

[0118] Before the controller sends the first information to the network device, it is also necessary to configure the reserved resources or sleep threshold of the port group of the network device so that the network device can accurately determine whether to put the idle ports in the port group to sleep. Based on this, in one embodiment, the method further includes:

[0119] Configure or update the reserved resources or sleep threshold of the port group of the network device.

[0120] Here, the controller can configure or update the reserved resources or sleep threshold based on the port group of the network device. Before the controller sends the first information to the network device for the first time, the controller configures the reserved resources or sleep threshold of the port group of the network device; before the controller sends the first information to the network device for a non-first time, the controller can update the reserved resources or sleep threshold of the port group of the network device.

[0121] In actual application, the controller updates the reserved resources or dormant threshold of the port group of the relevant network device when at least one of the following conditions is met: the network topology of the first network changes, the port of the network device fails, and the port state of the network device changes. The port state includes a dormant state or an activated state; a change in the port state can be understood as a change from a dormant state to an activated state, or from an activated state to a dormant state.

[0122] In order to enable the network device to accurately determine whether to put an idle port in a port group into sleep mode, in one embodiment, configuring or updating the reserved resources or sleep threshold of the port group of the network device includes:

[0123] Configure or update the reserved resources or sleep threshold of a port group of a network device based on at least one of the following:

[0124] The total resources of the port group of the network device;

[0125] The probability of a port group of a network device carrying services;

[0126] A first number, wherein the first number represents a total number of routing paths of a group of services;

[0127] A second number characterizes the number of routing paths passing through the port group of the network device.

[0128] Here, the controller can configure the reserved resources or sleep threshold of the port group of the network device based on the set percentage and the total resources of the port group of the network device. For example, the product of the set percentage and the total resources of the port group 1 of the network device is determined to obtain a first value, and the reserved resources or sleep threshold of the port group 1 of the network device is configured according to the first value. Among them, the reserved resources of the port group 1 are less than or equal to the first value. The set percentage can be set according to actual conditions, for example, the set percentage is less than or equal to 50%.

[0129] The controller can configure the reserved resources or sleep threshold of the port group of the network device based on the total resources of the port group of the network device and the probability of the port group of the network device carrying the service. For example, the product of the total resources of port group 2 and the probability of port group 2 carrying the service is determined to obtain a second value, and the reserved resources or sleep threshold of port group 2 of the network device is configured according to the second value. Among them, the greater the probability of any port group carrying the service, the more reserved resources of the port group, or the lower the sleep threshold of the port group.

[0130] The probability of a port group of a network device carrying a service may be a preconfigured or estimated probability, or may be determined by a controller based on a first quantity and a second quantity. For example, the probability of a port group 3 of a network device carrying a service is equal to the quotient of the first quantity and the second quantity. The second quantity represents the number of routing paths passing through the port group 3 of the network device.

[0131] It should be noted that the second number corresponds to the number of port groups of the network device.

[0132] In order to accurately determine the reserved resources or sleep threshold of the port group of the network device, so that the network device can accurately make a decision on port sleep or port activation, thereby reducing the power consumption of the network device as much as possible without affecting the service response speed. Based on this, in one embodiment, the method also includes:

[0133] Use the following formula to determine the reserved resources or sleep threshold of the port group of the network device:

[0134] or

[0135] in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ng Represents the number of routing paths passing through the port group g of the network device n; R represents the total number of routing paths for a group of services; a represents a configuration constant.

[0136] Here, g and n are positive integers, and both g and n are less than or equal to the total number of network devices in the first network. R corresponds to the first number, r ng is the second quantity corresponding to the port group g of the network device n, Characterizes the probability of carrying services through port group g on network device n. a can be a value greater than 0 and less than 1, and a can be understood as redundancy or redundancy. It should be noted that a can be manually configured, for example, relevant personnel can set a with reference to the volume of services carried by the first network. The volume of services carried by the first network can be historical volume of services, or estimated or predicted volume of services.

[0137] In order to improve the accuracy of the probability of a port group of a network device carrying a service, in one embodiment, the method further includes:

[0138] Determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; wherein the second information represents the port information of the network device; every two first network devices correspond to one service, and the first network device represents the service access node in the network device of the first network;

[0139] Based on the first number and the second number, a probability that the port group of the network device carries the service is determined.

[0140] Here, the controller determines the first network device among the network devices of the first network, and determines a group of services corresponding to all the first network devices; wherein, every two first network devices correspond to one service, and every two first network devices are the ingress node and egress node of the corresponding service, respectively, and a group of services is a collection of services corresponding to every two first network devices, that is, all first network devices correspond to a group of services; based on the network topology of the first network and the second information of all network devices, the shortest routing path of the services corresponding to every two first network devices is determined, thereby determining the total number of routing paths of a group of services corresponding to all first network devices, and obtaining a first quantity. The first network device may include at least CPE and / or CE devices.

[0141] The controller can determine the number of routing paths passing through each port group of each network device based on the shortest routing path of the service corresponding to every two first network devices, and based on the network topology of the first network and the second information of all network devices, thereby obtaining the second number corresponding to each port group of each network device.

[0142] The controller determines the probability of each port group of the network device carrying the service based on the first number and the second number corresponding to each port group of the network device when determining the first number and the second number corresponding to each port group of the network device. For example, the controller determines the probability of port group 3 of network device 1 carrying the service based on the first number and the second number corresponding to port group 3 of network device 1.

[0143] Before determining the first quantity and / or the second quantity, the controller also needs to obtain second information of the network device. Based on this, in one embodiment, the method further includes:

[0144] Acquire second information of the network device of the first network; wherein,

[0145] The second information includes at least a port identifier and / or a port status.

[0146] Here, the controller may actively request the network device to obtain the second information, or may receive the second information actively reported by the network device.

[0147] Since the port status of the network device changes dynamically, in order to improve the accuracy of the reserved resources or sleep threshold determined by the controller, when the port status of the network device changes, the second information of the network device is actively reported to the controller. Among them, the port identifier corresponds to the port status, the port identifier can be called a port ID (Identifier), and the port status can be a sleep state or an active state.

[0148] Correspondingly, the embodiment of the present application also provides a port control method, which is applied to a network device of a first network, such as Figure 3 As shown, the method includes:

[0149] Step 301: Receive first information sent by a controller.

[0150] The first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0151] The dormancy threshold of the port group is used for the network device to decide whether to control the idle ports in the port group to enter the dormant state; the reserved resources of the port group are used for the network device to decide whether to activate the dormant ports in the port group, or control the idle ports in the port group to enter the dormant state.

[0152] In one embodiment, the first information includes at least one of the following:

[0153] The port group identifier;

[0154] The port list of the port group;

[0155] The port identifier of each port included in the port group;

[0156] The first identifier is used to indicate whether the port sleep function is enabled;

[0157] Reserved resources of the port group;

[0158] Sleep threshold of a port group.

[0159] In one embodiment, the method further comprises:

[0160] Based on the received first information, port hibernation and / or port activation are performed.

[0161] Here, executing port hibernation may be understood as controlling the port to enter a hibernation state, or putting the port into hibernation; executing port activation may be understood as activating the port.

[0162] For example, when the remaining resources of the port group of the network device are greater than the dormancy threshold of the port group, the network device performs port dormancy and controls some ports (idle ports) in the port group to enter a dormant state. An idle port can be understood as an unused and activated port.

[0163] For another example, when the remaining resources of any port group of the network device are less than the reserved resources of the port group, the network device performs port activation to activate at least some of the ports in the port group that are in a dormant state, so that after activating at least some of the ports, the remaining resources of the port group are greater than or equal to the reserved resources of the port group.

[0164] In one embodiment, based on the received first information, performing port hibernation includes:

[0165] When the sum of resources of idle ports in the port group is greater than the reserved resources or the sleep threshold of the port group, at least part of the idle ports in the port group are put into sleep mode.

[0166] Here, when the network device obtains the reserved resources or sleep threshold of any port group, the resources (such as bandwidth) of all idle ports in the port group are summed to obtain the sum of the resources of the idle ports in the port group; the sum of the resources of the idle ports in the port group is compared with the reserved resources or sleep threshold of the port group to obtain a comparison result; when the comparison result indicates that the sum of the resources of the idle ports in the port group is greater than the reserved resources or sleep threshold of the port group, some of the idle ports in the port group are put into sleep mode, thereby reserving some of the idle ports for access to new services. Putting some of the idle ports in the port group into sleep mode can be understood as controlling some of the idle ports in the port group to enter a sleep state.

[0167] In one embodiment, the sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0168] Here, for example, when the sum of the bandwidths of all idle ports in port group 1 of network device 1 is greater than b1 r 1, put some idle ports in port group 1 of network device 1 into sleep mode, and ensure that the sum of the bandwidths of all remaining idle ports is greater than or equal to Characterizes the reserved resources or dormant threshold of port group 1 on network device 1. Therefore, when a new service is connected, the new service is connected through the remaining idle ports, which can reduce the time consumed by activating the port after the new service arrives, thereby improving the service response speed.

[0169] In one embodiment, based on the received first information, performing port activation includes:

[0170] When the sum of resources of idle ports in the port group is less than or equal to the reserved resources or the sleep threshold of the port group, at least some of the sleep ports in the port group are activated.

[0171] Here, when the network device obtains the reserved resources or sleep threshold of any port group, it determines the sum of the resources (such as bandwidth) of the idle ports in the port group, and compares the sum of the resources of the idle ports in the port group with the reserved resources or sleep threshold of the port group to obtain a comparison result; when the comparison result indicates that the sum of the resources of the idle ports in the port group is less than the reserved resources or sleep threshold of the port group, some of the dormant ports in the port group are activated; dormant ports can be understood as ports in a dormant state. In this solution, before the arrival of new services, some dormant ports are activated first to wait for access to new services, which can reduce the time consumed by activating ports after the arrival of new services and improve service response speed.

[0172] The sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0173] For example, when the sum of the bandwidths of the idle ports in port group 1 of network device 1 is less than b1 r 1, activate at least some of the ports in the dormant state in port group 1 of network device 1 until the sum of the bandwidths of all idle ports is greater than or equal to b1 r 1.

[0174] In one embodiment, the method further comprises:

[0175] Reporting second information of the network device to the controller; wherein,

[0176] The second information includes at least a port identifier and / or a port status.

[0177] Here, when the network device reports the second information for the first time, the second information includes the port identifiers and corresponding port states of all ports of the network device. When the network device does not report the second information for the first time, the second information may only include relevant information of the port whose port state has changed. For example, when the port state of any port of the network device changes, the second information of the network device is reported to the controller, and the second information includes the port identifier and port state of the port.

[0178] The following is a schematic diagram of the interaction process to further illustrate the embodiment of the present application.

[0179] like Figure 4 As shown, the port control method includes:

[0180] Step 1: The controller obtains the configured constant a.

[0181] Step 2: The controller obtains the network topology of the first network and second information of all network devices of the first network.

[0182] The second information represents the port information of the network device.

[0183] Step 3: The controller groups the ports of the network device to obtain a port group of the network device.

[0184] The controller groups the ports of the network device, including at least one of the following:

[0185] Divide the user-side ports of the network device into a port group;

[0186] Divide the line-side ports of the network device into a port group;

[0187] Divide the ports with the same forwarding direction on the network device into a port group.

[0188] Step 4: Configure the reserved resources or sleep threshold of the port group of the network device based on at least one of the following:

[0189] The total resources of the port group of the network device;

[0190] The probability of a port group of a network device carrying services;

[0191] A first number, wherein the first number represents a total number of routing paths of a group of services;

[0192] A second number characterizes the number of routing paths passing through the port group of the network device.

[0193] The controller can determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; determine the probability that the port group of the network device carries the service based on the first quantity and the second quantity; wherein every two first network devices correspond to one service, and the first network device represents a service access node in the network device of the first network.

[0194] When the probability of the port group of the network device carrying the service is determined, the controller uses the following formula to determine the reserved resources or the sleep threshold of the port group of the network device:

[0195] or

[0196] in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ngrepresents the number of routing paths passing through the port group g of the network device n, that is, the second number corresponding to the port group g of the network device n; R represents the total number of routing paths of a group of services, corresponding to the first number above; a represents a configuration constant.

[0197] Step 5: The controller sends corresponding first information to the network device, and the network device receives the first information.

[0198] The first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device. The first information can be understood as a sleep strategy, and the preview resource can be a reserved bandwidth.

[0199] The first information includes at least one of the following:

[0200] The port group identifier;

[0201] The port list of the port group;

[0202] The port identifier of each port included in the port group;

[0203] The first identifier is used to indicate whether the port sleep function is enabled;

[0204] Reserved resources of the port group;

[0205] Sleep threshold of a port group.

[0206] In actual application, as shown in Table 1 above, the first information includes an identifier of the port group, a port identifier of each port included in the port group, a first identifier, and reserved resources of the port group.

[0207] Step 6: The network device executes port sleep and / or performs port activation based on the received first information.

[0208] Wherein, when the sum of resources of idle ports in the port group is greater than the reserved resources or the sleep threshold of the port group, port sleep is performed to put some idle ports in the port group into sleep. Wherein, the sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0209] Among them, when the sum of resources of idle ports in the port group is less than or equal to the reserved resources or the sleep threshold of the port group, port activation is performed to activate at least part of the sleep ports in the port group until the sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0210] For example, when the sum of the bandwidths of all idle ports in port group 1 of network device 1 is greater than When the network device 1 has some idle ports in port group 1, it will enter sleep mode, and ensure that the sum of the bandwidths of all the remaining idle ports is greater than or equal to Indicates the reserved resources or sleep threshold of port group 1 on network device 1. When the sum of the bandwidths of the idle ports in port group 1 of network device 1 is less than , activating at least some of the ports in the port group 1 of the network device 1 that are in a dormant state until the sum of the bandwidths of all idle ports is greater than or equal to until.

[0211] Step 7: The network device reports second information of the network device to the controller to update the port status; wherein the second information at least includes a port identifier and / or a port status.

[0212] Here, after receiving the updated second information, the controller can redetermine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices, thereby redetermining the probability of the port group of the network device carrying the service based on the first quantity and the second quantity, and executing step 4 and subsequent steps.

[0213] Based on the above scheme, the network equipment can decide whether to put the idle ports in the port group into sleep mode according to the reserved resources or sleep threshold of the port group. Some idle ports can be put into sleep mode and some activated idle ports can be reserved in the same port group. New services can be accessed through the reserved idle ports, which can reduce the time consumed for activating the ports after the arrival of new services, thereby achieving energy saving without affecting the service response speed.

[0214] In order to implement the port control method of the embodiment of the present application, the embodiment of the present application also provides a port control device, which is arranged on the controller, such as Figure 5 As shown, the device comprises:

[0215] The first sending unit 501 is used to send corresponding first information to the network device of the first network; wherein the first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0216] In one embodiment, the device further comprises:

[0217] The configuration unit is used to configure or update the reserved resources or sleep threshold of the port group of the network device.

[0218] In one embodiment, the configuration unit is specifically configured to configure or update the reserved resources or sleep threshold of the port group of the network device based on at least one of the following:

[0219] The total resources of the port group of the network device;

[0220] The probability of a port group of a network device carrying services;

[0221] A first number, wherein the first number represents a total number of routing paths of a group of services;

[0222] A second number characterizes the number of routing paths passing through the port group of the network device.

[0223] In one embodiment, the configuration unit is further configured to determine the reserved resources or sleep threshold of the port group of the network device by using the following formula:

[0224] or

[0225] in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ng Represents the number of routing paths passing through the port group g of the network device n; R represents the total number of routing paths for a group of services; a represents a configuration constant.

[0226] In one embodiment, the configuration unit is also used to determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; and based on the first quantity and the second quantity, determine the probability that the port group of the network device carries the service; wherein the second information represents the port information of the network device; every two first network devices correspond to one service, and the first network device represents the service access node in the network device of the first network.

[0227] In one embodiment, the device further comprises:

[0228] An acquiring unit is used to acquire second information of the network device of the first network; wherein the second information at least includes a port identifier and / or a port status.

[0229] In one embodiment, the first information includes at least one of the following:

[0230] The port group identifier;

[0231] The port list of the port group;

[0232] The port identifier of each port included in the port group;

[0233] The first identifier is used to indicate whether the port sleep function is enabled;

[0234] Reserved resources of the port group;

[0235] Sleep threshold of a port group.

[0236] In one embodiment, the device further comprises:

[0237] The grouping unit is used to group the ports of the network device to obtain the port group of the network device.

[0238] In one embodiment, the grouping unit is specifically used for at least one of the following:

[0239] Divide the user-side ports of the network device into a port group;

[0240] Divide the line-side ports of the network device into a port group;

[0241] Divide the ports with the same forwarding direction on the network device into a port group.

[0242] In actual application, the first sending unit 501 can be implemented by a processor in the port control device in combination with a communication interface, and the configuration unit, the acquisition unit and the grouping unit can be implemented by the processor in the port control device.

[0243] In order to implement the port control method of the embodiment of the present application, the embodiment of the present application also provides a port control device, which is arranged on a network device of the first network, such as Figure 6 As shown, the device comprises:

[0244] The first receiving unit 601 is used to receive first information sent by the controller; wherein the first information corresponds to a network device, and the first information is at least used to indicate reserved resources or a sleep threshold of a port group of the network device.

[0245] In one embodiment, the device further comprises:

[0246] The processing unit is configured to execute port dormancy and / or port activation based on the received first information.

[0247] In one embodiment, the processing unit is specifically configured to put some of the idle ports in the port group into sleep mode when the sum of resources of the idle ports in the port group is greater than the reserved resources or the sleep threshold of the port group.

[0248] In one embodiment, the processing unit is specifically configured to activate at least some of the dormant ports in the port group when the sum of resources of the idle ports in the port group is less than or equal to the reserved resources or the dormant threshold of the port group.

[0249] In one embodiment, the sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0250] In one embodiment, the first information includes at least one of the following:

[0251] The port group identifier;

[0252] The port list of the port group;

[0253] The port identifier of each port included in the port group;

[0254] The first identifier is used to indicate whether the port sleep function is enabled;

[0255] Reserved resources of the port group;

[0256] Sleep threshold of a port group.

[0257] In one embodiment, the device further comprises:

[0258] The second sending unit is used to report second information of the network device to the controller; wherein the second information at least includes a port identifier and / or a port status.

[0259] In actual application, the first receiving unit 601 and the second sending unit can be implemented by a processor in the port control device in combination with a communication interface, and the processing unit can be implemented by a processor in the port control device.

[0260] It should be noted that: the port control device provided in the above embodiment only uses the division of the above program modules as an example to illustrate when performing port control. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the port control device provided in the above embodiment and the port control method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0261] Based on the hardware implementation of the above program modules, and in order to implement the method on the controller side of the embodiment of the present application, the embodiment of the present application also provides a controller, such as Figure 7 As shown, the controller 700 includes:

[0262] The first communication interface 701 is capable of exchanging information with other network nodes;

[0263] The first processor 702 is connected to the first communication interface 701 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions of the controller side when running a computer program. The computer program is stored in the first memory 703.

[0264] Specifically, the first communication interface 701 is used to send corresponding first information to the network device of the first network; wherein the first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

[0265] In one embodiment, the first processor 702 is used to configure or update the reserved resources or sleep threshold of the port group of the network device.

[0266] In one embodiment, the first processor 702 is specifically configured to configure or update the reserved resources or sleep threshold of the port group of the network device based on at least one of the following:

[0267] The total resources of the port group of the network device;

[0268] The probability of a port group of a network device carrying services;

[0269] A first number, wherein the first number represents a total number of routing paths of a group of services;

[0270] A second number characterizes the number of routing paths passing through the port group of the network device.

[0271] In one embodiment, the first processor 702 is further configured to determine the reserved resources or the sleep threshold of the port group of the network device by using the following formula:

[0272] or

[0273] in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ng Represents the number of routing paths passing through the port group g of the network device n; R represents the total number of routing paths for a group of services; a represents a configuration constant.

[0274] In one embodiment, the first processor 702 is further used to determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; and determine the probability that the port group of the network device carries the service based on the first quantity and the second quantity; wherein the second information represents the port information of the network device; every two first network devices correspond to one service, and the first network device represents the service access node in the network device of the first network.

[0275] In one embodiment, the first processor 702 is further configured to obtain second information of the network device of the first network; wherein the second information at least includes a port identifier and / or a port status.

[0276] In one embodiment, the first information includes at least one of the following:

[0277] The port group identifier;

[0278] The port list of the port group;

[0279] The port identifier of each port included in the port group;

[0280] The first identifier is used to indicate whether the port sleep function is enabled;

[0281] Reserved resources of the port group;

[0282] Sleep threshold of a port group.

[0283] In one embodiment, the first processor 702 is further configured to group ports of the network device to obtain a port group of the network device.

[0284] In one embodiment, the first processor 702 is specifically configured to:

[0285] Divide the user-side ports of the network device into a port group;

[0286] Divide the line-side ports of the network device into a port group;

[0287] Divide the ports with the same forwarding direction on the network device into a port group.

[0288] It should be noted that the specific processing process of the first processor 702 and the first communication interface 701 can be understood by referring to the above method.

[0289] Of course, in actual application, the various components in the controller 700 are coupled together through the bus system 704. It can be understood that the bus system 704 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 704 .

[0290] The first memory 703 in the embodiment of the present application is used to store various types of data to support the operation of the controller 700. Examples of such data include: any computer program used to operate on the controller 700.

[0291] The method disclosed in the above embodiment of the present application can be applied to the first processor 702, or implemented by the first processor 702. The first processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the first processor 702. The above-mentioned first processor 702 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 702 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 703, and the first processor 702 reads the information in the first memory 703 and completes the steps of the above method in combination with its hardware.

[0292] In an exemplary embodiment, the controller 700 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0293] Based on the hardware implementation of the above program modules, and in order to implement the method on the network device side of the first network of the embodiment of the present application, the embodiment of the present application also provides a network device, such as Figure 8 As shown, the network device 800 includes:

[0294] The second communication interface 801 is capable of exchanging information with other network nodes;

[0295] The second processor 802 is connected to the second communication interface 801 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions of the network device side when running the computer program. The computer program is stored in the second memory 803.

[0296] Specifically, the second communication interface 801 is used to receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

[0297] In one embodiment, the second processor 802 is configured to execute port sleep and / or execute port activation based on the received first information.

[0298] In one embodiment, the second processor 802 is specifically configured to put some idle ports in the port group into hibernation when the sum of resources of the idle ports in the port group is greater than the reserved resources or the hibernation threshold of the port group.

[0299] In one embodiment, the second processor 802 is specifically configured to activate at least some of the dormant ports in the port group when the sum of resources of the idle ports in the port group is less than or equal to the reserved resources or the dormant threshold of the port group.

[0300] In one embodiment, the sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

[0301] In one embodiment, the first information includes at least one of the following:

[0302] The port group identifier;

[0303] The port list of the port group;

[0304] The port identifier of each port included in the port group;

[0305] The first identifier is used to indicate whether the port sleep function is enabled;

[0306] Reserved resources of the port group;

[0307] Sleep threshold of a port group.

[0308] In one embodiment, the second communication interface 801 is further used to report second information of the network device to the controller; wherein the second information at least includes a port identifier and / or a port status.

[0309] It should be noted that the specific processing process of the second processor 802 and the second communication interface 801 can be understood by referring to the above method.

[0310] Of course, in actual application, the various components in the network device 800 are coupled together through the bus system 804. It can be understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804 .

[0311] The second memory 803 in the embodiment of the present application is used to store various types of data to support the operation of the network device 800. Examples of such data include: any computer program used to operate on the network device 800.

[0312] The method disclosed in the above embodiment of the present application can be applied to the second processor 802, or implemented by the second processor 802. The second processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 802. The above-mentioned second processor 802 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 802 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the second memory 803. The second processor 802 reads the information in the second memory 803 and completes the steps of the above method in combination with its hardware.

[0313] In an exemplary embodiment, the network device 800 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0314] It can be understood that the memory (first memory 703, second memory 803) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0315] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 703 storing a computer program, and the computer program can be executed by the first processor 702 of the controller 700 to complete the steps of the controller-side method described above. For another example, a second memory 803 storing a computer program can be executed by the second processor 802 of the network device 800 to complete the steps of the network device-side method described above. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

[0316] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0317] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0318] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0319] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A port control method, characterized in that: Applied to a controller, the method comprises: Sending corresponding first information to the network device of the first network; wherein, The first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

2. The method according to claim 1, characterized in that: The method further comprises: Configure or update the reserved resources or sleep threshold of the port group of the network device.

3. The method according to claim 2, characterized in that The configuring or updating the reserved resources or sleep threshold of the port group of the network device includes: Configure or update the reserved resources or sleep threshold of a port group of a network device based on at least one of the following: The total resources of the port group of the network device; The probability of a port group of a network device carrying services; A first number, wherein the first number represents a total number of routing paths of a group of services; A second number characterizes the number of routing paths passing through the port group of the network device.

4. The method according to claim 3, characterized in that The method further comprises: Use the following formula to determine the reserved resources or sleep threshold of the port group of the network device: or in, Characterizes the reserved resources or sleep threshold of port group g on network device n; B ng Represents the total resources of port group g on network device n; r ng Represents the number of routing paths passing through the port group g of the network device n; R represents the total number of routing paths for a group of services; a represents a configuration constant.

5. The method according to claim 3, characterized in that: The method further comprises: Determine the first quantity and / or the second quantity based on the network topology of the first network and the second information of all network devices; wherein the second information represents the port information of the network device; every two first network devices correspond to one service, and the first network device represents the service access node in the network device of the first network; Based on the first number and the second number, a probability that the port group of the network device carries the service is determined.

6. The method according to claim 5, characterized in that The method further comprises: Acquire second information of the network device of the first network; wherein, The second information includes at least a port identifier and / or a port status.

7. The method according to any one of claims 1 to 6, characterized in that: The first information includes at least one of the following: The port group identifier; The port list of the port group; The port identifier of each port included in the port group; The first identifier is used to indicate whether the port sleep function is enabled; Reserved resources of the port group; Sleep threshold of a port group.

8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The ports of the network device are grouped to obtain a port group of the network device.

9. The method according to claim 8, characterized in that The grouping of the ports of the network device includes at least one of the following: Divide the user-side ports of the network device into a port group; Divide the line-side ports of the network device into a port group; Divide the ports with the same forwarding direction on the network device into a port group.

10. A port control method, characterized in that: A network device applied to a first network, the method comprising: Receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

11. The method according to claim 10, characterized in that The method further comprises: Based on the received first information, port hibernation and / or port activation are performed.

12. The method according to claim 11, characterized in that Based on the received first information, performing port hibernation includes: When the sum of the resources of the idle ports in the port group is greater than the reserved resources or the sleep threshold of the port group, some of the idle ports in the port group are put into sleep mode.

13. The method according to claim 11, characterized in that Based on the received first information, performing port activation includes: When the sum of resources of idle ports in the port group is less than or equal to the reserved resources or the sleep threshold of the port group, at least some of the sleep ports in the port group are activated.

14. The method according to claim 12 or 13, characterized in that The sum of resources of the remaining idle ports in the port group is greater than or equal to the reserved resources or the sleep threshold of the port group.

15. The method according to any one of claims 10 to 13, characterized in that The first information includes at least one of the following: The port group identifier; The port list of the port group; The port identifier of each port included in the port group; The first identifier is used to indicate whether the port sleep function is enabled; Reserved resources of the port group; Sleep threshold of a port group.

16. The method according to any one of claims 10 to 13, characterized in that The method further comprises: Reporting second information of the network device to the controller; wherein, The second information includes at least a port identifier and / or a port status.

17. A port control device, characterized in that: include: The first sending unit is used to send the corresponding first information to the network device of the first network; wherein, The first information is at least used to indicate the reserved resources or the sleep threshold of the port group of the network device.

18. A port control device, characterized in that: include: The first receiving unit is used to receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

19. A controller, characterized in that: comprising a first processor and a first communication interface, wherein: The first communication interface is used to send corresponding first information to the network device of the first network; wherein the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

20. A network device, characterized in that: comprising a second processor and a second communication interface, wherein: The second communication interface is used to receive first information sent by the controller; wherein the first information corresponds to the network device, and the first information is at least used to indicate the reserved resources or sleep threshold of the port group of the network device.

21. A controller, characterized in that: comprising a first processor and a first memory for storing a computer program capable of being executed on the first processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 9 are executed.

22. A network device, characterized in that: comprising a second processor and a second memory for storing a computer program executable on the second processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 10 to 16 are executed.

23. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented, or the steps of the method according to any one of claims 10 to 16 are implemented.

Citation Information

Patent Citations

  • Resources reservation method and related equipment

    CN109391563A

  • Hybrid queue architecture and hybrid scheduling method for input queue switch

    CN110011934A

  • BWP management method and device, and terminal

    CN112771922A

  • Method, device and system for forwarding message

    CN114157600A

  • Policy driven network QOS deployment

    US20180048537A1