CN109600273A - A kind of optimization method and system of UDP message transmission performance - Google Patents

A kind of optimization method and system of UDP message transmission performance Download PDF

Info

Publication number
CN109600273A
CN109600273A CN201811418081.1A CN201811418081A CN109600273A CN 109600273 A CN109600273 A CN 109600273A CN 201811418081 A CN201811418081 A CN 201811418081A CN 109600273 A CN109600273 A CN 109600273A
Authority
CN
China
Prior art keywords
firewall
udp message
client
packet loss
test device
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.)
Granted
Application number
CN201811418081.1A
Other languages
Chinese (zh)
Other versions
CN109600273B (en
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.)
Wuhan Sipuleng Technology Co Ltd
Original Assignee
Wuhan Sipuleng Technology 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 Wuhan Sipuleng Technology Co Ltd filed Critical Wuhan Sipuleng Technology Co Ltd
Priority to CN201811418081.1A priority Critical patent/CN109600273B/en
Publication of CN109600273A publication Critical patent/CN109600273A/en
Application granted granted Critical
Publication of CN109600273B publication Critical patent/CN109600273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

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

Abstract

The application provides the optimization method and system of a kind of UDP message transmission performance, wherein the described method includes: obtaining the quantity for the UDP message that firewall is received from client;In duration of handling up, the quantity for the UDP message that server slave firewall receives is obtained;Calculate packet loss;In the case where packet loss is greater than preset threshold, if the ageing time of the mapping relations of client-cache is less than duration of handling up, the ageing time of the mapping relations of client-cache is adjusted, and after the adjustment, recalculate packet loss.In method provided by the present application, adjust the ageing time of the mapping relations of client-cache, prevent the mapping relations of client-cache from losing in duration of handling up, so that firewall can determine the MAC Address of the corresponding server of destination address in each UDP message according to mapping relations, to which each UDP message is forwarded to server, it solves in the prior art, the low problem of transmission performance caused by packet loss occurs in UDP message.

Description

