Access link determination method and device, network equipment and storage medium
By selecting the access link of terminal equipment based on carbon emissions, the problem that the prior art cannot meet users' green energy saving needs is solved, and the access and energy consumption of low-power links are reduced.
Patent Information
- Application Number
- CN202311776181.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-06-24
AI Technical Summary
The prior art cannot meet users' needs for green energy-saving networks, especially when determining the access link of the terminal device, and cannot effectively reduce energy consumption.
By determining multiple candidate access links of the terminal device, and based on the link carbon emissions between BNG, service nodes and nodes on each candidate access link, the access link with the smallest carbon emissions is selected as the target access link.
It realizes the connection of terminal equipment to low-power links, reduces the energy consumption of service transmission, and meets users' needs for green energy-saving networks.
Smart Images

Figure CN120200950A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a method, apparatus, network device, and storage medium for determining an access link. Background Art
[0002] Currently, in an Internet Protocol (IP) network, when a terminal device goes online, it can determine multiple access links passing through a pre-configured broadband network gateway (BNG), and select one access link from the multiple access links as the link for the terminal device to access the network according to the link length, time overhead, or load condition of the multiple access links. However, in the development trend of green and low-carbon networks, the above method for determining the access link of a terminal device cannot meet the user's demand for green and energy-saving networks. Summary of the Invention
[0003] This application provides a method, apparatus, network device, and storage medium for determining an access link, which can support the terminal device to access a low-power link, help reduce the energy consumption of service transmission after the terminal device accesses the network, and thus meet the customer's demand for a green and energy-saving network.
[0004] To achieve the above object, this application adopts the following technical solutions:
[0005] In a first aspect, a method for determining an access link is provided, which determines multiple candidate access links for a terminal device; and determines the target access link of the terminal device from the multiple candidate access links based on the carbon emissions of the BNG, the carbon emissions of service nodes, and the link carbon emissions between adjacent nodes on each candidate access link.
[0006] In this application, multiple candidate access links for a terminal device are determined, and the access link of the terminal device is determined based on the carbon emissions of each service node and BNG and the link carbon emissions between nodes on each candidate access link. That is, this application uses carbon emissions as a decision factor for the access link of the terminal device, provides support for the terminal device to access a low-power link, helps reduce the energy consumption of service transmission after the terminal device accesses the network, and thus meets the customer's demand for a green and energy-saving network.
[0007] Optionally, the method further includes: obtaining measurement values of multiple carbon emission factors of the BNG; and obtaining the carbon emissions of the BNG based on the measurement values of the multiple carbon emission factors of the BNG.
[0008] Among them, the implementation process of obtaining the carbon emissions of the BNG based on the measured values of multiple carbon emission factors of the BNG may include: determining the weight value corresponding to the measured value of each carbon emission factor of the BNG; determining the carbon emissions of the BNG based on the measured value of each carbon emission factor of the BNG and the corresponding weight value.
[0009] Optionally, the multiple carbon emission factors of the BNG include at least two of user access rate, user detection rate, number of users, forwarding traffic, device temperature, fan speed, anti-avalanche state, and overall machine routing power.
[0010] This application also provides a metering method for the carbon emissions of the BNG, providing support for realizing a BNG with low power consumption for user access.
[0011] Optionally, the implementation process of determining the target access link of the terminal device from the multiple candidate access links based on the carbon emissions of the broadband network gateway (BNG) on each candidate access link, the carbon emissions of the service node, and the link carbon emissions between adjacent nodes may include: determining the sum of the carbon emissions of the BNG, the carbon emissions of the service node, and the link carbon emissions between nodes on each candidate access link to obtain the total carbon emissions of each candidate access link; determining the target access link based on the total carbon emissions of the multiple candidate access links.
[0012] In this application, the sum of the carbon emissions of the BNG, the carbon emissions of the service node, and the link carbon emissions between nodes on each candidate access link is determined to obtain the total carbon emissions of each candidate access link. On this basis, the target access link is selected based on the total carbon emissions of each candidate access link, so that end-to-end green energy saving can be achieved from the terminal device to the service node connected to the external network when the user goes online and accesses.
[0013] Optionally, the implementation process of determining the target access link based on the total carbon emissions of the multiple candidate access links may include: determining the access link with the smallest total carbon emissions among the multiple candidate access links as the target access link.
[0014] In this application, the access link with the smallest total carbon emissions can be used as the target access link to enable the terminal device to access a low-power consumption link.
[0015] Optionally, the implementation process of determining the target access link based on the total carbon emissions of the multiple candidate access links may include: determining the link comprehensive weight value of each candidate access link based on the total carbon emissions of each candidate access link and other link evaluation index values; determining the target access link from the multiple candidate access links based on the link comprehensive weight value of each candidate access link.
[0016] In this application, the access link of the terminal device can be selected by comprehensively considering the carbon emissions of the candidate access links and other link evaluation metrics. In this way, the demand of users for low-power links can be satisfied as much as possible, and at the same time, the transmission performance of the link can be ensured as much as possible.
[0017] Optionally, the implementation process of determining multiple candidate access links of the terminal device may include: determining multiple available access links of the terminal device, where the multiple available access links correspond to multiple BNGs; based on the carbon emissions and priorities of the BNGs on each available access link, as well as the carbon emissions of the service nodes between the corresponding BNGs and the terminal device and the link carbon emissions between the nodes, determining the primary BNG and the backup BNG from the multiple BNGs; and determining the multiple available access links where the primary BNG is located as the multiple candidate access links.
[0018] In this application, a primary BNG can be selected from multiple available access links of the terminal device according to the carbon emissions of multiple BNGs to implement user access. That is, the decision of the primary BNG and the backup BNG can be made based on the carbon emissions of the BNG, so that the terminal device can autonomously access the low-power BNG, realizing the green energy saving of the BNG.
[0019] Optionally, the method further includes: if any one of the carbon emissions of the service nodes on the first candidate access link, the link carbon emissions between the nodes, and the carbon emissions of the BNG on the multiple candidate access links changes, determining the changed total carbon emissions of the first candidate access link based on the changed carbon emissions; and switching the target access link to a second candidate access link based on the changed total carbon emissions of the first candidate access link.
[0020] In this application, after the target access link is determined, if the carbon emissions of the service nodes, BNGs, or the links between the nodes in the subsequent network change, the changed total carbon emissions of the corresponding candidate access links can be recalculated, and the target access link can be updated based on the changed total carbon emissions, so that the terminal device can still access through the low-power link even when the total carbon emissions of the link change.
[0021] Optionally, before switching the target access link to a second candidate access link, if the BNG on the target access link is different from the BNG on the second candidate access link, obtaining the switching duration based on the number of user accesses of the BNG on the target access link; and switching the BNG on the second candidate access link to the primary BNG within the switching duration.
[0022] In this application, when the target access link and the BNG on the second candidate access link are different, before switching the target access link, the corresponding switching duration can be obtained based on the number of user accesses to the BNG on the target access link, so as to ensure that the user information in the BNG on the target access link can be backed up to the BNG on the second candidate access link within this switching duration as much as possible, thereby realizing the switching of the primary BNG.
[0023] Optionally, the implementation process of determining the total changed carbon emissions of the first candidate access link based on the changed carbon emissions may include: If the number of change times of the carbon emissions of the service nodes, the link carbon emissions between nodes, or the carbon emissions of the BNG on the first candidate access link within the first duration before the current moment is not greater than the first threshold, then determine the total changed carbon emissions of the first candidate access link based on the changed carbon emissions.
[0024] In this application, when the carbon emissions of a certain service node, the link carbon emissions between two nodes, or the carbon emissions of the BNG on the first candidate access link change, the number of change times of the carbon emissions of this service node, the link carbon emissions between these two nodes, or the carbon emissions of this BNG within the first duration before the current moment can be obtained. If the number of change times is not greater than the first threshold, then perform the operation of determining the total changed carbon emissions of the first candidate access link. In this way, frequent link switching can be avoided in the case of equipment failure or link failure, and frequent changes in the carbon emissions of service nodes, links between nodes, or BNGs, thereby reducing the impact on services.
[0025] In a second aspect, an access link determination device is provided. The access link determination device includes at least one module, and the at least one module is used to execute the access link determination method described in the first aspect above.
[0026] In a third aspect, a network device is provided. The network device includes a processor, and the processor is used to execute at least one program instruction or code stored in a memory to implement the access link determination method described in the first aspect above.
[0027] In a fourth aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium, and when the instructions run on a computer device, the computer device is caused to execute the access link determination method described in the first aspect above.
[0028] In a fifth aspect, a computer program product containing instructions is provided. When the computer program product runs on a communication device, the communication device is caused to execute the access link determination method described in the first aspect above.
[0029] The technical effects obtained in the second, third, fourth, and fifth aspects are similar to those obtained by the corresponding technical means in the first aspect, and will not be elaborated here.
[0030] In the embodiments of the present application, for multiple candidate access links of a terminal device, the access link of the terminal device can be determined according to the carbon emissions of each service node and BNG on each candidate access link and the carbon emissions of the link between nodes. That is, in the embodiments of the present application, carbon emissions are used as a decision factor for the access link of the terminal device, which provides support for the terminal device to access a low-power link, helps reduce the energy consumption of service transmission after the terminal device accesses the network, and thus meets the customer's demand for a green and energy-saving network. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 FIG. is a schematic structural diagram of a network system provided by an embodiment of the present application;
[0032] Figure 2 FIG. is a schematic structural diagram of a network device provided by an embodiment of the present application;
[0033] Figure 3 FIG. is a flowchart of a method for determining an access link provided by an embodiment of the present application;
[0034] Figure 4 FIG. is a schematic diagram of carrying carbon emissions by an IGP message provided by an embodiment of the present application;
[0035] Figure 5 FIG. is a schematic diagram of link segmentation from a terminal device to each BNG provided by an embodiment of the present application;
[0036] Figure 6 FIG. is a schematic diagram of a target access link determined based on the total carbon emissions of an access link provided by an embodiment of the present application;
[0037] Figure 7 FIG. is a schematic diagram of a new target access link determined based on the changed total carbon emissions of an access link after the carbon emissions of a BNG change provided by an embodiment of the present application;
[0038] Figure 8 FIG. is a schematic structural diagram of an access link determination device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0040] Before explaining the embodiments of the present application in detail, the application scenarios related to the embodiments of the present application will be introduced first.
[0041] Currently, under the development trend of green and low-carbon networks, the demand for green energy conservation of forwarding devices such as routers and switches is also increasing. For example, in an IP network, the demand for green energy conservation of access links when users access the network through a BNG is also increasing. However, currently, when a terminal device goes online, it usually determines multiple access links passing through the BNG according to a pre-configured BNG, and selects one access link from these multiple access links as the link for the terminal device to access the network based on the link length, time overhead, or load condition of the multiple access links. It can be seen that under the development trend of green and low-carbon networks, the above method for determining the access link of a terminal device cannot meet the user's demand for green energy conservation of the network. Based on this, the embodiments of the present application provide a method for determining the access link of a terminal device. In this method, for multiple candidate access links of a terminal device, the access link of the terminal device can be determined according to the carbon emissions of each service node and the BNG on each candidate access link and the link carbon emissions between nodes. In this way, it provides support for the terminal device to access a low-power link, helps reduce the energy consumption of service transmission after the terminal device accesses the network, and thus meets the customer's demand for a green and energy-saving network.
[0042] Next, the structure of the network system related to the method for determining the access link provided by the embodiments of the present application will be introduced.
[0043] Figure 1 is an architecture diagram of a network system provided by the embodiments of the present application. As Figure 1 shown, the network system may include a terminal device 101, at least one BNG, and multiple service nodes. Figure 1 In this, it is described by taking the network system including two BNGs, namely BNG1 and BNG2, as an example. In addition, the multiple service nodes may include at least one provider edge (PE) node and at least one provider (P) node. Figure 1 In this, it is described by taking the multiple service nodes including PE1 node, PE2 node, P3 node, P4 node, P5 node, P6 node, and PE7 node as an example for illustration.
[0044] Among them, the PE node is an edge routing device of the IP backbone network, and is used for service access and service data forwarding. For example, refer to Figure 1, the terminal device 101 can communicate with the PE1 node and the PE2 node, so as to access the IP network through the PE1 node or the PE2 node. For another example, the PE7 node can be used as the egress of the service data in the IP network. In this way, the PE7 node can forward the service data forwarded by the P5 node or the P6 node to other networks.
[0045] The P node is the backbone routing device of the IP backbone network. The P node is mainly used for forwarding service data within the IP network. For example, refer to Figure 1 , communication connections are established between the P3 node and the PE1 node, the PE2 node, the P5 node, and the P6 node. In this way, the P3 node can receive the service data forwarded by the PE1 node or the PE2 node, and then forward the service data to the P5 node or the P6 node. Similarly, the P4 node can receive the service data forwarded by the PE1 node or the PE2 node, and forward the service data to the P5 node or the P6 node. The P5 node or the P6 node can forward the service data forwarded by the P3 node or the P4 node to the PE7 node.
[0046] The BNG is mainly used for processing user online access. For example, the BNG can be used for user access authentication, management and billing, IP address allocation, service quality management, etc. At present, on the access side of the IP network, a single BNG or a multi-BNG method can be used to achieve user access. The so-called single BNG means that user access is achieved through one BNG. The multi-BNG means that multiple BNGs can be set up. These multiple BNGs can form a VRRP group through the virtual router redundancy protocol (VRRP), and negotiate the master BNG and at least one backup BNG in the VRRP group. Subsequently, the terminal device can access the network through the master BNG, and the backup BNG can back up the user information in the master BNG to take over the master BNG to achieve user access after the master BNG fails. For example, Figure 1 The shown IP network includes two BNGs. These two BNGs form a VRRP group, and through negotiation, one of them is used as the master BNG and the other is used as the backup BNG. In addition, the BNG can be hung beside the P node or the PE node. For example, as Figure 1 shown, BNG1 is hung beside the P3 node, and BNG2 is hung beside the P4 node.
[0047] Optionally, in a possible implementation, the network system may further include a control device 102. The control device 102 may be communicatively connected to each service node and each BNG. Moreover, the control device 102 may be configured to control and manage multiple service nodes and BNGs. For example, the control device 102 may determine the access link of the terminal device by using the method provided in the embodiments of the present application, so that the terminal device can access the network through the access link. Exemplarily, the control device may be a network management device or the like.
[0048] In a possible case, the network system may further include an optical line terminal (OLT) 103. The terminal device 101 may be connected to the PE node through the OLT 103.
[0049] It should be noted that in the embodiments of the present application, the terminal device 101 may refer to user equipment such as a smart phone, a desktop computer, a laptop, or a tablet computer. Alternatively, the terminal device 101 may also refer to a customer premise equipment (CPE) or a residential gateway (RGW). In this case, the CPE or RGW may further be connected to multiple user equipment such as smart phones, desktop computers, and laptops, and the multiple user equipment access the CPE or RGW.
[0050] In addition, the above-mentioned PE node may be an access router (AR) or a service router (SR), etc. The P node may be a broadband router (BR), a core router (CR), etc.
[0051] BNG can be a broadband access server (BAS), a broadband remote access server (BRAS), a broadband network access server (BNAS), or a layer 2 tunneling protocol network server (L2TP (layer 2 tunneling protocol) network server, LNS) or SR. Alternatively, BNG can also be a virtual broadband network gateway (vBNG). In this case, vBNG can include a control plane (CP) device and multiple user plane (UP) devices, wherein a terminal device can access the UP device and the CP device can manage multiple UP devices.
[0052] It should also be noted that in the embodiment of the present application, starting from the PE node to which the terminal device is connected, all the way to the PE node connected to the external network, the system composed of these PE nodes, P nodes and BNG can be called a super system. Figure 1 As shown in the dotted box in FIG, starting from the PE1 node and the PE2 node connected to the terminal device, all the way to the PE7 node, these PE nodes and the four P nodes and two BNGs form a super system. Through this super system, the terminal device can communicate with the external network.
[0053] Figure 2 Schematic diagram of a network device shown in an embodiment of the present application. The BNG, service node, and control device involved in the embodiment of the present application can be Figure 2 The network devices shown are implemented as Figure 2 As shown, the network device may include at least one processor 201, a communication bus 202, a memory 203, and at least one communication interface 204. It should be noted that: Figure 2 The device structure shown does not constitute a limitation on the network device. The network device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which is not limited in the embodiments of the present application. Figure 2 A detailed introduction to each component of network equipment:
[0054] The processor 201 is the control center of the network device, which can be a single processor or a collective term for multiple processing elements. For example, the processor 201 can be a general-purpose central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the solution of this application. For example: one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs). Among them, the processor 201 can execute various functions of the network device by running or executing software programs stored in the memory 203 and calling the data stored in the memory 203. For example, the actions of the network device in the various embodiments described below can be executed by the processor of the corresponding device calling the data in the memory.
[0055] As an embodiment, the processor 201 may include one or more CPUs, such as Figure 2 CPU0 and CPU1 shown in
[0056] As an embodiment, the network device may include multiple processors, such as Figure 2 the processor 201 and the processor 205 shown in
[0057] The communication bus 202 may include a path for transmitting information between the above components. The communication bus 202 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 2 only a thick line is shown in
[0058] The memory 203 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions. It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 203 can exist independently and be connected to the processor 201 through the communication bus 202. The memory 203 can also be integrated with the processor 201. Among them, the memory 203 is used to store the software program for implementing the solution provided in the embodiments of the present application, and is controlled by the processor 201 for execution.
[0059] The communication interface 204 is used to communicate with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc. The communication interface 204 can include a receiving unit to implement the receiving function and a sending unit to implement the sending function.
[0060] As an embodiment, the network device can further include an output device 206 and an input device 207. The output device 206 communicates with the processor 201 and can display information in various ways. For example, the output device 206 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 207 communicates with the processor 201 and can receive inputs in various ways. For example, the input device 207 can be a mouse, a keyboard, a touch screen device, or a sensing device, etc.
[0061] The above network device can be a general network device or a dedicated network device. For example, it can be a desktop computer, a portable computer, a network server, etc., and the embodiments of the present application do not make any limitations thereto.
[0062] Next, a detailed explanation of the access link determination method provided by the embodiments of the present application will be given.
[0063] Figure 3 It is a flowchart of an access link determination method provided by the embodiments of the present application. This method can be applied to network devices in an IP network. The network device can be the BNG, service node, or control device introduced above. See Figure 3 This method includes the following steps:
[0064] Step 301: Determine multiple candidate access links of the terminal device.
[0065] In the embodiments of the present application, in the single-machine BNG scenario, the network device can determine multiple available access links when the terminal device accesses the network through the BNG. These multiple available access links are the multiple candidate access links of the terminal device.
[0066] In the BNG multi-machine backup scenario, the network device can determine candidate access links in the following several ways.
[0067] Method 1: There is a pre-negotiated primary BNG among the multiple BNGs. For example, the primary BNG pre-negotiated through VRRP. In this case, the network device can determine multiple available access links when the terminal device accesses the network through the primary BNG. At this time, these multiple available access links are the multiple candidate access links of the terminal device.
[0068] Method 2: The network device can determine multiple available access links corresponding to the terminal device accessing the network through each BNG among the multiple BNGs. The determined multiple available access links are used as the multiple candidate access links of the terminal device.
[0069] Method 3: The network device can determine multiple available access links corresponding to the terminal device accessing the network through each BNG among the multiple BNGs. Then, obtain the carbon emissions of the multiple BNGs, determine the primary BNG and backup BNG from the multiple BNGs based on the carbon emissions of the multiple BNGs, and further use the multiple available access links where the primary BNG is located as the multiple candidate access links of the terminal device.
[0070] Exemplarily, in the embodiments of the present application, each BNG can calculate its own carbon emissions. Taking any BNG as an example, the BNG can obtain measurement values of its multiple carbon emission factors, and determine its own carbon emissions based on the measurement values of the multiple carbon emission factors.
[0071] Among them, the carbon emission factor refers to the factor that affects the carbon emissions of the device. For example, multiple carbon emission factors of the BNG may include at least two of the user access rate, user detection rate, number of users, forwarding traffic, device temperature, fan speed, anti-avalanche state, and overall routing power of the device. Among them, an increase in the user access rate, user detection rate, number of users, forwarding traffic, device temperature, fan speed, and overall routing power of the device will all cause an increase in carbon emissions. The carbon emissions in the case where the anti-avalanche state is enabled are greater than those in the case where it is not enabled.
[0072] As an example, the BNG may determine the power consumption value corresponding to the measured value of each carbon emission factor according to the mapping relationship between the corresponding carbon emission factor and the power consumption, and add up the power consumption values corresponding to the measured values of multiple carbon emission factors to obtain the carbon emissions of the BNG.
[0073] Among them, the mapping relationship between each carbon emission factor and the power consumption may be a calculation model for converting the measured value of the corresponding carbon emission factor into the corresponding power consumption value, or it may also be a mapping relationship table containing the values of multiple carbon emission factors and the corresponding power consumption values. The embodiments of the present application do not limit this.
[0074] As another example, the BNG may determine the weight value corresponding to the measured value of each carbon emission factor; based on the measured value of each carbon emission factor and the corresponding weight value, determine the carbon emissions of the BNG.
[0075] Among them, a mapping relationship table containing the multiple value ranges of each carbon emission factor and the corresponding weight values may be stored in the BNG, and this mapping relationship table may be pre-configured in the BNG. Optionally, the content in this mapping relationship may also be modified dynamically. Among them, each value range corresponding to any one carbon emission factor may represent a numerical range of the carbon emission factor, and the numerical ranges represented by each value range do not overlap. Based on this, for any one carbon emission factor, the BNG may first obtain the value range corresponding to the measured value of the carbon emission factor from the mapping relationship table, and then use the weight value corresponding to this value as the weight value corresponding to the measured value of the carbon emission factor. After that, the BNG may refer to the method introduced above, based on the mapping relationship between the carbon emission factor and the power consumption, determine the power consumption value corresponding to the measured value of the carbon emission factor, and use the product of the power consumption value corresponding to the measured value of the carbon emission factor and the weight value as the carbon emissions corresponding to the carbon emission factor.
[0076] For each carbon emission factor, the BNG may calculate the carbon emissions corresponding to the corresponding carbon emission factor by referring to the above method, and use the sum of the carbon emissions corresponding to multiple carbon emission factors as the carbon emissions of the BNG.
[0077] For example, Table 1 shows a mapping table of multiple numerical ranges of each carbon emission factor and the corresponding weight values. As shown in Table 1, the value corresponding to numerical range 1 is less than the value corresponding to numerical range 2, and the value corresponding to numerical range 2 is less than the value corresponding to numerical range 3. On this basis, the weight value corresponding to numerical range 1 can be w1, the weight value corresponding to numerical range 2 can be w2, and the weight value corresponding to numerical range 3 can be w3. Moreover, w3 is greater than w2, w2 is greater than w1, and the sum of w1, w2, and w3 is 1. Taking the user access rate as an example, when the measured value of the user access rate obtained by the BNG is less than 300 per second, the measured value of the user access rate is within numerical range 1 of the user access rate, and the weight value corresponding to this measured value is w1. If the measured value of the user access rate is not less than 300 per second and less than 800 per second, the measured value of the user access rate is within numerical range 2 of the user access rate, and the weight value corresponding to this measured value is w2. Additionally, the anti-avalanche state can include an enabled state and a disabled state. In the enabled state, the corresponding value is 0, which is also numerical range 1. In the disabled state, the corresponding value is 1, which is also numerical range 2. It should also be noted that the number of users in Table 1 is characterized by the ratio of the current number of user accesses of the BNG to the maximum number of users that the BNG can access, and the forwarding traffic is characterized by the ratio of the current forwarding traffic of the BNG to the maximum forwarding traffic that the BNG can handle. Of course, the number of users and the forwarding quantity can also be the current number of user accesses and the forwarding traffic of the BNG respectively.
[0078] Table 1 Multiple numerical ranges of carbon emission factors and the corresponding weight values
[0079] Carbon emission factor Numeric gear 1: w1 Numeric gear 2: w2 Numeric gear 3: w3 User access rate <300 / s ≥300 / s and <800 / s ≥800 / s User detection rate <300 / s ≥300 / s and <800 / s ≥800 / s Number of users <30% ≥30% and <50% ≥50% Forwarding traffic <30% ≥30% and <50% ≥50% Anti-avalanche state 0 1 Device temperature <30℃ ≥30°C and <60°C ≥60℃ Fan speed Level 1 Level 2 Level 3 Total machine routing power <30W / h ≥30W / h and <50W / h ≥50W / h and <100W / h
[0080] It should be noted that Table 1 above is an example table of the numerical grades of a carbon emission factor and the corresponding weight values given in the embodiments of the present application. In some possible cases, the numerical grades of the carbon emission factor may include fewer or more grades than those in Table 1 above according to the actual situation. For example, it may include 4, 5 or more numerical grades, and the embodiments of the present application do not limit this. In addition, in the above example, the weight values corresponding to the same numerical grade of each carbon emission factor are equal. In some possible cases, the weight values corresponding to the same numerical grade of each carbon emission factor may also be unequal, and specifically, they can be set according to the influence of the corresponding carbon emission factor on the carbon emissions of BNG. For example, the weight value corresponding to numerical grade 1 of the user access rate may be 0.3, but the weight value corresponding to numerical grade 1 of the user detection rate may be 0.2. Finally, it can be understood that the specific values included in Table 1 above, such as each numerical grade, are only for illustrative purposes. The specific value setting method can refer to the standard baseline corresponding to the corresponding carbon emission factor under normal circumstances or the standard baseline corresponding to the corresponding carbon emission factor under normal energy-saving conditions. Table 1 does not constitute a limitation on the setting of numerical grades in practical applications.
[0081] Taking Table 1 above as an example, assume w1 = 0.2, w2 = 0.3, w3 = 0.5. The measured value of the user access rate of BNG is less than 300 / s, the corresponding weight value is 0.2, and the corresponding power consumption value is 10 W / h; the measured value of the user detection rate is between 300 / s and 800 / s, the corresponding weight value is 0.3, and the corresponding power consumption value is 5 W / h; the measured value of the ratio of the number of users to the forwarding traffic is between 30% and 50%, the corresponding weight value is 0.3, and the corresponding power consumption value is 15 W / h; the anti-avalanche state is the disabled state, the corresponding weight value is 0.2, and the corresponding power consumption value is 10 W / h; the measured value of the device temperature is greater than 60 °C, the corresponding weight value is 0.5, and the corresponding power consumption value is 30 W / h; the measured value of the fan speed is level 2, then the corresponding weight value is 0.3, and the corresponding power consumption value is 20 W / h; the measured value of the overall routing power of the machine is 35 W, the corresponding weight value is 0.3, and the corresponding power consumption value is also 35 W / h.
[0082] In this way, based on the weight values and power consumption values corresponding to the measured values of the above carbon emission factors, the carbon emissions of BNG = (10 * 0.2) + (5 * 0.3) + (15 * 0.3) + (10 * 0.2) + (30 * 0.5) + (20 * 0.3) + (35 * 0.3) = 41.5 W / h.
[0083] The above is a possible implementation method for calculating the carbon emissions of BNG based on the weight value and power consumption value corresponding to the measurement value of the carbon emission factor. In some other possible implementation methods, BNG can also perform weighted averaging on the weight value and power consumption value corresponding to the measurement value of each carbon emission factor, or use other weighted algorithms such as exponential weighting, mean variance weighting, or least squares weighting to calculate the carbon emissions of the BNG. The embodiments of the present application do not limit this.
[0084] After each BNG determines its own carbon emissions, if the network device is a certain BNG, then this BNG can also receive the carbon emissions of the corresponding BNG sent by other BNGs. If the network device is a certain service node, the BNG can announce its own carbon emissions to the service node through an interior gateway protocol (IGP) message. Correspondingly, the service node can receive the carbon emissions sent by each BNG. If the network device is a control device, the control device can receive the carbon emissions reported by each BNG.
[0085] Optionally, in a possible situation, if the network device is a control device, each BNG can also report the measurement values of each carbon emission factor collected by itself to the network device, and the network device can calculate the carbon emissions of each BNG with reference to the method introduced above.
[0086] After the network device obtains the carbon emissions of multiple BNGs, it can, through the following several examples, select a low-power BNG from the multiple BNGs as the primary BNG based on the carbon emissions of the multiple BNGs.
[0087] Example 1: The network device can use the BNG with the smallest carbon emissions as the primary BNG, and the remaining BNGs as backup BNGs.
[0088] Example 2: The network device can also obtain the carbon emissions of the service nodes on the available access links passing through each BNG and the link carbon emissions between nodes, and determine the primary BNG and backup BNGs from the multiple BNGs based on the carbon emissions of each BNG and the carbon emissions of the service nodes on the available access links from this BNG to the terminal device and the link carbon emissions between nodes passing through the corresponding BNG.
[0089] Among them, each service node can calculate its own carbon emissions and the link carbon emissions between itself and adjacent nodes. After that, each service node floods its own carbon emissions and the link carbon emissions with adjacent nodes into other service nodes in the IP network using IGP messages.
[0090] Exemplarily, taking the Intermediate System to Intermediate System (IS-IS) protocol as an IGP as an example, two Type-Length-Value (TLV) fields can be added to the IGP packet. Among them, one TLV field can be used to carry the carbon emissions of the service node, and the other TLV field can be used to carry the carbon emissions of the link between nodes.
[0091] For example, as Figure 4 shown, the newly added TLV field includes a Type field, a Length field, and a Value field. Among them, the length of the Type field can be one byte, the length of the Length field is one byte, and the length of the Value field is 4 bytes. The value of the Type field can be a first type value or a second type value. Among them, the first type value is used to indicate that the TLV field carries the carbon emissions of the service node, and the second type value is used to indicate that the TLV field carries the carbon emissions of the link between nodes. The Length field is used to indicate the length of the Value field in this TLV field. For example, if Figure 4 the length of the Value field is 4 bytes, then the value of the Length field is 4. The first bit of the first byte in the Value field can be a status identification bit, and this status identification bit is used to identify the status of the service node or the link. For example, when the value of this status identification bit is a first status value, it indicates that the status of the service node or the link is a normal status, and when the value of this status identification bit is a second status value, it indicates that the status of the service node or the link is a dormant status. The remaining bits of the first byte in the Value field can be used as reserved bits. The remaining 3 bytes of the Value field are used to carry the carbon emissions of the service node or the carbon emissions of the link between nodes.
[0092] Based on this, if the network device is a BNG or a service node, the network device can obtain the carbon emissions of other service nodes and the carbon emissions of the adjacent links between nodes by receiving the IGP packets sent by other service nodes. If the network device is a control device, the service nodes and / or BNGs can report the carbon emissions of each service node and the carbon emissions of the links between nodes to the control device. Correspondingly, the control device can receive the carbon emissions of the nodes and the carbon emissions of the links between nodes reported by the service nodes and / or BNGs. Among them, the carbon emissions of the adjacent links between nodes refer to the carbon emissions of the direct communication link between two nodes that have established a direct communication link. And the adjacent nodes can include adjacent service nodes and adjacent service nodes and BNGs.
[0093] In a possible implementation, after the network device obtains the carbon emissions of each service node in the IP network and the carbon emissions of the links between nodes through the above method, for each available access link passing through each BNG, the network device can obtain the carbon emissions of the service nodes on the link segment between the terminal device and the BNG on the available access link, as well as the carbon emissions of the links between nodes, and use the sum of the carbon emissions of the service nodes on the link segment, the carbon emissions of the links between nodes, and the carbon emissions of the BNG as the carbon emissions of the link segment. In this way, the network device can calculate the carbon emissions of the link segments between the terminal device and the corresponding BNG on each available access link passing through each BNG. After that, the network device can determine an available access link with the smallest carbon emissions of the link segment, and use the BNG passed by the available access link as the primary BNG, and the remaining BNGs as backup BNGs.
[0094] For example, referring to Figure 5 , for BNG1, there are two link segments between the terminal device and BNG1 on the multiple available access links passing through BNG1, which are: PE1→P3→BNG1 and PE2→P3→BNG1 respectively. Based on this, for the link segment PE1→P3→BNG1, as Figure 5 shown, the carbon emissions of the PE1 node on this link segment are 100W / h, the carbon emissions of the link between the PE1 node and the P3 node are 30, the carbon emissions of the P3 node are 150W / h, the carbon emissions of the link between the P3 node and BNG1 are 20W / h, and the carbon emissions of BNG1 are 300W / h. Therefore, the carbon emissions of this link segment are 100 + 30 + 150 + 20 + 300 = 600W / h. Similarly, for the link segment PE2→P3→BNG1, the carbon emissions of this link segment are 150 + 20 + 150 + 20 + 300 = 640W / h. For BNG2, there are also two link segments between the terminal device and BNG2 on the multiple available access links passing through BNG2, which are PE1→P4→BNG2 and PE2→P4→BNG2 respectively. Based on this, for the link segment PE1→P4→BNG2, the network device can calculate that the carbon emissions of this link segment are 100 + 10 + 150 + 20 + 275 = 555W / h; for the link segment PE2→P4→BNG2, the network device can calculate that the carbon emissions of this link segment are 150 + 20 + 150 + 20 + 275 = 615W / h. By comparing the carbon emissions of the above four link segments, it can be determined that the carbon emissions of the link segment PE1→P4→BNG2 are the smallest. Therefore, the BNG on this link segment, that is, BNG2, can be used as the primary BNG, and BNG1 as the backup BNG.
[0095] In another possible implementation, the network device may determine the primary BNG and the backup BNG from multiple BNGs based on the carbon emissions and priorities of the BNGs on each available access link, as well as the carbon emissions of the service nodes between the corresponding BNG and the terminal device and the carbon emissions of the links between the nodes.
[0096] As can be seen from the foregoing introduction, in the BNG multi-machine backup scenario, multiple BNGs can form a VRRP group, and the multiple BNGs in the VRRP group can use VRRP to decide the primary BNG and the backup BNG based on the priorities of each BNG. Based on this, in the embodiments of this application, the network device may combine the carbon emissions of each link segment passing through the BNG and the priority of the BNG described above as the basis for deciding the primary BNG and the backup BNG.
[0097] Exemplarily, the network device may refer to the method described above, calculate the carbon emissions of the link segments from the terminal device to the BNG in each available access link passing through each BNG, and then determine the weight value of the corresponding link segment based on the calculated carbon emissions of each link segment and the priority of the corresponding BNG, and determine the primary BNG and the backup BNG based on the weight values of each link segment.
[0098] Among them, the priority of the BNG may be indicated by a priority value. The larger the priority value, the higher the priority, and the higher the probability that the corresponding BNG is selected as the primary BNG. And the lower the carbon emissions of the link segment, the higher the probability that the BNG on the corresponding link segment is selected as the primary BNG. Based on this, the network device may subtract the carbon emissions of the link segment from the priority value of the BNG on each link segment to obtain the weight value of the corresponding link segment. The BNG on the link segment with the largest weight value is used as the primary BNG, and the remaining BNGs are used as backup BNGs.
[0099] For example, still taking Figure 5For example, assume that the priority value of BNG1 is 110 and the priority value of BNG2 is 50. For the link segment PE1→P3→BNG1, the network device can subtract the carbon emission of this link segment from the priority value of BNG1 to obtain the weight value of this link segment as 110 - 600 = -490; similarly, for the link segment PE2→P3→BNG1, the network device can calculate that the weight value of this link segment is equal to 110 - 640 = -530; for the link segment PE1→P4→BNG2, the network device can calculate that the weight value of this link segment is equal to 50 - 555 = -505; for the link segment PE2→P4→BNG2, the network device can calculate that the weight value of this link segment is equal to 50 - 615 = -565. In this way, by comparing the weight values of each link segment, it can be determined that the weight value of the link segment PE1→P3→BNG1 is the largest. Therefore, BNG1 can be used as the primary BNG, and BNG2 can be used as the backup BNG.
[0100] The above is an example of calculating the weight value of a link segment given in an embodiment of the present application. In some possible cases, the network device can also use other methods to calculate the weight value of the link segment. For example, the network device can pre-store the mapping relationship between the priority value and the weight value and the mapping relationship between the carbon emission and the weight value. Among them, in the mapping relationship between the priority value and the weight value, the larger the priority value, the larger the corresponding weight value. In the mapping relationship between the carbon emission and the weight value, the smaller the carbon emission, the larger the corresponding weight value. Based on this, for each link segment, the network device can determine the first weight value corresponding to the carbon emission of this link segment based on the mapping relationship between the carbon emission and the weight value, and determine the second weight value corresponding to the priority value of the BNG on this link segment based on the mapping relationship between the priority value and the weight value, and add the first weight value and the second weight value to obtain the weight value of this link segment. After that, the network device can use the BNG on the link segment with the largest weight value as the primary BNG, and the remaining BNGs as backup BNGs.
[0101] After determining the primary BNG, the network device can use the multiple available access links of the terminal device passing through the primary BNG as the multiple candidate access links of the terminal device.
[0102] Step 302: Based on the carbon emissions of the BNGs on each candidate access link, the carbon emissions of the service nodes, and the link carbon emissions between adjacent nodes, determine the target access link of the terminal device from the multiple candidate access links.
[0103] After determining multiple candidate access links of the terminal device, the network device may determine the sum of the carbon emissions of the BNG, the carbon emissions of the service node, and the link carbon emissions between adjacent nodes on each candidate access link, so as to obtain the total carbon emissions of each candidate access link. Then, based on the total carbon emissions of the multiple candidate access links, the target access link of the terminal device is determined.
[0104] In a possible implementation, the network device may determine the access link with the minimum total carbon emissions among the multiple candidate access links as the target access link of the terminal device.
[0105] For example, referring to Figure 6 , assume that the multiple candidate access links determined in step 301 include 8 available access links passing through BNG1 and BNG2. Among them, there are 4 candidate access links passing through BNG1 and 4 candidate access links passing through BNG2. The carbon emissions of each service node, BNG, and the link carbon emissions between nodes are as Figure 6 shown. Then, the 8 candidate access links and their corresponding total carbon emissions are as follows.
[0106] 1. The 4 candidate access links passing through BNG1:
[0107] Link L1: PE1 → P3 → BNG1 → P5 → PE7;
[0108] The total carbon emissions C1 of link L1 = 100 + 30 + 150 + 20 + 300 + 20 + 100 + 20 + 100 = 840 W / h;
[0109] Among them, the carbon emissions of the PE1 node is 100 W / h, the link carbon emissions between the PE1 node and the P3 node is 30 W / h, the carbon emissions of the P3 node is 150 W / h, the link carbon emissions between the P3 node and BNG1 is 20 W / h, the carbon emissions of BNG1 is 300 W / h, the link carbon emissions between the P3 node and the P5 node is 20 W / h, the carbon emissions of the P5 node is 100 W / h, the link carbon emissions between the P5 node and the PE7 node is 20 W / h, and the carbon emissions of the PE7 node is 100 W / h.
[0110] Link L2: PE1 → P3 → BNG1 → P6 → PE7;
[0111] The total carbon emissions C2 of link L2 = 100 + 30 + 150 + 20 + 300 + 30 + 80 + 20 + 100 = 830 W / h;
[0112] Among them, the carbon emission of the link between P3 node and P6 node is 30 W / h, the carbon emission of P6 node is 80 W / h, and the carbon emission of the link between P6 node and PE7 node is 20 W / h.
[0113] Link L3: PE2 → P3 → BNG1 → P5 → PE7;
[0114] The total carbon emission C3 of link L3 = 150 + 20 + 150 + 20 + 300 + 20 + 100 + 20 + 100 = 880 W / h;
[0115] Among them, the carbon emission of PE2 node is 150 W / h, and the carbon emission of the link between PE2 node and P3 node is 20 W / h.
[0116] Link L4: PE2 → P3 → BNG1 → P6 → PE7;
[0117] The total carbon emission C4 of link L4 = 150 + 20 + 150 + 20 + 300 + 30 + 80 + 20 + 100 = 870 W / h.
[0118] 2. Four candidate access links passing through BNG2:
[0119] Link L5: PE2 → P4 → BNG2 → P6 → PE7;
[0120] The total carbon emission C5 of link L5 = 150 + 20 + 150 + 20 + 275 + 10 + 80 + 20 + 100 = 825 W / h;
[0121] Among them, the carbon emission of PE2 node is 150 W / h, the carbon emission of the link between PE2 node and P4 node is 20 W / h, the carbon emission of P4 node is 150 W / h, the carbon emission of the link between P4 node and BNG2 is 20 W / h, the carbon emission of BNG2 is 275 W / h, the carbon emission of the link between P4 node and P6 node is 10 W / h, the carbon emission of P6 node is 80 W / h, the carbon emission of the link between P6 node and PE7 node is 20 W / h, and the carbon emission of PE7 node is 100 W / h.
[0122] Link L6: PE2 → P4 → BNG2 → P5 → PE7;
[0123] The total carbon emission C6 of link L6 = 150 + 20 + 150 + 20 + 275 + 30 + 100 + 20 + 100 = 865 W / h.
[0124] Among them, the carbon emission of the link between P4 node and P5 node is 30, and the carbon emission of P5 node is 100 W / h.
[0125] Link L7: PE1 → P4 → BNG2 → P6 → PE7;
[0126] The total carbon emission C7 of Link L7 = 100 + 10 + 150 + 20 + 275 + 10 + 80 + 20 + 100 = 765 W / h.
[0127] Among them, the carbon emission of the PE1 node is 100 W / h, and the carbon emission of the link between the PE1 node and the P4 node is 10 W / h.
[0128] Link L8: PE1 → P4 → BNG2 → P5 → PE7;
[0129] The total carbon emission C8 of Link L8 = 100 + 10 + 150 + 20 + 275 + 30 + 100 + 20 + 100 = 805 W / h.
[0130] Comparing the total carbon emissions of the above 8 candidate access links, Figure 6 it can be seen that the total carbon emission of Link L7 shown by the dotted line in the figure is the smallest. Therefore, Link L7 can be used as the target access link.
[0131] In another possible implementation, the network device can determine the link comprehensive weight value of each candidate access link based on the total carbon emission of each candidate access link and other link evaluation index values; based on the link comprehensive weight value of each candidate access link, determine the target access link from multiple candidate access links.
[0132] Among them, other link evaluation indicators may include one or more of path length, link load, link delay, link bandwidth, link reliability, link comprehensive overhead, etc.
[0133] Based on this, for any candidate access link, the network device can convert the total carbon emission and other link evaluation index values of the candidate access link into corresponding weight values, add the converted weight values to obtain the link comprehensive weight value of the candidate access link, and determine the candidate access link with the largest link comprehensive weight value among multiple candidate access links as the target access link.
[0134] As an example, the network device may pre-store the mapping relationship between the total carbon emissions of the access link and the link weight value. In this mapping relationship, the greater the total carbon emissions of the access link, the smaller the corresponding weight value. Taking other link evaluation metrics including path length as an example, the network device may also pre-store the mapping relationship between the path length and the link weight value. In this mapping relationship, the shorter the path length, the greater the corresponding weight value. Based on this, for each candidate access link, the network device may determine the first link weight value corresponding to the total carbon emissions of the candidate access link based on the mapping relationship between the total carbon emissions of the access link and the link weight value, and determine the second link weight value corresponding to the path length of the candidate access link based on the mapping relationship between the path length and the link weight value, and add the first link weight value and the second link weight value to obtain the link comprehensive weight value of the candidate access link.
[0135] The above example is illustrated by taking other link evaluation metrics including path length as an example. If there are other link evaluation metrics such as link load and link delay, the above method may be referred to determine the link weight value corresponding to each link evaluation metric value, and add the link weight value corresponding to the carbon emissions and the link weight values corresponding to each link evaluation metric value to obtain the link comprehensive weight value.
[0136] After determining the target access link, the terminal device may access the network through the target access link.
[0137] It should be noted that in the BNG multi-machine backup scenario, when multiple candidate access links are determined by method 1 or method 3 in step 301, since the multiple candidate access links are the access links where the determined primary BNG is located, the BNG on the target access link determined from the multiple candidate access links is the primary BNG. When multiple candidate access links are determined by method 2 in step 301, the multiple candidate access links are multiple available access links passing through multiple BNGs. In this case, after determining the target access link in this step, the BNG on the target access link may be determined as the primary BNG.
[0138] Optionally, after determining the target access link, subsequently, if any one of the carbon emissions of the service node, the link carbon emissions between nodes, and the carbon emissions of the BNG on the first candidate access link among the foregoing multiple candidate access links including the target access link changes, the network device may also determine the changed total carbon emissions of the first candidate access link based on the changed carbon emissions; determine whether to switch the target access link to the second candidate access link based on the changed total carbon emissions of the first candidate access link.
[0139] Exemplarily, if any one of the carbon emissions of the service nodes on the first candidate access link, the carbon emissions of the links between nodes, or the carbon emissions of the BNG changes, the network device can recalculate the total carbon emissions of the first candidate access link based on the methods introduced above. The recalculated total carbon emissions are the changed total carbon emissions of the first candidate access link.
[0140] In the first possible case, the first candidate access link is not the same link as the current target access link. In this case, if the changed total carbon emissions of the first candidate access link are less than the total carbon emissions of the target access link, the network device can switch the target access link to the first candidate access link. Or, if the changed total carbon emissions of the first candidate access link are less than the total carbon emissions of the target access link, the network device can recalculate the link comprehensive weight value of the first candidate access link based on the changed total carbon emissions of the first candidate access link and other link evaluation metric values. If the recalculated link comprehensive weight value of the first candidate access link is greater than the link comprehensive weight value of the current target access link, the target access link can be switched to the first candidate access link. In this case, the first candidate access link and the second candidate access link are the same access link. The second candidate access link is then the updated target access link.
[0141] In the second possible case, the first candidate access link is the same link as the current target access link. In this case, if the changed total carbon emissions of the target access link are less than the total carbon emissions before the change, the network device can compare the changed total carbon emissions of the target access link with the total carbon emissions of other candidate access links. If there are access links among the other candidate access links whose total carbon emissions are less than the changed total carbon emissions of the target access link, the candidate access link with the smallest total carbon emissions among these access links is determined as the second candidate access link, and thus the target access link is switched to the second candidate access link. Or, if the changed total carbon emissions of the target access link are less than the total carbon emissions before the change, the network device can recalculate the link comprehensive weight value of the target access link based on the changed total carbon emissions of the target access link and other link evaluation metric values. The recalculated link comprehensive weight value of the target access link is compared with the link comprehensive weight values of the remaining candidate access links. If there are candidate access links whose link comprehensive weight values are greater than the changed link comprehensive weight value of the target access link, the candidate access link with the largest link comprehensive weight value among these candidate access links is used as the second candidate access link, and then the target access link is switched to the second candidate access link.
[0142] It should be noted that in the single - machine BNG scenario, since multiple candidate access links all pass through this BNG, the updated target access link, which is also the second candidate access link, passes through the same BNG as the target access link before the update.
[0143] In the BNG multi - machine backup scenario, if multiple candidate access links are determined by method one or method three, since these multiple candidate access links are all access links passing through the already determined primary BNG, the updated target access link, which is also the second candidate access link, passes through the same BNG as the target access link before the update.
[0144] If multiple candidate access links are determined by method two, since these multiple candidate access links include available access links passing through each BNG, the updated target access link, which is also the second candidate access link, may not pass through the same BNG as the target access link before the update. That is, the BNG on the first candidate access link may be a backup BNG. In this case, before switching the target access link to the second candidate access link, the network device can first obtain the switching duration based on the number of user accesses of the BNG on the target access link; then, within this switching duration, switch the BNG on the second candidate access link to the primary BNG.
[0145] It should be noted that the BNG on the current target access link is the primary BNG. Since the BNG on the target access link is different from the BNG on the second candidate access link, before switching the target access link, the primary BNG can be switched first. And the BNG on the target access link stores user information. Based on this, the network device can obtain the corresponding switching duration based on the number of user accesses of the BNG on the target access link, so as to ensure that the user information in the BNG on the target access link can be backed up to the BNG on the second candidate access link within this switching duration, thus realizing the switching of the primary BNG.
[0146] Among them, if the network device is a control device, the control device can store the mapping relationship between the number of user accesses and the switching duration. In this mapping relationship, the larger the number of user accesses, the longer the corresponding switching duration can be. Based on this, the control device can determine the switching duration corresponding to the current number of user accesses on the target access link according to this mapping relationship, and then send control instructions to the BNG on the target access link and the BNG on the second candidate access link. The control instructions can carry this switching duration. Correspondingly, these two BNGs can back up user information within this switching duration to achieve the switching.
[0147] Optionally, if the network device is a service node or a BNG, a mapping relationship between the number of user accesses and the handover duration may be stored in the network device. In this case, the network device may obtain the handover duration through the method described above, or the network device may also obtain the handover duration from the control device. After obtaining the handover duration, for the service node, after the handover duration, the BNG of the second candidate access link may be used as the primary BNG. For the BNG, the handover may be performed within the handover duration.
[0148] For example, assume that Figure 6 the carbon emission of BNG2 in Figure 7 changes from 275 W / h to 500 W / h, as shown in Figure 7 . Based on the foregoing description, it can be known that the total carbon emissions of each candidate access link passing through BNG2, that is, the links L5 to L8 described above, have all changed. In this case, recalculate the total carbon emissions of the links L5 to L8, and re-select the link with the smallest total carbon emissions from the 8 candidate access links. At this time, the link with the smallest total carbon emissions is the link L2 passing through BNG1 shown by the dashed line in Figure 7 . Therefore, the corresponding handover duration can be determined according to the number of user accesses on BNG2. During this handover duration, the user information in BNG2 is backed up to BNG1, so as to switch the primary BNG to BNG1. After that, the link L2 is used as the new target access link of the terminal device.
[0149] Optionally, in the BNG multi-machine backup scenario, if multiple candidate access links are obtained after determining the primary BNG based on the carbon emissions of each BNG through the method described in Method 3, then after determining the target access link, there may be a situation where the carbon emission of the backup BNG changes, or the carbon emissions of the service nodes and / or the links between nodes on the available access links passing through the backup BNG change, and the available access links passing through the backup BNG do not belong to the determined candidate access links. Based on this, in the embodiments of the present application, for this situation, the network device may also, after the carbon emissions of the BNG, service nodes, and links between nodes on any one of the multiple available access links of multiple BNGs change, based on the method described above, re-determine the primary BNG from the multiple BNGs, and then, based on the re-determined primary BNG, re-determine multiple candidate access links, and further re-determine the target access link from the multiple candidate access links. After that, if the re-determined target access link is different from the current target access link, the current target access link is switched to the re-determined target access link.
[0150] It should be noted that in this case, if the re-determined primary BNG is different from the BNG of the current target access link, the above method can also be referred to, and the primary BNG is switched first. This will not be elaborated in the embodiments of this application.
[0151] Optionally, in some possible cases, due to equipment failures or link failures, the carbon emissions of service nodes, the links between nodes, or the BNG may change frequently. For example, a certain service node or a certain component in the BNG may be frequently restarted due to a failure, which will cause the carbon emissions of the service node or the BNG to change frequently. In this case, if the access link is switched based on the carbon emissions of the service node or the BNG, the switched access link is unstable, which may cause frequent switching and affect normal services. Based on this, in the embodiments of this application, after detecting a change in the carbon emissions of a service node, the link carbon emissions between nodes, or the carbon emissions of the BNG on the first candidate access link, the network device can also obtain the number of changes in the carbon emissions of the service node, the link carbon emissions, or the carbon emissions of the BNG within the first time period before the current moment. If the number of changes is not greater than the first threshold, it indicates that the first candidate access link is relatively stable. In this case, the operation of determining the total carbon emissions after the change of the first candidate access link introduced above can be performed, and whether to update the target access link is determined based on the total carbon emissions after the change of the first candidate access link.
[0152] Optionally, if the number of changes is greater than the first threshold, it indicates that the carbon emissions of the service node, the link carbon emissions between the two nodes, or the carbon emissions of the BNG are changing frequently, and the first candidate access link is unstable. In this case, the network device may not perform the operation of calculating the total carbon emissions after the change of the first candidate access link. Correspondingly, the step of updating the target access link based on the total carbon emissions after the change is not performed either.
[0153] In the embodiments of the present application, for multiple candidate access links of a terminal device, the access link of the terminal device can be determined according to the carbon emissions of each service node and BNG on each candidate access link and the carbon emissions of the link between nodes. That is, in the embodiments of the present application, carbon emissions are used as a decision factor for the access link of the terminal device, providing support for the terminal device to access a low-power link, helping to reduce the energy consumption of the terminal device accessing the network and service transmission, and thus meeting the customer's demand for a green and energy-saving network. For example, the one with the smallest carbon emissions can be selected from each candidate access link, so that the terminal device can access a low-power link, thereby realizing the end-to-end green energy saving of the super system including BNG and service nodes when the user goes online. Or, the access link of the terminal device can also be selected by comprehensively considering the carbon emissions of the candidate access link and other link evaluation indicators. In this way, it can not only meet the user's demand for a low-power link as much as possible, but also ensure the transmission performance of the link as much as possible.
[0154] In addition, the embodiments of the present application also provide a method for measuring the carbon emissions of BNG. On this basis, in the scenario of BNG multi-machine backup, the decision between the primary BNG and the backup BNG can be realized based on the carbon emissions of BNG, so that the terminal device can autonomously access a low-power BNG, realizing the green energy saving of BNG.
[0155] Next, the access link determination device provided by the embodiments of the present application will be introduced.
[0156] Figure 8 is a schematic structural diagram of an access link determination device provided by the embodiments of the present application. The access link determination device can be deployed in each service node and BNG introduced in the foregoing embodiments, or can be deployed in a control device. See Figure 8 . The access link determination device 800 may include: a first determination module 801 and a second determination module 802.
[0157] Among them, the first determination module 801 is used to execute step 301 in the foregoing embodiment, and the second determination module 802 is used to execute step 302 in the foregoing embodiment.
[0158] Optionally, see Figure 8 . The device 800 further includes: an acquisition module 803, configured to acquire measurement values of multiple carbon emission factors of BNG; and acquire the carbon emissions of BNG based on the measurement values of the multiple carbon emission factors of BNG.
[0159] Optionally, the acquisition module 803 is specifically configured to: determine the weight value corresponding to the measurement value of each carbon emission factor of BNG; and determine the carbon emissions of BNG based on the measurement value of each carbon emission factor of BNG and the corresponding weight value.
[0160] Optionally, multiple carbon emission factors of the BNG include at least two of user access rate, user detection rate, number of users, forwarded traffic, device temperature, fan speed, anti-avalanche state, and overall routing power of the machine.
[0161] Optionally, the second determination module 802 is specifically configured to: determine the sum of the carbon emissions of the BNG, the carbon emissions of the service node, and the link carbon emissions between nodes on each candidate access link, to obtain the total carbon emissions of each candidate access link; determine the target access link based on the total carbon emissions of multiple candidate access links.
[0162] Optionally, the first determination module 801 is specifically configured to: determine multiple available access links of the terminal device, and the multiple available access links correspond to multiple BNGs; determine the primary BNG and the backup BNG from the multiple BNGs based on the carbon emissions and priorities of the BNGs on each available access link, as well as the carbon emissions of the service nodes between the corresponding BNGs and the terminal device and the link carbon emissions between nodes; determine the multiple available access links where the primary BNG is located as multiple candidate access links.
[0163] Optionally, the second determination module 802 is specifically configured to: determine the access link with the minimum total carbon emissions among the multiple candidate access links as the target access link.
[0164] Optionally, the second determination module 802 is specifically configured to: determine the link comprehensive weight value of each candidate access link based on the total carbon emissions of each candidate access link and other link evaluation index values; determine the target access link from the multiple candidate access links based on the link comprehensive weight values of each candidate access link.
[0165] Optionally, referring to Figure 8 , the apparatus 800 further includes: a switching module 804, configured to, if any one of the carbon emissions of the service node, the link carbon emissions between nodes, and the carbon emissions of the BNG on the first candidate access link among the multiple candidate access links changes, determine the changed total carbon emissions of the first candidate access link based on the changed carbon emissions; switch the target access link to the second candidate access link based on the changed total carbon emissions of the first candidate access link.
[0166] Optionally, the switching module 804 is further configured to: if the BNG on the target access link is different from the BNG on the second candidate access link, obtain the switching duration based on the number of user accesses of the BNG on the target access link; switch the BNG on the second candidate access link to the primary BNG within the switching duration.
[0167] Optionally, the switching module 804 is specifically configured to: if the number of changes in the carbon emissions of the service nodes on the first candidate access link, the link carbon emissions between nodes, or the carbon emissions of the BNG within the first duration before the current moment is not greater than the first threshold, determine the total changed carbon emissions of the first candidate access link based on the changed carbon emissions.
[0168] In the embodiments of the present application, the management platform may receive the dumb resource information in the tags of multiple dumb resources in the target network sent by the network device or the tag identification device. Since the dumb resource information includes the identification information and connection information of the corresponding dumb resource, the management platform can integrate the dumb resource information based on the received identification information and connection information of each dumb resource, and then perform digital management on the dumb resources in the target network based on the integrated dumb resource information, reducing the difficulty of dumb resource management, and thus reducing the management and maintenance cost of dumb resources.
[0169] It should be noted that the division of modules in the various dumb resource management devices provided in the above embodiments is illustrative, only a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present application, each functional module may be integrated in a processor, or may exist alone physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0170] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a network device (which may be a router or a switch, etc.) or a processor to execute all or part of the steps of the method in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0171] In addition, the dumb resource management device provided in the above embodiment and the embodiment of the dumb resource management method belong to the same concept. For the specific implementation process, refer to the method embodiment, which will not be elaborated here.
[0172] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available media can be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as digital versatile discs (DVDs)), or semiconductor media (such as solid state disks (SSDs)), etc.
[0173] In various embodiments of the present application, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent the cases of A existing alone, A and B existing simultaneously, and B existing alone, where A and B can be singular or plural. In the written description of the embodiments of the present application, the character " / " generally represents an "or" relationship between the associated objects before and after. In the present application, "first", "second", and various numerical numbers are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. For example, to distinguish different messages, etc., rather than for describing a specific order or sequence.
[0174] It should be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The magnitudes of the serial numbers of the above processes do not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic.
[0175] Finally, it should be noted that the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An access link determination method, characterized in that The method includes: Determining multiple candidate access links of the terminal device; Determining a target access link of the terminal device from the multiple candidate access links based on the carbon emissions of the broadband network gateway (BNG) on each candidate access link, the carbon emissions of the service node, and the link carbon emissions between adjacent nodes.
2. The method according to claim 1, wherein The method further includes: Obtaining measurement values of multiple carbon emission factors of the BNG; Obtaining the carbon emissions of the BNG based on the measurement values of the multiple carbon emission factors of the BNG.
3. The method according to claim 2, characterized in that The obtaining the carbon emissions of the BNG based on the measurement values of the multiple carbon emission factors of the BNG includes: Determining a weight value corresponding to the measurement value of each carbon emission factor of the BNG; Determining the carbon emissions of the BNG based on the measurement value of each carbon emission factor of the BNG and the corresponding weight value.
4. The method according to claim 2 or 3, characterized in that, The multiple carbon emission factors of the BNG include at least two of user access rate, user detection rate, number of users, forwarded traffic, device temperature, fan speed, anti-avalanche status, and overall machine routing power.
5. The method according to any one of claims 1 to 4, characterized in that The determining a target access link of the terminal device from the multiple candidate access links based on the carbon emissions of the broadband network gateway (BNG) on each candidate access link, the carbon emissions of the service node, and the link carbon emissions between adjacent nodes includes: Determining the sum of the carbon emissions of the BNG, the carbon emissions of the service node, and the link carbon emissions between nodes on each candidate access link to obtain the total carbon emissions of each candidate access link; Determining the target access link based on the total carbon emissions of the multiple candidate access links.
6. The method according to claim 5, wherein The determining multiple candidate access links of the terminal device includes: Determining multiple available access links of the terminal device, where the multiple available access links correspond to multiple BNGs; Determining a primary BNG and a backup BNG from the multiple BNGs based on the carbon emissions and priorities of the BNGs on each available access link, and the carbon emissions of the service nodes and the link carbon emissions between the corresponding BNGs and the terminal device; Determining the multiple available access links where the primary BNG is located as the multiple candidate access links.
7. The method according to claim 5 or 6, characterized in that, The determining the target access link based on the total carbon emissions of the multiple candidate access links includes: Determining the access link with the minimum total carbon emissions among the multiple candidate access links as the target access link.
8. The method according to claim 5 or 6, characterized in that, The determining the target access link based on the total carbon emissions of the multiple candidate access links includes: Determining a link comprehensive weight value of each candidate access link based on the total carbon emissions of each candidate access link and other link evaluation index values; Determining the target access link from the multiple candidate access links based on the link comprehensive weight value of each candidate access link.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: If any one of the carbon emissions of the service node, the link carbon emissions between nodes, and the carbon emissions of the BNG on a first candidate access link among the multiple candidate access links changes, then determining the changed total carbon emissions of the first candidate access link based on the changed carbon emissions. Based on the changed total carbon emissions of the first candidate access link, switch the target access link to the second candidate access link.
10. The method according to claim 9, characterized in that, Before switching the target access link to the second candidate access link, it further includes: If the BNG on the target access link is different from the BNG on the second candidate access link, obtain the switching duration based on the number of user accesses of the BNG on the target access link. Within the switching duration, switch the BNG on the second candidate access link to the main BNG.
11. The method according to claim 9 or 10, characterized in that, The determining the changed total carbon emissions of the first candidate access link based on the changed carbon emissions includes: If the number of change times of the carbon emissions of the service nodes, the link carbon emissions between nodes, or the carbon emissions of the BNG on the first candidate access link within the first duration before the current moment is not greater than the first threshold, determine the changed total carbon emissions of the first candidate access link based on the changed carbon emissions.
12. An access link determination device, characterized in that, The device includes at least one module, and the at least one module is used to execute the access link determination method according to any one of claims 1 to 11.
13. A network device, characterized in that, The network device includes a processor, and the processor is used to execute at least one program instruction or code stored in the memory to implement the access link determination method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when the instructions run on the network device, the network device is caused to execute the access link determination method according to any one of claims 1 to 11.