[go: up one dir, main page]

WO2024113803A1 - Network optimization method, edge device and computer-readable storage medium - Google Patents

Network optimization method, edge device and computer-readable storage medium Download PDF

Info

Publication number
WO2024113803A1
WO2024113803A1 PCT/CN2023/102908 CN2023102908W WO2024113803A1 WO 2024113803 A1 WO2024113803 A1 WO 2024113803A1 CN 2023102908 W CN2023102908 W CN 2023102908W WO 2024113803 A1 WO2024113803 A1 WO 2024113803A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
hotspot
cost
network
cost value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2023/102908
Other languages
French (fr)
Chinese (zh)
Inventor
林宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2024113803A1 publication Critical patent/WO2024113803A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/243Multipath using M+N parallel active paths

Definitions

  • the present application relates to the field of communication technology, and in particular to a network optimization method, an edge device, and a computer-readable storage medium.
  • the traffic of the entire network tends to be stable, but in some emergencies, or at special times, the network traffic will gather for a short time with some hot events, that is, the phenomenon of hot traffic will occur.
  • the network cannot be adjusted in time according to the hot traffic situation, resulting in network congestion or even traffic loss, making users feel low about the network usage. Therefore, when hot traffic occurs, how to adjust the network to improve users' perception of network usage is an urgent problem to be solved.
  • the main purpose of this application is to provide a network optimization method, edge device and computer-renewable storage medium, aiming to solve the technical problem of how to improve the user's perception of network usage when hot traffic occurs.
  • the present application provides a network optimization method, which is applied to edge devices and includes the following steps:
  • the traffic data corresponding to the hotspot information is transmitted according to the equal-cost multi-path group.
  • the present application also provides an edge device, the edge device
  • the invention comprises: a memory, a processor and a network optimization program stored in the memory and executable on the processor.
  • the network optimization program is executed by the processor, the steps of the network optimization method described above are implemented.
  • the present application also provides a computer-readable storage medium, on which a network optimization program is stored.
  • a network optimization program is stored on which a network optimization program is stored.
  • the embodiment of the present application determines the equivalent multi-path group that reaches the hotspot address according to the hotspot level and the hotspot address in the hotspot information after receiving the hotspot information in the network, and distributes the traffic data to the equivalent multi-path group for transmission. Therefore, when hotspot traffic appears in the network, the network can be timely adjusted and globally optimized according to the hotspot information. Since the equivalent multi-path group includes the shortest path and the extended path, when the traffic data is transmitted through the equivalent multi-path group, network congestion or even traffic discarding when the traffic data is transmitted only through the shortest path is avoided, thereby ensuring that the traffic data is transmitted correctly and effectively, and improving the user's perception of network use.
  • FIG1 is a schematic diagram of a flow chart of a first embodiment of a network optimization method of the present application
  • FIG2 is a schematic diagram of a detailed process of constructing an equivalent multi-path group in the network optimization method of the present application
  • FIG3 is a schematic diagram of the location of a reserved field with an extended function in an LACP protocol message
  • FIG4 is a schematic diagram showing an example of a first embodiment of the network optimization method of the present application.
  • FIG5 is a schematic diagram of a flow chart of constructing an expansion path in the network optimization method of the present application.
  • FIG6 is a flow chart of the memory operation in the network optimization method of the present application.
  • the traffic data transmission status of the entire network is basically stable. However, when there are some emergencies, such as natural disasters, wars, hot news, etc., or some special events and special times, such as National Day, Spring Festival, World Cup, etc., the traffic data on the above network will be stable. The transmission status will show a short-term aggregation along with the above-mentioned hot content. At this time, the network is prone to congestion and paralysis, which has a high maintenance cost and seriously affects the user's network usage perception.
  • the server resources in the network can be clouded, and the resources to be accessed can be distributed on multiple servers as much as possible to minimize the impact of sudden traffic data accessing hot content on the server.
  • the above-mentioned coping strategies have the following problems: when hot content suddenly appears, network nodes cannot be adjusted automatically in real time and are basically in a passive response state; or they can only make corresponding advance adjustments to the hot spots that are predicted in advance, but there is no prepared strategy to face the variability of the situation. For example, if the traffic data for accessing hot content is too large, far exceeding the historical expected maximum value, it will still be congested and paralyzed, or if the traffic data is too small, far less than the historical expected maximum value, it will cause cost waste.
  • server cloudification can partially alleviate the problem of traffic sharing when hot content appears, if the traffic data far exceeds the network bandwidth of the server where the hot content is located, then network congestion will still occur.
  • the embodiments of the present application provide a network optimization method, an edge device, and a computer-readable storage medium.
  • the entire network automatically adapts and adjusts to reasonably and evenly distribute the traffic data for accessing the hot content on the network as much as possible, so as to achieve the purpose of automatically adjusting the hot traffic data.
  • the priority of the hot traffic data in the network is improved, so that the above hot traffic data has a high priority transmission in the existing network bandwidth, ensuring the correct and effective transmission of the hot traffic data.
  • the intelligent operation and maintenance and adaptation capabilities of the network can be improved, the overall performance of the network can be improved, and the network maintenance costs can be saved, which can significantly improve the user's perception of network use.
  • the present application provides a network optimization method.
  • the network optimization method is applied to an edge device, including the following steps:
  • Step S10 after obtaining the hotspot information in the network, determine the hotspot in the hotspot information Address and hotspot levels;
  • the server can detect whether the number of visits to a certain file or certain data of its own has increased sharply. If the number of visits is much greater than the preset historical number of visits, it is determined that the number of visits has increased sharply, and at this time it can be considered that the hot content appears in the server.
  • the server can be a cloud server.
  • the hot information of the hot content can be notified to any network device in the network where the server is located, such as an edge device.
  • the server can inform the edge device through a link connected to the switch. That is, the server can inform the switch of the hot information of the hot content appearing in the server through a specific message or message, that is, inform the switch that the IP address of this server or the IP address of a virtual machine on this server has become a hot IP address.
  • the switch Based on the IP address message of the hot content received from the server, the switch converts this address into hot information and notifies the network through the routing protocol.
  • the routing protocol may be OSPF (Open Shortest Path First), BGP (Border Gateway Protocol), IGP (Interior Gateway Protocol), RIP (Routing Information Protocol), etc.
  • the reserved field of the routing protocol may be used during notification to inform the hotspot IP address information to the neighboring devices related to the entire network in a specific message. For example, if the entire network uses the OSPF protocol, when notifying the server address LSA message, this address may be marked as a hotspot address. This allows the neighbors related to the entire network to know that the route corresponding to this IP address in the network has become a hotspot route. While notifying the above hotspot address, the reserved field of the routing protocol may be used to notify the hotspot level of the hotspot address.
  • the hotspot content is positively correlated with the hotspot level, for example, the denser the hotspot content, the higher the hotspot level.
  • the edge device may be a computer, a mobile phone or other smart terminal.
  • the link can be a link aggregation group, then the server can communicate with the network device through the switch and according to the preset protocol, such as the LACPDU (Link Aggregation Control Protocol Data Unit) message in the LACP (Link Aggregation Control Protocol), to inform the network device of the hotspot information.
  • LACPDU Link Aggregation Control Protocol Data Unit
  • LACP Link Aggregation Control Protocol
  • the LACPDU unit is a 128-byte message
  • the protocol type is the field from the 25th byte to the 26th byte
  • the default protocol type is 0x8809
  • the message subtype is the field of the 27th byte
  • the default The hotspot level can be informed to the network device through the expansion of the reserved field A in the 34th to 36th bytes of the LACPDU unit; the 2-byte protocol type feature field and the 1-byte message subtype feature field in the message are used to determine whether it is the LACP protocol. If so, the LACP protocol is determined to be the routing protocol corresponding to the hotspot information.
  • the edge device After the edge device detects the existence of hotspot information in the network, it is necessary to determine the hotspot level and hotspot address contained in the hotspot information, so as to subsequently select the combined path according to the hotspot level and hotspot address to transmit the traffic data corresponding to the hotspot information.
  • the hotspot information includes at least a hotspot address and a hotspot level.
  • the hotspot address may include the IP (Internet Protocol) address of the server where the hotspot content appears or the IP address of a virtual machine on the server.
  • the hotspot level may be graded based on the size of the traffic data of accessing the hotspot content in the server in the network, and the grade division method may be to divide the level according to the frequency of simultaneous access of the hotspot content in the server by the same user or multiple users.
  • the frequency of simultaneous access to the hotspot content in the server is n times more than the preset historical access frequency, then one level is added; it may also be graded based on the average number of accesses to the hotspot content in the server within a preset time period, for example, if the average number of accesses to the hotspot content in the server within one minute is greater than or equal to the preset grade division threshold, then one level is added.
  • the hotspot level may be directly presented in a digital identifier. For example, 0-10 levels may be used to refer to the hotspot level, and the larger the number, the higher the level, corresponding to the larger the traffic data of accessing the hotspot content in the above server.
  • hotspot level 0 refers to the disappearance of hotspot traffic data, which is a normal traffic data transmission situation. It should be noted that the historical access frequency, n times and preset level classification threshold can be set by the user independently and are not restricted here.
  • Step S20 determining an equal-cost multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, wherein the equal-cost multi-path group includes a shortest path and an extended path;
  • multiple paths to the hotspot address can be constructed based on the hotspot address and the hotspot level, and they can be aggregated to form an equivalent multi-path group.
  • the shortest path from the edge device to the server can be determined as a path in the equal-cost multi-path group.
  • the cost value of each interface in the link is calculated separately, and then the path cost value required to reach the target node from the current node is accumulated. The path with the smallest path cost value is the shortest path.
  • the shortest path can be written into the routing table of the edge device.
  • At least one other path to the above-mentioned server can be expanded in the edge device according to the above-mentioned hotspot level, that is, the expanded path.
  • the expanded path can be a path that determines all qualified and reachable hotspot addresses according to the range of preset cost values corresponding to the above-mentioned hotspot level.
  • the edge device first determines different preset cost value ranges according to the hotspot level, and then screens each valid path according to the preset cost value range to obtain an expanded path that meets the requirements.
  • the effective path is the path that the edge device can effectively reach the server.
  • the cost value range is not fixed, and the cost value range can be increased or reduced according to the persistence of the hotspot information of the server where the hotspot content appears or the number of user connections. Correspondingly, the larger the cost value range, the more expanded paths. And after determining the expanded path, the expanded path can be written into the routing table of the edge device as a path in the equivalent multi-path group.
  • Step S30 Transmitting traffic data corresponding to the hotspot information according to the equal-cost multi-path group.
  • the server can be accessed through the equal-cost multi-path group consisting of the shortest path and at least one extended path to load share the traffic, that is, the edge device can access the server through any one or more equal-cost paths in the equal-cost multi-path group, and the server transmits traffic data to the edge device that applies for access through any one or more equal-cost paths in the equal-cost multi-path group.
  • the messages communicated between the edge device and the server belong to the same data stream, then the equal-cost multi-path group that implements load sharing based on the data stream can evenly use all the above paths to transmit the data stream. For example, if the above message has 10 data streams and there are 2 equal-cost paths to choose from, then 5 data streams are transmitted on each side.
  • the hotspot upgrade information is used as the hotspot information to continue to perform the above step S10 of determining the hotspot address and hotspot level in the hotspot information.
  • the edge device receives the hotspot disappearance information in the network, the edge device can directly continue to transmit the untransmitted traffic data in the traffic data according to the shortest path.
  • all network resources that are physically connected to the server where the hotspot traffic data i.e., the traffic data corresponding to the hotspot information
  • the transmission input of all network resources that are physically connected to it can be gradually increased according to the demand for the hotspot traffic data, until all network resources that are physically connected to it are fully invested in the transmission of the hotspot traffic data or until the hotspot content disappears and the hotspot traffic data is reduced.
  • the method of adjusting the transmission can be expanded using a preset routing protocol, which can be an OSPF protocol.
  • the edge network device (such as a router) performs routing calculations
  • the cost (path overhead) value of the path to the upper server is expanded according to the hotspot level of the server, so as to calculate more paths and invest them in the load balancing transmission process of the hotspot traffic data to achieve the adjustment effect of traffic sharing.
  • the network uses the OSPF protocol for routing calculation.
  • the hotspot information is stored on the hotspot server 10.1.1.1
  • the hotspot server detects that a file with hotspot access content appears on itself, it informs the network device 2 directly connected to the hotspot server of the message that it has become a hotspot through a message, and the network device 2 receives the message that the hotspot server has become a hotspot and the hotspot level of the corresponding hotspot.
  • Network device 2 calculates the LSA packet containing the hotspot address and the hotspot level through the OSPF protocol, and broadcasts it in the above-mentioned bearer network.
  • the intermediate node After the intermediate node (network device A, network device B and network device C) receives the above-mentioned LSA packet, it only calculates the above-mentioned hotspot address 10.1.1.1 through the OSPF protocol, and then continues to broadcast.
  • the edge device After the edge device (network device 1) of the network receives the LSA packet, it calculates the hotspot address 10.1.1.1 and the hotspot level is hotspot level 1, and then sets the route calculation cost range to 10.
  • the edge device starts to calculate the route and finds that the shortest path to the hotspot server IP address 10.1.1.1 is cost 50, that is, it passes through network device A to reach network device 2, and the next hop is 20.1.1.1.
  • the calculated path cost is expanded and it is found that there is another path to 10.1.1.1 with a cost of 60, that is, it passes through network device C, and the next hop is 30.1.1.1.
  • the cost of the second path is changed from 60 to 50, and two equal-cost paths in the ECMP group with a cost of 50 are calculated.
  • the edge device writes the path to 10.1.1.1 into the routing table as an ECMP path, and the next hop exits are 20.1.1.1/30.1.1.1.
  • the traffic data sent to the hotspot server 10.1.1.1 will be load-shared by the ECMP group to the above two paths for forwarding, thereby achieving load sharing.
  • the hotspot server will be ranked
  • the upgraded information is notified to the directly connected network device 2.
  • network device 2 When the network device resolves that the hotspot level of the hotspot server is level 3, network device 2 generates an LSA packet with the 10.1.1.1 address of the OSPF protocol, and adds the hotspot level 3 to the reserved field of the above protocol, and then broadcasts the LSA packet in the bearer network.
  • the intermediate nodes network device A, network device B, and network device C
  • the edge device After receiving the LSA packet, the edge device resolves the hotspot address and hotspot level 3, and sets the route calculation cost range to 30.
  • the edge device starts the route calculation and obtains that the shortest path to the hotspot server with an IP address of 10.1.1.1 is cost 50, that is, it passes through network device A, and the next hop is 20.1.1.1. Then, the cost of the path is calculated based on the cost range. It is found that the cost of the second path to 10.1.1.1 is 60, that is, it passes through network device C, and the next hop is 30.1.1.1, and the cost of the third path to 10.1.1.1 is 80, that is, it passes through network device B and network device C, and the next hop is 40.1.1.1; when the edge device calculates, the cost of the second and third paths is modified to 50 according to the cost range, and three ECMP group equivalent paths with a cost of 50 are calculated.
  • the edge device writes the path to the hotspot server 10.1.1.1 into the routing table as an ECMP path, and the next hop exits are 20.1.1.1/30.1.1.1/40.1.1.1 respectively.
  • the traffic data sent to the hotspot server is load-shared by the ECMP group to the above three equal-cost paths for forwarding, realizing load sharing.
  • the server When the hotspot content on the hotspot server 10.1.1.1 disappears, the server notifies the directly connected bearer network device 2 of the hotspot disappearance information.
  • Network device 2 finds that the server sends a message that the hotspot disappears, and the hotspot level is 0, then network device 2 generates an LSA packet for the 10.1.1.1 address of the OSPF protocol, and adds the hotspot level to 0 in the protocol reserved field, and then broadcasts it in the bearer network.
  • the intermediate node network device A, network device B, and network device C parses the hotspot address for broadcasting.
  • the edge device After receiving the above LSA packet, the edge device parses and obtains the hotspot level as 0, then starts routing calculation, deletes the original ECMP group route to 10.1.1.1, and calculates that the shortest path to the server IP address 10.1.1.1 is cost 50, and the next hop is 20.1.1.1. The edge device writes the path to 10.1.1.1 into the routing table as a normal route, and the next hop exit is 20.1.1.1. At this time, the traffic data sent to the server is forwarded through the shortest path.
  • an equal-cost multi-path group to the hotspot address is determined according to the hotspot level and the hotspot address in the hotspot information, and the traffic data is shared to the equal-cost multi-path group for transmission. Therefore, when hotspot traffic appears in the network, the network can be adjusted and globally optimized according to the hotspot information in a timely manner. Since the equal-cost multi-path group includes the shortest path and the extended path, when the traffic data is transmitted through the equal-cost multi-path group, it is avoided that only the shortest path is used. When transmitting traffic data over short paths, network congestion or even traffic discarding may occur. This ensures that traffic data is transmitted correctly and effectively, improving users' perception of network usage.
  • step S20 determines an equivalent multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, including:
  • Step a determining the shortest path to the hotspot address, and obtaining a first path cost value of the shortest path
  • the edge device in the network obtains the hotspot address and hotspot level in the hotspot information of the server through the preset communication protocol analysis and calculation, the shortest path to the hotspot address and its corresponding cost value are calculated through the preset routing protocol, and the cost value of the shortest path is used as the first path cost value.
  • the network device calculates the hotspot address and hotspot level in the LSA group through the OSPF protocol, and then calculates the shortest path and its corresponding cost value according to the route of the edge device and the hotspot address, and uses the cost value as the first path cost value of the shortest path.
  • Step b determining a path cost value range according to the hotspot level and the first path cost value
  • the cost value range is determined according to the correspondence between the hotspot level and the first path cost value.
  • each hotspot level may correspond to a cost value range, such as hotspot level 5, corresponding to a cost value range of 50; when the first path cost value is 50, if the hotspot level is hotspot level 1, the cost value range is 10.
  • Step c determining a path whose path cost satisfies the path cost value range as an extended path
  • the path cost of each path is first obtained, and the path whose path cost satisfies the path cost value range is used as the extended path.
  • an extended path to the hotspot address is constructed based on the cost value 50 of the shortest path and the cost value range 10 corresponding to the hotspot level 1, that is, the path corresponding to the cost value greater than 50 but less than or equal to 10 is used as the extended path to the hotspot address, and accordingly, the cost value of the extended address is modified to the cost value 50 corresponding to the shortest path, so as to add more extended paths to the ECMP group.
  • Step d forming the equal-cost multi-path group according to the shortest path and the extended path.
  • an equal-cost multi-path group can be directly constructed, that is, the equal-cost multi-path group at least includes the shortest path and the extended path group.
  • this embodiment it is only necessary to modify the routing protocol to enable it to transmit hotspot information, which may be the hotspot address and hotspot level, and adjust the cost range of the path calculation for the received hotspot information on the edge device, so as to increase the load sharing path of the bearer network reaching the server, thereby achieving the effect of automatically sharing the hotspot traffic data.
  • This embodiment can improve the intelligent operation and maintenance and adaptation capabilities of the network, improve the overall performance of the network, save network maintenance costs, and improve users' perception of network use.
  • step b determining a path cost value range according to the hotspot level and the first path cost value, includes:
  • Step b1 obtaining a preset path cost value corresponding to the hotspot level
  • Step b2 using the first path cost value as a lower limit path cost value
  • Step b3 taking the sum of the preset cost value and the first path cost value as the upper limit path cost value
  • Step b4 taking the range between the lower limit path cost value and the upper limit path cost value as the path cost value range.
  • the hotspot level can be set according to the needs of the user.
  • the hotspot level can be 0-10.
  • the preset path cost value corresponding to each increase in the hotspot level increases by a preset amount. For example, if the preset path cost value corresponding to hotspot level 1 is 10, then the preset path cost value corresponding to hotspot level 2 is 20.
  • the edge device obtains the hotspot level corresponding to the server, it can determine the preset path cost value corresponding to the above hotspot level.
  • the sum of the preset cost value and the first path cost value corresponding to the shortest path can be directly used as the upper limit path cost value in the path cost value range, and the first path cost value can be used as the lower limit path cost value in the path cost value range.
  • the path cost value range is [50, 80].
  • the first path cost value corresponding to the shortest path is used as the lower limit path cost value in the path cost value range, and the sum of the preset path cost value corresponding to the hotspot level and the first path cost value is used as the upper limit path cost value in the path cost value range, thereby ensuring that the obtained The validity of the obtained path cost value range.
  • step c determining a path whose path cost satisfies the path cost value range as an extended path, includes:
  • Step c1 determining all paths to the hotspot address, and determining other paths among all the paths except the shortest path;
  • Step c2 determining the second path cost values corresponding to the other paths, and determining the matching path cost values that meet the path cost value range among the second path cost values, and using the other paths corresponding to the matching path cost values as extended paths.
  • the second path cost value includes the path costs of other paths. Then compare each second path cost value with the path cost value range to determine the second path cost value (i.e., the matching path cost value) that is exactly within the path cost value range, and use the corresponding other paths as extended paths.
  • the cost value corresponding to the shortest path is cost50
  • the path cost values corresponding to the other determined paths are cost60, cost70, and cost55.
  • the determined hotspot level is hotspot level 1, and the corresponding preset path cost value is cost10.
  • the path with a path cost value less than or equal to cost60 in other paths is a matching path, that is, the path cost value of cost55 and other paths corresponding to cost60 are matched.
  • the shortest path and the other matched paths are used as equivalent exports of the ECMP group.
  • step d forming the equal-cost multi-path group according to the shortest path and the extended path, comprises:
  • Step d1 at the edge device, adjusting the path cost value of the extended path to be the same as the first path cost value of the shortest path, and constructing an equal-cost multi-path group according to the adjusted extended path and the shortest path.
  • the path cost value of the extended path can be adjusted, for example, to be the same as the first path cost value of the shortest path. For example, if the first path cost value is 50 and the path cost value of the extended path is 60, the path cost value of the extended path can be modified to 50 in the edge device. Then, the extended path with the adjusted path cost value can be The paths and shortest paths are filled in the equal-cost multi-path group to obtain the equal-cost multi-path group for practical application. It should be noted that when adjusting the extended path, it is only performed in the edge device and not on the server side. Therefore, on the server side, the path cost value of the extended path is still the actual path cost value. For example, if the path cost value of the extended path is 60 and becomes 50 after adjustment in the edge device, then the path cost value of the extended path is displayed as 50 on the edge device side, and the path cost value of the extended path is displayed as 60 on the server side.
  • a path cost value that is the same as the first path cost value is assigned to the extended path in the edge device so that an equal-cost multi-path group is constructed based on the extended path and the shortest path.
  • determining the hotspot address and the hotspot level in the hotspot information includes:
  • Step e determining the routing protocol corresponding to the hotspot information according to the characteristic field in the hotspot information
  • Step f extracting the hotspot address and hotspot level in the hotspot information according to the routing protocol.
  • the switch notifies the network of the IP address message of the hotspot information received from the server side through the routing protocol (it can be notified through routing protocols such as IGP, BGP, etc.), and the reserved field of the routing protocol can be used when notifying to inform the hotspot IP address information to the neighboring devices related to the whole network, such as edge devices.
  • the edge device can extract the characteristic field carried in the hotspot information to determine the routing protocol (such as BGP, IGP, etc.) used by the message corresponding to the hotspot information.
  • the protocol type is the field from the 25th byte to the 26th byte
  • the default protocol type is 0x8809
  • the message subtype is the field of the 27th byte, which defaults to 0x01 (i.e., LACP message).
  • the hotspot level can be extended to inform the above network devices through the reserved field A in the 34th byte to the 36th byte in the LACPDU unit; whether it is the LACP protocol can be determined by the 2-byte protocol type characteristic field and the 1-byte message subtype characteristic field in the above message.
  • the hotspot address and hotspot level in the hotspot information can be directly extracted according to the routing protocol.
  • the routing protocol is determined according to the characteristic field in the hotspot information, and then the hotspot address and hotspot level in the hotspot information are extracted according to the routing protocol, thereby ensuring that the edge device can effectively obtain the hotspot address and hotspot level.
  • the traffic volume corresponding to the hotspot information transmitted by the equal-cost multi-path group is After that, including:
  • Step g after receiving the hotspot upgrade information in the network, continue to execute the step of determining the hotspot address and hotspot level in the hotspot information by using the hotspot upgrade information as the hotspot information.
  • the equivalent-cost multi-path group continues to be updated, and then the traffic data corresponding to the hotspot information is transmitted according to the updated equivalent-cost multi-path group.
  • the method of updating the equivalent-cost multi-path group can be to first determine the new hotspot level corresponding to the hotspot upgrade information, and then determine the new expansion path according to the new hotspot level, and then update the equivalent-cost multi-path group according to the new expansion path.
  • the equivalent-cost multi-path group can also be updated, and when updating the equivalent-cost multi-path group, the latest extended path can be determined based on the downgraded hot spot level, and the equivalent-cost multi-path group can be updated based on the latest extended path.
  • the traffic data corresponding to the hot spot information is transmitted based on the updated equivalent-cost multi-path group.
  • the step of determining the hotspot address and hotspot level in the hotspot information is continued, thereby avoiding the phenomenon of network congestion or even traffic discard caused by the hotspot level being too high.
  • the method includes:
  • Step h after receiving the hotspot disappearance information in the network, deleting the equal-cost multi-path group;
  • Step x Continue to transmit the untransmitted flow data in the flow data according to the shortest path.
  • the equivalent multi-path group can be deleted at this time, and the untransmitted traffic data in the traffic data can be directly transmitted according to the shortest path to save resources.
  • the equal-cost multi-path group is directly deleted and transmission is performed according to the shortest path, thereby saving costs and ensuring normal transmission of traffic data in the network.
  • the present application also provides an edge device, which includes a memory, a processor, and a network optimization program stored in the memory and executable on the processor.
  • the network optimization program is executed by the processor, the steps of the network optimization method described above are implemented.
  • FIG6 is a schematic diagram of the structure of an edge device of an embodiment of the present application.
  • the edge device includes a processor, and optionally also includes an internal bus, a network interface, and a memory.
  • the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc.
  • the edge device may also include hardware required for other services.
  • the processor, the network interface, and the memory may be interconnected through an internal bus, and the internal bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in FIG6, but it does not mean that there is only one bus or one type of bus.
  • the memory is used to store programs. Specifically, the program may include a program code, and the program code includes a computer operation instruction.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a shared resource access control device at the logical level.
  • the processor executes the program stored in the memory and is specifically used to execute the steps of the above-mentioned anti-channelling control method.
  • the present application also provides a computer-readable storage medium, on which a network optimization program is stored, and when the network optimization program is executed by a processor, the steps of the network optimization method as described above are implemented.
  • Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data).
  • Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer.
  • communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application discloses a network optimization method, an edge device and a computer-readable storage medium. The network optimization method comprises: after hotspot information in a network is acquired, determining a hotspot address and a hotspot level in the hotspot information; on the basis of the hotspot address and the hotspot level, determining an equivalent multi-path group reaching the hotspot address, wherein the equivalent multi-path group comprises the shortest path and an expansion path; and according to the equivalent multi-path group, transmitting traffic data corresponding to the hotspot information.