A kind of optimization method and system of UDP message transmission performance
Technical field
This application involves technical field of information transmission, and in particular to a kind of optimization method of UDP message transmission performance and is System.
Background technique
UDP (User Datagram Protocol, User Datagram Protocol) is a kind of connectionless agreement, utilizes UDP The message that agreement is transmitted is known as UDP message.When being carried out data transmission between terminal A and terminal B by UDP message, eventually Hold A can be according to ARP (Address Resolution Protocol, address resolution protocol) in the IP address of local cache terminal B With the mapping relations of the MAC Address of terminal B, by the IP address of the mapping relations and terminal B, terminal A can obtain terminal B's UDP message is sent to terminal B further according to the MAC Address by MAC Address.
When, there are when the network equipment (such as firewall), UDP message is sent to network and set by terminal A between terminal A and terminal B It is standby, then the network equipment to the IP address of Terminal A requests terminal B and the MAC Address of terminal B mapping relations, according to the mapping UDP message is forwarded to terminal B further according to the MAC Address of terminal B by relationship, the MAC Address for obtaining terminal B.In the process, Since UDP is a kind of connectionless agreement, the network equipment can forward UDP message to terminal B by multiple network path, but pass It may be interfered during defeated, cause UDP message can not incoming terminal B.In this case, usually using packet loss as sentencing The index of the transmission performance of disconnected UDP message.Wherein, if the UDP message that the network equipment receives received by terminal B it is more, Then packet loss is smaller, indicates that the transmission performance between terminal A and terminal B is better, when the UDP message that the network equipment receives is whole When being transmitted to terminal B, packet loss zero indicates that the transmission performance between terminal A and terminal B is best in this case.
But inventor has found in the research process of the application, there are agings in the mapping relations of local cache by terminal A Time, after reaching ageing time, the mapping relations of local cache are emptied, in this case, will lead to the network equipment without Method gets the MAC Address of terminal B, and further, will lead to terminal B can not get UDP message, and packet loss rises, and influences Transmission performance between terminal A and terminal B.
Summary of the invention
The application provides the optimization method and system of a kind of UDP message transmission performance, to solve in the prior art, UDP report The low problem of transmission performance caused by literary packet loss.
The application's, in a first aspect, providing a kind of optimization method of UDP message transmission performance, the optimization method is applied to Optimization system, the optimization system include: client, firewall, server and test device, and the test device and optimization are The interface of other equipment is connected in system, and the optimization method includes:
Step 101, the test device obtains the quantity for the UDP message that the firewall is received from the client;
Step 102, in duration of handling up, the test device obtains what the server was received from the firewall The quantity of UDP message;
Step 103, the test device calculates packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For institute State the quantity for the UDP message that server is received from the firewall;
Step 104, the test device packet loss and preset threshold;
Step 105, if the packet loss is greater than the preset threshold, the test device client-cache The ageing time of mapping relations and the duration of handling up;
Step 106, if the ageing time of the mapping relations of the client-cache is less than the duration of handling up, the survey The ageing time for adjusting the mapping relations of the client-cache is set in trial assembly, and after the adjustment, returns to step 101 behaviour Make.
Optionally, the test device adjusts the ageing time of the mapping relations of the client-cache, comprising:
The ageing time of the mapping relations of the client-cache is set duration of handling up by test device.
Optionally, the UDP message that the firewall is received from the client is obtained in the test device Before quantity, further includes:
The test device calculates the optimal throughput of the firewall;
The test device controls the firewall and receives the quantity of UDP message less than or equal to optimal throughput.
Optionally, the test device calculates the optimal throughput of the firewall, comprising:
In pre-set cycle period, the test device controls the quantity x that the firewall receives UDP message3, And obtain the quantity x for the UDP message that the server is received from the firewall in the cycle period4, utilize x3And x4Meter Calculate the target packet loss in the cycle period;
If the target packet loss is greater than zero, the test device adjusts the firewall using dichotomy and receives UDP report The quantity of text, and after the adjustment, calculate new target packet loss;
The test device continues to adjust the firewall reception UDP report according to the size of the new target packet loss The quantity of text, calculates the optimal throughput of the firewall, wherein the optimal throughput is the firewall in the circulation The maximum value of UDP message amount can be forwarded in period.
Optionally, the quantity for the UDP message that the firewall is received from the client is obtained in the test device Before, further includes:
The firewall obtains the UDP message that client is sent;
The firewall is according to the UDP message, to mapping relations described in client request, by the mapping relations, Obtain MAC Address corresponding with the destination address of the UDP message;
The firewall determines server corresponding with the MAC Address, using the corresponding server of the MAC Address as Destination server;
The firewall forwards the UDP message to the destination server.
The second aspect of the application, provides a kind of optimization system of UDP message transmission performance, and the optimization system includes: Client, firewall, server and test device, the test device are connected with the interface of other equipment in optimization system, Wherein, the test device includes:
First obtains module, for obtaining the quantity for the UDP message that the firewall is received from the client;
Second obtains module, the UDP report received in duration of handling up, obtaining the server from the firewall The quantity of text;
Packet loss computing module, for calculating packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For institute State the quantity for the UDP message that server is received from the firewall;
First comparison module is used for the packet loss and preset threshold;
Second comparison module, for determining that the packet loss is greater than the feelings of the preset threshold in first comparison module Under condition, the ageing time of the mapping relations of the client-cache and the duration of handling up;
Loop module, the ageing time of the mapping relations for determining the client-cache in second comparison module In the case where less than the duration of handling up, the ageing time of the mapping relations of the client-cache is adjusted, and after the adjustment, is returned The operation of first acquisition module described in receipt row.
Optionally, the loop module includes:
Adjustment unit, for setting duration of handling up for the ageing time of the mapping relations of the client-cache.
Optionally, the test device further include:
Optimal throughput computing module is terminated for obtaining the firewall in the first acquisition module from the client Before the quantity of the UDP message received, the optimal throughput of the firewall is calculated;
Control module, the quantity that UDP message is received for controlling the firewall are less than or equal to optimal throughput.
Optionally, the optimal throughput computing module includes:
First object packet loss computing unit is received in pre-set cycle period, controlling the firewall The quantity x of UDP message3, and obtain the number for the UDP message that the server is received from the firewall in the cycle period Measure x4, utilize x3And x4Calculate the target packet loss in the cycle period;
Second target packet loss computing unit, for utilizing dichotomy in the case where the target packet loss is greater than zero The quantity that the firewall receives UDP message is adjusted, and after the adjustment, calculates new target packet loss;
Optimal throughput computing unit continues to adjust the fire prevention for the size according to the new target packet loss Wall receives the quantity of UDP message, calculates the optimal throughput of the firewall, wherein the optimal throughput is the fire prevention Wall can forward the maximum value of UDP message amount in the cycle period.
Optionally, the firewall includes:
Third obtains module, for obtaining the UDP message of client transmission;
4th obtains module, for being reflected to mapping relations described in client request by described according to the UDP message Relationship is penetrated, MAC Address corresponding with the destination address of the UDP message is obtained;
Determining module, for determining server corresponding with the MAC Address, by the corresponding server of the MAC Address As destination server;
Forwarding module, for forwarding the UDP message to the destination server.
From the above technical scheme, the application provides the optimization method and system of a kind of UDP message transmission performance, In, which comprises test device obtains the quantity for the UDP message that the firewall is received from the client;It is gulping down It spits in duration, test device obtains the quantity for the UDP message that the server is received from the firewall;Test device calculates Packet loss;Test device compares packet loss and preset threshold;If the packet loss is greater than the preset threshold, test device compares The ageing time of the mapping relations of the client-cache and the duration of handling up;If the aging of the mapping relations of client-cache Time is less than duration of handling up, then test device adjusts the ageing time of the mapping relations of the client-cache, and after the adjustment, Recalculate packet loss.
In method provided by the present application, the ageing time of the mapping relations of client-cache is adjusted, client-cache is prevented Mapping relations lost in duration of handling up so that firewall can be according to the IP address and MAC Address in mapping relations Mapping relations, the MAC Address of the corresponding server of destination address in each UDP message is determined, thus by each UDP message Be forwarded to server, therefore, compared with the prior art for, method provided by the present application reduces packet loss, further increases The transmission performance of terminal solves in the prior art, and the low problem of transmission performance caused by packet loss occurs in UDP message.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the application, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without creative efforts, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is a kind of work flow diagram of the optimization method of UDP message transmission performance provided by the embodiments of the present application;
Fig. 2 is the work flow diagram of the optimization method of another UDP message transmission performance provided by the embodiments of the present application;
Fig. 3 is in a kind of optimization method of UDP message transmission performance provided by the embodiments of the present application, and test device calculates most The work flow diagram of excellent handling capacity;
Fig. 4 is in a kind of optimization method of UDP message transmission performance provided by the embodiments of the present application, and firewall forwards UDP The work flow diagram of message;
Fig. 5 is a kind of structural schematic diagram of the optimization system of UDP message transmission performance provided by the embodiments of the present application.
Specific embodiment
To solve in the prior art, there is the low problem of transmission performance caused by packet loss in UDP message, and the application provides one kind The optimization method and system of UDP message transmission performance.
Work flow diagram shown in referring to Fig.1, the embodiment of the present application provide a kind of optimization side of UDP message transmission performance Method, the optimization method are applied to optimization system, and the optimization system includes: client, firewall, server and test dress Set, the test device is connected with the interface of other equipment in optimization system, the optimization method the following steps are included:
Step 101, the test device obtains the quantity for the UDP message that the firewall is received from the client.
In the embodiment of the present application, client forwards UDP message, test device and optimization system to server by firewall In other interfaces set be connected, test device in optimization system for calculate firewall forwarding UDP message during Packet loss, and when packet loss is greater than preset threshold, optimize client and server by adjusting the ageing time of client Between UDP message transmission performance.
Step 102, in duration of handling up, the test device obtains what the server was received from the firewall The quantity of UDP message.
In the embodiment of the present application, firewall is after the UDP message for receiving client transmission, under normal circumstances, according to UDP message is all forwarded to server by the destination address of UDP message, wherein UDP message is all forwarded to service by firewall Time used in device is duration of handling up, and therefore, duration of handling up is related with the quantity of UDP message, and UDP message amount is more, handles up Duration is longer.
In the step, test device records firewall every time after receiving UDP message, and UDP message is all forwarded To the time used in server, and using the time as duration of handling up.In duration of handling up, if the UDP report that firewall receives It is literary to be all forwarded to server, and the UDP message that server receives is less than the UDP message amount of firewall forwarding, then surveys Trial assembly sets the process that determining firewall grabs hair UDP message and packet loss occurs, thens follow the steps 103 operation.
Step 103, the test device calculates packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For institute State the quantity for the UDP message that server is received from the firewall.
Step 104, the test device packet loss and preset threshold.
In the step, if packet loss is greater than preset threshold, 105 operation is thened follow the steps, if packet loss is no more than default Threshold value then determines that the operation of firewall forwarding UDP message is normal.For example, zero is set by preset threshold, as long as there is packet loss, It begins to calculate packet loss, and executes optimization operation.
Step 105, if the packet loss is greater than the preset threshold, the test device client-cache The ageing time of mapping relations and the duration of handling up.
In the step, if the ageing time of the mapping relations of client-cache is less than the duration of handling up, then follow the steps 106 operation.
Step 106, if the ageing time of the mapping relations of the client-cache is less than the duration of handling up, the survey The ageing time for adjusting the mapping relations of the client-cache is set in trial assembly, and after the adjustment, returns to step 101 behaviour Make.
In a kind of possible embodiment, the test device adjusts the aging of the mapping relations of the client-cache Time, that is, set duration of handling up for the ageing time of the mapping relations of the client-cache.By adjusting ageing time, The packet loss handled up in duration is recalculated, so that it is determined that the relationship of ageing time and packet loss.The applicant is through many experiments Verifying sets the ageing time of the mapping relations of the client-cache to handle up after duration, in duration of handling up, fire prevention UDP message can be all forwarded to server by wall, without there is packet loss.
From the above technical scheme, in method provided by the present application, the aging of the mapping relations of client-cache is adjusted Time prevents the mapping relations of client-cache from losing in duration of handling up, so that firewall can be according to mapping relations In IP address and MAC Address mapping relations, with determining the MAC of the corresponding server of destination address in each UDP message Location, so that each UDP message is forwarded to server, therefore, compared with the prior art for, method provided by the present application reduces Packet loss, further increases the transmission performance of terminal, solves in the prior art, and transmission caused by packet loss occurs in UDP message The low problem of performance
Referring to work flow diagram shown in Fig. 2, the embodiment of the present application provides the optimization side of another UDP message transmission performance Method, comprising the following steps:
Step 201, the test device calculates the optimal throughput of the firewall.
In the step, handling capacity, which refers to firewall in a certain period of time, can forward the quantity of UDP message, optimal to handle up Amount is the maximum value for the quantity that firewall can forward UDP message in cycle period, if the UDP message that firewall receives Quantity is greater than optimal throughput, then UDP message can not be forwarded to completely server in duration of handling up by firewall, so that fire prevention There is packet loss during wall forwarding UDP message, in the case, can not rule out since UDP message amount is more than optimal throughput And cause packet loss.
Step 202, the test device, which controls the firewall and receives the quantity of UDP message, is less than or equal to and optimal gulps down The amount of spitting.
In the step, the quantity for the UDP message that control firewall receives is less than or equal to optimal throughput, Neng Goupai Packet loss is caused except being more than optimal throughput due to UDP message amount, and then by adjusting the mapping relations of client-cache Ageing time even is eliminated packet loss phenomenon to reduce, to improve the transmission performance of UDP message.
Step 203, the test device obtains the quantity for the UDP message that the firewall is received from the client.
Step 204, in duration of handling up, the test device obtains what the server was received from the firewall The quantity of UDP message.
Step 205, the test device calculates packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For institute State the quantity for the UDP message that server is received from the firewall.
Step 206, the test device packet loss and preset threshold.
Step 207, if the packet loss is greater than the preset threshold, the test device client-cache The ageing time of mapping relations and the duration of handling up.
Step 208, if the ageing time of the mapping relations of the client-cache is less than the duration of handling up, the survey The ageing time for adjusting the mapping relations of the client-cache is set in trial assembly, and after the adjustment, returns to step 101 behaviour Make.
Wherein, step 203 is identical to the operating process of step 208 and the specific operation process of step 101 to step 106, Can be cross-referenced, the embodiment of the present application does not repeat.
Referring to work flow diagram shown in Fig. 3, the test device calculates the optimal throughput of the firewall, comprising:
Step 301, in pre-set cycle period, the test device controls the firewall and receives UDP message Quantity x3, and obtain the quantity x for the UDP message that the server is received from the firewall in the cycle period4, benefit Use x3And x4Calculate the target packet loss in the cycle period.
In the step, cycle period be it is pre-set, for example, setting 120S for cycle period.
Step 302, if the target packet loss is greater than zero, the test device adjusts the firewall using dichotomy and connects The quantity of UDP message is received, and after the adjustment, calculates new target packet loss.
Step 303, the test device is according to the size of the new target packet loss, continues to adjust the firewall connecing The quantity for receiving UDP message, calculates the optimal throughput of the firewall, wherein the optimal throughput is that the firewall exists The maximum value of UDP message amount can be forwarded in the cycle period.
For example, setting zero for target packet loss, in the cycle period of 120S, control firewall receives client hair The 100 UDP messages sent, the packet loss that test device calculates are greater than zero, that is to say, that in the cycle period, firewall can not Complete the forwarding of 100 UDP messages;Using the thought of dichotomy, in the case where there is packet loss, control firewall is received UDP message amount halves, i.e., 50 UDP messages calculate new packet loss in the case, if new packet loss is zero, explanation The UDP quantity that firewall is capable of handling in the period in the cycle is greater than or equal to 50;In the case where no packet loss, increase The quantity that firewall receives, using the thought of dichotomy, controlling the UDP message amount that firewall receives again is 75, And new packet loss is calculated again, and such cycle calculations, the final optimal throughput for determining firewall.
Referring to work flow diagram shown in Fig. 4, the firewall is obtained in the test device and is received from the client It is further comprising the steps of before the quantity of the UDP message arrived:
Step 401, client sends UDP message to the firewall.
Step 402, the firewall is according to the UDP message, to mapping relations described in client request.
Step 403, client responds firewall mapping relations.
In the step, client is searched in the mapping relations of local cache and the mapping relations of the UDP message, looks into After finding mapping relations, which is sent to firewall.
Step 404, firewall is by the mapping relations, with obtaining MAC corresponding with the destination address of the UDP message Location.
Step 405, the firewall determines server corresponding with the MAC Address, by the corresponding clothes of the MAC Address Device be engaged in as destination server.
Step 406, the firewall forwards the UDP message to the destination server.
Structural schematic diagram referring to Figure 5, the embodiment of the present application provide a kind of optimization system of UDP message transmission performance System, the optimization system include: client, firewall, server and test device, its in the test device and optimization system He is connected the interface of equipment, wherein the test device includes:
First obtains module 100, for obtaining the quantity for the UDP message that the firewall is received from the client;
Second obtains module 200, in duration of handling up, obtaining what the server was received from the firewall The quantity of UDP message;
Packet loss computing module 300, for calculating packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For institute State the quantity for the UDP message that server is received from the firewall;
First comparison module 400 is used for the packet loss and preset threshold;
Second comparison module 500, for determining that the packet loss is greater than the preset threshold in first comparison module In the case where, the ageing time of the mapping relations of the client-cache and the duration of handling up;
Loop module 600, the aging of the mapping relations for determining the client-cache in second comparison module In the case that time is less than the duration of handling up, the ageing time of the mapping relations of the client-cache is adjusted, and adjusting Afterwards, it returns and executes the described first operation for obtaining module.
Optionally, the loop module includes:
Adjustment unit, for setting duration of handling up for the ageing time of the mapping relations of the client-cache.
Optionally, the test device further include:
Optimal throughput computing module is terminated for obtaining the firewall in the first acquisition module from the client Before the quantity of the UDP message received, the optimal throughput of the firewall is calculated;
Control module, the quantity that UDP message is received for controlling the firewall are less than or equal to optimal throughput.
Optionally, the optimal throughput computing module includes:
First object packet loss computing unit is received in pre-set cycle period, controlling the firewall The quantity x of UDP message3, and obtain the number for the UDP message that the server is received from the firewall in the cycle period Measure x4, utilize x3And x4Calculate the target packet loss in the cycle period;
Second target packet loss computing unit, for utilizing dichotomy in the case where the target packet loss is greater than zero The quantity that the firewall receives UDP message is adjusted, and after the adjustment, calculates new target packet loss;
Optimal throughput computing unit continues to adjust the fire prevention for the size according to the new target packet loss Wall receives the quantity of UDP message, calculates the optimal throughput of the firewall, wherein the optimal throughput is the fire prevention Wall can forward the maximum value of UDP message amount in the cycle period.
Optionally, the firewall includes:
Third obtains module, for obtaining the UDP message of client transmission;
4th obtains module, for being reflected to mapping relations described in client request by described according to the UDP message Relationship is penetrated, MAC Address corresponding with the destination address of the UDP message is obtained;
Determining module, for determining server corresponding with the MAC Address, by the corresponding server of the MAC Address As destination server;
Forwarding module, for forwarding the UDP message to the destination server.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform is realized.Based on this understanding, the technical solution in the embodiment of the present invention is substantially in other words The part that contributes to existing technology can be embodied in the form of software products, which can store In storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions use is so that a computer equipment (can be Personal computer, server or network equipment etc.) it executes described in certain parts of each embodiment of the present invention or embodiment Method.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for device For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method Explanation.
Combine detailed description and exemplary example that the application is described in detail above, but these explanations are simultaneously It should not be understood as the limitation to the application.It will be appreciated by those skilled in the art that without departing from the application spirit and scope, A variety of equivalent substitution, modification or improvements can be carried out to technical scheme and embodiments thereof, these each fall within the application In the range of.The protection scope of the application is determined by the appended claims.

