CN110995593A - Intelligent information forwarding method, device, equipment and storage medium - Google Patents

Intelligent information forwarding method, device, equipment and storage medium Download PDF

Info

Publication number
CN110995593A
CN110995593A CN201911313504.8A CN201911313504A CN110995593A CN 110995593 A CN110995593 A CN 110995593A CN 201911313504 A CN201911313504 A CN 201911313504A CN 110995593 A CN110995593 A CN 110995593A
Authority
CN
China
Prior art keywords
line
preferred
lines
intelligent information
target
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.)
Pending
Application number
CN201911313504.8A
Other languages
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911313504.8A priority Critical patent/CN110995593A/en
Publication of CN110995593A publication Critical patent/CN110995593A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The invention discloses an intelligent information forwarding method, a device, equipment and a storage medium, wherein if information to be forwarded is received, the packet loss rate and the line time delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; the target line is used for forwarding the information to be forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered for carrying out intelligent load, all selectable lines can be better utilized, and user experience is improved.

Description

Intelligent information forwarding method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an intelligent information forwarding method, apparatus, device, and storage medium.
Background
The existing Virtual Private Network (VPN) routing only realizes the average distribution to a plurality of lines according to packets or the average distribution to different lines according to connections, does not consider the quality of the lines, does not consider the difference of flow among different connections, and has the problems that all lines cannot be better utilized, the user experience is poor when a line with poor quality is selected, and the like.
Disclosure of Invention
The invention mainly aims to provide an intelligent information forwarding method, an intelligent information forwarding device, intelligent information forwarding equipment and an intelligent information forwarding storage medium, and aims to solve the technical problems that in the prior art, route selection of a VPN cannot better utilize all lines, and user experience is poor when a line with poor quality is selected.
In order to achieve the above object, the present invention provides an intelligent information forwarding method, which includes the following steps:
if receiving the information to be forwarded, acquiring the packet loss rate and the line time delay of each line to be selected;
calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
selecting a target line from the lines to be selected according to the line quality parameters;
and forwarding the information to be forwarded through the target line.
Preferably, the calculating the line quality parameter of each line to be selected according to the packet loss rate and the line delay includes:
obtaining the packet loss rate of the circuit sending packet and the packet loss rate of the circuit receiving packet from the packet loss rate;
and calculating the line quality parameters of each line to be selected according to a preset time delay coefficient, the line packet sending and losing rate, the line packet receiving and losing rate and the line time delay.
Preferably, the selecting a target line from the lines to be selected according to the line quality parameter includes:
and selecting the line to be selected with the maximum line quality parameter from all the lines to be selected as the target line.
Preferably, the selecting, as the target line, the line to be selected with the largest line quality parameter from the lines to be selected includes:
taking a target line to be selected from the lines to be selected as a preferred line;
traversing the lines except the target line to be selected in the lines to be selected;
taking the traversed route as a current route;
comparing the line quality parameter of the preferred line with the line quality parameter of the current line;
selecting a line with better line quality from the priority line and the current line as a new preferred line according to a comparison result;
judging whether the traversal of the line to be selected is finished or not;
if the traversal is not finished, returning to the step of taking the traversed route as the current route;
and if the traversal is finished, taking the preferred route as the target route.
Preferably, after the traversed route is taken as the current route, the intelligent information forwarding method further includes:
when detecting that a line fault occurs in the preferred line and the current line, determining a non-fault line in the two comparison lines, and obtaining a first line quality parameter of the non-fault line;
traversing the lines except the non-fault line in the line to be selected;
taking the traversed line as a first comparison line;
calculating to obtain a line difference value of a first line quality parameter of the non-fault line and a second line quality parameter of the first comparison line;
comparing the line difference value with a preset quality threshold value to obtain a comparison result;
and determining a preferred line according to the comparison result.
Preferably, the determining a preferred line according to the comparison result includes:
if the comparison result is that the line difference value is larger than the preset quality threshold value, determining that the non-fault line is a preferred line;
and if the comparison result is that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, traversing to a second comparison line again, acquiring a second data transceiving speed of the second comparison line, comparing the first data transceiving speed with the second data transceiving speed, and taking the line with the lower data transceiving speed as the preferred line.
Preferably, after the traversed route is taken as the current route, the intelligent information forwarding method further includes:
when detecting that the preferred line and the current line have the designated preferred line, acquiring a third line quality parameter of the designated preferred line and a fourth line quality parameter corresponding to the current line;
calculating a target line difference between the third line quality parameter and the fourth line quality parameter;
and if the target line difference value is greater than the preset quality threshold value, taking the appointed preferred line as the preferred line.
In addition, in order to achieve the above object, the present invention further provides an intelligent information forwarding apparatus, including: a memory, a processor and an intelligent message forwarding program stored on the memory and executable on the processor, the intelligent message forwarding program configured to implement the steps of the intelligent message forwarding method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, which stores an intelligent information forwarding program, and when the intelligent information forwarding program is executed by a processor, the intelligent information forwarding program implements the steps of the intelligent information forwarding method as described above.
In addition, to achieve the above object, the present invention also provides an intelligent information forwarding apparatus, including:
the acquisition module is used for acquiring the packet loss rate and the line time delay of each line to be selected if the information to be forwarded is received;
the quality calculation module is used for calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
the selection module is used for selecting a target line from the lines to be selected according to the line quality parameters;
and the forwarding module is used for forwarding the information to be forwarded through the target line.
According to the intelligent information forwarding method provided by the invention, if the information to be forwarded is received, the packet loss rate and the line time delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; the target line is used for forwarding the information to be forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered for carrying out intelligent load, all selectable lines can be better utilized, and user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an intelligent information forwarding device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an intelligent information forwarding method according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of an intelligent information forwarding method according to the present invention;
fig. 4 is a functional block diagram of a first embodiment of an intelligent information forwarding apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: according to the method, if the information to be forwarded is received, the packet loss rate and the line time delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; through the target line is right the information to be forwarded is forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered to carry out intelligent load, all selectable lines can be better utilized, the user experience is improved, and the technical problem that the user experience is poor when the VPN routing can not better utilize all the lines and selects the line with poor quality in the prior art is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent information forwarding device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the intelligent information forwarding apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the intelligent information-forwarding device architecture shown in fig. 1 is not intended to be limiting of the intelligent information-forwarding device, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005 as a storage medium may include an operating device, a network communication module, a client interface module, and an intelligent information forwarding program.
The intelligent information forwarding apparatus of the present invention calls an intelligent information forwarding program stored in the memory 1005 through the processor 1001, and performs the following operations:
if receiving the information to be forwarded, acquiring the packet loss rate and the line time delay of each line to be selected;
calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
selecting a target line from the lines to be selected according to the line quality parameters;
and forwarding the information to be forwarded through the target line.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
the calculating the line quality parameters of each line to be selected according to the packet loss rate and the line delay includes:
obtaining the packet loss rate of the circuit sending packet and the packet loss rate of the circuit receiving packet from the packet loss rate;
and calculating the line quality parameters of each line to be selected according to a preset time delay coefficient, the line packet sending and losing rate, the line packet receiving and losing rate and the line time delay.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
and selecting the line to be selected with the maximum line quality parameter from all the lines to be selected as the target line.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
taking a target line to be selected from the lines to be selected as a preferred line;
traversing the lines except the target line to be selected in the lines to be selected;
taking the traversed route as a current route;
comparing the line quality parameter of the preferred line with the line quality parameter of the current line;
selecting a line with better line quality from the priority line and the current line as a new preferred line according to a comparison result;
judging whether the traversal of the line to be selected is finished or not;
if the traversal is not finished, returning to the step of taking the traversed route as the current route;
and if the traversal is finished, taking the preferred route as the target route.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
when detecting that a line fault occurs in the preferred line and the current line, determining a non-fault line in the two comparison lines, and obtaining a first line quality parameter of the non-fault line;
traversing the lines except the non-fault line in the line to be selected;
taking the traversed line as a first comparison line;
calculating to obtain a line difference value of a first line quality parameter of the non-fault line and a second line quality parameter of the first comparison line;
comparing the line difference value with a preset quality threshold value to obtain a comparison result;
and determining a preferred line according to the comparison result.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
if the comparison result is that the line difference value is larger than the preset quality threshold value, determining that the non-fault line is a preferred line;
and if the comparison result is that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, traversing to a second comparison line again, acquiring a second data transceiving speed of the second comparison line, comparing the first data transceiving speed with the second data transceiving speed, and taking the line with the lower data transceiving speed as the preferred line.
Further, the processor 1001 may call the intelligent information forwarding program stored in the memory 1005, and further perform the following operations:
when detecting that the preferred line and the current line have the designated preferred line, acquiring a third line quality parameter of the designated preferred line and a fourth line quality parameter corresponding to the current line;
calculating a target line difference between the third line quality parameter and the fourth line quality parameter;
and if the target line difference value is greater than the preset quality threshold value, taking the appointed preferred line as the preferred line.
According to the scheme, if the information to be forwarded is received, the packet loss rate and the line delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; the target line is used for forwarding the information to be forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered for carrying out intelligent load, all selectable lines can be better utilized, and user experience is improved.
Based on the hardware structure, the embodiment of the intelligent information forwarding method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of an intelligent information forwarding method according to the present invention.
In a first embodiment, the intelligent information forwarding method includes the following steps:
step S10, if the information to be forwarded is received, obtaining the packet loss rate and the line delay of each line to be selected.
It should be noted that the information to be forwarded is information to be forwarded, the packet loss ratio of each line to be selected is a ratio of the number of packets discarded by the network in a period of time to the total number of packets sent in the period of time, and the line delay is a time when a data packet goes back and forth between two devices.
And step S20, calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay.
It can be understood that, generally, the busy degree of each line to be selected can be obtained through the packet loss rate and the line duration, that is, the line quality parameter of each line to be selected is calculated according to the packet loss rate and the line delay.
Further, the step S20 includes the following steps:
obtaining the packet loss rate of the circuit sending packet and the packet loss rate of the circuit receiving packet from the packet loss rate;
and calculating the line quality parameters of each line to be selected according to a preset time delay coefficient, the line packet sending and losing rate, the line packet receiving and losing rate and the line time delay.
It can be understood that the preset time delay coefficient is a preset coefficient for calculating the line time delay, and the line quality parameter of each line to be selected can be calculated by using the preset time delay coefficient, the line packet sending loss rate, the line packet receiving loss rate and the line time delay.
In a specific implementation, the line quality parameter of each line to be selected is calculated according to the packet loss rate and the line delay by the following formula:
R=df+ds+((sy/64)*128)
wherein, R is a line quality parameter, df is a line packet sending loss rate, ds is a line packet receiving loss rate, sy is a line delay, and 64 and 128 are preset delay coefficients; dividing the line delay by 64 and multiplying by 128 corresponds to a packet loss rate of 3.125% (128/4096) per 64 ms delay, and the quality is considered to be the same within 64 ms.
And step S30, selecting a target line from the lines to be selected according to the line quality parameters.
It should be understood that, through a preset screening rule, a target line can be selected from the candidate lines according to the line quality parameters.
And step S40, forwarding the information to be forwarded through the target line.
It can be understood that the information to be forwarded is forwarded through the target line, so that the line with the optimal line quality parameter can be used as the line for sending the information to be forwarded.
According to the scheme, if the information to be forwarded is received, the packet loss rate and the line delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; the target line is used for forwarding the information to be forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered for carrying out intelligent load, all selectable lines can be better utilized, and user experience is improved.
Further, fig. 3 is a flowchart illustrating a second embodiment of the intelligent information forwarding method of the present invention, and as shown in fig. 3, the second embodiment of the intelligent information forwarding method of the present invention is proposed based on the first embodiment, and in this embodiment, the step S30 includes the following steps:
and step S31, selecting the candidate line with the maximum line quality parameter from the candidate lines as the target line.
It should be noted that, the candidate line with the largest line quality parameter may be selected from the candidate lines as the target line, that is, the candidate line with the largest line quality parameter is used as the line for sending the information to be forwarded.
Further, the step S31 includes the following steps:
taking a target line to be selected from the lines to be selected as a preferred line;
traversing the lines except the target line to be selected in the lines to be selected;
taking the traversed route as a current route;
comparing the line quality parameter of the preferred line with the line quality parameter of the current line;
selecting a line with better line quality from the priority line and the current line as a new preferred line according to a comparison result;
judging whether the traversal of the line to be selected is finished or not;
if the traversal is not finished, returning to the step of taking the traversed route as the current route;
and if the traversal is finished, taking the preferred route as the target route.
It can be understood that, a target candidate line is taken out from the candidate lines as a preferred line; traversing the lines except the target line to be selected in the lines to be selected; taking the traversed route as a current route, and comparing the route quality parameters of the preferred route with the route quality parameters of the current route by acquiring the quality parameters of all routes to be selected; and selecting the route with better route quality from the priority route and the current route as a new preferred route according to the comparison result, and knowing that the traversal is finished, thereby selecting the optimal route as the target route.
Further, after the step takes the traversed route as the current route, the intelligent information forwarding method further includes the following steps:
when detecting that a line fault occurs in the preferred line and the current line, determining a non-fault line in the two comparison lines, and obtaining a first line quality parameter of the non-fault line;
traversing the lines except the non-fault line in the line to be selected;
taking the traversed line as a first comparison line;
calculating to obtain a line difference value of a first line quality parameter of the non-fault line and a second line quality parameter of the first comparison line;
comparing the line difference value with a preset quality threshold value to obtain a comparison result;
and determining a preferred line according to the comparison result.
It should be understood that if a line fault is detected, the line quality parameter of the non-faulty line may be determined, and the line difference value between the line quality parameter of the newly compared line and the line quality parameter of the non-faulty line is compared with the preset command threshold, so that a comparison result may be obtained, and a preferred line may be determined based on the comparison result.
Further, the step of determining a preferred route according to the comparison result includes the steps of:
if the comparison result is that the line difference value is larger than the preset quality threshold value, determining that the non-fault line is a preferred line;
and if the comparison result is that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, traversing to a second comparison line again, acquiring a second data transceiving speed of the second comparison line, comparing the first data transceiving speed with the second data transceiving speed, and taking the line with the lower data transceiving speed as the preferred line.
It is understood that the preset quality threshold may be 100, and may also be other values, which are not limited in this embodiment; and when the comparison result shows that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, and determining a line with a smaller transceiving speed as a preferred line according to the preferred line.
Further, after the step takes the traversed route as the current route, the intelligent information forwarding method further includes the following steps:
when detecting that the preferred line and the current line have the designated preferred line, acquiring a third line quality parameter of the designated preferred line and a fourth line quality parameter corresponding to the current line;
calculating a target line difference between the third line quality parameter and the fourth line quality parameter;
and if the target line difference value is greater than the preset quality threshold value, taking the appointed preferred line as the preferred line.
It should be understood that, when there is a designated preferred line in the lines, as long as the target line difference is greater than the preset quality threshold, the designated preferred line may be taken as the preferred line, so as to ensure that the line with the optimal line transmits the information to be transmitted.
According to the scheme, a first comparison line corresponding to first line information and a second comparison line corresponding to second line information are obtained from each line to be selected according to the first line information and the second line information; selecting a line with a better line quality parameter from the first comparison line and the second comparison line as a preferred line by comparing the line quality parameters of the first comparison line and the second comparison line; the method comprises the steps of obtaining quality parameters of all lines to be selected, traversing all lines to be selected, taking the current line of which the quality parameter is better than the quality parameter of the preferred line in all the lines to be selected as a new preferred line until all the lines to be selected are compared, taking the final preferred line as a target line, carrying out intelligent load by comprehensively considering the quality condition of the line and the busy degree of the current line, better utilizing all the selectable lines and improving user experience.
Based on the above embodiment of the intelligent information forwarding method, the present invention further provides an intelligent information forwarding apparatus.
Referring to fig. 4, fig. 4 is a functional block diagram of a first embodiment of an intelligent information forwarding device according to the present invention.
In a first embodiment of the intelligent information transfer apparatus of the present invention, the intelligent information transfer apparatus includes:
the obtaining module 10 is configured to obtain a packet loss rate and a line delay of each line to be selected if the information to be forwarded is received.
It should be noted that the information to be forwarded is information to be forwarded, the packet loss ratio of each line to be selected is a ratio of the number of packets discarded by the network in a period of time to the total number of packets sent in the period of time, and the line delay is a time when a data packet goes back and forth between two devices.
And the quality calculating module 20 is configured to calculate a line quality parameter of each to-be-selected line according to the packet loss rate and the line delay.
It can be understood that, generally, the busy degree of each line to be selected can be obtained through the packet loss rate and the line duration, that is, the line quality parameter of each line to be selected is calculated according to the packet loss rate and the line delay.
And the selecting module 30 is configured to select a target line from the lines to be selected according to the line quality parameters.
It should be understood that, through a preset screening rule, a target line can be selected from the candidate lines according to the line quality parameters.
And a forwarding module 40, configured to forward the information to be forwarded through the target line.
It can be understood that the information to be forwarded is forwarded through the target line, so that the line with the optimal line quality parameter can be used as the line for sending the information to be forwarded.
The steps implemented by each functional module of the intelligent information forwarding device can refer to each embodiment of the intelligent information forwarding method of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where an intelligent information forwarding program is stored on the storage medium, and when executed by a processor, the intelligent information forwarding program implements the following operations:
if receiving the information to be forwarded, acquiring the packet loss rate and the line time delay of each line to be selected;
calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
selecting a target line from the lines to be selected according to the line quality parameters;
and forwarding the information to be forwarded through the target line.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
the calculating the line quality parameters of each line to be selected according to the packet loss rate and the line delay includes:
obtaining the packet loss rate of the circuit sending packet and the packet loss rate of the circuit receiving packet from the packet loss rate;
and calculating the line quality parameters of each line to be selected according to a preset time delay coefficient, the line packet sending and losing rate, the line packet receiving and losing rate and the line time delay.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
and selecting the line to be selected with the maximum line quality parameter from all the lines to be selected as the target line.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
taking a target line to be selected from the lines to be selected as a preferred line;
traversing the lines except the target line to be selected in the lines to be selected;
taking the traversed route as a current route;
comparing the line quality parameter of the preferred line with the line quality parameter of the current line;
selecting a line with better line quality from the priority line and the current line as a new preferred line according to a comparison result;
judging whether the traversal of the line to be selected is finished or not;
if the traversal is not finished, returning to the step of taking the traversed route as the current route;
and if the traversal is finished, taking the preferred route as the target route.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
when detecting that a line fault occurs in the preferred line and the current line, determining a non-fault line in the two comparison lines, and obtaining a first line quality parameter of the non-fault line;
traversing the lines except the non-fault line in the line to be selected;
taking the traversed line as a first comparison line;
calculating to obtain a line difference value of a first line quality parameter of the non-fault line and a second line quality parameter of the first comparison line;
comparing the line difference value with a preset quality threshold value to obtain a comparison result;
and determining a preferred line according to the comparison result.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
if the comparison result is that the line difference value is larger than the preset quality threshold value, determining that the non-fault line is a preferred line;
and if the comparison result is that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, traversing to a second comparison line again, acquiring a second data transceiving speed of the second comparison line, comparing the first data transceiving speed with the second data transceiving speed, and taking the line with the lower data transceiving speed as the preferred line.
Further, the intelligent information forwarding program when executed by the processor further implements the following operations:
when detecting that the preferred line and the current line have the designated preferred line, acquiring a third line quality parameter of the designated preferred line and a fourth line quality parameter corresponding to the current line;
calculating a target line difference between the third line quality parameter and the fourth line quality parameter;
and if the target line difference value is greater than the preset quality threshold value, taking the appointed preferred line as the preferred line.
According to the scheme, if the information to be forwarded is received, the packet loss rate and the line delay of each line to be selected are obtained; calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay; selecting a target line from the lines to be selected according to the line quality parameters; the target line is used for forwarding the information to be forwarded, the quality condition of the line and the busy degree of the current line can be comprehensively considered for carrying out intelligent load, all selectable lines can be better utilized, and user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent information forwarding method, characterized in that the intelligent information forwarding method comprises:
if receiving the information to be forwarded, acquiring the packet loss rate and the line time delay of each line to be selected;
calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
selecting a target line from the lines to be selected according to the line quality parameters;
and forwarding the information to be forwarded through the target line.
2. The intelligent information forwarding method according to claim 1, wherein the calculating the line quality parameter of each line to be selected according to the packet loss rate and the line delay includes:
obtaining the packet loss rate of the circuit sending packet and the packet loss rate of the circuit receiving packet from the packet loss rate;
and calculating the line quality parameters of each line to be selected according to a preset time delay coefficient, the line packet sending and losing rate, the line packet receiving and losing rate and the line time delay.
3. The intelligent information forwarding method according to claim 2, wherein the selecting a target line from the lines to be selected according to the line quality parameter comprises:
and selecting the line to be selected with the maximum line quality parameter from all the lines to be selected as the target line.
4. The intelligent information forwarding method according to claim 3, wherein the selecting the candidate line with the largest line quality parameter from the candidate lines as the target line comprises:
taking a target line to be selected from the lines to be selected as a preferred line;
traversing the lines except the target line to be selected in the lines to be selected;
taking the traversed route as a current route;
comparing the line quality parameter of the preferred line with the line quality parameter of the current line;
selecting a line with better line quality from the priority line and the current line as a new preferred line according to a comparison result;
judging whether the traversal of the line to be selected is finished or not;
if the traversal is not finished, returning to the step of taking the traversed route as the current route;
and if the traversal is finished, taking the preferred route as the target route.
5. The intelligent information forwarding method according to claim 4, wherein after the traversed route is taken as the current route, the intelligent information forwarding method further comprises:
when detecting that a line fault occurs in the preferred line and the current line, determining a non-fault line in the two comparison lines, and obtaining a first line quality parameter of the non-fault line;
traversing the lines except the non-fault line in the line to be selected;
taking the traversed line as a first comparison line;
calculating to obtain a line difference value of a first line quality parameter of the non-fault line and a second line quality parameter of the first comparison line;
comparing the line difference value with a preset quality threshold value to obtain a comparison result;
and determining a preferred line according to the comparison result.
6. The intelligent information forwarding method of claim 5, wherein the determining a preferred route according to the comparison result comprises:
if the comparison result is that the line difference value is larger than the preset quality threshold value, determining that the non-fault line is a preferred line;
and if the comparison result is that the line difference value is not greater than the preset quality threshold value, acquiring a first data transceiving speed of the non-fault line, traversing to a second comparison line again, acquiring a second data transceiving speed of the second comparison line, comparing the first data transceiving speed with the second data transceiving speed, and taking the line with the lower data transceiving speed as the preferred line.
7. The intelligent information forwarding method according to claim 4, wherein after the traversed route is taken as the current route, the intelligent information forwarding method further comprises:
when detecting that the preferred line and the current line have the designated preferred line, acquiring a third line quality parameter of the designated preferred line and a fourth line quality parameter corresponding to the current line;
calculating a target line difference between the third line quality parameter and the fourth line quality parameter;
and if the target line difference value is greater than the preset quality threshold value, taking the appointed preferred line as the preferred line.
8. An intelligent information transfer apparatus, comprising:
the acquisition module is used for acquiring the packet loss rate and the line time delay of each line to be selected if the information to be forwarded is received;
the quality calculation module is used for calculating the line quality parameters of each line to be selected according to the packet loss rate and the line time delay;
the selection module is used for selecting a target line from the lines to be selected according to the line quality parameters;
and the forwarding module is used for forwarding the information to be forwarded through the target line.
9. An intelligent information forwarding apparatus, characterized in that the intelligent information forwarding apparatus comprises: a memory, a processor and an intelligent message forwarding program stored on the memory and executable on the processor, the intelligent message forwarding program configured to implement the steps of the intelligent message forwarding method of any one of claims 1-7.
10. A storage medium having stored thereon an intelligent information-forwarding program which, when executed by a processor, implements the steps of the intelligent information-forwarding method of any one of claims 1-7.
CN201911313504.8A 2019-12-18 2019-12-18 Intelligent information forwarding method, device, equipment and storage medium Pending CN110995593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911313504.8A CN110995593A (en) 2019-12-18 2019-12-18 Intelligent information forwarding method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911313504.8A CN110995593A (en) 2019-12-18 2019-12-18 Intelligent information forwarding method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110995593A true CN110995593A (en) 2020-04-10

