Network communication path screening method, device, medium and terminal
By obtaining and calculating the selectable weight value of the communication path in the communication terminal device, and performing path tests, selecting the target communication path that meets the requirements, the problem of low data transmission efficiency caused by the single communication path selection in the prior art is solved, and the data transmission efficiency is improved Communication efficiency.
Patent Information
- Application Number
- CN202411224482.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-09-03
AI Technical Summary
In the prior art, the communication path selection method is single, resulting in low data transmission efficiency and excessive loading of certain nodes or links in the network, affecting communication efficiency.
After the two communication terminal devices establish a network connection, the optional communication path is obtained, and the selectable weight value is obtained through parameter calculation, sort and test to select the target communication path that meets the requirements, and comprehensively consider multiple dimensions to avoid path blockage.
By taking into account the actual situation of the communication path in multiple dimensions, selecting the appropriate path, avoiding communication path blockage caused by a single choice method, improving communication transmission efficiency, and meeting different communication transmission requirements.
Smart Images

Figure CN118741637B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a path screening method, device, medium and terminal for network communication. Background Art
[0002] With the popularization of IoT technology and the powerful functions of smart devices, smart IoT devices have been applied to various fields. With the increase in the number of device nodes, the communication requirements between device nodes are getting higher and higher. The existing path selection methods are usually based on the channel transmission rate between nodes, or calculated based on the shortest path to meet the service requirements for delay. However, simply using the transmission rate or the shortest path as the basis for routing selection often results in the phenomenon that most of the services in the network are concentrated on certain nodes or links in the network, affecting the actual communication transmission efficiency. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a path screening method, device, medium and terminal for network communication, which are used to solve the problem of low data transmission efficiency caused by the single communication path selection method in the prior art.
[0004] To achieve the above-mentioned object and other related objects, the present invention provides a path screening method for network communication, the screening method comprising the following steps:
[0005] After the two communication terminal devices establish a network communication connection, obtaining selectable optional communication paths and establishing an optional communication path group;
[0006] Performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sorting the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence;
[0007] Generate a path test data packet according to the communication configuration information of the base station device, and use the path test data packet to perform tests in sequence according to the sequence of the optional communication path groups to obtain corresponding test results;
[0008] The optional communication path corresponding to the test result meeting the requirement is selected as the target communication path.
[0009] In one embodiment of the present invention, the step of obtaining selectable communication paths and establishing a selectable communication path group includes:
[0010] Acquire the information to be transmitted that needs to be transmitted by the communication terminal device, and determine data association information of the information to be transmitted;
[0011] Selecting the optional communication path that meets the requirements between the terminal device and the base station device according to the data association information;
[0012] The plurality of the optional communication paths are used to establish the optional communication path group;
[0013] The data association information includes data type, data length and encryption information. When it is determined according to the encryption information that the information to be transmitted includes at least one encrypted data, a communication path including an encryption channel is selected as the optional communication path.
[0014] In one embodiment of the present invention, the step of performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding selectable weight value includes:
[0015] Acquire transmission distance information, load information and coherent bandwidth of each of the optional communication paths;
[0016] Calculating a first information value of each of the optional communication paths according to the transmission distance information, the load information and the coherent bandwidth;
[0017] Calculate the bit error rate, signal-to-noise ratio, transmission delay and transmission rate of each optional communication path respectively, and calculate the second information value of the optional communication path according to the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate;
[0018] A weighted calculation is performed according to the first information value and the second information value to obtain the corresponding selectable weight value.
[0019] In one embodiment of the present invention, the first information value and the second information value are both calculated by weighted cumulative summation, the relative weights among the transmission distance information, the load information and the coherent bandwidth are calculated by a hierarchical analysis method, and the relative weights among the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate are calculated by an entropy method.
[0020] In one embodiment of the present invention, performing weighted calculation according to the first information value and the second information value to obtain the corresponding selectable weight value includes:
[0021] sorting the first information and the second information of each of the optional communication paths to obtain a first information sequence and a second information sequence;
[0022] Calculate the first information mean and the second information mean respectively;
[0023] Calculate a first reference value for each piece of the first information in the first information sequence according to the first information mean, and calculate a second reference value for each piece of the second information in the second information sequence according to the second information mean;
[0024] A selectable weight value of each of the optional communication paths is calculated according to the first reference value, the second reference value, the first information, and the second information.
[0025] In one embodiment of the present invention, the first reference value is the ratio of the absolute value of the difference between the first information and the mean of the first information to the mean of the first information, and the second reference value is the ratio of the absolute value of the difference between the second information and the mean of the second information to the mean of the second information.
[0026] In one embodiment of the present invention, the bit error rate of each optional communication path is calculated as follows:
[0027] Generate a piece of test coded data, and decode the test coded data according to the current optional communication path to obtain first decoded data;
[0028] Calculating the variance of each information in the first decoded data, and calculating a first bit error rate according to the variance;
[0029] Reversely encode the first decoded data after decoding to obtain secondary encoded data, and compare the difference between the test encoded data and the secondary encoded data to calculate a second bit error rate;
[0030] The bit error rate is calculated according to the first bit error rate and the second bit error rate.
[0031] In one embodiment of the present invention, the step of sequentially using the path test data packets to perform the test in the order of the optional communication path group sequence to obtain the corresponding test result includes:
[0032] Sending the path test data packet to each optional communication path in the optional communication path group sequence in sequence from high to low;
[0033] Obtaining a feedback value of each of the optional communication paths;
[0034] The test result of each of the optional communication paths is calculated according to the feedback value and the selectable weight value of the optional communication path.
[0035] In one embodiment of the present invention, the selecting the optional communication path corresponding to the test result meeting the requirement as the target communication path includes:
[0036] Calculating a weight mean of a plurality of the selectable weight values, and calculating a result mean of a plurality of the test results;
[0037] Calculate a first standard deviation of the plurality of selectable weight values according to the weight mean, and calculate a second standard deviation of the plurality of test results according to the result mean;
[0038] Determine a weight range according to the first standard deviation and the weight mean, determine a result range according to the second standard deviation and the result mean, and determine a target range according to the weight range and the result range;
[0039] The largest test result within the target range is selected from the plurality of test results as the target test result, and the optional communication path corresponding to the target test result is selected as the target communication path.
[0040] The present invention also provides a network communication path screening device, comprising:
[0041] A path acquisition module, used to acquire selectable optional communication paths and establish an optional communication path group after two communication terminal devices establish a network communication connection;
[0042] A calculation and sorting module, configured to perform parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sort the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence;
[0043] A test module, configured to generate a path test data packet according to the communication configuration information of the base station device, and sequentially use the path test data packet to perform a test in the order of the optional communication path group sequence to obtain a corresponding test result;
[0044] The path selection module is used to select the optional communication path corresponding to the test result meeting the requirement as the target communication path.
[0045] The present invention also discloses a storage medium on which a computer program is stored. When the computer program is executed by a processor, the path screening method of the network communication is realized.
[0046] The present invention also provides a terminal, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, so that the terminal executes the above-mentioned path screening method for network communication.
[0047] As described above, the network communication path screening method, device, medium and terminal of the present invention have the following beneficial effects:
[0048] Compared with the prior art, the present invention determines a plurality of selectable communication paths in the communication network and establishes an selectable communication path group after two communication terminal devices establish a network communication connection. Subsequently, the selectable weight value of each optional communication path is calculated by parameter calculation, and the sequence of the optional communication path group sorted according to the selectable weight value is tested by a path test data packet to obtain a corresponding test result. Subsequently, the optional communication path is calculated according to the selectable weight value and the test result to select an optional communication path that meets the requirements as the target communication path. The actual conditions of the optional communication paths are comprehensively considered from multiple dimensions to select a target communication path that meets the requirements. While ensuring the selection of a suitable communication path, a single selection method is avoided to prevent the communication path from being blocked and affecting the communication efficiency, thereby meeting different communication transmission requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Shown is a flow chart of a path screening method for network communication according to the present invention.
[0050] Figure 2 It is a flow chart showing step S400 in the path screening method of network communication of the present invention.
[0051] Figure 3 Shown is a structural block diagram of a path screening device for network communication according to the present invention. DETAILED DESCRIPTION
[0052] The following describes the embodiments of the present invention through specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0053] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0054] Compared with the prior art, the path screening method, device, medium and terminal of the network communication of the present invention determine multiple optional communication paths and establish an optional communication path group in the communication network after two communication terminal devices establish a network communication connection, and then calculate the optional weight value of each optional communication path by parameter calculation, and test the optional communication path group sequence sorted according to the optional weight value through a path test data packet to obtain a corresponding test result, and then calculate the optional communication path according to the optional weight value and the test result to select an optional communication path that meets the requirements as the target communication path, comprehensively consider the actual situation of the optional communication path from multiple dimensions to select a target communication path that meets the requirements, while ensuring the selection of a suitable communication path, avoid a single selection method causing communication path congestion and affecting communication efficiency, and can meet different communication transmission requirements.
[0055] The present invention will be described below with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of the boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so as to produce a machine, so that when these computer program instructions are executed by the processor of the computer or other programmable data processing device, a device for implementing the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated.
[0056] These computer program instructions may also be stored in a computer-readable medium, which enables a computer, other programmable data processing apparatus, or other device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0057] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0058] like Figure 1 As shown, in one embodiment, a path screening method for network communication of the present invention comprises the following steps:
[0059] S100: After two communication terminal devices establish a network communication connection, obtain selectable optional communication paths and establish an optional communication path group.
[0060] In some embodiments, the obtaining of selectable optional communication paths and establishing a selectable communication path group includes:
[0061] Acquire the information to be transmitted that needs to be transmitted by the communication terminal device, and determine data association information of the information to be transmitted;
[0062] Selecting the optional communication path that meets the requirements between the terminal device and the base station device according to the data association information;
[0063] The plurality of the optional communication paths are used to establish the optional communication path group;
[0064] The data association information includes data type, data length and encryption information. When it is determined according to the encryption information that the information to be transmitted includes at least one encrypted data, a communication path including an encryption channel is selected as the optional communication path.
[0065] In this embodiment, after two communication terminal devices establish a network communication connection, they first obtain the information to be transmitted, and correspondingly obtain the data-related information of the information to be transmitted, mainly including the data type, data length and encryption status. When it is determined that the information to be transmitted contains at least one encrypted data, it is necessary to select a communication path with an encrypted channel as an optional communication path to ensure the security of information transmission. When it is determined based on the data type that the information to be transmitted is important internal information, a communication path that is only open to the internal is selected; and when the length of the information to be transmitted is determined based on the data length, the selected communication path must at least be able to accurately transmit the data length, ensure the integrity of the communication process, and be less likely to lose packets.
[0066] After obtaining the information to be transmitted, the data association information of the information to be transmitted is obtained to facilitate the preliminary screening of the communication path to select an optional communication path that meets the requirements, to ensure that the selected communication path does not match the requirements of the information to be transmitted, and to implement pre-screening for the subsequent selection of the communication path. Afterwards, the selected multiple optional communication paths are used to establish an optional communication path group, which is convenient for further screening.
[0067] S200, performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sorting the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence.
[0068] In some further embodiments, the performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding selectable weight value includes:
[0069] Acquire transmission distance information, load information and coherent bandwidth of each of the optional communication paths;
[0070] Calculating a first information value of each of the optional communication paths according to the transmission distance information, the load information and the coherent bandwidth;
[0071] Calculate the bit error rate, signal-to-noise ratio, transmission delay and transmission rate of each optional communication path respectively, and calculate the second information value of the optional communication path according to the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate;
[0072] A weighted calculation is performed according to the first information value and the second information value to obtain the corresponding selectable weight value.
[0073] In this embodiment, after obtaining an optional communication path group consisting of multiple optional communication paths through the aforementioned pre-screening process, firstly, the transmission distance information, load information and coherent bandwidth of each optional communication path within the optional communication path group are obtained to determine the first information value of the current optional communication path according to the transmission distance information, load information and coherent bandwidth information, and the first information value is used to characterize the basic parameters of the optional communication path. Then, the bit error rate, signal-to-noise ratio, transmission delay and transmission rate of each optional communication path are calculated respectively, and the corresponding second information value is calculated according to the bit error rate, signal-to-noise ratio, transmission delay and transmission rate, and the second information value is used to characterize the transmission parameters of the optional communication path, so as to obtain the selectable weight value of each optional communication path according to the first information value and the second information value, so as to facilitate communication path screening.
[0074] In some other embodiments, the first information value and the second information value are both calculated by weighted cumulative summation, the relative weights among the transmission distance information, the load information and the coherent bandwidth are calculated by a hierarchical analysis method, and the relative weights among the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate are calculated by an entropy method.
[0075] Exemplarily, the corresponding relative weights between the transmission distance information, the load information and the coherent bandwidth are calculated by the hierarchical analysis method, and the relative weights between the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate are calculated by the entropy method. Since the relative weights calculated by the hierarchical analysis method and the entropy method are both existing technologies, this solution does not involve improvements thereto and will not be repeated here. Then, the accumulated summation can be performed based on the relative weight values obtained to obtain the first information value and the second information value, which satisfies the following formula:
[0076]
[0077] Among them, A represents the first information value, B represents the second information value, M1, M2, and M3 represent distance information, load information, and coherent bandwidth respectively, and N1, N2, and N3 represent relative weights corresponding to distance information, load information, and coherent bandwidth respectively; P1, P2, P3, and P4 represent bit error rate, the signal-to-noise ratio, the transmission delay, and the transmission rate respectively, and Q1, Q2, Q3, and Q4 represent relative weights between the bit error rate, the signal-to-noise ratio, the transmission delay, and the transmission rate respectively.
[0078] It should be noted that the relative weights and code rates corresponding to the transmission distance information, load information and coherent bandwidth, the signal-to-noise ratio, the transmission delay and the relative weights between the transmission rate can also be calculated by other weight assignment methods in the prior art. This scheme does not specifically limit this. Any method that can accurately assign weights can be applied to the scheme of this application and will not be repeated here.
[0079] In some further embodiments, performing weighted calculation according to the first information value and the second information value to obtain the corresponding selectable weight value includes:
[0080] sorting the first information and the second information of each of the optional communication paths to obtain a first information sequence and a second information sequence;
[0081] Calculate the first information mean and the second information mean respectively;
[0082] Calculate a first reference value for each piece of the first information in the first information sequence according to the first information mean, and calculate a second reference value for each piece of the second information in the second information sequence according to the second information mean;
[0083] A selectable weight value of each of the optional communication paths is calculated according to the first reference value, the second reference value, the first information, and the second information.
[0084] In this embodiment, after obtaining the first information value and the second information value corresponding to each optional communication path, in order to further calculate the corresponding optional weight value. First, the first information and the second information of each optional communication path are sorted to obtain the first information sequence and the second information sequence respectively, the first information sequence is averaged to obtain the first information mean, the second information sequence is averaged to obtain the second information mean, and then the first reference value of each first information is calculated according to the first information mean and the first information sequence, and the second reference value of each second information is calculated according to the second information mean and the second information sequence. Since the first reference value represents the weight information of the first information and the second reference value represents the weight information of the second information, the optional weight value of each optional communication path can be obtained by adding together the product of the first reference value and the first information and the product of the second reference value and the second information.
[0085] The selectable weight values calculated by the above method can accurately represent the selectable weight values of each optional communication path, and subsequently provide a basis for selecting a suitable communication path for the information to be transmitted.
[0086] Furthermore, the first reference value is the ratio of the absolute value of the difference between the first information and the mean of the first information to the mean of the first information, and the second reference value is the ratio of the absolute value of the difference between the second information and the mean of the second information to the mean of the second information.
[0087] In some other embodiments, the bit error rate of each optional communication path is calculated as follows:
[0088] Generate a piece of test coded data, and decode the test coded data according to the current optional communication path to obtain first decoded data;
[0089] Calculating the variance of each information in the first decoded data, and calculating a first bit error rate according to the variance;
[0090] Reversely encode the first decoded data after decoding to obtain secondary encoded data, and compare the difference between the test encoded data and the secondary encoded data to calculate a second bit error rate;
[0091] The bit error rate is calculated according to the first bit error rate and the second bit error rate.
[0092] In this embodiment, in order to calculate the bit error rate of each optional communication path, a piece of test coded data is first generated, and then the test coded data is decoded through each optional communication path to obtain first decoded data, and the information corresponding to each data in the first decoded data is obtained, and the variance corresponding to all data in the first decoded data is calculated to obtain the first bit error rate based on the variance.
[0093] Taking octal phase shift keying modulation as an example, the calculation process of the variance and the bit error rate satisfies the following formula:
[0094]
[0095] Where C is the bit error rate; is the variance; M is the end value of the interval of the range of data in the first decoded data; a and b are constants. The above process of calculating the first bit error rate and variance is the content of the prior art, and this solution does not specifically limit it, and will not be repeated here.
[0096] After obtaining the first bit error rate, the first decoded data is decoded through the corresponding optional communication path to obtain secondary encoded data, and the difference between the test encoded data and the secondary encoded data is compared to calculate the second bit error rate. That is, the test encoded data and the secondary encoded data are compared, and the second bit error rate is calculated based on the test encoded data according to the ratio of the number of difference data between the test encoded data and the secondary encoded data to the total number of encoded data.
[0097] The first bit error rate and the second bit error rate can be calculated by the above two methods, and then the final bit error rate can be obtained by calculating the average of the first bit error rate and the second bit error rate. Compared with the single method used in the prior art to calculate the bit error rate, the above calculation method can significantly improve the accuracy of the bit error rate calculation results.
[0098] S300, generating a path test data packet according to the communication configuration information of the base station device, and using the path test data packet to perform tests in sequence according to the order of the optional communication path group sequence to obtain corresponding test results.
[0099] In some embodiments, the step of sequentially using the path test data packets to perform the test in the order of the selectable communication path group sequence to obtain the corresponding test result includes:
[0100] Sending the path test data packet to each optional communication path in the optional communication path group sequence in sequence from high to low;
[0101] Obtaining the transmission rate and packet loss rate of the path test data packet on the optional communication path;
[0102] A feedback value of each of the optional communication paths is calculated according to the transmission rate and the packet loss rate, and the feedback value is used as the test result.
[0103] In this embodiment, after the path test data packet is sent to each optional communication path in the optional communication path group sequence from high to low, the feedback value of each optional communication path can be obtained. The feedback value is used to feedback the smoothness of the transmission of the path test data packet on the optional communication path, specifically the ratio of the transmission rate and the packet loss rate, so as to select the optional communication path that meets the requirements according to the feedback value and the corresponding optional weight value. The smoother the transmission of the path test data packet on the optional communication path, the higher the corresponding feedback value. Exemplarily, for the convenience of calculation, the range of the feedback value is set to 1-10.
[0104] S400: Select the optional communication path corresponding to the test result that meets the requirement as the target communication path.
[0105] In some embodiments, reference Figure 2 , the selecting the optional communication path corresponding to the test result meeting the requirement as the target communication path comprises:
[0106] S401, calculating a weight average of a plurality of the selectable weight values, and calculating a result average of a plurality of the test results;
[0107] S402, calculating a first standard deviation of a plurality of the selectable weight values according to the weight mean, and calculating a second standard deviation of a plurality of the test results according to the result mean;
[0108] S403, determining a weight range according to the first standard deviation and the weight mean, determining a result range according to the second standard deviation and the result mean, and determining a target range according to the weight range and the result range;
[0109] S404: Select the largest test result within the target range from among the multiple test results as the target test result, and use the optional communication path corresponding to the target test result as the target communication path.
[0110] After obtaining the selectable weight values and corresponding feedback values of multiple optional communication paths, first calculate the weight mean of the selectable weight values and the result mean of the test results, then calculate the first standard deviation of the selectable weight values according to the weight mean, and calculate the second standard deviation of the test results according to the result mean. Determine the weight range according to the fluctuation of the first standard deviation, and determine the result range according to the fluctuation of the second standard deviation. That is, the product of the absolute value of the difference between the first standard deviation and 1 and the weight mean is used as the minimum end value of the weight range, and the product of the sum of the first standard deviation and 1 and the weight mean is used as the maximum end value of the weight range; the product of the absolute value of the difference between the second standard deviation and 1 and the result mean is used as the minimum end value of the result range, and the product of the sum of the second standard deviation and 1 and the result mean is used as the maximum end value of the result range.
[0111] Specifically, taking the first standard deviation as D, the second standard deviation as E, the weight mean as F, and the result mean as G as an example, the corresponding weight range is , and the corresponding result range is .
[0112] After obtaining the weight range and the result range, the product of the minimum end value of the weight range and the minimum end value of the result range is used as the minimum end value of the target range, and the product of the maximum end value of the weight range and the maximum end value of the result range is used as the maximum end value of the target range, thereby obtaining a determined target range. After determining the target range, the largest test result in the test results within the target range is selected as the target test result, and the optional communication path corresponding to the target test result is selected as the target communication path, thereby completing the path screening process and selecting a communication path that meets the requirements.
[0113] The path screening method for network communication described in the present invention first determines a plurality of selectable communication paths and establishes an selectable communication path group, then calculates the selectable weight value of each selectable communication path by means of parameter calculation, and tests the selectable communication path group sequence sorted according to the selectable weight value through a path test data packet to obtain a corresponding test result, then calculates the selectable communication path according to the selectable weight value and the test result to select an selectable communication path that meets the requirements as a target communication path, comprehensively considers the actual conditions of the selectable communication path from multiple dimensions to select a target communication path that meets the requirements, while ensuring the selection of a suitable communication path, avoids a single selection method causing communication path congestion and affecting communication efficiency, and can meet different communication transmission requirements.
[0114] It should be noted that the protection scope of the method described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0115] The present invention also provides a network communication path screening device, referring to Figure 3 ,include:
[0116] A path acquisition module 301 is used to acquire selectable optional communication paths and establish an optional communication path group after two communication terminal devices establish a network communication connection;
[0117] A calculation and sorting module 302 is used to perform parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sort the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence;
[0118] The test module 303 is used to generate a path test data packet according to the communication configuration information of the base station device, and sequentially use the path test data packet to perform a test in the order of the optional communication path group sequence to obtain a corresponding test result;
[0119] The path selection module 304 is used to select the optional communication path corresponding to the test result meeting the requirement as the target communication path.
[0120] It should be noted that the structure and principle of the path screening device for network communication correspond one-to-one to the steps in the path screening method for network communication described above, and therefore will not be described in detail herein.
[0121] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system for implementation. In addition, it can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0122] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0123] The present invention also discloses a storage medium on which a computer program is stored. When the computer program is executed by a processor, the path screening method of the network communication is realized.
[0124] The storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), disk, USB flash drive, memory card or CD, etc., which can store program codes.
[0125] Any combination of one or more storage media may be used. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0126] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0127] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0128] Computer program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0129] The terminal of the present invention includes a processor and a memory.
[0130] The memory is used to store computer programs; preferably, the memory includes: ROM, RAM, disk, USB flash drive, memory card or CD, etc., which can store program codes.
[0131] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the terminal executes the following path screening method for network communication.
[0132] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0133] It should be noted that the path screening device for network communication of the present invention can implement the path screening method for network communication of the present invention, but the implementation device of the path screening method for network communication of the present invention includes but is not limited to the structure of the path screening device for network communication listed in this embodiment, and all structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0134] In summary, the path screening method, device, medium and terminal of the network communication described in the present invention, after two communication terminal devices establish a network communication connection, determine multiple optional communication paths to be selected in the communication network and establish an optional communication path group, and then calculate the optional weight value of each optional communication path by parameter calculation, and test the optional communication path group sequence sorted according to the optional weight value through a path test data packet to obtain a corresponding test result, and then calculate the optional communication path according to the optional weight value and the test result to select an optional communication path that meets the requirements as the target communication path, comprehensively consider the actual situation of the optional communication path from multiple dimensions to select a target communication path that meets the requirements, while ensuring the selection of a suitable communication path, avoid a single selection method that causes communication path congestion and affects communication efficiency, and can meet different communication transmission requirements; therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0135] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A path screening method for network communication, It is characterized in that The screening method comprises the following steps: After the two communication terminal devices establish a network communication connection, obtaining selectable optional communication paths and establishing an optional communication path group; Performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sorting the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence; Generate a path test data packet according to the communication configuration information of the base station device, and use the path test data packet to perform tests in sequence according to the sequence of the optional communication path groups to obtain corresponding test results; Selecting the optional communication path corresponding to when the test result meets the requirement as the target communication path; The step of selecting the optional communication path corresponding to the test result meeting the requirement as the target communication path includes: Calculating a weight mean of a plurality of the selectable weight values, and calculating a result mean of a plurality of the test results; Calculate a first standard deviation of the plurality of selectable weight values according to the weight mean, and calculate a second standard deviation of the plurality of test results according to the result mean; Determine a weight range according to the first standard deviation and the weight mean, determine a result range according to the second standard deviation and the result mean, and determine a target range according to the weight range and the result range; The largest test result within the target range is selected from the plurality of test results as the target test result, and the optional communication path corresponding to the target test result is selected as the target communication path.
2. The network communication path screening method according to claim 1, It is characterized in that The step of obtaining selectable communication paths and establishing a selectable communication path group includes: Acquire the information to be transmitted that needs to be transmitted by the communication terminal device, and determine data association information of the information to be transmitted; Selecting the optional communication path that meets the requirements between the terminal device and the base station device according to the data association information; The plurality of the optional communication paths are used to establish the optional communication path group; The data association information includes data type, data length and encryption information. When it is determined according to the encryption information that the information to be transmitted includes at least one encrypted data, a communication path including an encryption channel is selected as the optional communication path.
3. The network communication path screening method according to claim 1, It is characterized in that The performing parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding selectable weight value includes: Acquire transmission distance information, load information and coherent bandwidth of each of the optional communication paths; Calculating a first information value of each of the optional communication paths according to the transmission distance information, the load information and the coherent bandwidth; Calculate the bit error rate, signal-to-noise ratio, transmission delay and transmission rate of each optional communication path respectively, and calculate the second information value of the optional communication path according to the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate; A weighted calculation is performed according to the first information value and the second information value to obtain the corresponding selectable weight value.
4. The network communication path screening method according to claim 3, It is characterized in that The first information value and the second information value are both calculated by weighted cumulative summation, the relative weights among the transmission distance information, the load information and the coherent bandwidth are calculated by a hierarchical analysis method, and the relative weights among the bit error rate, the signal-to-noise ratio, the transmission delay and the transmission rate are calculated by an entropy method.
5. The network communication path screening method according to claim 3, It is characterized in that The performing weighted calculation according to the first information value and the second information value to obtain the corresponding selectable weight value includes: sorting the first information and the second information of each of the optional communication paths to obtain a first information sequence and a second information sequence; Calculate the first information mean and the second information mean respectively; Calculate a first reference value for each piece of the first information in the first information sequence according to the first information mean, and calculate a second reference value for each piece of the second information in the second information sequence according to the second information mean; A selectable weight value of each of the optional communication paths is calculated according to the first reference value, the second reference value, the first information, and the second information.
6. The network communication path screening method according to claim 5, It is characterized in that The first reference value is the ratio of the absolute value of the difference between the first information and the mean of the first information to the mean of the first information, and the second reference value is the ratio of the absolute value of the difference between the second information and the mean of the second information to the mean of the second information.
7. The network communication path screening method according to claim 3, It is characterized in that The bit error rate of each optional communication path is calculated as follows: Generate a piece of test coded data, and decode the test coded data according to the current optional communication path to obtain first decoded data; Calculating the variance of each information in the first decoded data, and calculating a first bit error rate according to the variance; Reversely encode the first decoded data after decoding to obtain secondary encoded data, and compare the difference between the test encoded data and the secondary encoded data to calculate a second bit error rate; The bit error rate is calculated according to the first bit error rate and the second bit error rate.
8. The network communication path screening method according to claim 3, It is characterized in that The step of sequentially using the path test data packets to perform testing in the order of the optional communication path group sequence to obtain corresponding test results includes: Sending the path test data packet to each optional communication path in the optional communication path group sequence in sequence from high to low; Obtaining a feedback value of each of the optional communication paths; The test result of each of the optional communication paths is calculated according to the feedback value and the selectable weight value of the optional communication path.
9. A path screening device for network communication, It is characterized in that include: A path acquisition module, used to acquire selectable optional communication paths and establish an optional communication path group after two communication terminal devices establish a network communication connection; A calculation and sorting module, configured to perform parameter calculation on each of the optional communication paths in the optional communication path group to obtain a corresponding optional weight value, and sort the data in the optional communication path group according to the size of the optional weight value to obtain an optional communication path group sequence; A test module, configured to generate a path test data packet according to the communication configuration information of the base station device, and sequentially use the path test data packet to perform a test in the order of the optional communication path group sequence to obtain a corresponding test result; A path selection module, used for selecting the optional communication path corresponding to the test result meeting the requirement as the target communication path; The step of selecting the optional communication path corresponding to the test result meeting the requirement as the target communication path includes: Calculating a weight mean of a plurality of the selectable weight values, and calculating a result mean of a plurality of the test results; Calculate a first standard deviation of the plurality of selectable weight values according to the weight mean, and calculate a second standard deviation of the plurality of test results according to the result mean; Determine a weight range according to the first standard deviation and the weight mean, determine a result range according to the second standard deviation and the result mean, and determine a target range according to the weight range and the result range; The largest test result within the target range is selected from the plurality of test results as the target test result, and the optional communication path corresponding to the target test result is selected as the target communication path.
10. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the path screening method for network communication according to any one of claims 1 to 8 is implemented.
11. A terminal, It is characterized in that include: Processor and memory; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory, so that the terminal executes the path screening method for network communication according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for selecting communication paths of equipment nodes sending data
CN112543145A
Routing apparatus and method for setting up transmission route using the same and table managing method of routing apparatus
KR1020120102971A
Network performance measurement method and device
WO2018049649A1
Method for determining shortest path and controller
WO2019011338A1