Claims (10)

1. a kind of optimization method of UDP message transmission performance, which is characterized in that the optimization method is applied to optimization system, institute Stating optimization system includes: client, firewall, server and test device, and the test device is set with other in optimization system Standby interface is connected, and the optimization method includes:
Step 101, the test device obtains the quantity for the UDP message that the firewall is received from the client;
Step 102, in duration of handling up, the test device obtains the UDP report that the server is received from the firewall The quantity of text;
Step 103, the test device calculates packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For the clothes The quantity for the UDP message that business device is received from the firewall;
Step 104, the test device packet loss and preset threshold;
Step 105, if the packet loss is greater than the preset threshold, the mapping of the test device client-cache The ageing time of relationship and the duration of handling up;
Step 106, if the ageing time of the mapping relations of the client-cache is less than the duration of handling up, the test dress The ageing time for adjusting the mapping relations of the client-cache is set, and after the adjustment, returns to step 101 operation.
2. optimization method according to claim 1, which is characterized in that the test device adjusts the client-cache The ageing time of mapping relations, comprising:
The ageing time of the mapping relations of the client-cache is set duration of handling up by test device.
3. optimization method according to claim 1, which is characterized in that obtain the firewall in the test device Before the quantity for the UDP message that the client receives, further includes:
The test device calculates the optimal throughput of the firewall;
The test device controls the firewall and receives the quantity of UDP message less than or equal to optimal throughput.
4. optimization method according to claim 3, which is characterized in that the test device calculates the optimal of the firewall Handling capacity, comprising:
In pre-set cycle period, the test device controls the quantity x that the firewall receives UDP message3, and obtain Take the quantity x for the UDP message that the server is received from the firewall in the cycle period4, utilize x3And x4Calculate institute State the target packet loss in cycle period;
If the target packet loss is greater than zero, the test device adjusts the firewall using dichotomy and receives UDP message Quantity, and after the adjustment, calculate new target packet loss;
The test device continues to adjust the firewall reception UDP message according to the size of the new target packet loss Quantity calculates the optimal throughput of the firewall, wherein the optimal throughput is the firewall in the cycle period The interior maximum value that can forward UDP message amount.
5. optimization method according to claim 1, which is characterized in that obtain the firewall from institute in the test device Before the quantity for stating the UDP message that client receives, further includes:
The firewall obtains the UDP message that client is sent;
The firewall is obtained according to the UDP message, to mapping relations described in client request by the mapping relations MAC Address corresponding with the destination address of the UDP message;
The firewall determines server corresponding with the MAC Address, using the corresponding server of the MAC Address as target Server;
The firewall forwards the UDP message to the destination server.
6. a kind of optimization system of UDP message transmission performance, which is characterized in that the optimization system includes: client, fire prevention Wall, server and test device, the test device are connected with the interface of other equipment in optimization system, wherein the survey Trial assembly, which is set, includes:
First obtains module, for obtaining the quantity for the UDP message that the firewall is received from the client;
Second obtains module, in duration of handling up, obtaining UDP message that the server is received from the firewall Quantity;
Packet loss computing module, for calculating packet loss according to the following formula:
Wherein, R is packet loss, x1For the quantity for the UDP message that the firewall is received from the client, x2For the clothes The quantity for the UDP message that business device is received from the firewall;
First comparison module is used for the packet loss and preset threshold;
Second comparison module, for determining the case where packet loss is greater than the preset threshold in first comparison module Under, the ageing time of the mapping relations of the client-cache and the duration of handling up;
Loop module, for determining that the ageing time of mapping relations of the client-cache is less than in second comparison module In the case where the duration of handling up, the ageing time of the mapping relations of the client-cache is adjusted, and after the adjustment, return is held Row described first obtains the operation of module.
7. optimization system according to claim 6, which is characterized in that the loop module includes:
Adjustment unit, for setting duration of handling up for the ageing time of the mapping relations of the client-cache.
8. optimization system according to claim 6, which is characterized in that the test device further include:
Optimal throughput computing module is received for obtaining the firewall in the first acquisition module from the client UDP message quantity before, calculate the optimal throughput of the firewall;
Control module, the quantity that UDP message is received for controlling the firewall are less than or equal to optimal throughput.
9. optimization system according to claim 8, which is characterized in that the optimal throughput computing module includes:
First object packet loss computing unit receives UDP report in pre-set cycle period, controlling the firewall The quantity x of text3, and obtain the quantity x for the UDP message that the server is received from the firewall in the cycle period4, Utilize x3And x4Calculate the target packet loss in the cycle period;
Second target packet loss computing unit, for being adjusted using dichotomy in the case where the target packet loss is greater than zero The firewall receives the quantity of UDP message, and after the adjustment, calculates new target packet loss;
Optimal throughput computing unit continues to adjust the firewall connecing for the size according to the new target packet loss The quantity for receiving UDP message, calculates the optimal throughput of the firewall, wherein the optimal throughput is that the firewall exists The maximum value of UDP message amount can be forwarded in the cycle period.
10. optimization system according to claim 6, which is characterized in that the firewall includes:
Third obtains module, for obtaining the UDP message of client transmission;
4th obtains module, for being closed to mapping relations described in client request by the mapping according to the UDP message System obtains MAC Address corresponding with the destination address of the UDP message;
Determining module, for determining corresponding with MAC Address server, using the corresponding server of the MAC Address as Destination server;
Forwarding module, for forwarding the UDP message to the destination server.
CN201811418081.1A 2018-11-26 2018-11-26 Optimization method and system for UDP message transmission performance Active CN109600273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811418081.1A CN109600273B (en) 2018-11-26 2018-11-26 Optimization method and system for UDP message transmission performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811418081.1A CN109600273B (en) 2018-11-26 2018-11-26 Optimization method and system for UDP message transmission performance