Description

网络优化方法、边缘设备及计算机可读存储介质Network optimization method, edge device and computer readable storage medium

相关申请Related Applications

本申请要求于2022年12月1号申请的、申请号为202211546033.7的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese patent application No. 202211546033.7 filed on December 1, 2022, the entire contents of which are incorporated by reference into this application.

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及一种网络优化方法、边缘设备及计算机可读存储介质。The present application relates to the field of communication technology, and in particular to a network optimization method, an edge device, and a computer-readable storage medium.

背景技术Background technique

一般情况下,整个网络的流量基本趋于稳定的状态,但是在一些突发情况下,或者一些特殊事件特殊时间的时候,网络的流量会随着某些热点事件,呈现短时间的聚集情况,也就是会出现热点流量的现象发生,但是在热点流量发生时,不能根据热点流量情况适时调整网络,从而导致网络拥塞甚至流量丢弃,使得用户对网络的使用感知低。因此在出现热点流量时,如何调整网络以提升用户对网络的使用感知是目前亟待解决的问题。Generally, the traffic of the entire network tends to be stable, but in some emergencies, or at special times, the network traffic will gather for a short time with some hot events, that is, the phenomenon of hot traffic will occur. However, when hot traffic occurs, the network cannot be adjusted in time according to the hot traffic situation, resulting in network congestion or even traffic loss, making users feel low about the network usage. Therefore, when hot traffic occurs, how to adjust the network to improve users' perception of network usage is an urgent problem to be solved.