Family

ID=70095935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911313504.8A Pending CN110995593A (en) 2019-12-18 2019-12-18 Intelligent information forwarding method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110995593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631810A (en) * 2020-12-30 2021-04-09 北京天融信网络安全技术有限公司 Link selection system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195882A (en) * 2011-05-18 2011-09-21 深信服网络科技(深圳)有限公司 Method and device for selecting route according to data stream application type
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device
CN105515915A (en) * 2015-12-25 2016-04-20 厦门网宿软件科技有限公司 Node detection method, device, route selection method, device and network system
CN106302168A (en) * 2016-09-18 2017-01-04 东软集团股份有限公司 A kind of ISP route selecting method, device and gateway
CN106656847A (en) * 2017-03-10 2017-05-10 重庆邮电大学 Software defined network (SDN) load balancing method with highest network utility
CN108600228A (en) * 2018-04-26 2018-09-28 杭州迪普科技股份有限公司 A kind of IPSec link selecting methods and device
WO2019218786A1 (en) * 2018-05-17 2019-11-21 北京大米科技有限公司 Route detection method based on tunneling technology, and routing node and central server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195882A (en) * 2011-05-18 2011-09-21 深信服网络科技(深圳)有限公司 Method and device for selecting route according to data stream application type
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device
CN105515915A (en) * 2015-12-25 2016-04-20 厦门网宿软件科技有限公司 Node detection method, device, route selection method, device and network system
CN106302168A (en) * 2016-09-18 2017-01-04 东软集团股份有限公司 A kind of ISP route selecting method, device and gateway
CN106656847A (en) * 2017-03-10 2017-05-10 重庆邮电大学 Software defined network (SDN) load balancing method with highest network utility
CN108600228A (en) * 2018-04-26 2018-09-28 杭州迪普科技股份有限公司 A kind of IPSec link selecting methods and device
WO2019218786A1 (en) * 2018-05-17 2019-11-21 北京大米科技有限公司 Route detection method based on tunneling technology, and routing node and central server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631810A (en) * 2020-12-30 2021-04-09 北京天融信网络安全技术有限公司 Link selection system and method