Publications (2)

Publication Number Publication Date
CN109600273A true CN109600273A (en) 2019-04-09
CN109600273B CN109600273B (en) 2020-04-21

Family

ID=65958861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811418081.1A Active CN109600273B (en) 2018-11-26 2018-11-26 Optimization method and system for UDP message transmission performance

Country Status (1)

Country Link
CN (1) CN109600273B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213135A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of fire wall performance test method and device
CN114039880A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114422553A (en) * 2022-01-27 2022-04-29 北京恒济引航科技股份有限公司 Outfield terminal data transmission system and method for intelligent channel connection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404621A (en) * 2008-11-24 2009-04-08 杭州华三通信技术有限公司 Method and routing device for implementing VRRP load balance
CN101494536A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method, apparatus and system for preventing ARP aggression
CN102932249A (en) * 2012-10-10 2013-02-13 杭州华三通信技术有限公司 Method and device for transmitting virtual router redundancy protocol (VRRP) message
CN104579736A (en) * 2013-10-29 2015-04-29 华为技术有限公司 Loop circuit data transmission method and node equipment
US20150304271A1 (en) * 2012-11-28 2015-10-22 Zte Corporation Address resolution protocol buffer and buffering method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404621A (en) * 2008-11-24 2009-04-08 杭州华三通信技术有限公司 Method and routing device for implementing VRRP load balance
CN101494536A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method, apparatus and system for preventing ARP aggression
CN102932249A (en) * 2012-10-10 2013-02-13 杭州华三通信技术有限公司 Method and device for transmitting virtual router redundancy protocol (VRRP) message
US20150304271A1 (en) * 2012-11-28 2015-10-22 Zte Corporation Address resolution protocol buffer and buffering method thereof
CN104579736A (en) * 2013-10-29 2015-04-29 华为技术有限公司 Loop circuit data transmission method and node equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213135A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of fire wall performance test method and device
CN114039880A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114039880B (en) * 2021-11-08 2023-09-05 上海天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114422553A (en) * 2022-01-27 2022-04-29 北京恒济引航科技股份有限公司 Outfield terminal data transmission system and method for intelligent channel connection
CN114422553B (en) * 2022-01-27 2024-02-20 北京恒济引航科技股份有限公司 Intelligent channel connection outfield terminal data transmission system and method