发明内容Summary of the invention

本申请的主要目的在于提供一种网络优化方法、边缘设备及计算机可续存储介质,旨在解决出现热点流量时,如何提升用户对网络的使用感知的技术问题。The main purpose of this application is to provide a network optimization method, edge device and computer-renewable storage medium, aiming to solve the technical problem of how to improve the user's perception of network usage when hot traffic occurs.

为实现上述目的,本申请提供了一种网络优化方法,应用于边缘设备,包括以下步骤:To achieve the above objectives, the present application provides a network optimization method, which is applied to edge devices and includes the following steps:

在获取到网络中的热点信息之后,确定所述热点信息中的热点地址和热点等级;After obtaining the hotspot information in the network, determining the hotspot address and hotspot level in the hotspot information;

基于所述热点地址和所述热点等级确定到达所述热点地址的等价多路径组,其中所述等价多路径组包括最短路径和扩充路径;Determine an equal-cost multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, wherein the equal-cost multi-path group includes a shortest path and an extended path;

根据所述等价多路径组传输所述热点信息对应的流量数据。The traffic data corresponding to the hotspot information is transmitted according to the equal-cost multi-path group.

此外,为实现上述目的,本申请还提供了一种边缘设备,上述边缘设备 包括:存储器、处理器及存储在上述存储器上并可在上述处理器上运行的网络优化程序,上述网络优化程序被上述处理器执行时实现如上述的网络优化方法的步骤。In addition, to achieve the above purpose, the present application also provides an edge device, the edge device The invention comprises: a memory, a processor and a network optimization program stored in the memory and executable on the processor. When the network optimization program is executed by the processor, the steps of the network optimization method described above are implemented.

此外,为实现上述目的,本申请还提供了一种计算机可读存储介质,上述计算机可读存储介质上存储有网络优化程序,上述网络优化程序被处理器执行时实现如上述的网络优化方法的步骤。In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a network optimization program is stored. When the network optimization program is executed by a processor, the steps of the network optimization method as described above are implemented.

本申请实施例通过在接收到网络中的热点信息之后,再根据热点信息中的热点等级和热点地址确定到达热点地址的等价多路径组,将流量数据分担到等价多路径组上进行传输,从而可以实现在网络中出现热点流量时,根据热点信息对网络进行适时调整与全局调优,由于等价多路径组包括最短路径和扩充路径,因此在通过等价多路径组传输流量数据,避免了仅仅通过最短路径传输流量数据时出现网络拥塞甚至流量丢弃的问题,保障流量数据被正确有效的传输,提升了用户对网络的使用感知。The embodiment of the present application determines the equivalent multi-path group that reaches the hotspot address according to the hotspot level and the hotspot address in the hotspot information after receiving the hotspot information in the network, and distributes the traffic data to the equivalent multi-path group for transmission. Therefore, when hotspot traffic appears in the network, the network can be timely adjusted and globally optimized according to the hotspot information. Since the equivalent multi-path group includes the shortest path and the extended path, when the traffic data is transmitted through the equivalent multi-path group, network congestion or even traffic discarding when the traffic data is transmitted only through the shortest path is avoided, thereby ensuring that the traffic data is transmitted correctly and effectively, and improving the user's perception of network use.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请网络优化方法的第一实施例的流程示意图;FIG1 is a schematic diagram of a flow chart of a first embodiment of a network optimization method of the present application;

图2是本申请网络优化方法中构建等价多路径组的细化流程示意图;FIG2 is a schematic diagram of a detailed process of constructing an equivalent multi-path group in the network optimization method of the present application;

图3是LACP协议报文中具有扩展功能的保留字段的位置示意图;FIG3 is a schematic diagram of the location of a reserved field with an extended function in an LACP protocol message;

图4是本申请网络优化方法的第一实施例的举例示意图;FIG4 is a schematic diagram showing an example of a first embodiment of the network optimization method of the present application;

图5是本申请网络优化方法中构建扩充路径的流程示意图;FIG5 is a schematic diagram of a flow chart of constructing an expansion path in the network optimization method of the present application;

图6是本申请网络优化方法中存储器运行的流程示意图。FIG6 is a flow chart of the memory operation in the network optimization method of the present application.

本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

一般情况下,整个网络上的流量数据传输状态基本趋于稳定,但是当存在一些突发情况,如自然灾害、战争、热点新闻等,或者一些特殊事件特使时间,如国庆、春节、世界杯等生成的热点内容时,上述网络上的流量数据 传输状态会随着上述热点内容呈现出短时间聚集的情况,这时网络容易出现拥塞、瘫痪等情况,维护成本较大,而且严重影响用户的网络使用感知。Generally speaking, the traffic data transmission status of the entire network is basically stable. However, when there are some emergencies, such as natural disasters, wars, hot news, etc., or some special events and special times, such as National Day, Spring Festival, World Cup, etc., the traffic data on the above network will be stable. The transmission status will show a short-term aggregation along with the above-mentioned hot content. At this time, the network is prone to congestion and paralysis, which has a high maintenance cost and seriously affects the user's network usage perception.

因此,对于网络出现热点内容,为了应对可能出现的网络拥塞、瘫痪情况,可以是预测网络热点内容的出现,根据预测的热点内容预先对全网设备进行调整,例如根据历史预期的最高值并增加一定的冗余带宽来保障某地的网络带宽占用,例如世界杯的比赛时间时,预先对全网设备进行调整,保障网络带宽占用。或者在出现热点内容导致网络拥塞、瘫痪时,在拥塞节点上进行重新配置处理,将流量数据进行多节点分担等操作保障流量数据正常传输不丢包。又或将网络中的服务器资源云化,尽可能将被访问的资源分布在多个服务器上,尽可能地减少突发访问热点内容的流量数据对服务器的冲击。上述的应对策略存在以下问题,在热点内容突发时,网络节点无法实时进行自动调整,基本处于被动应对的状态;或者仅可对提前预知的热点进行对应的提前调整,但面对情况的多变性又没有预备策略,如访问热点内容的流量数据过大,远超出历史预期最高值,依然会拥塞、瘫痪,或流量数据过小,远小于历史预期最高值,则会造成成本浪费。虽然服务器云化可部分缓解热点内容出现时的流量分担问题,但如果流量数据远超热点内容所在服务器的网络带宽,那么依然会出现网络拥塞的问题。Therefore, in order to cope with possible network congestion and paralysis when hot content appears on the network, it is possible to predict the emergence of hot content on the network and adjust the entire network equipment in advance according to the predicted hot content. For example, according to the highest value expected in history and adding a certain amount of redundant bandwidth to ensure the network bandwidth occupancy in a certain place, such as during the World Cup match time, the entire network equipment is adjusted in advance to ensure network bandwidth occupancy. Or when the emergence of hot content causes network congestion and paralysis, reconfigure the congested nodes, share the traffic data among multiple nodes, and other operations to ensure the normal transmission of traffic data without packet loss. Alternatively, the server resources in the network can be clouded, and the resources to be accessed can be distributed on multiple servers as much as possible to minimize the impact of sudden traffic data accessing hot content on the server. The above-mentioned coping strategies have the following problems: when hot content suddenly appears, network nodes cannot be adjusted automatically in real time and are basically in a passive response state; or they can only make corresponding advance adjustments to the hot spots that are predicted in advance, but there is no prepared strategy to face the variability of the situation. For example, if the traffic data for accessing hot content is too large, far exceeding the historical expected maximum value, it will still be congested and paralyzed, or if the traffic data is too small, far less than the historical expected maximum value, it will cause cost waste. Although server cloudification can partially alleviate the problem of traffic sharing when hot content appears, if the traffic data far exceeds the network bandwidth of the server where the hot content is located, then network congestion will still occur.