Similar Documents

Publication Publication Date Title
CN108306831B (en) Routing method and device
KR101786041B1 (en) Load balancing in a wireless network with multiple access points
EP3764609B1 (en) Message sending method, network node and system
US20060291402A1 (en) Apparatus and method for providing enhanced wireless communications
CN108322401A (en) The control method and device of network transmission congestion
CN105474602A (en) Method, device and equipment of identifying attack flow in software defined network
CN110213129B (en) Forwarding path time delay detection method, controller and forwarding equipment
CN108809847A (en) Realize the method, apparatus and network system of load balancing
US20180316599A1 (en) Routing packets considering the propagation delay of routes
CN103856959B (en) Wireless LAN quality control method, equipment and system
CN103731376A (en) Method and system for selecting chain aggregation root ports on stacked equipment
US20170338998A1 (en) Message Attack Defense Method and Apparatus
WO2007094547A1 (en) Method and apparatus for packet aggregation in power line communication network
CN106900174A (en) The data transmission method of WLAN mesh network, apparatus and system
CN110855424B (en) Method and device for synthesizing asymmetric flow xDR in DPI field
CN110995593A (en) Intelligent information forwarding method, device, equipment and storage medium
CN111447114A (en) Data packet transmission method and device, electronic equipment and storage medium
CN105763468B (en) A kind of transmission method and device of bgp update message
CN109564516A (en) A kind of carrier selecting method, terminal device and computer storage medium
TWI658715B (en) Communication device, available bandwidth calculation system, available bandwidth calculation method, and program
JP5723334B2 (en) Network topology estimation method and topology estimation apparatus
CN105814850B (en) Route method, node and the communication system of data packet
CN105264833B (en) A kind of service path calculation method and device
CN110061898B (en) Message forwarding method and device
WO2014126513A1 (en) Method and network entity for evaluating a link between a first network node and a second network node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410

RJ01 Rejection of invention patent application after publication