Service gateway and routing control method and device of optical fiber data network of distribution network
By acquiring and calculating the weight data of each aggregation switch in the fiber data network of the distribution network, determining the main gateway and main routing aggregation point, the problem that business gateway and routing control in the existing technology is difficult to effectively guarantee important services, and realizes that the problem of business gateways and routing controls is difficult to effectively guarantee important services. Priority guarantee for business.
Patent Information
- Application Number
- CN202411184195.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The existing distribution network fiber data network service gateways and routing control methods are difficult to effectively guarantee services, especially because the path selection determined by preset routing priorities and the priority of virtual redundant routing protocols may lead to the discarding of important services.
By obtaining the MAC address of the access user terminal corresponding to each aggregation switch, the weight data of the aggregation switch is calculated based on the characteristic information, the main gateway and the main routing aggregation point are determined, and the routing policy is configured to optimize the data transmission path.
It realizes effective guarantees for services, ensures the normal progress of important services, and comprehensively considers the business volume and importance through a multi-factor algorithm to provide more accurate and reasonable master and backup gateways and routing.
Smart Images

Figure CN118714063B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a service gateway and routing control method and device of a distribution network optical fiber data network. Background Art
[0002] With the rapid development of the information digital society, the power grid field has also ushered in an intelligent transformation. The grid planning and practice of optical fiber communication in the distribution network is part of the digital transformation of the power grid, aiming to promote the high-quality development of the power grid through the application of new technologies. The optical fiber data network of the distribution network plays a vital role in the construction of smart grids. It can be used to achieve stable and reliable transmission between distribution network terminal equipment, such as pole switches, substations, distribution transformers, etc., and the distribution network dispatching and control center, ensuring the efficient transmission of measurement and control signals. With the emphasis on the construction of digital distribution networks, the quality of the communication system largely determines the quality of digital distribution networks.
[0003] In order to ensure the reliability of communication of intelligent terminals in the distribution network, the optical data network of the distribution network generally sets up service redundant gateways in multiple different aggregation switches (three-layer switches). The information terminal data of each distribution room is connected to the network through the access switch (two-layer switch) in the distribution room, and is aggregated to the main gateway (carried by the aggregation switch), and then reaches the information master station through the backbone network. When the main gateway fails, the backup gateway assumes the gateway function. The information master station and the aggregation switch communicate by running a dynamic routing protocol.
[0004] In the related art, for the service redundancy gateway and routing control method of the optical fiber data network of the distribution network, in the uplink direction, that is, in the direction from the information terminal to the information master station, by running the virtual routing redundancy protocol between the aggregation switches, the protocol selects the main gateway device, and the daily standby device monitors the operating status of the main device. When the standby gateway device cannot monitor the protocol message of the main gateway, the standby gateway is switched to the main gateway, carrying the service traffic export of the access switch, and the aggregation layer switch communicates with the information master station through the dynamic routing protocol; and the downlink direction, that is, the path selection of the information master station data backflow to the aggregation switch, is determined by the quality of the route between the master station and the main and standby gateway switches. In short, the traditional service redundancy gateway and routing control, the path of the uplink and downlink data is determined by the automatic calculation of the virtual routing redundancy protocol and the dynamic routing protocol between the devices, and a part of the distribution room access switch service needs to be discarded. This gateway and routing control method can only guarantee the service according to the preset routing priority and the priority of the virtual redundant routing protocol, which may cause important services to be discarded, thereby affecting the normal operation of some services.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiment of the present invention provides a service gateway and routing control method and device of a distribution network optical fiber data network, so as to at least solve the technical problem in the related art that it is difficult to effectively guarantee the service by controlling the service gateway and routing according to the preset routing priority and the priority of the virtual redundant routing protocol.
[0007] According to one aspect of an embodiment of the present invention, a service gateway and routing control method for a distribution network optical fiber data network is provided, which is applied to a network management center, and includes: obtaining MAC addresses of all access user terminals under service gateway interfaces corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; obtaining feature information of each of the access user terminals based on the MAC address; calculating weight data of each of the aggregation switches based on the feature information of the access user terminal; determining a primary gateway and a primary routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configuring a routing strategy based on the access user terminal, the access switch, the primary gateway and the primary routing aggregation point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
[0008] Optionally, the step of obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network includes: monitoring the network links in the distribution network optical fiber data network to obtain the status information of the network links; obtaining the access switches connected to each aggregation switch based on the status information; counting all access user terminals accessed by each access switch, and obtaining the MAC addresses of the access user terminals accessed by the access switches to obtain the MAC address set corresponding to the access switches; integrating the MAC address sets corresponding to the access switches under the same aggregation switch to obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch.
[0009] Optionally, the characteristic information includes at least: the importance level of the access user terminal, and the step of calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal includes: counting the number of access user terminals corresponding to each importance level under the aggregation switch; configuring the level weight value corresponding to the importance level based on the importance level; calculating the product of the number of terminals corresponding to each importance level and the level weight value to obtain the weight data corresponding to each importance level; accumulating the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch.
[0010] Optionally, before obtaining the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the distribution network optical fiber data network, it also includes: obtaining attribute information and power usage information of all access user terminals accessing the distribution network optical fiber data network; configuring importance levels for the access user terminals based on the attribute information and the power usage information, and performing real-time maintenance on the importance levels of the access user terminals.
[0011] Optionally, after calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal, it also includes: receiving an intervention factor corresponding to each aggregation switch sent by a management terminal, wherein the intervention factor is information configured by the management terminal for intervening in the weight data of the aggregation switch; and adjusting the weight data of each aggregation switch based on the intervention factor to obtain the adjusted weight data.
[0012] Optionally, the step of determining the primary gateway and the primary routing convergence point of the distribution network optical fiber data network based on the weight data of each aggregation switch includes: comparing the weight data of each aggregation switch to obtain a comparison result; and selecting the aggregation switch corresponding to the maximum value of the weight data as the primary gateway and the primary routing convergence point of the distribution network optical fiber data network based on the comparison result.
[0013] Optionally, after obtaining the comparison result, it also includes: when the comparison result indicates that there are N maximum values of the weight data, opening the gateway interface of the aggregation switch corresponding to the N maximum values of the weight data; calculating the priority of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; and determining the primary gateway and the primary routing aggregation point based on the priority of the N aggregation switches.
[0014] According to another aspect of an embodiment of the present invention, a service gateway and routing control device of a distribution network optical fiber data network is provided, which is applied to a network management center and includes: a first acquisition unit, used to acquire the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; a second acquisition unit, used to acquire characteristic information of each of the access user terminals based on the MAC address; a calculation unit, used to calculate weight data of each of the aggregation switches based on the characteristic information of the access user terminal; a determination unit, used to determine the primary gateway and primary routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configure a routing strategy based on the access user terminal, the access switch, the primary gateway and the primary routing aggregation point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
[0015] Optionally, the first acquisition unit includes: a first monitoring module, used to monitor the network links in the optical fiber data network of the distribution network to obtain status information of the network links; a first acquisition module, used to obtain the access switches connected to each aggregation switch based on the status information; a second acquisition module, used to count all access user terminals accessed by each access switch, and obtain the MAC addresses of the access user terminals accessed by the access switches to obtain a MAC address set corresponding to the access switches; a first integration module, used to integrate the MAC address sets corresponding to the access switches under the same aggregation switch to obtain the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch.
[0016] Optionally, the characteristic information includes at least: the importance level of the access user terminal, and the calculation unit includes: a first statistical module, used to count the number of access user terminals corresponding to each importance level under the aggregation switch; a first configuration module, used to configure the level weight value corresponding to the importance level based on the importance level; a first calculation module, used to calculate the product of the number of terminals corresponding to each importance level and the level weight value to obtain the weight data corresponding to each importance level; a first accumulation module, used to accumulate the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch.
[0017] Optionally, the service gateway and routing control device of the distribution network optical fiber data network also includes: a third acquisition module, used to obtain the attribute information and power usage information of all access user terminals accessing the distribution network optical fiber data network; a second configuration module, used to configure the importance level of the access user terminal based on the attribute information and the power usage information, and perform real-time maintenance on the importance level of the access user terminal.
[0018] Optionally, the service gateway and routing control device of the distribution network optical fiber data network also includes: a first receiving module, used to receive the intervention factor corresponding to each aggregation switch sent by the management terminal, wherein the intervention factor is information configured by the management terminal for intervening in the weight data of the aggregation switch; a first adjustment module, used to adjust the weight data of each aggregation switch based on the intervention factor to obtain the adjusted weight data.
[0019] Optionally, the determination unit includes: a first comparison module, used to compare the weight data of each aggregation switch to obtain a comparison result; a first selection module, used to select the aggregation switch corresponding to the maximum value of the weight data as the main gateway of the distribution network optical fiber data network and the main routing aggregation point based on the comparison result.
[0020] Optionally, the determination unit also includes: a first enabling module, used to enable the gateway interface of the aggregation switch corresponding to the maximum value of the N weight data when the comparison result indicates that there are N maximum values of the weight data; a first calculation module, used to calculate the priority of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; and a second determination module, used to determine the primary gateway and the primary routing aggregation point based on the priority of the N aggregation switches.
[0021] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned service gateway and routing control methods for the distribution network optical fiber data network.
[0022] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned service gateway and routing control methods of the distribution network optical fiber data network.
[0023] In the present application, a service gateway and routing control method for a distribution network optical fiber data network is proposed, which is applied to a network management center, and is carried out through the following steps: first, the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the distribution network optical fiber data network are obtained, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network, and characteristic information of each access user terminal is obtained based on the MAC address, and then the weight data of each aggregation switch is calculated based on the characteristic information of the access user terminal, and finally the main gateway and main routing aggregation point of the distribution network optical fiber data network are determined based on the weight data of each aggregation switch, and the routing strategy is configured based on the access user terminal, the access switch, the main gateway and the main routing aggregation point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
[0024] In the present application, when controlling the service gateways and routes of the optical fiber data network of the distribution network, the network management center calculates the weight data of each service gateway based on a multi-factor algorithm. The multi-factor algorithm comprehensively considers the business volume and business importance of each service gateway, and can provide more accurate and reasonable calculation results for the primary and backup gateways and route selection, thereby achieving reasonable configuration of service gateways and routes, giving priority to ensuring the normal progress of important businesses, thereby achieving effective protection of businesses, and further solving the technical problem in related technologies that it is difficult to effectively protect businesses by controlling service gateways and routes according to preset routing priorities and the priority of virtual redundant routing protocols. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of an optional service gateway and routing control method of a distribution network optical fiber data network according to an embodiment of the present invention;
[0027] Figure 2 is a network architecture diagram of an optional optical fiber data network for a distribution network according to an embodiment of the present invention;
[0028] Figure 3 It is a schematic diagram of a network failure of an optional optical fiber data network of a distribution network according to an embodiment of the present invention;
[0029] Figure 4 is an optional network management center architecture diagram according to an embodiment of the present invention;
[0030] Figure 5is a schematic diagram of an optional service gateway and routing control device of a distribution network optical fiber data network according to an embodiment of the present invention;
[0031] Figure 6 The present invention is a hardware structure block diagram of an electronic device (or mobile device) of a service gateway and a routing control method for a distribution network optical fiber data network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0035] VLAN virtual interface: A VLAN virtual interface is a virtual interface created on a network device and is used to connect and manage a virtual local area network.
[0036] It should be noted that the service gateway and routing control method and device of the distribution network optical fiber data network in the present application can be used in the field of communication technology when the service gateway and routing of the distribution network optical fiber data network are controlled based on multi-factor comprehensive calculation, and can also be used in any field except the field of communication technology when the service gateway and routing of the distribution network optical fiber data network are controlled based on multi-factor comprehensive calculation. The application of the service gateway and routing control method and device of the distribution network optical fiber data network in the present application does not limit the application field.
[0037] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0038] It should be noted that in this application, when collecting and analyzing customer information, corresponding operation entrances are provided for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0039] The following embodiments of the present invention can be applied to service gateways and routing control systems / applications / devices in various networks. In the present invention, the selection of the primary and standby gateways and routes in the optical fiber data network of the distribution network is calculated by the network management center according to a multi-factor algorithm, and then sent to the aggregation switch to open the primary gateway and close the standby gateway. The network management center automatically monitors the status of the primary gateway on a daily basis. If the primary gateway is abnormal, the standby gateway is opened. After the primary gateway is restored, the standby gateway is closed again. The network management center is used to monitor and control the gateway status. Compared with the mutual monitoring and negotiation between traditional aggregation switches, on the one hand, the network reliability between the network management center and the aggregation device is high, which ensures the reliability of the operation mechanism; on the other hand, the method can utilize the powerful computing power of the network management center, deploy a multi-factor comprehensive algorithm to make a comprehensive judgment on the primary and standby gateways and route selection, so as to provide more accurate and reasonable calculation results for the primary and standby gateways and route selection, thereby realizing the reasonable configuration of service gateways and routes, giving priority to ensuring the normal operation of important services, and thus realizing effective protection of services.
[0040] The present invention is described in detail below in conjunction with various embodiments.
[0041] Embodiment 1
[0042] According to an embodiment of the present invention, an embodiment of a service gateway and routing control method for a distribution network optical fiber data network is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0043] Figure 1 is a flow chart of an optional service gateway and routing control method of a distribution network optical fiber data network according to an embodiment of the present invention, wherein the service gateway and routing control method of the distribution network optical fiber data network is applied to a network management center, such as Figure 1 As shown, the method comprises the following steps:
[0044] Step S101, obtaining MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the optical fiber data network of the distribution network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the optical fiber data network of the distribution network;
[0045] Step S102, acquiring characteristic information of each access user terminal based on the MAC address;
[0046] Step S103, calculating weight data of each aggregation switch based on feature information of the access user terminal;
[0047] Step S104, determining the primary gateway and primary routing convergence point of the optical fiber data network of the distribution network based on the weight data of each aggregation switch, and configuring a routing strategy based on the access user terminal, access switch, primary gateway and primary routing convergence point, wherein the routing strategy is used to route data transmitted in the optical fiber data network of the distribution network.
[0048] Through the above steps, the network management center first obtains the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the optical fiber data network of the distribution network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the optical fiber data network of the distribution network, and obtains the characteristic information of each access user terminal based on the MAC address, and then calculates the weight data of each aggregation switch based on the characteristic information of the access user terminal, and finally determines the main gateway and the main routing aggregation point of the optical fiber data network of the distribution network based on the weight data of each aggregation switch, and configures the routing strategy based on the access user terminal, the access switch, the main gateway and the main routing aggregation point, wherein the routing strategy is used to route the data transmitted in the optical fiber data network of the distribution network.
[0049] In this embodiment, when controlling the service gateways and routes of the optical fiber data network of the distribution network, the network management center calculates the weight data of each service gateway based on a multi-factor algorithm. The multi-factor algorithm comprehensively considers the business volume and business importance of each service gateway, and can provide more accurate and reasonable calculation results for the selection of primary and standby gateways and routes, thereby achieving reasonable configuration of service gateways and routes, giving priority to ensuring the normal progress of important businesses, thereby achieving effective protection of businesses, and further solving the technical problem in related technologies that it is difficult to effectively protect businesses by controlling service gateways and routes according to preset routing priorities and the priority of virtual redundant routing protocols.
[0050] The embodiment of the present invention is described in detail below in combination with the above steps.
[0051] It should be noted that the optical fiber data network of the distribution network plays a key role in the construction of smart grids. It uses optical fiber as the transmission medium and a dedicated communication network composed of switch equipment for the access of distribution information terminals. It is generally designed in two layers. A three-layer switch is used for networking above the aggregation layer, and the data flow direction is calculated by the routing protocol. The access layer uses a two-layer switch network, and the data flow direction is determined by the virtual routing redundancy protocol running on the aggregation switch. In the daily operation and maintenance process, the optical fiber data network of the distribution network uses a single-master and multiple-standby data network device to carry the service gateway function. The main gateway device carries the service data flow on a daily basis, and the standby device is in a listening state. When the main gateway device fails, the traffic is switched to the standby gateway device.
[0052] Figure 2 is a network architecture diagram of an optional distribution network optical fiber data network according to an embodiment of the present invention, such as Figure 2 As shown, access to the user terminal ( Figure 2 The user access terminal 1, user access terminal 2, and user access terminal 3 are used as an example) to access the switch through the power distribution room ( Figure 2 The access switches access the network through the aggregation switch ( Figure 2In the figure, aggregation switches 1 and 2 are used as illustrations to access the information master station of the distribution network optical fiber data network (the backbone network of the distribution network optical fiber data network is composed of a three-layer network) to realize the interaction between the user access terminal and the information master station. Generally speaking, multiple aggregation switches are deployed in the backbone network. The aggregation switches play a role in aggregating the access switches so that the access switches can access the backbone network. In daily use, one of the aggregation switches is used as the main gateway, and it and the aggregation switch are set as backup gateways. The backup gateway will continue to monitor the main gateway to determine the status of the main gateway. When there is an abnormality in the main gateway, it will automatically calculate according to the protocol operation status or the pre-set priority, and select the backup gateway to take over the traffic of the main gateway to continue to execute related services.
[0053] In the traditional control mode, when a link failure occurs between access switches, an automatic calculation will be performed based on the protocol operation status or the pre-set priority, and a portion of the distribution room access switch services will be discarded. Figure 3 FIG. 1 is a schematic diagram of a network failure of an optional optical fiber data network of a distribution network according to an embodiment of the present invention. Figure 3 As shown, the preferred path aggregation switch 1 is preset, and the virtual routing redundancy protocol primary gateway is in the aggregation switch 1. When the link between access switch 1 and access switch 2 fails, since access switches 2, 3, and 4 cannot communicate with the aggregation switch 1, the communication between these three distribution rooms and the information master station will be interrupted, and only the communication of access switch 1 is guaranteed. According to the traditional method, the service can only be guaranteed according to the preset routing priority and the priority of the virtual redundancy routing protocol, but a large number of services and important services cannot be guaranteed.
[0054] Optionally, before obtaining the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the distribution network optical fiber data network, it also includes: obtaining attribute information and power usage information of all access user terminals accessing the distribution network optical fiber data network; configuring importance levels for the access user terminals based on the attribute information and power usage information, and performing real-time maintenance on the importance levels of the access user terminals.
[0055] It should be noted that the embodiment of the present invention performs comprehensive calculation based on a multi-factor algorithm and selects the main gateway and route according to the calculation results. The multi-factor algorithm comprehensively considers the number and importance level of the access user terminals under each gateway device, which can improve the rationality of the calculation results. Therefore, before configuring the main gateway and route, it is necessary to obtain the attribute information and power consumption information of all access user terminals accessing the optical fiber data network of the distribution network. The attribute information may include the business scope information of the access user terminal, etc. The power consumption information may be data such as the daily power consumption or annual power consumption of the access user terminal. Then, according to the attribute information and the power consumption information, the importance level is configured for the access user, and the importance level data is maintained in real time according to the actual situation of the access user terminal. Finally, the configured importance level is matched with the MAC address of the user access terminal, a mapping relationship is established, and the MAC address of the user access terminal, the importance level and the mapping relationship between the two are stored in the database, so that the subsequent network management center can automatically calculate the weight data of each gateway device according to the importance level of the user access terminal, and then select the main gateway and the main routing convergence point.
[0056] Step S101, obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the optical fiber data network of the distribution network.
[0057] In an embodiment of the present invention, the optical fiber data network of the distribution network adopts a two-layer architecture, namely an access layer and an aggregation layer. The aggregation layer adopts a three-layer switch networking, that is, an aggregation switch networking, and the access layer adopts a two-layer switch networking, that is, an access switch networking. The aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the optical fiber data network of the distribution network.
[0058] It should be noted that when performing multi-factor comprehensive calculations, the network management center obtains the MAC address list information under the corresponding gateway interface through the aggregation switch. The MAC address list information records the MAC addresses of multiple access user terminals, and identifies the important security users. When the network is normal, the MAC address list information of each gateway interface should be consistent. The network management center calculation module conducts a comprehensive analysis of the MAC address of the service gateway according to the number of access terminals and the importance of user security, calculates the weight data, selects the main gateway based on the weight data, and sets the gateway interfaces corresponding to the remaining aggregation switches as backup gateways.
[0059] Optionally, the step of obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network includes: monitoring the network links in the distribution network optical fiber data network to obtain status information of the network links; obtaining the access switches connected to each aggregation switch based on the status information; counting all access user terminals accessed by each access switch, and obtaining the MAC addresses of the access user terminals accessed by the access switches to obtain a MAC address set corresponding to the access switches; integrating the MAC address sets corresponding to the access switches under the same aggregation switch to obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch.
[0060] Specifically, when obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the optical fiber data network of the distribution network, the network management center will monitor the network link in the optical fiber data network of the distribution network. The monitored network link can be specifically the access switch networking link. The status information of the network link is determined according to the monitoring result. If the network links are normal, the number of MAC addresses in the MAC address list information accessed under each aggregation switch is the same. If the network link fails, the number of terminals added under each aggregation switch will be different. At this time, a network interruption will occur. Some access user terminals may not be able to access the information master station due to the network link failure. It is necessary to switch the main gateway in time and restore the abnormal link. After switching the main gateway, the normal operation of the business can be guaranteed to the greatest extent. When obtaining the MAC address, it is determined according to the access user terminal accessed by the access switch under the aggregation switch. Each access user terminal carries a unique MAC address for network communication. The MAC addresses of all access user terminals accessed by each access switch are obtained, and the access user terminals accessed by all access switches under the same aggregation switch are integrated to obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to the aggregation switch.
[0061] Step S102: Acquire characteristic information of each access user terminal based on the MAC address.
[0062] It should be noted that after determining all MAC addresses under the aggregation switch, the database can be queried based on the MAC address to obtain the importance level corresponding to the MAC address, thereby obtaining the characteristic information of each access user terminal. In addition, the multi-factor algorithm of the embodiment of the present invention can also flexibly configure the characteristic information of the access user terminal, thereby performing a comprehensive analysis based on multiple factors.
[0063] Step S103: Calculate weight data of each aggregation switch based on feature information of the access user terminal.
[0064] It should be noted that after obtaining the characteristic information of each access user terminal, the weight data of the aggregation switch is calculated according to the number and characteristic information of the corresponding access user terminals under each aggregation switch. The weight data can reflect the amount of business undertaken by the aggregation switch and the importance of the business, so that the main gateway and main route can be selected more accurately and reasonably to ensure the normal operation of the business to the greatest extent.
[0065] Optionally, the characteristic information includes at least: the importance level of the access user terminal, and the step of calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal includes: counting the number of access user terminals corresponding to each importance level under the aggregation switch; configuring the level weight value corresponding to the importance level based on the importance level; calculating the product of the number of terminals corresponding to each importance level and the level weight value to obtain the weight data corresponding to each importance level; accumulating the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch.
[0066] It should be noted that the characteristic information obtained through the MAC address of the access user terminal may be the importance level of the access user terminal. The number of access user terminals corresponding to each importance level under the aggregation switch is counted, and the corresponding level weight value is configured according to the importance level. The level weight value can also be pre-configured and called when in use. The weight data corresponding to each importance level is calculated according to the level weight value of each importance level and the number of access user terminals corresponding to each importance level. The weight data corresponding to all importance levels under the aggregation switch are accumulated to obtain the weight data of the aggregation switch.
[0067] Specifically, the calculation expression of the aggregation switch weight data can be expressed as: , K represents weight data, The key is to ensure the number of users. The key is to protect user weight. is the number of ordinary users, is the weight of ordinary users. Taking the third-level important security users as an example, the calculation expression of the aggregation switch weight data can be: ,in, Indicates the number of first-level important access user terminals (i.e., first-level important protection users). Indicates the importance level weight value of the access user terminal of the first importance level, Indicates the number of access user terminals of the second-level importance level (i.e., second-level important protection users). Indicates the importance level weight value of the access user terminal of the first importance level, Indicates the number of access user terminals of the third-level importance level (i.e., the third-level important protection users). Indicates the importance level weight value of the access user terminal of the third importance level. When the interconnection link between the access switches is interrupted, such as Figure 3 As shown in the figure, the interconnection link between access switch 1 and access switch 2 is interrupted, the downstream MAC address information of aggregation switch 1 includes the MAC addresses of all access user terminals connected to access switch 1, and the downstream MAC address information of aggregation switch 2 includes the MAC addresses of all access user terminals connected to access switches 2, 3, and 4. The two aggregation switches calculate the corresponding weight data K1 and K2 according to the downstream MAC address information, and finally compare the K values of the two aggregation switches, and the one with the larger K value is used as the primary gateway and primary routing aggregation point.
[0068] Optionally, after calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal, it also includes: receiving an intervention factor corresponding to each aggregation switch sent by the management terminal, wherein the intervention factor is information configured by the management terminal for intervening in the weight data of the aggregation switch; and adjusting the weight data of each aggregation switch based on the intervention factor to obtain adjusted weight data.
[0069] It should be noted that, in order to facilitate emergency response to power supply guarantee, the embodiment of the present invention sets a function of manually setting the active and standby gateways, which has a higher priority than the multi-factor analysis algorithm. The K value is affected by adding the intervention factor H, thereby affecting the comprehensive analysis of the active and standby gateways. The calculation formula of the K value with the intervention factor added is expressed as: , where H represents the intervention factor. The weight data is adjusted through the intervention factor to select the corresponding primary gateway and primary routing convergence point.
[0070] Step S104, determining the primary gateway and primary routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configuring the routing strategy based on the access user terminal, access switch, primary gateway and primary routing aggregation point.
[0071] It should be noted that after calculating the weight data of each aggregation switch in the backbone network, the weight data of each aggregation switch are compared. The larger the weight data, the larger the business volume undertaken by the aggregation switch or the higher the importance of the business. Therefore, it can be used as the primary gateway to undertake the business of the original primary gateway. Some business will inevitably be lost in this process, but it can maximize the guarantee of the normal progress of important business and improve the rationality and accuracy of gateway selection and route planning.
[0072] Finally, the most suitable routing path can be selected according to the access user terminal, access switch, main gateway and main routing convergence point to generate a routing strategy, which is used to route the data transmitted in the optical fiber data network of the distribution network, thereby routing the data of the information terminal to the backbone network.
[0073] Optionally, the step of determining the primary gateway and primary routing convergence point of the distribution network optical fiber data network based on the weight data of each aggregation switch includes: comparing the weight data of each aggregation switch to obtain a comparison result; and selecting the aggregation switch corresponding to the maximum value of the weight data as the primary gateway and primary routing convergence point of the distribution network optical fiber data network based on the comparison result.
[0074] Specifically, when selecting the main gateway and the main routing convergence point, the weight data of each aggregation switch is compared to determine the maximum value of the weight data, and the aggregation switch corresponding to the maximum value of the weight data is used as the main gateway and the main routing convergence point of the distribution network optical fiber data network, and the other aggregation switches are used as backup gateways. After determining the main gateway and the main routing convergence point, the network management center sends the VLAN virtual interface to the aggregation switch corresponding to the selected main gateway to perform the configuration operation of opening and closing, open the main gateway and close the backup gateway. After closing the backup gateway, the corresponding backup route is also cancelled, avoiding the influence of the backup gateway and its route on the normal data flow.
[0075] Optionally, after obtaining the comparison result, it also includes: when the comparison result indicates that there are maximum values of N weight data, opening the gateway interface of the aggregation switch corresponding to the maximum value of the N weight data; calculating the priority of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; and determining the primary gateway and the primary routing aggregation point based on the priority of the N aggregation switches.
[0076] It should be noted that if there are multiple aggregation switches corresponding to the maximum value of the selected weight data, the gateway interfaces corresponding to the multiple aggregation switches are opened, and the priority of each aggregation switch is calculated through the virtual routing redundancy protocol and dynamic routing protocol between the gateway devices. Finally, the aggregation switch with the largest priority is selected as the main gateway and the main routing aggregation point.
[0077] Another optional specific implementation is described in detail below.
[0078] Figure 4 is an optional network management center architecture diagram according to an embodiment of the present invention, such as Figure 4 As shown, the network management center includes a computing module, a monitoring module and a control module. Specifically,
[0079] The calculation module executes a multi-factor analysis algorithm to determine the primary and backup gateways and routing selection.
[0080] Monitoring module: The network management center automatically monitors the status of the main gateway through the monitoring module on a daily basis. If the main gateway is abnormal, the backup gateway will be opened. After the main gateway is restored, the backup gateway will be closed again.
[0081] The control module is different from the traditional priority intervention of routing and virtual routing redundancy protocol. After executing the multi-factor analysis algorithm to determine the primary and backup gateways and route selection, the present invention sends the VLAN virtual interface to the aggregation switch through the control module to perform the configuration operation of opening and closing, directly opening the primary gateway and closing the backup gateway. After the backup gateway is closed, the corresponding backup route is also cancelled, avoiding the influence of the backup gateway and its route on the normal data flow.
[0082] The embodiment of the present invention adopts a network management center to monitor and control the gateway status. Compared with the mutual monitoring and negotiation between traditional aggregation switches, on the one hand, due to the high network reliability between the network management center and the aggregation device, the reliability of the operation mechanism is guaranteed; on the other hand, the method can utilize the powerful computing power of the network management center and deploy a multi-factor comprehensive algorithm to make a comprehensive judgment on the primary and standby gateways and routing selection.
[0083] The following is a detailed description in conjunction with another embodiment.
[0084] Embodiment 2
[0085] A service gateway and routing control device of a distribution network optical fiber data network provided in this embodiment includes multiple implementation units, each implementation unit corresponds to each implementation step in the above-mentioned embodiment 1. Its specific implementation methods and beneficial effects can refer to the aforementioned method embodiments and will not be repeated here.
[0086] Figure 5 Schematic diagram of an optional service gateway and routing control device of a distribution network optical fiber data network according to an embodiment of the present invention, the service gateway and routing control device of the distribution network optical fiber data network is applied to a network management center, such as Figure 5 As shown, the service gateway and routing control device of the distribution network optical fiber data network may include: a first acquisition unit 51, a second acquisition unit 52, a calculation unit 53, and a determination unit 54, wherein:
[0087] The first acquisition unit 51 is used to obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network;
[0088] A second acquisition unit 52 is used to acquire characteristic information of each access user terminal based on the MAC address;
[0089] A calculation unit 53, configured to calculate weight data of each aggregation switch based on feature information of an access user terminal;
[0090] The determination unit 54 is used to determine the main gateway and the main routing convergence point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configure the routing strategy based on the access user terminal, the access switch, the main gateway and the main routing convergence point, wherein the routing strategy is used to route the data transmitted in the distribution network optical fiber data network.
[0091] The service gateway and routing control device of the above-mentioned distribution network optical fiber data network obtains the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network through the first acquisition unit 51, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; obtains the characteristic information of each access user terminal based on the MAC address through the second acquisition unit 52; calculates the weight data of each aggregation switch based on the characteristic information of the access user terminal through the calculation unit 53; determines the main gateway and main routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch through the determination unit 54, and configures the routing strategy based on the access user terminal, the access switch, the main gateway and the main routing aggregation point, wherein the routing strategy is used to route the data transmitted in the distribution network optical fiber data network.
[0092] In this embodiment, when controlling the service gateways and routes of the optical fiber data network of the distribution network, the network management center calculates the weight data of each service gateway based on a multi-factor algorithm. The multi-factor algorithm comprehensively considers the business volume and business importance of each service gateway, and can provide more accurate and reasonable calculation results for the selection of primary and standby gateways and routes, thereby achieving reasonable configuration of service gateways and routes, giving priority to ensuring the normal progress of important businesses, thereby achieving effective protection of businesses, and further solving the technical problem in related technologies that it is difficult to effectively protect businesses by controlling service gateways and routes according to preset routing priorities and the priority of virtual redundant routing protocols.
[0093] Optionally, the first acquisition unit 51 includes: a first monitoring module, used to monitor the network links in the optical fiber data network of the distribution network to obtain status information of the network links; a first acquisition module, used to obtain the access switches connected to each aggregation switch based on the status information; a second acquisition module, used to count all access user terminals accessed by each access switch, and obtain the MAC addresses of the access user terminals accessed by the access switches, and obtain the MAC address set corresponding to the access switches; a first integration module, used to integrate the MAC address sets corresponding to the access switches under the same aggregation switch, and obtain the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch.
[0094] Optionally, the characteristic information includes at least: the importance level of the access user terminal, and the calculation unit 53 includes: a first statistical module, used to count the number of access user terminals corresponding to each importance level under the aggregation switch; a first configuration module, used to configure the level weight value corresponding to the importance level based on the importance level; a first calculation module, used to calculate the product of the number of terminals corresponding to each importance level and the level weight value, and obtain the weight data corresponding to each importance level; a first accumulation module, used to accumulate the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch.
[0095] Optionally, the service gateway and routing control device of the distribution network optical fiber data network also includes: a third acquisition module, used to obtain the attribute information and power consumption information of all access user terminals accessing the distribution network optical fiber data network; a second configuration module, used to configure the importance level of the access user terminal based on the attribute information and power consumption information, and perform real-time maintenance on the importance level of the access user terminal.
[0096] Optionally, the service gateway and routing control device of the distribution network optical fiber data network also includes: a first receiving module, used to receive the intervention factor corresponding to each aggregation switch sent by the management terminal, wherein the intervention factor is information configured by the management terminal for intervening in the weight data of the aggregation switch; a first adjustment module, used to adjust the weight data of each aggregation switch based on the intervention factor to obtain the adjusted weight data.
[0097] Optionally, the determination unit 54 includes: a first comparison module, used to compare the weight data of each aggregation switch to obtain a comparison result; a first selection module, used to select the aggregation switch corresponding to the maximum value of the weight data as the main gateway and main routing aggregation point of the distribution network optical fiber data network based on the comparison result.
[0098] Optionally, the determination unit 54 also includes: a first enabling module, which is used to enable the gateway interface of the aggregation switch corresponding to the maximum value of the N weight data when the comparison result indicates that there is a maximum value of the N weight data; a first calculation module, which is used to calculate the priority of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; and a second determination module, which is used to determine the primary gateway and the primary routing aggregation point based on the priority of the N aggregation switches.
[0099] The service gateway and routing control device of the above-mentioned distribution network optical fiber data network may also include a processor and a memory. The above-mentioned first acquisition unit 51, the second acquisition unit 52, the calculation unit 53, the determination unit 54, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0100] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set to flexibly control the service gateway and routing of the optical fiber data network of the distribution network by adjusting kernel parameters.
[0101] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0102] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned service gateway and routing control methods of the distribution network optical fiber data network.
[0103] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned service gateway and routing control methods of the distribution network optical fiber data network.
[0104] According to another aspect of an embodiment of the present invention, a computer program product is also provided, the computer program product comprising a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned service gateway and routing control methods for a distribution network optical fiber data network is implemented.
[0105] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; obtaining characteristic information of each access user terminal based on the MAC address; calculating weight data of each aggregation switch based on the characteristic information of the access user terminal; determining the main gateway and main routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configuring a routing strategy based on the access user terminal, the access switch, the main gateway and the main routing aggregation point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
[0106] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that is initialized with the following method steps: the step of obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network includes: monitoring the network links in the distribution network optical fiber data network to obtain the status information of the network links; obtaining the access switches connected to each aggregation switch based on the status information; counting all access user terminals accessed by each access switch, and obtaining the MAC addresses of the access user terminals accessed by the access switch to obtain the MAC address set corresponding to the access switch; integrating the MAC address sets corresponding to the access switches under the same aggregation switch to obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch.
[0107] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that is initialized with the following method steps: the characteristic information at least includes: the importance level of the access user terminal, and the step of calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal includes: counting the number of access user terminals corresponding to each importance level under the aggregation switch; configuring the level weight value corresponding to the importance level based on the importance level; calculating the product of the number of terminals corresponding to each importance level and the level weight value to obtain the weight data corresponding to each importance level; accumulating the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch.
[0108] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that initializes the following method steps: before obtaining the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the distribution network optical fiber data network, it also includes: obtaining the attribute information and power usage information of all access user terminals accessing the distribution network optical fiber data network; configuring an importance level for the access user terminal based on the attribute information and power usage information, and performing real-time maintenance on the importance level of the access user terminal.
[0109] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that initializes the following method steps: after calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal, it also includes: receiving an intervention factor corresponding to each aggregation switch sent by a management terminal, wherein the intervention factor is information configured by the management terminal for intervening in the weight data of the aggregation switch; adjusting the weight data of each aggregation switch based on the intervention factor to obtain the adjusted weight data.
[0110] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that initializes the following method steps: the steps of determining the main gateway and main routing aggregation point of the distribution network optical fiber data network based on the weight data of each aggregation switch include: comparing the weight data of each aggregation switch to obtain a comparison result; based on the comparison result, selecting the aggregation switch corresponding to the maximum value of the weight data as the main gateway and main routing aggregation point of the distribution network optical fiber data network.
[0111] The present application also provides a computer program product, which, when executed on a data processing device, is also suitable for executing a program that initializes the following method steps: after obtaining the comparison result, it also includes: when the comparison result indicates that there is a maximum value of N weight data, opening the gateway interface of the aggregation switch corresponding to the maximum value of the N weight data; calculating the priority of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; determining the main gateway and the main routing aggregation point based on the priority of the N aggregation switches.
[0112] Figure 6 1 is a hardware structure block diagram of an electronic device (or mobile device) of a service gateway and routing control method of a distribution network optical fiber data network according to an embodiment of the present invention. Figure 6 As shown, the electronic device may include one or more ( Figure 6602a, 602b, ..., 602n are used to illustrate) processor 602 (processor 602 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 604 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 6 Different configurations are shown.
[0113] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0114] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0115] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0117] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0119] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A service gateway and routing control method for a distribution network optical fiber data network, characterized in that: Applied to the network management center, including: Obtain the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; Acquire characteristic information of each of the access user terminals based on the MAC address; The weight data of each aggregation switch is calculated based on the characteristic information of the access user terminal, wherein the characteristic information at least includes: the importance level of the access user terminal, and the step of calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal includes: counting the number of access user terminals corresponding to each importance level under the aggregation switch; configuring the level weight value corresponding to the importance level based on the importance level; calculating the product of the number of terminals corresponding to each importance level and the level weight value to obtain the weight data corresponding to each importance level; accumulating the weight data of all importance levels of the access user terminals connected to the aggregation switch to obtain the weight data of the aggregation switch; Based on the weight data of each aggregation switch, the main gateway and the main routing convergence point of the distribution network optical fiber data network are determined, and a routing strategy is configured based on the access user terminal, the access switch, the main gateway and the main routing convergence point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
2. The control method according to claim 1, characterized in that: The steps of obtaining the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the optical fiber data network of the distribution network include: Monitoring the network links in the optical fiber data network of the distribution network to obtain status information of the network links; Acquire access switches connected to each aggregation switch based on the status information; Counting all access user terminals accessed by each of the access switches, and obtaining MAC addresses of the access user terminals accessed by the access switches, to obtain a MAC address set corresponding to the access switches; The MAC address sets corresponding to the access switches under the same aggregation switch are integrated to obtain the MAC addresses of all access user terminals under the service gateway interfaces corresponding to the aggregation switches.
3. The control method according to claim 1, characterized in that: Before obtaining the MAC addresses of all access user terminals under the service gateway interfaces corresponding to each aggregation switch in the optical fiber data network of the distribution network, the following is also included: Obtaining attribute information and power usage information of all access user terminals connected to the optical fiber data network of the distribution network; An importance level is configured for the access user terminal based on the attribute information and the power usage information, and the importance level of the access user terminal is maintained in real time.
4. The control method according to claim 1, characterized in that: After calculating the weight data of each aggregation switch based on the characteristic information of the access user terminal, the method further includes: Receiving an intervention factor corresponding to each aggregation switch sent by a management terminal, wherein the intervention factor is information configured by the management terminal for intervening in weight data of the aggregation switch; The weight data of each aggregation switch is adjusted based on the intervention factor to obtain the adjusted weight data.
5. The control method according to claim 1, characterized in that: The step of determining the main gateway and the main routing convergence point of the distribution network optical fiber data network based on the weight data of each convergence switch includes: Comparing the weight data of each aggregation switch to obtain a comparison result; Based on the comparison result, the aggregation switch corresponding to the maximum value of the weight data is selected as the main gateway of the distribution network optical fiber data network and the main routing aggregation point.
6. The control method according to claim 5, characterized in that: After getting the comparison results, it also includes: When the comparison result indicates that there are N maximum values of the weight data, opening the gateway interfaces of the aggregation switches corresponding to the N maximum values of the weight data; Calculating the priorities of the N aggregation switches based on the virtual routing redundancy protocol and the dynamic routing protocol between the N aggregation switches; The primary gateway and the primary routing aggregation point are determined based on the priorities of the N aggregation switches.
7. A service gateway and routing control device for a distribution network optical fiber data network, characterized in that: Applied to the network management center, including: A first acquisition unit is used to acquire the MAC addresses of all access user terminals under the service gateway interface corresponding to each aggregation switch in the distribution network optical fiber data network, wherein the aggregation switch is a switch that provides aggregation function for the access switch, and the access switch represents a switch that provides a communication interface for the access user terminal to access the distribution network optical fiber data network; A second acquiring unit, configured to acquire characteristic information of each of the access user terminals based on the MAC address; A calculation unit, configured to calculate the weight data of each aggregation switch based on the characteristic information of the access user terminal, wherein the characteristic information at least includes: the importance level of the access user terminal, and the calculation unit includes: a first statistical module, configured to count the number of access user terminals corresponding to each importance level under the aggregation switch; a first configuration module, configured to configure the level weight value corresponding to the importance level based on the importance level; a first calculation module, configured to calculate the product of the number of terminals corresponding to each importance level and the level weight value, to obtain the weight data corresponding to each importance level; a first accumulation module, configured to accumulate the weight data of all importance levels of the access user terminals connected to the aggregation switch, to obtain the weight data of the aggregation switch; A determination unit is used to determine the main gateway and the main routing convergence point of the distribution network optical fiber data network based on the weight data of each aggregation switch, and configure a routing strategy based on the access user terminal, the access switch, the main gateway and the main routing convergence point, wherein the routing strategy is used to route data transmitted in the distribution network optical fiber data network.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the service gateway and routing control method of the distribution network optical fiber data network according to any one of claims 1 to 6.
9. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the service gateway and routing control method of the distribution network optical fiber data network as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Cross-layer routing optimization method and device, equipment and storage medium
CN116566884A
Protocol independent multicast (PIM) multicast route entry synchronization
US20160094443A1