为解决上述问题,本申请实施例提供了一种网络优化方法、边缘设备及计算机可读存储介质,当数据承载网络在网络中出现热点内容时,全网进行自动适配调整,尽可能地将访问热点内容的流量数据在网络上进行合理的均衡分布,以达到自动调整热点流量数据的目的。同时,提升了热点流量数据在网络中的优先级,使得上述热点流量数据在现有网络带宽中拥有高优先级地传输,保障热点流量数据的正确有效传输。通过本实施例可以提升网络的智能运维和适配能力,提升网络的整体性能,而且节省了网络维护成本,可以明显提升用户对网络的使用感知。To solve the above problems, the embodiments of the present application provide a network optimization method, an edge device, and a computer-readable storage medium. When hot content appears in the data-bearing network, the entire network automatically adapts and adjusts to reasonably and evenly distribute the traffic data for accessing the hot content on the network as much as possible, so as to achieve the purpose of automatically adjusting the hot traffic data. At the same time, the priority of the hot traffic data in the network is improved, so that the above hot traffic data has a high priority transmission in the existing network bandwidth, ensuring the correct and effective transmission of the hot traffic data. Through this embodiment, the intelligent operation and maintenance and adaptation capabilities of the network can be improved, the overall performance of the network can be improved, and the network maintenance costs can be saved, which can significantly improve the user's perception of network use.

下面结合附图,对本申请实施例做进一步阐述。The embodiments of the present application are further described below in conjunction with the accompanying drawings.

参照图1,本申请提供一种网络优化方法,在网络优化方法的第一实施例中,网络优化方法应用于边缘设备,包括以下步骤:Referring to FIG. 1 , the present application provides a network optimization method. In a first embodiment of the network optimization method, the network optimization method is applied to an edge device, including the following steps:

步骤S10,在获取到网络中的热点信息之后,确定所述热点信息中的热点 地址和热点等级;Step S10, after obtaining the hotspot information in the network, determine the hotspot in the hotspot information Address and hotspot levels;

示例性的,在网络中出现热点内容后,网络中的某个服务器或某些服务器的访问量会急剧上升,此时就可以认为热点内容在某服务器或某些服务器中。在一场景中,服务器可以检测自身的某文件或某些数据访问量是否急剧上升,若访问量远远大于预设的历史访问量,则确定访问量急剧上升,此时就可以认为热点内容在该服务器中出现。其中,服务器可以是云服务器。For example, after a hot content appears in the network, the number of visits to a certain server or certain servers in the network will increase sharply, and at this time it can be considered that the hot content is in a certain server or certain servers. In one scenario, the server can detect whether the number of visits to a certain file or certain data of its own has increased sharply. If the number of visits is much greater than the preset historical number of visits, it is determined that the number of visits has increased sharply, and at this time it can be considered that the hot content appears in the server. Among them, the server can be a cloud server.