Also Published As

Publication number Publication date
CN109600273B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
KR102030574B1 (en) Method, apparatus and system for transmitting Transmission Control Protocol (TCP) data packets
EP2494743B1 (en) QUALITY OF SERVICE (QoS) BASED SYSTEMS, NETWORKS, AND ADVISORS
US10785663B2 (en) Collaborative communications
CN109600273A (en) A kind of optimization method and system of UDP message transmission performance
US9392081B2 (en) Method and device for sending requests
US9338192B1 (en) Connection management using connection request transfer protocol
US7924721B2 (en) Communication apparatus, transmission control method, and transmission control program
JP2016537898A (en) Malicious attack detection method and apparatus
CN106790675A (en) Load-balancing method, equipment and system in a kind of cluster
WO2018112877A1 (en) Path calculating and access request distributing methods, devices and systems
CN110855741B (en) Service self-adaptive access method and device, storage medium and electronic device
CN104683259A (en) TCP congestion control method and device
EP2608460B1 (en) Method and device for sending messages
WO2019034099A1 (en) Flowlet-based load balancing
CN105812318A (en) Method, controller and system for preventing attack in network
CN103401799A (en) Method and device for realizing load balance
CN108777664A (en) A kind of data package processing method and its equipment, system, storage medium
US20180375950A1 (en) Redirection of client requests to multiple endpoints
CN107835095A (en) A kind of processing method and processing device of daily record
CN109413018B (en) Port scanning method and device
Cao et al. MPTCP-meLearning: a multi-expert learning-based MPTCP extension to enhance multipathing robustness against network attacks
Oljira et al. Mdtcp: Towards a practical multipath transport protocol for telco cloud datacenters
CN103973584B (en) The method and apparatus of the pass-through mode of switching at runtime packet
CN106506522B (en) The management method and device of TCP connection
Hwang et al. FaST: fine-grained and scalable TCP for cloud data center networks

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
GR01 Patent grant
GR01 Patent grant