示例性的,在确定服务器中出现了热点内容后,就可以将出现热点内容的热点信息告知到服务器所在网络中的任一网络设备,如边缘设备。其中,服务器可以通过与交换机相连的链路告知到边缘设备。也就是服务器可以通过特定的报文或消息将服务器中出现热点内容的热点信息告知到交换机,即告知交换机本服务器IP地址或者本服务器上的某虚机IP地址已经成为热点IP地址。交换机根据从服务器收到的出现热点内容的IP地址消息,将此地址转换为热点信息通过路由协议向网络通告。其中,路由协议可以是OSPF(Open Shortest Path First,开放式最短路径优先)协议、BGP(Border Gateway Protocol,边界网关协议、IGP(Interior Gateway Protocol,内部网关协议)、RIP(Routing Information Protocol,路由信息协议)等。通告时可使用路由协议的保留字段,将此热点IP地址信息以特定的报文的方式告知全网相关的邻居设备。例如全网使用OSPF协议,则可在通告服务器的地址LSA消息的时候,增加标记此地址为热点地址。使得全网相关的邻居获知网络中此IP地址对应的路由已经成为热点路由。通告上述热点地址的同时,可以使用路由协议的保留字段通告热点地址的热点等级。其中,热点内容与热点等级呈正向关系,例如热点内容越密集,热点等级越高。其中,边缘设备可以是电脑、手机等智能终端。Exemplarily, after determining that hot content has appeared in the server, the hot information of the hot content can be notified to any network device in the network where the server is located, such as an edge device. Among them, the server can inform the edge device through a link connected to the switch. That is, the server can inform the switch of the hot information of the hot content appearing in the server through a specific message or message, that is, inform the switch that the IP address of this server or the IP address of a virtual machine on this server has become a hot IP address. Based on the IP address message of the hot content received from the server, the switch converts this address into hot information and notifies the network through the routing protocol. The routing protocol may be OSPF (Open Shortest Path First), BGP (Border Gateway Protocol), IGP (Interior Gateway Protocol), RIP (Routing Information Protocol), etc. The reserved field of the routing protocol may be used during notification to inform the hotspot IP address information to the neighboring devices related to the entire network in a specific message. For example, if the entire network uses the OSPF protocol, when notifying the server address LSA message, this address may be marked as a hotspot address. This allows the neighbors related to the entire network to know that the route corresponding to this IP address in the network has become a hotspot route. While notifying the above hotspot address, the reserved field of the routing protocol may be used to notify the hotspot level of the hotspot address. The hotspot content is positively correlated with the hotspot level, for example, the denser the hotspot content, the higher the hotspot level. The edge device may be a computer, a mobile phone or other smart terminal.

其中,特定的报文可以是使用现有协议进行的扩展或使用私有协议进行发送。链路可以是链路聚合组,则服务器可以通过交换机并根据预设协议,如LACP(Link Aggregation Control Protocol,链路汇聚控制协议)中的LACPDU(Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)报文与网络设备进行通信,将热点信息告知网络设备。例如,如图3所示,LACPDU单元为一个128字节的报文,协议类型为第25字节到第26字节的字段,默认协议类型为0x8809,报文子类型为第27字节的字段,默认 为0x01(即为LACP报文)。热点等级可以通过LACPDU单元中第34字节到第36字节中的保留字段A进行扩展告知到网络设备;通过报文中的占2字节的协议类型特征字段以及占1字节的报文子类型特征字段来判断是否为LACP协议,若是,则确定该LACP协议为热点信息对应的路由协议。Among them, specific messages can be extensions of existing protocols or sent using private protocols. The link can be a link aggregation group, then the server can communicate with the network device through the switch and according to the preset protocol, such as the LACPDU (Link Aggregation Control Protocol Data Unit) message in the LACP (Link Aggregation Control Protocol), to inform the network device of the hotspot information. For example, as shown in Figure 3, the LACPDU unit is a 128-byte message, the protocol type is the field from the 25th byte to the 26th byte, the default protocol type is 0x8809, and the message subtype is the field of the 27th byte, the default The hotspot level can be informed to the network device through the expansion of the reserved field A in the 34th to 36th bytes of the LACPDU unit; the 2-byte protocol type feature field and the 1-byte message subtype feature field in the message are used to determine whether it is the LACP protocol. If so, the LACP protocol is determined to be the routing protocol corresponding to the hotspot information.

示例性的,在边缘设备检测到网络中存在热点信息之后,则需要确定热点信息中包含的热点等级和热点地址,以便后续根据热点等级和热点地址来选择合束的路径进行热点信息对应的流量数据的传输。For example, after the edge device detects the existence of hotspot information in the network, it is necessary to determine the hotspot level and hotspot address contained in the hotspot information, so as to subsequently select the combined path according to the hotspot level and hotspot address to transmit the traffic data corresponding to the hotspot information.

示例性的,热点信息至少包括热点地址和热点等级。热点地址可以包括出现热点内容的服务器的IP(Internet Protocol,网际互连协议)地址或服务器上的某个虚拟机的IP地址。热点等级可以是基于网络中访问服务器中的热点内容的流量数据大小进行等级划分,等级划分的方式可以是根据同一个用户或多个用户同时访问服务器中热点内容的频次来划分等级。例如,若同时访问服务器中热点内容的频次比预设的历史访问频次每多n次,则增加一个等级;还可以是在预设时间段内访问服务器中热点内容的平均次数来划分等级,例如,在一分钟内访问服务器热点内容的平均次数大于或等于预设等级划分阈值,则增加一级。而且热点等级的表现形式可以是直接以数字标识进行呈现。例如,可以用0级-10级来指代热点等级,数字越大等级越高,对应着访问上述服务器中的热点内容的流量数据越大。特别地,热点等级0级指代热点流量数据消失,为正常的流量数据传输情况。需要说明的是,历史访问频次、n次以及预设等级划分阈值均可由用户自主设置,在此不做限制。Exemplarily, the hotspot information includes at least a hotspot address and a hotspot level. The hotspot address may include the IP (Internet Protocol) address of the server where the hotspot content appears or the IP address of a virtual machine on the server. The hotspot level may be graded based on the size of the traffic data of accessing the hotspot content in the server in the network, and the grade division method may be to divide the level according to the frequency of simultaneous access of the hotspot content in the server by the same user or multiple users. For example, if the frequency of simultaneous access to the hotspot content in the server is n times more than the preset historical access frequency, then one level is added; it may also be graded based on the average number of accesses to the hotspot content in the server within a preset time period, for example, if the average number of accesses to the hotspot content in the server within one minute is greater than or equal to the preset grade division threshold, then one level is added. Moreover, the hotspot level may be directly presented in a digital identifier. For example, 0-10 levels may be used to refer to the hotspot level, and the larger the number, the higher the level, corresponding to the larger the traffic data of accessing the hotspot content in the above server. In particular, hotspot level 0 refers to the disappearance of hotspot traffic data, which is a normal traffic data transmission situation. It should be noted that the historical access frequency, n times and preset level classification threshold can be set by the user independently and are not restricted here.

步骤S20,基于所述热点地址和所述热点等级确定到达所述热点地址的等价多路径组,其中所述等价多路径组包括最短路径和扩充路径;Step S20, determining an equal-cost multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, wherein the equal-cost multi-path group includes a shortest path and an extended path;

示例性的,在边缘设备获取到热点信息的热点地址和热点等级后,为避免后续边缘设备在查询热点内容时造成网络拥塞,可以是根据热点地址和热点等级构建多条到达热点地址的路径(例如最短路径和扩充路径),并将其汇总形成等价多路径组。Exemplarily, after the edge device obtains the hotspot address and hotspot level of the hotspot information, in order to avoid network congestion when subsequent edge devices query the hotspot content, multiple paths to the hotspot address (such as the shortest path and the extended path) can be constructed based on the hotspot address and the hotspot level, and they can be aggregated to form an equivalent multi-path group.

在构建等价多路径组时,可以确定边缘设备到服务器的最短路径来作为等价多路径组中的一种路径。例如,若网络使用OSPF协议时,可以根据OSPF协议中的SPF(Shortest Path First,最短路径优先)算法计算得到最短路径,比如使用路由的跳数以及路由cost(路径开销)值来计算出最短路径。例如, 若参考带宽为100Mbps(即每秒传输108比特数据),实际带宽为10Mbps,那么cost=100/10=10。在OSPF协议算路过程中,会先将链路中的每个接口开销cost值分别计算,然后再累加从当前节点到达目标节点所需的路径开销cost值,路径开销cost值最小对应的路径就是最短路径。并在计算得到边缘设备到达热点内容所在的服务器的最短路径后,可以将最短路径写入边缘设备的路由表中。When constructing an equal-cost multi-path group, the shortest path from the edge device to the server can be determined as a path in the equal-cost multi-path group. For example, if the network uses the OSPF protocol, the shortest path can be calculated based on the SPF (Shortest Path First) algorithm in the OSPF protocol, such as using the number of hops in the route and the route cost (path overhead) value to calculate the shortest path. For example, If the reference bandwidth is 100Mbps (i.e., 10 8 bits of data are transmitted per second) and the actual bandwidth is 10Mbps, then cost = 100/10 = 10. In the OSPF protocol path calculation process, the cost value of each interface in the link is calculated separately, and then the path cost value required to reach the target node from the current node is accumulated. The path with the smallest path cost value is the shortest path. After calculating the shortest path from the edge device to the server where the hot content is located, the shortest path can be written into the routing table of the edge device.

示例性的,为避免网络拥塞,还可以在边缘设备中根据上述热点等级来扩充至少一条其他到达上述服务器的路径,即扩充路径。并且扩充路径可以是根据上述热点等级对应的预设cost值的范围确定所有符合条件的可到达热点地址的路径。例如,边缘设备先根据热点等级确定不同的预设cost值范围,再根据预设cost值范围对各个有效路径进行筛选,以得到符合要求的扩充路径。其中,有效路径为边缘设备能有效到达服务器的路径。并且cost值范围并不是固定不变的,可以根据出现热点内容的服务器的热点信息持续情况或用户连接数量增加或缩小cost值范围,相对应的是,cost值范围越大,扩充的路径越多。并在确定扩充路径后,可以将扩充路径作为等价多路径组中的一种路径写入到边缘设备的路由表中。Exemplarily, in order to avoid network congestion, at least one other path to the above-mentioned server can be expanded in the edge device according to the above-mentioned hotspot level, that is, the expanded path. And the expanded path can be a path that determines all qualified and reachable hotspot addresses according to the range of preset cost values corresponding to the above-mentioned hotspot level. For example, the edge device first determines different preset cost value ranges according to the hotspot level, and then screens each valid path according to the preset cost value range to obtain an expanded path that meets the requirements. Among them, the effective path is the path that the edge device can effectively reach the server. And the cost value range is not fixed, and the cost value range can be increased or reduced according to the persistence of the hotspot information of the server where the hotspot content appears or the number of user connections. Correspondingly, the larger the cost value range, the more expanded paths. And after determining the expanded path, the expanded path can be written into the routing table of the edge device as a path in the equivalent multi-path group.

步骤S30,根据所述等价多路径组传输所述热点信息对应的流量数据。Step S30: Transmitting traffic data corresponding to the hotspot information according to the equal-cost multi-path group.

示例性的,在边缘设备中构建完成等价多路径组之后,就可以通过由最短路径与至少一条扩充路径组成的等价多路径组访问服务器,以进行流量的负载分担,即边缘设备可以通过等价多路径组中的任一条或多条等价路径访问服务器,以及服务器通过等价多路径组中的任一条或多条等价路径向上述申请访问的边缘设备传输流量数据。例如,边缘设备与服务器之间的通信的报文属于同一个数据流,那么基于数据流实现负载分担的等价多路径组可以均衡使用上述所有路径传输数据流,如上述报文有10个数据流,有2条等价路径可以选择,那么一边各走5个数据流。Exemplarily, after the equal-cost multi-path group is constructed in the edge device, the server can be accessed through the equal-cost multi-path group consisting of the shortest path and at least one extended path to load share the traffic, that is, the edge device can access the server through any one or more equal-cost paths in the equal-cost multi-path group, and the server transmits traffic data to the edge device that applies for access through any one or more equal-cost paths in the equal-cost multi-path group. For example, the messages communicated between the edge device and the server belong to the same data stream, then the equal-cost multi-path group that implements load sharing based on the data stream can evenly use all the above paths to transmit the data stream. For example, if the above message has 10 data streams and there are 2 equal-cost paths to choose from, then 5 data streams are transmitted on each side.

示例性的,在根据等价多路径组传输上述热点信息对应的流量数据之后,若还接收到网络中的热点升级信息,则将热点升级信息作为热点信息继续执行上述确定所述热点信息中的热点地址和热点等级的步骤S10。当边缘设备在接收到网络中的热点消失信息后,边缘设备可以直接根据最短路径继续传输流量数据中的未传输流量数据。 Exemplarily, after transmitting the traffic data corresponding to the above hotspot information according to the equal-cost multi-path group, if hotspot upgrade information in the network is also received, the hotspot upgrade information is used as the hotspot information to continue to perform the above step S10 of determining the hotspot address and hotspot level in the hotspot information. When the edge device receives the hotspot disappearance information in the network, the edge device can directly continue to transmit the untransmitted traffic data in the traffic data according to the shortest path.

并且,在本实施例中,可以通过所有物理上与热点流量数据(即热点信息对应的流量数据)所在的服务器建立连接的网络资源,都予以调度调整,按照热点流量数据的需求情况,逐步增大与之建立物理连接的所有网络资源的传输投入,直到所有与之建立物理连接的网络资源全部投入热点流量数据的传输或直到热点内容消失,热点流量数据降低。其中,调整传输的方式可以利用预设的路由协议进行扩展,可以是OSPF协议,在边缘网络设备(如路由器)进行路由计算时,根据服务器的热点等级对到达上服务器的路径的cost(路径开销)值进行范围扩展,从而计算出更多的路径投入到热点流量数据的负载均衡传输过程中,以达到流量分担的调整效果。Moreover, in this embodiment, all network resources that are physically connected to the server where the hotspot traffic data (i.e., the traffic data corresponding to the hotspot information) is located can be scheduled and adjusted, and the transmission input of all network resources that are physically connected to it can be gradually increased according to the demand for the hotspot traffic data, until all network resources that are physically connected to it are fully invested in the transmission of the hotspot traffic data or until the hotspot content disappears and the hotspot traffic data is reduced. Among them, the method of adjusting the transmission can be expanded using a preset routing protocol, which can be an OSPF protocol. When the edge network device (such as a router) performs routing calculations, the cost (path overhead) value of the path to the upper server is expanded according to the hotspot level of the server, so as to calculate more paths and invest them in the load balancing transmission process of the hotspot traffic data to achieve the adjustment effect of traffic sharing.

此外,为辅助理解本实施例中的网络优化方法流程的理解,下面进行举例说明。In addition, to assist in understanding the network optimization method flow in this embodiment, an example is given below.

例如,如图4所示,网络中存在热点内容,且网络使用OSPF协议进行路由计算。假设热点信息存储在热点服务器10.1.1.1上,在热点服务器检测到自身出现热点访问内容的文件后,将自身成为热点的消息通过报文告知与热点服务器直接连接的网络设备2,网络设备2接收到热点服务器成为热点的报文以及对应热点的热点等级。网络设备2通过OSPF协议计算得到含有热点地址以及热点等级的LSA分组,并在上述承载网中广播。中间节点(网络设备A、网络设备B和网络设备C)接收到上述LSA分组后,通过OSPF协议仅仅计算出上述热点地址10.1.1.1,然后继续广播。在网络的边缘设备(网络设备1)接收到LSA分组后,计算得到热点地址10.1.1.1以及热点等级为热点等级1,则将路由计算cost范围设置为10。边缘设备开始进行路由计算,得到到达热点服务器IP地址10.1.1.1的最短路径为cost50,即经过网络设备A到达网络设备2,下一跳为20.1.1.1。再根据cost范围cost10扩大计算路径cost,发现还有一条到达10.1.1.1的路径cost为60,即经过网络设备C,下一跳为30.1.1.1,则在边缘设备计算时,按照cost范围设置为10,将第二条路径的cost由60修改为50,则计算出两条cost为50的ECMP组中的等价路径。For example, as shown in FIG4 , there is hotspot content in the network, and the network uses the OSPF protocol for routing calculation. Assuming that the hotspot information is stored on the hotspot server 10.1.1.1, after the hotspot server detects that a file with hotspot access content appears on itself, it informs the network device 2 directly connected to the hotspot server of the message that it has become a hotspot through a message, and the network device 2 receives the message that the hotspot server has become a hotspot and the hotspot level of the corresponding hotspot. Network device 2 calculates the LSA packet containing the hotspot address and the hotspot level through the OSPF protocol, and broadcasts it in the above-mentioned bearer network. After the intermediate node (network device A, network device B and network device C) receives the above-mentioned LSA packet, it only calculates the above-mentioned hotspot address 10.1.1.1 through the OSPF protocol, and then continues to broadcast. After the edge device (network device 1) of the network receives the LSA packet, it calculates the hotspot address 10.1.1.1 and the hotspot level is hotspot level 1, and then sets the route calculation cost range to 10. The edge device starts to calculate the route and finds that the shortest path to the hotspot server IP address 10.1.1.1 is cost 50, that is, it passes through network device A to reach network device 2, and the next hop is 20.1.1.1. Then, according to the cost range cost10, the calculated path cost is expanded and it is found that there is another path to 10.1.1.1 with a cost of 60, that is, it passes through network device C, and the next hop is 30.1.1.1. When calculating on the edge device, according to the cost range set to 10, the cost of the second path is changed from 60 to 50, and two equal-cost paths in the ECMP group with a cost of 50 are calculated.

边缘设备将到达10.1.1.1的路径以ECMP路径写入路由表中,下一跳的出口分别为20.1.1.1/30.1.1.1。此时发往热点服务器10.1.1.1的流量数据将被ECMP组负载分担到上述两条路径上进行转发,以此实现负载分担。当热点服务器10.1.1.1上的热点内容持续升温,访问量持续增加,热点服务器将等级 提升的信息告知直连的网络设备2,网络设备解析得到热点服务器的热点等级为3级时,网络设备2产生OSPF协议的10.1.1.1地址的LSA分组,以及在上述协议的保留字段中增加热点等级3,然后将LSA分组在承载网中广播。中间节点(网络设备A、网络设备B和网络设备C)接收到LSA分组后,解析出热点地址进行广播。边缘设备接收到LSA分组后,解析出热点地址以及热点等级3后,将路由计算cost范围设置为30。边缘设备开始进行路由计算得到到达热点服务器IP地址为10.1.1.1的最短路径为cost50,即经过网络设备A,下一跳为20.1.1.1。再根据cost范围扩大计算路径cost,发现第二条到达10.1.1.1的路径cost为60,即经过网络设备C,下一跳为30.1.1.1,以及第三条到达10.1.1.1的路径cost为80,即经过网络设备B和网络设备C,下一跳为40.1.1.1;边缘设备计算时,按照cost范围将第二条以及第三条路径的cost修改为50,计算得到三条cost为50的ECMP组的等价路径。边缘设备将到达热点服务器10.1.1.1的路径以ECMP路径写入路由表中,下一跳的出口分别为20.1.1.1/30.1.1.1/40.1.1.1。此时发往热点服务器的流量数据被ECMP组负载分担到上述三条等价路径上进行转发,实现负载分担。The edge device writes the path to 10.1.1.1 into the routing table as an ECMP path, and the next hop exits are 20.1.1.1/30.1.1.1. At this time, the traffic data sent to the hotspot server 10.1.1.1 will be load-shared by the ECMP group to the above two paths for forwarding, thereby achieving load sharing. As the hot content on the hotspot server 10.1.1.1 continues to heat up and the number of visits continues to increase, the hotspot server will be ranked The upgraded information is notified to the directly connected network device 2. When the network device resolves that the hotspot level of the hotspot server is level 3, network device 2 generates an LSA packet with the 10.1.1.1 address of the OSPF protocol, and adds the hotspot level 3 to the reserved field of the above protocol, and then broadcasts the LSA packet in the bearer network. After receiving the LSA packet, the intermediate nodes (network device A, network device B, and network device C) resolve the hotspot address for broadcasting. After receiving the LSA packet, the edge device resolves the hotspot address and hotspot level 3, and sets the route calculation cost range to 30. The edge device starts the route calculation and obtains that the shortest path to the hotspot server with an IP address of 10.1.1.1 is cost 50, that is, it passes through network device A, and the next hop is 20.1.1.1. Then, the cost of the path is calculated based on the cost range. It is found that the cost of the second path to 10.1.1.1 is 60, that is, it passes through network device C, and the next hop is 30.1.1.1, and the cost of the third path to 10.1.1.1 is 80, that is, it passes through network device B and network device C, and the next hop is 40.1.1.1; when the edge device calculates, the cost of the second and third paths is modified to 50 according to the cost range, and three ECMP group equivalent paths with a cost of 50 are calculated. The edge device writes the path to the hotspot server 10.1.1.1 into the routing table as an ECMP path, and the next hop exits are 20.1.1.1/30.1.1.1/40.1.1.1 respectively. At this time, the traffic data sent to the hotspot server is load-shared by the ECMP group to the above three equal-cost paths for forwarding, realizing load sharing.

热点服务器10.1.1.1上热点内容消失时,服务器将热点消失信息告知直连的承载网络设备2,网络设备2发现服务器发送热点消失的报文,且热点等级为0级,则网络设备2产生OSPF协议的10.1.1.1地址的LSA分组,以及在协议保留字段中增加热点等级为0级,然后再承载网中广播。中间节点(网络设备A、网络设备B和网络设备C)接收到LSA分组后,解析出热点地址进行广播。边缘设备接收到上述LSA分组后解析得到热点等级为0级,则开始进行路由计算,并删除到达10.1.1.1的原ECMP组路由,计算出到达服务器IP地址10.1.1.1的最短路径为cost50,下一跳为20.1.1.1。边缘设备将到达10.1.1.1的路径以普通的路由写入到路由表中,下一跳出口为20.1.1.1。此时发往服务器的流量数据通过最短路径进行转发。When the hotspot content on the hotspot server 10.1.1.1 disappears, the server notifies the directly connected bearer network device 2 of the hotspot disappearance information. Network device 2 finds that the server sends a message that the hotspot disappears, and the hotspot level is 0, then network device 2 generates an LSA packet for the 10.1.1.1 address of the OSPF protocol, and adds the hotspot level to 0 in the protocol reserved field, and then broadcasts it in the bearer network. After receiving the LSA packet, the intermediate node (network device A, network device B, and network device C) parses the hotspot address for broadcasting. After receiving the above LSA packet, the edge device parses and obtains the hotspot level as 0, then starts routing calculation, deletes the original ECMP group route to 10.1.1.1, and calculates that the shortest path to the server IP address 10.1.1.1 is cost 50, and the next hop is 20.1.1.1. The edge device writes the path to 10.1.1.1 into the routing table as a normal route, and the next hop exit is 20.1.1.1. At this time, the traffic data sent to the server is forwarded through the shortest path.

在本实施例中,通过在接收到网络中的热点信息之后,再根据热点信息中的热点等级和热点地址确定到达热点地址的等价多路径组,将流量数据分担到等价多路径组上进行传输,从而可以实现在网络中出现热点流量时,根据热点信息对网络进行适时调整与全局调优,由于等价多路径组包括最短路径和扩充路径,因此在通过等价多路径组传输流量数据,避免了仅仅通过最 短路径传输流量数据时出现网络拥塞甚至流量丢弃的问题,保障流量数据被正确有效的传输,提升了用户对网络的使用感知。In this embodiment, after receiving the hotspot information in the network, an equal-cost multi-path group to the hotspot address is determined according to the hotspot level and the hotspot address in the hotspot information, and the traffic data is shared to the equal-cost multi-path group for transmission. Therefore, when hotspot traffic appears in the network, the network can be adjusted and globally optimized according to the hotspot information in a timely manner. Since the equal-cost multi-path group includes the shortest path and the extended path, when the traffic data is transmitted through the equal-cost multi-path group, it is avoided that only the shortest path is used. When transmitting traffic data over short paths, network congestion or even traffic discarding may occur. This ensures that traffic data is transmitted correctly and effectively, improving users' perception of network usage.

基于上述本申请的第一实施例,提出本申请网络优化方法的第二实施例,在本实施例中,参照图2,上述步骤S20,基于所述热点地址和所述热点等级确定到达所述热点地址的等价多路径组,包括:Based on the first embodiment of the present application, a second embodiment of the network optimization method of the present application is proposed. In this embodiment, referring to FIG. 2 , the above step S20 determines an equivalent multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, including:

步骤a,确定到达所述热点地址的最短路径,获取所述最短路径的第一路径开销值;Step a, determining the shortest path to the hotspot address, and obtaining a first path cost value of the shortest path;

示例性的,网络中边缘设备通过预设通信协议解析计算获取到服务器的热点信息中的热点地址以及热点等级后,通过预设路由协议计算得到到达热点地址的最短路径及其对应的cost值,并将上述最短路径的cost值作为第一路径开销值。例如,若网络使用OSPF协议,则网络设备通过OSPF协议计算得到LSA分组中的热点地址以及热点等级,从而根据边缘设备的路由以及热点地址计算得到最短路径及其对应的cost值,将上述cost值作为最短路径的第一路径开销值。Exemplarily, after the edge device in the network obtains the hotspot address and hotspot level in the hotspot information of the server through the preset communication protocol analysis and calculation, the shortest path to the hotspot address and its corresponding cost value are calculated through the preset routing protocol, and the cost value of the shortest path is used as the first path cost value. For example, if the network uses the OSPF protocol, the network device calculates the hotspot address and hotspot level in the LSA group through the OSPF protocol, and then calculates the shortest path and its corresponding cost value according to the route of the edge device and the hotspot address, and uses the cost value as the first path cost value of the shortest path.

步骤b,根据所述热点等级与所述第一路径开销值确定路径开销值范围;Step b, determining a path cost value range according to the hotspot level and the first path cost value;

示例性的,在边缘设备解析得到热点等级后,根据热点等级与第一路径开销值之间的对应关系确定开销值范围。例如,每一级热点等级可以对应一个开销值范围,比如可以是热点等级5,对应开销值范围为50;当第一路径开销值为50时,若热点等级为热点等级1,则开销值范围为10。Exemplarily, after the edge device parses and obtains the hotspot level, the cost value range is determined according to the correspondence between the hotspot level and the first path cost value. For example, each hotspot level may correspond to a cost value range, such as hotspot level 5, corresponding to a cost value range of 50; when the first path cost value is 50, if the hotspot level is hotspot level 1, the cost value range is 10.

步骤c,将路径开销满足所述路径开销值范围的路径确定为扩充路径;Step c, determining a path whose path cost satisfies the path cost value range as an extended path;

示例性的,先获取各个路径的路径开销,并将路径开销满足所述路径开销值范围的路径作为扩充路径。例如,根据最短路径的cost值50与热点等级1对应的开销值范围10构建到达所述热点地址的扩充路径,也即在cost值50以上但小于或等于10cost值对应的路径作为到达热点地址的扩充路径,相应地,将扩充地址的cost值修改为最短路径对应的cost值50,以此将更多的扩充路径加入到ECMP组中。Exemplarily, the path cost of each path is first obtained, and the path whose path cost satisfies the path cost value range is used as the extended path. For example, an extended path to the hotspot address is constructed based on the cost value 50 of the shortest path and the cost value range 10 corresponding to the hotspot level 1, that is, the path corresponding to the cost value greater than 50 but less than or equal to 10 is used as the extended path to the hotspot address, and accordingly, the cost value of the extended address is modified to the cost value 50 corresponding to the shortest path, so as to add more extended paths to the ECMP group.

步骤d,根据所述最短路径与所述扩充路径组建所述等价多路径组。Step d: forming the equal-cost multi-path group according to the shortest path and the extended path.

示例性的,当获取到最短路径与扩充路径组后,就可以直接构建等价多路径组,也就是等价多路径组至少包括最短路径与扩充路径组。 Exemplarily, after the shortest path and the extended path group are obtained, an equal-cost multi-path group can be directly constructed, that is, the equal-cost multi-path group at least includes the shortest path and the extended path group.

在本实施例中,只需要对路由协议进行一定的改造使其可以传递热点信息,可以是热点地址以及热点等级,并在边缘设备上对接收到的热点信息进行路径计算的cost范围调整,就可以增加到达服务器的承载网负荷分担路径,从而达到自动分担热点流量数据的效果。通过本实施例可以提升网络的智能运维和适配能力,提升网络的整体性能,节省网络维护成本,提升用户对网络的使用感知。In this embodiment, it is only necessary to modify the routing protocol to enable it to transmit hotspot information, which may be the hotspot address and hotspot level, and adjust the cost range of the path calculation for the received hotspot information on the edge device, so as to increase the load sharing path of the bearer network reaching the server, thereby achieving the effect of automatically sharing the hotspot traffic data. This embodiment can improve the intelligent operation and maintenance and adaptation capabilities of the network, improve the overall performance of the network, save network maintenance costs, and improve users' perception of network use.

在一实施例中,步骤b,根据所述热点等级与所述第一路径开销值确定路径开销值范围,包括:In one embodiment, step b, determining a path cost value range according to the hotspot level and the first path cost value, includes:

步骤b1,获取与所述热点等级对应的预设路径开销值;Step b1, obtaining a preset path cost value corresponding to the hotspot level;

步骤b2,将所述第一路径开销值作为下限路径开销值;Step b2, using the first path cost value as a lower limit path cost value;

步骤b3,将所述预设开销值与所述第一路径开销值之间的和值作为上限路径开销值;Step b3, taking the sum of the preset cost value and the first path cost value as the upper limit path cost value;

步骤b4,将所述下限路径开销值与所述上限路径开销值之间的范围作为路径开销值范围。Step b4: taking the range between the lower limit path cost value and the upper limit path cost value as the path cost value range.

示例性的,可以根据用户的需求进行热点等级的设置,例如热点等级可以是0-10级,当热点等级0对应热点消失,热点等级每增加一级对应的预设路径开销值对应增加预设数量,如热点等级1对应的预设路径开销值为10,则热点等级2对应的预设路径开销值为20。当边缘设备获取到服务器对应的热点等级后,即可相应确定上述热点等级对应的预设路径开销值。需要说明的是,上述0-10级以及对应的预设路径开销值仅仅是为了便于对本实施例的理解,并不代表只能设置成如此,对于热点等级以及对应预设路径开销值的设置可以是用户任意的,在此不再赘述。Exemplarily, the hotspot level can be set according to the needs of the user. For example, the hotspot level can be 0-10. When the hotspot corresponding to hotspot level 0 disappears, the preset path cost value corresponding to each increase in the hotspot level increases by a preset amount. For example, if the preset path cost value corresponding to hotspot level 1 is 10, then the preset path cost value corresponding to hotspot level 2 is 20. When the edge device obtains the hotspot level corresponding to the server, it can determine the preset path cost value corresponding to the above hotspot level. It should be noted that the above 0-10 levels and the corresponding preset path cost values are only for the convenience of understanding of this embodiment, and do not mean that it can only be set in this way. The setting of the hotspot level and the corresponding preset path cost value can be arbitrary by the user and will not be repeated here.

示例性的,在确定热点等级对应的预设路径开销值之后,就可以直接将预设开销值与最短路径对应的第一路径开销值之间的和值作为路径开销值范围中的上限路径开销值,并将第一路径开销值作为路径开销值范围中的下限路径开销值。例如,若最短路径对应的第一路径开销值为50,热点等级为三级,热点等级对应的预设路径开销值为30,则路径开销值范围为[50,80]。Exemplarily, after determining the preset path cost value corresponding to the hotspot level, the sum of the preset cost value and the first path cost value corresponding to the shortest path can be directly used as the upper limit path cost value in the path cost value range, and the first path cost value can be used as the lower limit path cost value in the path cost value range. For example, if the first path cost value corresponding to the shortest path is 50, the hotspot level is level three, and the preset path cost value corresponding to the hotspot level is 30, then the path cost value range is [50, 80].

在本实施例中,通过将最短路径对应的第一路径开销值作为路径开销值范围中的下限路径开销值,并将热点等级对应的预设路径开销值与第一路径开销值之间的和值作为路径开销值范围中的上限路径开销值,从而保障了获 取到的路径开销值范围的有效性。In this embodiment, the first path cost value corresponding to the shortest path is used as the lower limit path cost value in the path cost value range, and the sum of the preset path cost value corresponding to the hotspot level and the first path cost value is used as the upper limit path cost value in the path cost value range, thereby ensuring that the obtained The validity of the obtained path cost value range.

在一实施例中,参照图5,步骤c,将路径开销满足所述路径开销值范围的路径确定为扩充路径,包括:In one embodiment, referring to FIG. 5 , step c, determining a path whose path cost satisfies the path cost value range as an extended path, includes:

步骤c1,确定到达所述热点地址的所有路径,并确定所述所有路径中除所述最短路径之外的其它路径;Step c1, determining all paths to the hotspot address, and determining other paths among all the paths except the shortest path;

步骤c2,确定所述其它路径对应的第二路径开销值,并确定各所述第二路径开销值中满足所述路径开销值范围的匹配路径开销值,将所述匹配路径开销值对应的所述其它路径作为扩充路径。Step c2, determining the second path cost values corresponding to the other paths, and determining the matching path cost values that meet the path cost value range among the second path cost values, and using the other paths corresponding to the matching path cost values as extended paths.

示例性的,在确定到达上述热点地址的最短路径后,即可确定除上述最短路径之外的所有其他路径。其中,第二路径开销值包括其他路径的路径开销。然后将各个第二路径开销值与路径开销值范围进行比较,以确定正好处于路径开销值范围内的第二路径开销值(即匹配路径开销值),并将其对应的其他路径作为扩充路径。例如,最短路径对应的开销值为cost50,确定到的其他路径对应的路径开销值有cost60、cost70、cost55,确定的热点等级为热点等级1,对应的预设路径开销值为cost10,则其他路径中路径开销值小于或等于cost60的路径为匹配路径,也即匹配到路径开销值为cost55以及cost60对应的其他路径。再将上述最短路径与上述匹配的其他路径作为ECMP组的等价出口。Exemplarily, after determining the shortest path to the hotspot address, all other paths except the shortest path can be determined. The second path cost value includes the path costs of other paths. Then compare each second path cost value with the path cost value range to determine the second path cost value (i.e., the matching path cost value) that is exactly within the path cost value range, and use the corresponding other paths as extended paths. For example, the cost value corresponding to the shortest path is cost50, and the path cost values corresponding to the other determined paths are cost60, cost70, and cost55. The determined hotspot level is hotspot level 1, and the corresponding preset path cost value is cost10. Then the path with a path cost value less than or equal to cost60 in other paths is a matching path, that is, the path cost value of cost55 and other paths corresponding to cost60 are matched. The shortest path and the other matched paths are used as equivalent exports of the ECMP group.

在本实施例中,通过确定其它路径对应的第二路径开销值中满足路径开销值范围的匹配路径开销值,并将其对应其它路径作为扩充路径,从而保障了获取到的扩充路径的有效性。In this embodiment, by determining the matching path cost values satisfying the path cost value range among the second path cost values corresponding to other paths, and using the corresponding other paths as the extended paths, the validity of the acquired extended paths is ensured.

在一实施例中,步骤d,根据所述最短路径与所述扩充路径组建所述等价多路径组,包括:In one embodiment, step d, forming the equal-cost multi-path group according to the shortest path and the extended path, comprises:

步骤d1,在所述边缘设备将所述扩充路径的路径开销值调整为与所述最短路径的第一路径开销值相同,并根据调整后的所述扩充路径和所述最短路径构建等价多路径组。Step d1, at the edge device, adjusting the path cost value of the extended path to be the same as the first path cost value of the shortest path, and constructing an equal-cost multi-path group according to the adjusted extended path and the shortest path.

示例性的,在边缘设备中,当确定扩充路径后,可以对扩充路径的路径开销值进行调整,例如,将其调整为与最短路径的第一路径开销值相同。比如,若第一路径开销值为50,扩充路径的路径开销值为60,则可以在边缘设备中将扩充路径的路径开销值修改为50。然后再将调整路径开销值后的扩充 路径和最短路径填充等价多路径组中,以得到实际应用的等价多路径组。需要说明的是,在对扩充路径进行调整时,仅仅是在边缘设备中进行,并不在服务器侧进行。因此,在服务器侧,扩充路径的路径开销值还是实际的路径开销值。例如,若扩充路径的路径开销值为60,在边缘设备中进行调整后变为50,那么在边缘设备侧中,扩充路径的路径开销值显示为50,在服务器侧扩充路径的路径开销值显示为60。For example, in the edge device, after the extended path is determined, the path cost value of the extended path can be adjusted, for example, to be the same as the first path cost value of the shortest path. For example, if the first path cost value is 50 and the path cost value of the extended path is 60, the path cost value of the extended path can be modified to 50 in the edge device. Then, the extended path with the adjusted path cost value can be The paths and shortest paths are filled in the equal-cost multi-path group to obtain the equal-cost multi-path group for practical application. It should be noted that when adjusting the extended path, it is only performed in the edge device and not on the server side. Therefore, on the server side, the path cost value of the extended path is still the actual path cost value. For example, if the path cost value of the extended path is 60 and becomes 50 after adjustment in the edge device, then the path cost value of the extended path is displayed as 50 on the edge device side, and the path cost value of the extended path is displayed as 60 on the server side.

在本实施例中,通过在边缘设备中为扩充路径赋予与第一路径开销值相同的路径开销值,以便根据扩充路径和最短路径构建等价多路径组,使得边缘设备中等价多路径组内所有路径的路径开销值均是一致的,避免在后续进行热点信息访问时,均从一个路径访问服务器,导致网络拥塞的现象发生。In this embodiment, a path cost value that is the same as the first path cost value is assigned to the extended path in the edge device so that an equal-cost multi-path group is constructed based on the extended path and the shortest path. This makes the path cost values of all paths in the equal-cost multi-path group in the edge device consistent, thereby avoiding the phenomenon of accessing the server from one path during subsequent hot spot information access, which causes network congestion.

在一实施例中,确定所述热点信息中的热点地址和热点等级,包括:In one embodiment, determining the hotspot address and the hotspot level in the hotspot information includes:

步骤e,根据所述热点信息中的特征字段确定所述热点信息对应的路由协议;Step e, determining the routing protocol corresponding to the hotspot information according to the characteristic field in the hotspot information;

步骤f,根据所述路由协议提取所述热点信息中的热点地址和热点等级。Step f, extracting the hotspot address and hotspot level in the hotspot information according to the routing protocol.

示例性的,交换机根据从服务器侧收到的出现热点信息的IP地址消息,将此地址通过路由协议向网络通告(可通过IGP、BGP等路由协议进行通告),通告时可使用路由协议的保留字段,将此热点IP地址信息告知全网相关的邻居设备,如边缘设备。边缘设备在检测到热点信息后,可以提取热点信息中携带的特征字段,以便确定该热点信息对应报文所使用的路由协议(如BGP、IGP等),例如,若LACPDU单元为一个128字节的报文,协议类型为第25字节到第26字节的字段,默认协议类型为0x8809,报文子类型为第27字节的字段,默认为0x01(即为LACP报文)。热点等级可以通过LACPDU单元中第34字节到第36字节中的保留字段A进行扩展告知上述网络设备;可以通过上述报文中的占2字节的协议类型特征字段以及占1字节的报文子类型特征字段来判断是否为LACP协议。并在确定路由协议后,就可以直接根据此路由协议提取热点信息中的热点地址和热点等级。Exemplarily, the switch notifies the network of the IP address message of the hotspot information received from the server side through the routing protocol (it can be notified through routing protocols such as IGP, BGP, etc.), and the reserved field of the routing protocol can be used when notifying to inform the hotspot IP address information to the neighboring devices related to the whole network, such as edge devices. After detecting the hotspot information, the edge device can extract the characteristic field carried in the hotspot information to determine the routing protocol (such as BGP, IGP, etc.) used by the message corresponding to the hotspot information. For example, if the LACPDU unit is a 128-byte message, the protocol type is the field from the 25th byte to the 26th byte, the default protocol type is 0x8809, and the message subtype is the field of the 27th byte, which defaults to 0x01 (i.e., LACP message). The hotspot level can be extended to inform the above network devices through the reserved field A in the 34th byte to the 36th byte in the LACPDU unit; whether it is the LACP protocol can be determined by the 2-byte protocol type characteristic field and the 1-byte message subtype characteristic field in the above message. After the routing protocol is determined, the hotspot address and hotspot level in the hotspot information can be directly extracted according to the routing protocol.

在本实施例中,通过根据热点信息中的特征字段确定路由协议,然后根据路由协议提取热点信息中的热点地址和热点等级,从而保障了边缘设备能有效获取到热点地址和热点等级。In this embodiment, the routing protocol is determined according to the characteristic field in the hotspot information, and then the hotspot address and hotspot level in the hotspot information are extracted according to the routing protocol, thereby ensuring that the edge device can effectively obtain the hotspot address and hotspot level.

在一实施例中,根据所述等价多路径组传输所述热点信息对应的流量数 据之后,包括:In one embodiment, the traffic volume corresponding to the hotspot information transmitted by the equal-cost multi-path group is After that, including:

步骤g,在接收到网络中的热点升级信息之后,将所述热点升级信息作为热点信息继续执行确定所述热点信息中的热点地址和热点等级的步骤。Step g: after receiving the hotspot upgrade information in the network, continue to execute the step of determining the hotspot address and hotspot level in the hotspot information by using the hotspot upgrade information as the hotspot information.

示例性的,在检测网络中的热点内容持续升温,也就是接收到网络中的热点升级信息之后,继续对等价多路径组进行更新,再根据更新后的等价多路径组进行热点信息对应的流量数据的传输,其中,更新等价多路径组的方式可以是先确定热点升级信息对应的新热点等级,再根据新热点等级确定新扩充路径,再根据新扩充路径更新等价多路径组。Exemplarily, after detecting that the hotspot content in the network continues to heat up, that is, after receiving the hotspot upgrade information in the network, the equivalent-cost multi-path group continues to be updated, and then the traffic data corresponding to the hotspot information is transmitted according to the updated equivalent-cost multi-path group. Among them, the method of updating the equivalent-cost multi-path group can be to first determine the new hotspot level corresponding to the hotspot upgrade information, and then determine the new expansion path according to the new hotspot level, and then update the equivalent-cost multi-path group according to the new expansion path.

示例性的,在检测到网络中的热点信息的热度下降,也就是热点信息的热点等级降低之后,也可以对等价多路径组进行更新,并且在更新等价多路径组时,可以是根据降级后的热点等级来确定最新的扩充路径,并根据最新的扩充路径对等价多路径组进行更新,在得到更新后的等价多路径组后,根据更新后的等价多路径组进行热点信息对应的流量数据的传输。Exemplarily, after detecting that the popularity of hot spot information in the network has decreased, that is, the hot spot level of the hot spot information has decreased, the equivalent-cost multi-path group can also be updated, and when updating the equivalent-cost multi-path group, the latest extended path can be determined based on the downgraded hot spot level, and the equivalent-cost multi-path group can be updated based on the latest extended path. After obtaining the updated equivalent-cost multi-path group, the traffic data corresponding to the hot spot information is transmitted based on the updated equivalent-cost multi-path group.

在本实施例中,通过在检测到热点升级消息后,继续执行确定所述热点信息中的热点地址和热点等级的步骤,从而可以避免热点等级过高导致网络拥塞甚至流量丢弃的现象发生。In this embodiment, after detecting the hotspot upgrade message, the step of determining the hotspot address and hotspot level in the hotspot information is continued, thereby avoiding the phenomenon of network congestion or even traffic discard caused by the hotspot level being too high.

在一实施例中,根据所述等价多路径组传输所述热点信息对应的流量数据之后,包括:In one embodiment, after the traffic data corresponding to the hotspot information is transmitted according to the equal-cost multi-path group, the method includes:

步骤h,在接收到网络中的热点消失信息之后,删除所述等价多路径组;Step h, after receiving the hotspot disappearance information in the network, deleting the equal-cost multi-path group;

步骤x,根据所述最短路径继续传输所述流量数据中的未传输流量数据。Step x: Continue to transmit the untransmitted flow data in the flow data according to the shortest path.

示例性的,在检测到网络中的热点消失之后,也就是热点信息已经回热变为普通信息,即接收到热点消失信息之后,此时就可以删除等价多路径组,直接根据最短路径进行流量数据中未完成传输的未传输流量数据的传输,以节约资源。For example, after detecting that the hotspot in the network has disappeared, that is, the hotspot information has been restored to normal information, that is, after receiving the hotspot disappearance information, the equivalent multi-path group can be deleted at this time, and the untransmitted traffic data in the traffic data can be directly transmitted according to the shortest path to save resources.

在本实施例中,通过在检测到热点消失信息之后,直接删除等价多路径组,根据最短路径进行传输,从而可以节省成本,又能保障网络中流量数据的正常传输。In this embodiment, after detecting that the hotspot disappears, the equal-cost multi-path group is directly deleted and transmission is performed according to the shortest path, thereby saving costs and ensuring normal transmission of traffic data in the network.

此外,本申请还提供一种边缘设备,边缘设备包括存储器、处理器及存储在存储器上并可在处理器上运行的网络优化程序,网络优化程序被处理器执行时实现如上述的网络优化方法的步骤。 In addition, the present application also provides an edge device, which includes a memory, a processor, and a network optimization program stored in the memory and executable on the processor. When the network optimization program is executed by the processor, the steps of the network optimization method described above are implemented.

此外,在一实施例中,图6为本申请的一个实施例边缘设备的结构示意图,如图6所示,在硬件层面,该边缘设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该边缘设备还可能包括其他业务所需要的硬件。处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。处理器从非易失性存储器中读取对应的计算机程序到存储器中然后运行,在逻辑层面上形成共享资源访问控制装置。处理器,执行存储器所存放的程序,并具体用于执行上述防窜货管控方法的步骤。In addition, in one embodiment, FIG6 is a schematic diagram of the structure of an edge device of an embodiment of the present application. As shown in FIG6, at the hardware level, the edge device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the edge device may also include hardware required for other services. The processor, the network interface, and the memory may be interconnected through an internal bus, and the internal bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in FIG6, but it does not mean that there is only one bus or one type of bus. The memory is used to store programs. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a shared resource access control device at the logical level. The processor executes the program stored in the memory and is specifically used to execute the steps of the above-mentioned anti-channelling control method.

本申请边缘设备具体实施方式与上述网络优化方法各实施例基本相同,在此不再赘述。The specific implementation methods of the edge device of the present application are basically the same as the embodiments of the above-mentioned network optimization method, and will not be repeated here.

此外,为实现上述目的,本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有网络优化程序,网络优化程序被处理器执行时实现如上述的网络优化方法的步骤。In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a network optimization program is stored, and when the network optimization program is executed by a processor, the steps of the network optimization method as described above are implemented.

本申请计算机可读存储介质具体实施方式与上述网络优化方法各实施例基本相同,在此不再赘述。The specific implementation of the computer-readable storage medium of the present application is basically the same as the various embodiments of the above-mentioned network optimization method, and will not be repeated here.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储 介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional modules/units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium. Medium (or non-transitory medium) and communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above are only optional embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims (10)

一种网络优化方法,应用于边缘设备,包括:A network optimization method, applied to an edge device, comprising: 在获取到网络中的热点信息之后,确定所述热点信息中的热点地址和热点等级;After obtaining the hotspot information in the network, determining the hotspot address and hotspot level in the hotspot information; 基于所述热点地址和所述热点等级确定到达所述热点地址的等价多路径组,其中所述等价多路径组包括最短路径和扩充路径;Determine an equal-cost multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, wherein the equal-cost multi-path group includes a shortest path and an extended path; 根据所述等价多路径组传输所述热点信息对应的流量数据。The traffic data corresponding to the hotspot information is transmitted according to the equal-cost multi-path group. 如权利要求1所述的网络优化方法,其中,所述基于所述热点地址和所述热点等级确定到达所述热点地址的等价多路径组,其中所述等价多路径组包括最短路径和扩充路径,包括:The network optimization method according to claim 1, wherein the determining of an equal-cost multi-path group to reach the hotspot address based on the hotspot address and the hotspot level, wherein the equal-cost multi-path group includes a shortest path and an extended path, comprises: 确定到达所述热点地址的最短路径,获取所述最短路径的第一路径开销值;Determine the shortest path to the hotspot address, and obtain a first path cost value of the shortest path; 根据所述热点等级与所述第一路径开销值确定路径开销值范围;determining a path cost value range according to the hotspot level and the first path cost value; 将路径开销满足所述路径开销值范围的路径确定为所述扩充路径;Determine a path whose path cost satisfies the path cost value range as the extended path; 根据所述最短路径与所述扩充路径组建所述等价多路径组。The equal-cost multi-path group is formed according to the shortest path and the extended path. 如权利要求2所述的网络优化方法,其中,所述根据所述热点等级与所述第一路径开销值确定路径开销值范围,包括:The network optimization method according to claim 2, wherein the determining the path cost value range according to the hotspot level and the first path cost value comprises: 获取与所述热点等级对应的预设路径开销值;Obtaining a preset path cost value corresponding to the hotspot level; 将所述第一路径开销值作为下限路径开销值;Using the first path cost value as a lower limit path cost value; 将所述预设开销值与所述第一路径开销值之间的和值作为上限路径开销值;Taking the sum of the preset cost value and the first path cost value as the upper limit path cost value; 将所述下限路径开销值与所述上限路径开销值之间的范围作为路径开销值范围。The range between the lower limit path cost value and the upper limit path cost value is taken as the path cost value range. 如权利要求2所述的网络优化方法,其中,所述将路径开销满足所述路径开销值范围的路径确定为扩充路径,包括:The network optimization method according to claim 2, wherein determining a path whose path cost satisfies the path cost value range as an extended path comprises: 确定到达所述热点地址的所有路径,并确定所述所有路径中除所述最短 路径之外的其它路径;Determine all paths to the hotspot address, and determine the shortest path among all the paths. Other paths outside the path; 确定所述其它路径对应的第二路径开销值,并确定各所述第二路径开销值中满足所述路径开销值范围的匹配路径开销值,将所述匹配路径开销值对应的所述其它路径作为扩充路径。Determine the second path cost values corresponding to the other paths, determine the matching path cost values that meet the path cost value range among the second path cost values, and use the other paths corresponding to the matching path cost values as extended paths. 如权利要求2所述的网络优化方法,其中,所述根据所述最短路径与所述扩充路径组建所述等价多路径组,包括:The network optimization method according to claim 2, wherein the forming of the equal-cost multi-path group according to the shortest path and the extended path comprises: 在所述边缘设备将所述扩充路径的路径开销值调整为与所述最短路径的第一路径开销值相同,并根据调整后的所述扩充路径和所述最短路径构建所述等价多路径组。The path cost value of the extended path is adjusted at the edge device to be the same as the first path cost value of the shortest path, and the equal-cost multi-path group is constructed according to the adjusted extended path and the shortest path. 如权利要求1所述的网络优化方法,其中,所述确定所述热点信息中的热点地址和热点等级,包括:The network optimization method according to claim 1, wherein the determining the hotspot address and hotspot level in the hotspot information comprises: 根据所述热点信息中的特征字段确定所述热点信息对应的路由协议;Determine the routing protocol corresponding to the hotspot information according to the characteristic field in the hotspot information; 根据所述路由协议提取所述热点信息中的热点地址和热点等级。The hotspot address and the hotspot level in the hotspot information are extracted according to the routing protocol. 如权利要求1至6任一项所述的网络优化方法,其中,所述根据所述等价多路径组传输所述热点信息对应的流量数据之后,包括:The network optimization method according to any one of claims 1 to 6, wherein after transmitting the traffic data corresponding to the hotspot information according to the equal-cost multi-path group, the method further comprises: 在接收到网络中的热点升级信息之后,将所述热点升级信息作为热点信息继续执行确定所述热点信息中的热点地址和热点等级的步骤。After receiving the hotspot upgrade information in the network, the hotspot upgrade information is used as the hotspot information to continue to perform the step of determining the hotspot address and hotspot level in the hotspot information. 如权利要求1至6任一项所述的网络优化方法,其中,所述根据所述等价多路径组传输所述热点信息对应的流量数据之后,包括:The network optimization method according to any one of claims 1 to 6, wherein after transmitting the traffic data corresponding to the hotspot information according to the equal-cost multi-path group, the method further comprises: 在接收到网络中的热点消失信息之后,删除所述等价多路径组;After receiving the hotspot disappearance information in the network, deleting the equal-cost multi-path group; 根据所述最短路径继续传输所述流量数据中的未传输流量数据。The untransmitted flow data in the flow data continues to be transmitted according to the shortest path. 一种边缘设备,其中,所述边缘设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的网络优化程序,所述网络优化程序被所述处理器执行时实现如权利要求1至8中任一项所述的网络优化方法的步骤。 An edge device, wherein the edge device comprises: a memory, a processor, and a network optimization program stored in the memory and executable on the processor, wherein the network optimization program, when executed by the processor, implements the steps of the network optimization method according to any one of claims 1 to 8. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有网络优化程序,所述网络优化程序被处理器执行时实现如权利要求1至8中任一项所述的网络优化方法的步骤。 A computer-readable storage medium, wherein a network optimization program is stored on the computer-readable storage medium, and when the network optimization program is executed by a processor, the steps of the network optimization method according to any one of claims 1 to 8 are implemented.
PCT/CN2023/102908 2022-12-01 2023-06-27 Network optimization method, edge device and computer-readable storage medium Ceased WO2024113803A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211546033.7A CN118138660A (en) 2022-12-01 2022-12-01 Network optimization method, edge device and computer readable storage medium
CN202211546033.7 2022-12-01

Publications (1)

Publication Number Publication Date
WO2024113803A1 true WO2024113803A1 (en) 2024-06-06

Family

ID=91239551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102908 Ceased WO2024113803A1 (en) 2022-12-01 2023-06-27 Network optimization method, edge device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN118138660A (en)
WO (1) WO2024113803A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170093718A1 (en) * 2015-09-24 2017-03-30 Huawei Technologies Co., Ltd. Method for Packet Forwarding Based On Equal-Cost Multi-Path and Network Device
US9843520B1 (en) * 2013-08-15 2017-12-12 Avi Networks Transparent network-services elastic scale-out
WO2019014426A1 (en) * 2017-07-14 2019-01-17 Interdigital Patent Holdings, Inc. Communication path management
US20220109622A1 (en) * 2021-12-14 2022-04-07 Intel Corporation Reliability enhancements for multi-access traffic management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9843520B1 (en) * 2013-08-15 2017-12-12 Avi Networks Transparent network-services elastic scale-out
US20170093718A1 (en) * 2015-09-24 2017-03-30 Huawei Technologies Co., Ltd. Method for Packet Forwarding Based On Equal-Cost Multi-Path and Network Device
WO2019014426A1 (en) * 2017-07-14 2019-01-17 Interdigital Patent Holdings, Inc. Communication path management
US20220109622A1 (en) * 2021-12-14 2022-04-07 Intel Corporation Reliability enhancements for multi-access traffic management

Also Published As

Publication number Publication date
CN118138660A (en) 2024-06-04

Similar Documents

Publication Publication Date Title
EP2541866B1 (en) Management schemes for filter sets
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
US11736407B2 (en) Method and apparatus for load balancing and packet re-sequencing on network
JP3639792B2 (en) Network system and communication bandwidth control method thereof
US11063874B2 (en) Forwarding path adjustment method, apparatus, and system
US20150237525A1 (en) Traffic Shaping and Steering for a Multipath Transmission Control Protocol Connection
WO2017070970A1 (en) Route determining method and corresponding apparatus and system
CN106059821A (en) Software-defined network (SDN)-based data center service quality assurance method
CN106341346A (en) Routing algorithm of guaranteeing QoS in data center network based on SDN
CN106452958A (en) Flow control method and system, and centralized controller
US11863322B2 (en) Communication method and apparatus
CN108092888A (en) A kind of transmission method based on Overlay networks, gateway and Transmission system
WO2017025021A1 (en) Method and device for processing flow table
US12143303B2 (en) Traffic sending method and apparatus
CN112152935A (en) A method and device for determining a transmission path
WO2022078063A1 (en) Congestion information collection method, optimal path determination method, and network switch
CN112492643B (en) Multilink-based data forwarding method and device and terminal equipment
CN103312620A (en) Method and device for processing network congestion
CN103891237B (en) A network storage method, switching device and controller
CN111432231B (en) Content scheduling method of edge network, home gateway, system and server
Ye et al. PTP: Path-specified transport protocol for concurrent multipath transmission in named data networks
CN112787919B (en) Message transmission method and device and readable medium
CN116318554A (en) Network transmission method and device
WO2024113803A1 (en) Network optimization method, edge device and computer-readable storage medium
CN104243313B (en) Inter-domain routing traffic engineering method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23895967

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 23895967

Country of ref document: EP

Kind code of ref document: A1