CN105897615A - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN105897615A CN105897615A CN201510584030.6A CN201510584030A CN105897615A CN 105897615 A CN105897615 A CN 105897615A CN 201510584030 A CN201510584030 A CN 201510584030A CN 105897615 A CN105897615 A CN 105897615A
- Authority
- CN
- China
- Prior art keywords
- link
- communication link
- communication
- downloading rate
- data transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
An embodiment of the invention provides a data transmission method and device. The method comprises the following steps: a first communication link object device port number and a second communication link object device port number that correspond to any business are respectively obtained; first link quality parameters of a first communication link and second link quality parameters of a second communication link are respectively obtained; according to the first link quality parameters and the second link quality parameters, a communication link of an optimum quality is chosen from the first communication link and the second communication link; a communication link object device port number of the chosen communication link is sent to a first CDN node; when any business is conducted on the first CDN node, data is transmitted via a communication link corresponding to the determined object device port number. Via adoption of a technical solution of the data transmission method and device, a port number of each object device is a fixed number, and therefore different communication links can be differentiated via port numbers of object devices without IP address maintenance, and CDN node burdens and system burdens are effectively reduced.
Description
Technical field
The present embodiments relate to communication technical field, particularly relate to a kind of transmission method and device.
Background technology
At CDN (Content Delivery Network;Content distributing network) entered by network between node
During the transmission of row information, the agreement used is TCP (Transmission Control Protocol;
Transmission control protocol).Owing between different CDN node, the communication quality of communication link there are differences, in order to
Ensure the normal transmission of data between CDN node, set up between CDN node based on UDP (User
Datagram Protocol;User data transmission agreement) communication link, make between different CDN node
Data both can be transmitted by TCP link, it is also possible to is transmitted by UDP link, thus protects
Demonstrate,prove the reliability of data transmission.
Based on above-mentioned TCP link and UDP link, by default IP (Internet Protocol)
Location-link identification allocation list, communicates the selection of link;Wherein, described IP address-link identification configuration
Table comprises the corresponding relation between the IP address of each equipment and communication link mark.Concrete, the
One CDN node exists one and safeguards plant maintenance IP address-link identification allocation list, when a CDN saves
Point (the hereinafter referred to as first CDN node) exists any one source device needs and another CDN node (with
Be referred to as down the second CDN node) in purpose equipment when carrying out data transmission, maintenance equipment i.e. passes from needs
Defeated data determine the purpose IP address of purpose equipment, and from described IP address-link identification allocation list
Search the communication link mark that described purpose IP address is corresponding;And referred to by the communication link mark found
The communication link shown, transmits described data.
Owing to each equipment in the first CDN node may be deposited with the equipment in other CDN node substantial amounts of
At data transport behavior, therefore, the maintenance equipment in the first CDN node needs to safeguard substantial amounts of IP address
And the corresponding relation between communication link mark, add the burden of CDN node;Further, due to IP ground
Location-link identification allocation list only preserves the corresponding pass between IP address and the link identification allocation list of static state
System, when the communication link current time communication quality of the communication link mark instruction found is the best, to be passed
Defeated data remain a need for transmitting from the communication link of the communication link mark instruction found, thus cause logical
Letter link blocks up, the problem that data transmission efficiency is low.
As can be seen here, when using technique scheme to carry out data transmission, CDN node needs to safeguard in a large number
IP address and communication link mark corresponding relation, thus cause CDN node burden weight, system maintenance
Difficulty, and the problem that data transmission efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of data transmission method and device, is transmitted across in data at present in order to solving
, there is CDN node burden weight, system maintenance difficulty, and the problem that data transmission efficiency is low in Cheng Zhong.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
The embodiment of the present invention provides a kind of data transmission method, is applied to content distributing network, including:
Obtain the first communication link purpose equipment end slogan and the second communication chain that any one business is corresponding respectively
Road purpose equipment end slogan;Wherein, described first communication link is TCP link, described second communication chain
Road is UDP link;
Obtain the first link quality parameter of described first communication link and described second communication link respectively
Second link quality parameter;
According to described first link quality parameter and the second link quality parameter, from described first communication link and
Described second communication link selects the communication link that link-quality is optimum;
The communication link purpose equipment end slogan selected is sent to the first CDN node, notifies described first
CDN node is when carrying out described any one business, corresponding by the described purpose equipment end slogan chosen
Communication link data.
The embodiment of the present invention provides a kind of data transmission device, including:
Port numbers acquiring unit, for obtaining the first communication link purpose equipment that any one business is corresponding respectively
Port numbers and the second communication link purpose equipment end slogan;Wherein, described first communication link is TCP chain
Road, described second communication link is UDP link;
Link quality parameter acquiring unit, for obtaining the first link-quality of described first communication link respectively
Parameter and the second link quality parameter of described second communication link;
Select unit, for according to described first link quality parameter and the second link quality parameter, from described
First communication link and described second communication link select the communication link that link-quality is optimum;
Transmitting element, sends to the first CDN node for the communication link purpose equipment end slogan that will select;
To notify that described first CDN node, when carrying out described any one business, is set by the described purpose chosen
The communication link data that standby port numbers is corresponding.
In the embodiment of the present invention, obtain the first communication link purpose device port that any one business is corresponding respectively
Number and the second communication link purpose equipment end slogan;Wherein, described first communication link is TCP link,
Described second communication link is UDP link;Obtain the first link-quality of described first communication link respectively
Parameter and the second link quality parameter of described second communication link;According to described first link quality parameter and
Second link quality parameter, selects link-quality from described first communication link and described second communication link
Optimum communication link;The communication link purpose equipment end slogan selected is sent to the first CDN node;
Notify described first CDN node when carrying out described any one business, by the described purpose equipment chosen
The communication link data that port numbers is corresponding.Use embodiment of the present invention technical scheme, due to purpose equipment
Port numbers be fixed value, therefore, CDN node is in data transmission procedure, by the end of purpose equipment
Different communication link distinguished in slogan, effectively need not reduce at local maintenance IP address-link identification allocation list
The burden of CDN node, reduces system maintenance difficulty;Further, real-time judge different communication link
Communication quality, select the more excellent communication link of communication quality to carry out data transmission, it is to avoid communication link blocks up
Problem, is effectively increased data transmission efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below
Accompanying drawing in stating is some embodiments of the present invention, for those of ordinary skill in the art, is not paying
On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is communication system architecture schematic diagram in the embodiment of the present invention;
Fig. 2 is data transmission stream journey figure in the embodiment of the present invention;
Fig. 3 is data transmission device structural representation in the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
Refering to shown in Fig. 1, for communication system architecture schematic diagram in the embodiment of the present invention, this communication system comprises
Multiple CDN node, each CDN node all comprises at least one equipment, and different CDN node it
Between to carry out information by TCP link or UDP link mutual.In the embodiment of the present invention, only with communication system
System comprises the first CDN node and the second CDN node, and the first CDN node and the 2nd CDN save
Carry out the process that information is mutual between point, between the first CDN node and the second CDN node, both set up TCP
Link, as a example by setting up again UDP link, introduces data transmission procedure.
Optionally, any one equipment of above-mentioned first CDN node or the second CDN node is provided with one
Possesses the device of link selection function, for selecting a communication link from TCP link and UDP link
Carry out data transmission;Or, in the first CDN node or the second CDN node, proxy server is set,
This proxy server is for selecting a communication link to carry out data biography from TCP link and UDP link
Defeated.As a example by comprising proxy server in the first CDN node or the second CDN node below, it is situated between in detail
Continue data transmission procedure.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
Embodiment one
Refering to shown in Fig. 2, in the embodiment of the present invention, the first CDN node is to the second CDN node number
According to transmission process, including:
Step 200: obtain the first communication link purpose equipment end slogan corresponding to any one business and respectively
Two communication link purpose equipment end slogans;Wherein, described first communication link is TCP link, described
Two communication links are UDP link.
In the embodiment of the present invention, the first CDN node and the second CDN node all comprise at least one equipment,
For the specified services of each equipment, physical port number is unique value, such as, carries in any one equipment
Physical port number for the port of web-browsing service is 80, provides FTP (File Transfer Protocol;
File transfer protocol (FTP)) physical port number of business is 21.
Optionally, proxy server is performed both by for each the purpose equipment comprised in the second CDN node
Following operation: proxy server reads the physical port that each business that this purpose equipment can provide is corresponding
Number;This physical port number is the first communication link purpose equipment end slogan that any one business is corresponding, by this thing
Reason is after port numbers processes, and the port numbers after the process of acquisition is corresponding second the leading to of this any one business
Letter link purpose equipment end slogan.
Wherein, above-mentioned first communication link is TCP link;Second communication link is UDP link.
Optionally, after being processed by this physical port number, the port numbers after the process of acquisition is that this is any
The second communication link purpose equipment end slogan that one business is corresponding, specifically includes: proxy server is any by this
First communication link purpose equipment end slogan corresponding to one business adds up with default value, obtains cumulative
Value be defined as the second communication link purpose equipment end slogan that this any one business is corresponding;Such as, any one
The physical port number providing the port of web-browsing service in equipment is 80, then this web-browsing service is corresponding
First communication link purpose equipment end slogan is 80, the second communication link purpose that this web-browsing service is corresponding
Equipment end slogan is (a+80), and a is default value.Wherein, concrete answering is preset according to above-mentioned default value
With the aggregate-value of the value of scene setting, this default value and physical port number with any one physical port number the most not
With.
Using technique scheme, for any one business of a purpose equipment, proxy server is according to end
Different communication links distinguished in slogan, and proxy server only needs between maintenance port number and communication link mark
Corresponding relation, owing to the port numbers of the corresponding same business of each equipment is the most identical, therefore, end
The quantity of slogan is far smaller than the quantity of the IP address of large number quipments, and therefore, proxy server need not be safeguarded
Corresponding relation between each communication link mark and the IP address of each equipment, decreases system work
Measure;Additionally, for any one business of a purpose equipment, proxy server only needs management to be second
The purpose equipment end slogan of communication link configuration, need not record the IP of equipment corresponding to each communication link
Address, reduces the maintenance difficulties to data.
Step 210: the first link quality parameter and described second obtaining described first communication link respectively is led to
Second link quality parameter of letter link.
In the embodiment of the present invention, proxy server obtains the first link quality parameter of the first communication link, with
And obtain the second link quality parameter of the second communication link.Wherein, this first link quality parameter is at least wrapped
Include the first downloading rate of the first CDN node;Second link quality parameter at least includes the first CDN node
The second downloading rate and data transmission packet loss.
Optionally, proxy server obtains the process of the first link quality parameter of the first communication link, specifically
Including: any one equipment in the first CDN node simulated by proxy server, by the first communication link from
Second CDN node downloads the first test packet, is obtained from download the first test packet and starts to download
The duration of complete first test packet, wherein, the storage size that this first test packet takies is
Know, and the storage size that the first test packet takies is less than predetermined threshold value, this is because distinct device
Performance there may be difference, when first test packet bigger time, the first link matter that distinct device obtains
Amount parameter there may be difference, takies the less packet of memory space and can weaken distinct device performance difference
The impact that test result is brought, and, use the test packet taking memory space bigger to test
Time, need to expend the longer time, and expend more resource, test result could be obtained;Agency service
Device takies the size of memory space according to the duration obtained and the first test packet, calculates the first communication link
The first downloading rate, and using the first downloading rate as the first link quality parameter of the first communication link.
Optionally, proxy server obtains the process of the second link quality parameter of the second communication link, specifically
Including: any one equipment in the first CDN node simulated by proxy server, by the second communication link from
Second CDN node downloads the first test packet, is obtained from download the first test packet and starts to download
The duration of complete first test packet, wherein, the storage size that this first test packet takies is
Know, and the storage size that the first test packet takies is less than predetermined threshold value, this is because distinct device
Performance there may be difference, when first test packet bigger time, the first link matter that distinct device obtains
Amount parameter there may be difference, takies the less packet of memory space and can weaken distinct device performance difference
The impact that test result is brought, and, use the test packet taking memory space bigger to test
Time, need to expend the longer time, and expend more resource, test result could be obtained;Agency service
Device takies the size of memory space according to the duration obtained and the first test packet, calculates the second communication link
The second downloading rate, and using the second downloading rate as the second link quality parameter of the second communication link.
Optionally, the second test packet of preset number is sent to the second CDN node by proxy server,
Wherein, this preset number pre-sets according to concrete application scenarios;It is also preferred that the left this second test packet accounts for
By the size of memory space less than predetermined threshold value;Lead to carrying out data by TCP link or UDP link
During letter, when proxy server sends packet by TCP link or UDP link, work as opposite end
When equipment receives this packet, feedback message can be sent to proxy server, therefore, for any one the
Two test packets, when proxy server does not receives, in preset duration, the feedback that the second CDN node sends
During message, proxy server i.e. thinks that this any one second test packet does not sends successfully;Proxy server
The second of non-transmission success tests the number of packet to use aforesaid way to determine;Proxy server calculates and does not passes
Ratio between number and the preset number of defeated successful second test packet, leads to this ratio as second
The data transmission packet loss of letter link.
Further, the first link quality parameter can also include first data transmission success rate, the second link
Mass parameter also includes the second data transmission success.Optionally, this first data transmission success rate can be adopted
Use tricks to count and calculate according to the mode of transmission packet loss, i.e. saved to the 2nd CDN by the first communication link
Point sends multiple test packets, detects in the plurality of test bag and sends the number successfully testing packet,
And calculate first data transmission success rate according to this number;In like manner, proxy server passes through the second communication link
Send multiple test packets to the second CDN node, thus obtain the second data transmission success.
Optionally, in the first link quality parameter and the second of the second communication link obtaining the first communication link
During link quality parameter, proxy server uses HTTP (HyperText Transfer Protocol;
HTML (Hypertext Markup Language)), download the first test packet from the second CDN node.
Optionally, proxy server, according to predetermined period, obtains the first chain of described first communication link respectively
Road mass parameter and the second link quality parameter of described second communication link.Wherein, this predetermined period is permissible
Pre-setting according to concrete application scenarios, it is excessive that this predetermined period should not be arranged, to ensure proxy server
Dynamic obtains the first link quality parameter and second chain of described second communication link of the first communication link
Road mass parameter, thus ensure that the communication links that data always more can have at communication quality is defeated.Such as,
Predetermined period is set to five minutes.
Step 220: according to described first link quality parameter and the second link quality parameter, from described first
Communication link and described second communication link select the communication link that link-quality is optimum.
In the embodiment of the present invention, proxy server is according to the first link quality parameter obtained and the second link matter
Amount parameter, selects the communication link of optimum from the first communication link and the second communication link.
Further, when proxy server is according to predetermined period, the of described first communication link is obtained respectively
During the second link quality parameter of one link quality parameter and described second communication link, at proxy server root
According to the first link quality parameter obtained and the second link quality parameter, from the first communication link and the second communication
Before selecting the communication link of optimum in link, proxy server is to the first link quality parameter and the second link
Mass parameter carries out pretreatment;Concrete, proxy server obtains multiple tests that distance current time is nearest
First link quality parameter in cycle, by first link quality parameter of the plurality of test period and current test
First link quality parameter in cycle averages process, and by the first link-quality after handling averagely
Parameter determination is the first link quality parameter of current test period.In like manner, proxy server obtains apart from working as
Second link quality parameter of multiple test periods that the front moment is nearest, by second chain of the plurality of test period
Second link quality parameter of road mass parameter and current test period averages process, and by equalization
The second link quality parameter after process is defined as the second link quality parameter of current test period.
Wherein, above-mentioned handling averagely can be to calculate arithmetic mean of instantaneous value, it is also possible to for geometrical averages-were calculated.
Use technique scheme, proxy server to obtain the first link quality parameter and the second link matter
Amount parameter averages process, it is to avoid the measuring result error that causes due to accident in current period
Big problem, improves the first link quality parameter of final acquisition and the accurate of the second link quality parameter
Property.
Optionally, proxy server according to obtain the first link quality parameter and the second link quality parameter,
From the first communication link and the second communication link, select the communication link of optimum, specifically include: according to described
Data transmission packet loss, is modified described second downloading rate;From described first link quality parameter and
Revised second downloading rate selects the downloading rate of maximum, by communication corresponding for the downloading rate of selection
Link is defined as the communication link that link-quality is optimum.
Optionally, proxy server transmits packet loss according to described data, carries out described second downloading rate
Revise, specifically include: when described data transmission packet loss is less than when presetting packet loss threshold value, by described the
Two downloading rates are defined as revised second downloading rate;Lose when described data transmission packet loss reaches to preset
During bag rate threshold value, revised second downloading rate meets equation below: S=ST × C ÷ LR;Wherein,
S is revised second downloading rate, and ST is the second downloading rate;C is preset constant, according to specifically should
It is adjusted by scene, such as C=0.1;LR is that data transmit packet loss.Optionally, packet loss thresholding is preset
Value pre-sets according to concrete application scenarios difference, if default packet loss threshold value is 10%.
Further, when described first link quality parameter includes first data transmission success rate, the second link
When mass parameter also includes the second data transmission success, proxy server is according to first data transmission success
Rate, and the second data transmission success, the first downloading rate and revised second downloading rate, from institute
State the communication link selecting link-quality optimum in the first communication link and described second communication link;Specifically
, proxy server obtains the weighted value that described first downloading rate is corresponding respectively, and revised second downloads
The weighted value that speed is corresponding, the weighted value that first data transmission success rate is corresponding, the second data transmission success
Corresponding weighted value;According to the weighted value that described first downloading rate is corresponding with the first downloading rate, the first number
According to the weighted value that transmission success rate is corresponding with first data transmission success rate, obtain described first communication link
Communication quality integrated value;Proxy server is according to described revised second downloading rate and revised second
The weighted value that downloading rate is corresponding, the power that the second data transmission success is corresponding with the second data transmission success
Weight values, obtains the communication quality integrated value of described second communication link;From described first communication link and second
In communication link, the communication link selecting communication quality integrated value maximum is defined as the communication that link-quality is optimum
Link.
Optionally, the communication quality integrated value that any one communication link is corresponding meets equation below:
T=a × v+b × s
Wherein, T represents communication quality integrated value;V represents downloading rate;A represents the weighted value of downloading rate;
S represents data transmission success;B represents the weighted value of data transmission success.It is also preferred that the left a < b.
Using technique scheme, proxy server is by calculating the communication quality integrated value of the first communication link
With the communication quality integrated value of the second communication link, from the first communication link and the second communication link, select matter
The communication link that amount is optimum so that the communication link chosen be that downloading rate is the highest and data transmission success
High communication link, thus ensure that the biography of data between follow-up first CDN node and the second CDN node
Defeated.
Step 230: the communication link purpose equipment end slogan selected is sent to the first CDN node, logical
Know described first CDN node when carrying out described any one business, by select described purpose equipment end
The communication link data that slogan is corresponding.
In the embodiment of the present invention, proxy server according to the described any one business obtained in advance corresponding first
Communication link purpose equipment end slogan and the second communication link purpose equipment end slogan, determine the communication chain of selection
Road purpose equipment end slogan, and the purpose equipment end slogan of the communication link selected is sent to a CDN
Node, makes each equipment in the first CDN node when carrying out specified services, and the first CDN node can
Obtain the purpose equipment end slogan that this business is corresponding.
In the embodiment of the present invention, each equipment in the first CDN node when carrying out any one business, energy
Enough obtain the purpose equipment end slogan that this any one business is corresponding, and it is corresponding to obtain this purpose equipment end slogan
Communication link;Such as, during device A requested webpage browse service in the first CDN node, if detecting
The port numbers of current test period is 80, then device A selects TCP link and the second CDN node to carry out
Information is mutual;If detect the port numbers of current period for (a+80), then device A select UDP link with
It is mutual that second CDN node carries out information.
Further, the equipment in the first CDN node sends and also includes purpose to the data of purpose equipment
The IP address of equipment;After first CDN node obtains described purpose equipment end slogan, set according to described purpose
Described data are led to by the communication link mark that standby port numbers is corresponding, and the IP address of described purpose equipment
Cross described communication link and send the purpose equipment to the instruction of IP address.
Use embodiment of the present invention technical scheme, owing to the port numbers of each purpose equipment is fixed value, because of
This, distinguish different communication link by the port numbers of purpose equipment, CDN node in data transmission procedure,
Substantial amounts of IP address need not be safeguarded, effectively reduce the burden of CDN node, and system maintenance difficulty;
Further, the communication link selecting communication quality optimum carries out data transmission, it is possible to be effectively improved bandwidth availability ratio.
Based on technique scheme, refering to shown in Fig. 3, the embodiment of the present invention also provides for a kind of data transmission dress
Put, be applied to content distributing network, including port numbers acquiring unit 30, link quality parameter acquiring unit
31, selection unit 32, transmitting element 33, wherein:
Port numbers acquiring unit 30, sets for the first communication link purpose obtaining any one business corresponding respectively
Standby port numbers and the second communication link purpose equipment end slogan;Wherein, described first communication link is TCP
Link, described second communication link is UDP link;
Link quality parameter acquiring unit 31, for obtaining the first link matter of described first communication link respectively
Amount parameter and the second link quality parameter of described second communication link;
Select unit 32, for according to described first link quality parameter and the second link quality parameter, from institute
State the communication link selecting link-quality optimum in the first communication link and described second communication link;
Transmitting element 33, the communication link purpose equipment end slogan for selecting sends to a CDN joint
Point;With notify described first CDN node when carrying out described any one business, by the described mesh chosen
Communication link data corresponding to equipment end slogan.
Wherein, described link quality parameter acquiring unit 31, specifically for: for described first communication link,
Download the first test packet from the second CDN node, obtain the first downloading rate, download described first
Speed is defined as described first link quality parameter;For described second communication link, from the 2nd CDN joint
Point downloads the first test packet, obtains the second downloading rate;And by the second test packet of preset number
Send to the second CDN node, obtain data transmission packet loss;By described second downloading rate and described number
It is defined as described second link quality parameter according to transmission packet loss.
Optionally, described selection unit 32, specifically for: transmit packet loss according to described data, to described
Second downloading rate is modified;Select from described first downloading rate and revised second downloading rate
Maximum downloading rate, is defined as optimum the leading to of link-quality by communication link corresponding for the downloading rate of selection
Letter link.
Described selection unit 32 transmits packet loss according to described data, repaiies described second downloading rate
Just, specifically include: when described data transmission packet loss is less than when presetting packet loss threshold value, by described second
Downloading rate is defined as revised second downloading rate;When described data transmission packet loss reaches to preset packet loss
During rate threshold value, revised second downloading rate meets equation below: S=ST × C ÷ LR;Wherein, S
For revised second downloading rate, ST is the second downloading rate;C is preset constant, and LR is that data pass
Defeated packet loss.
Described first link quality parameter also includes first data transmission success rate, and the second link quality parameter is also
Including the second data transmission success;Described selection unit 32, specifically for: according to described first link matter
Amount parameter and the second link quality parameter, select from described first communication link and described second communication link
The communication link that link-quality is optimum, specifically includes: obtain the weight that described first downloading rate is corresponding respectively
Value, the weighted value that described revised second downloading rate is corresponding, described first data transmission success rate is corresponding
Weighted value, the weighted value that described second data transmission success is corresponding;According to described first downloading rate and
The weighted value that described first downloading rate is corresponding, described first data transmission success rate and described first data pass
The weighted value that defeated success rate is corresponding, obtains the communication quality integrated value of described first communication link;According to described
The weighted value that revised second downloading rate is corresponding with described revised second downloading rate, described second
The weighted value that data transmission success is corresponding with described second data transmission success, obtains described second communication
The communication quality integrated value of link;From described first communication link and the second communication link, select communication matter
The communication link of amount integrated value maximum is defined as the communication link that link-quality is optimum.
In sum, for any one business, proxy server obtains that this any one business is corresponding respectively
One communication link purpose equipment end slogan and the second communication link purpose equipment end slogan;Obtain described respectively
First link quality parameter of one communication link and the second link quality parameter of described second communication link;Root
According to described first link quality parameter and the second link quality parameter, from described first communication link and described
Two communication links select the communication link that link-quality is optimum;The communication link purpose device port that will select
Number send to the first CDN node;Notify described first CDN node when carrying out described any one business,
By the communication link data that the described purpose equipment end slogan chosen is corresponding.Use the embodiment of the present invention
Technical scheme, owing to the port numbers of purpose equipment is fixed value, therefore, CDN node is transmitted across in data
Cheng Zhong, distinguishes different communication link by the port numbers of purpose equipment, need not be at local maintenance IP address-chain
Line allocation list, effectively reduces the burden of CDN node, reduces system maintenance difficulty;Further,
The communication quality of real-time judge different communication link, the communication link selecting communication quality more excellent carries out data biography
Defeated, it is to avoid communication link congestion problems, it is effectively increased data transmission efficiency.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each embodiment
Or the method described in some part of embodiment.
Last it is noted that above example is only in order to illustrate the technical scheme of the embodiment of the present invention, rather than
It is limited;Although the embodiment of the present invention being described in detail with reference to previous embodiment, this area
Those of ordinary skill is it is understood that the technical scheme described in foregoing embodiments still can be repaiied by it
Change, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make phase
The essence answering technical scheme departs from the spirit and scope of the embodiment of the present invention each embodiment technical scheme.
Claims (10)
1. a data transmission method, is applied to content distributing network CDN, it is characterised in that described side
Method includes:
Obtain the first communication link purpose equipment end slogan and the second communication link mesh that any one business is corresponding
Equipment end slogan;Wherein, described first communication link is transmission control protocol TCP link, described
Two communication links are data user's agreement UDP link;
Obtain the first link quality parameter of described first communication link and described second communication link respectively
Second link quality parameter;
According to described first link quality parameter and the second link quality parameter, from described first communication link and
Described second communication link selects the communication link that link-quality is optimum;
The communication link purpose equipment end slogan selected is sent to the first CDN node, notifies described first
CDN node is when carrying out described any one business, corresponding by the described purpose equipment end slogan chosen
Communication link data.
Method the most according to claim 1, it is characterised in that obtain described first communication chain respectively
First link quality parameter on road and the second link quality parameter of described second communication link, specifically include:
For described first communication link, download the first test packet from the second CDN node, obtain the
One downloading rate, is defined as described first link quality parameter by described first downloading rate;
For described second communication link, download the first test packet from the second CDN node, obtain the
Two downloading rates;And the second test packet of preset number is sent to the second CDN node, obtain number
According to transmission packet loss;Described second downloading rate and described data are transmitted packet loss and is defined as described second chain
Road mass parameter.
Method the most according to claim 2, it is characterised in that according to described first link-quality ginseng
Number and the second link quality parameter, select link from described first communication link and described second communication link
The communication link of optimal quality, specifically includes:
Transmit packet loss according to described data, described second downloading rate is modified;
The downloading rate of maximum is selected from described first downloading rate and revised second downloading rate, will
The communication link that the downloading rate of selection is corresponding is defined as the communication link that link-quality is optimum.
Method the most according to claim 3, it is characterised in that transmit packet loss according to described data,
Described second downloading rate is modified, specifically includes:
When described data transmission packet loss is less than when presetting packet loss threshold value, by true for described second downloading rate
It is set to revised second downloading rate;
When described data transmission packet loss reaches to preset packet loss threshold value, revised second downloading rate
Meet equation below: S=ST × C ÷ LR;Wherein, S is revised second downloading rate, and ST is
Two downloading rates;C is preset constant, and LR is that data transmit packet loss.
Method the most according to claim 4, it is characterised in that described first link quality parameter is also
Including first data transmission success rate, the second link quality parameter also includes the second data transmission success;
According to described first link quality parameter and the second link quality parameter, from described first communication link and
Described second communication link selects the communication link that link-quality is optimum, specifically includes:
Obtain the weighted value that described first downloading rate is corresponding, described revised second downloading rate pair respectively
The weighted value answered, the weighted value that described first data transmission success rate is corresponding, described second data transmission success
The weighted value that rate is corresponding;
According to the weighted value that described first downloading rate is corresponding with described first downloading rate, described first data
The weighted value that transmission success rate is corresponding with described first data transmission success rate, obtains described first communication link
Communication quality integrated value;
According to the power that described revised second downloading rate is corresponding with described revised second downloading rate
Weight values, the weighted value that described second data transmission success is corresponding with described second data transmission success, obtains
Take the communication quality integrated value of described second communication link;
From described first communication link and the second communication link, select the communication that communication quality integrated value is maximum
Link is defined as the communication link that link-quality is optimum.
6. a data transmission device, is applied to content distributing network CDN, it is characterised in that including:
Port numbers acquiring unit, for obtaining the first communication link purpose equipment that any one business is corresponding respectively
Port numbers and the second communication link purpose equipment end slogan;Wherein, described first communication link controls for transmission
Agreement TCP link, described second communication link is data user's agreement UDP link;
Link quality parameter acquiring unit, for obtaining the first link-quality of described first communication link respectively
Parameter and the second link quality parameter of described second communication link;
Select unit, for according to described first link quality parameter and the second link quality parameter, from described
First communication link and described second communication link select the communication link that link-quality is optimum;
Transmitting element, sends to the first CDN node for the communication link purpose equipment end slogan that will select;
To notify that described first CDN node, when carrying out described any one business, is set by the described purpose chosen
The communication link data that standby port numbers is corresponding.
Device the most according to claim 6, it is characterised in that described link quality parameter obtains single
Unit, specifically for:
For described first communication link, download the first test packet from the second CDN node, obtain the
One downloading rate, is defined as described first link quality parameter by described first downloading rate;
For described second communication link, download the first test packet from the second CDN node, obtain the
Two downloading rates;And the second test packet of preset number is sent to the second CDN node, obtain number
According to transmission packet loss;Described second downloading rate and described data are transmitted packet loss and is defined as described second chain
Road mass parameter.
Device the most according to claim 7, it is characterised in that described selection unit, specifically for:
Transmit packet loss according to described data, described second downloading rate is modified;
The downloading rate of maximum is selected from described first downloading rate and revised second downloading rate, will
The communication link that the downloading rate of selection is corresponding is defined as the communication link that link-quality is optimum.
Device the most according to claim 8, it is characterised in that described selection unit is according to described number
According to transmission packet loss, described second downloading rate is modified, specifically includes:
When described data transmission packet loss is less than when presetting packet loss threshold value, by true for described second downloading rate
It is set to revised second downloading rate;
When described data transmission packet loss reaches to preset packet loss threshold value, revised second downloading rate
Meet equation below: S=ST × C ÷ LR;Wherein, S is revised second downloading rate, and ST is
Two downloading rates;C is preset constant, and LR is that data transmit packet loss.
Device the most according to claim 9, it is characterised in that described first link quality parameter is also
Including first data transmission success rate, the second link quality parameter also includes the second data transmission success;
Described selection unit, specifically for:
According to described first link quality parameter and the second link quality parameter, from described first communication link and
Described second communication link selects the communication link that link-quality is optimum, specifically includes:
Obtain the weighted value that described first downloading rate is corresponding, described revised second downloading rate pair respectively
The weighted value answered, the weighted value that described first data transmission success rate is corresponding, described second data transmission success
The weighted value that rate is corresponding;
According to the weighted value that described first downloading rate is corresponding with described first downloading rate, described first data
The weighted value that transmission success rate is corresponding with described first data transmission success rate, obtains described first communication link
Communication quality integrated value;
According to the power that described revised second downloading rate is corresponding with described revised second downloading rate
Weight values, the weighted value that described second data transmission success is corresponding with described second data transmission success, obtains
Take the communication quality integrated value of described second communication link;
From described first communication link and the second communication link, select the communication that communication quality integrated value is maximum
Link is defined as the communication link that link-quality is optimum.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510584030.6A CN105897615A (en) | 2015-09-14 | 2015-09-14 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510584030.6A CN105897615A (en) | 2015-09-14 | 2015-09-14 | Data transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105897615A true CN105897615A (en) | 2016-08-24 |
Family
ID=57002259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510584030.6A Pending CN105897615A (en) | 2015-09-14 | 2015-09-14 | Data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105897615A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110071977A (en) * | 2019-04-25 | 2019-07-30 | 北京风行极客科技有限公司 | A kind of data transmission method and device |
CN110094756A (en) * | 2019-04-30 | 2019-08-06 | 邵东弘邦电子有限公司 | The cigar lighter control method and cigar lighter with function of smoking stop based on Internet of Things |
CN110581801A (en) * | 2018-06-08 | 2019-12-17 | 阿里巴巴集团控股有限公司 | network adjusting method and device for content distribution network |
CN110637446A (en) * | 2017-05-17 | 2019-12-31 | 三星电子株式会社 | TCP proxy device assisted communication method and apparatus in wireless communication |
CN111294385A (en) * | 2020-01-02 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN112202643A (en) * | 2020-10-12 | 2021-01-08 | 成都知道创宇信息技术有限公司 | Network detection method, device, test host and storage medium |
CN113872824A (en) * | 2021-08-19 | 2021-12-31 | 网宿科技股份有限公司 | CDN network quality detection method, system, server and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079840A (en) * | 2007-02-12 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A data transmission system and method |
CN102368736A (en) * | 2011-11-10 | 2012-03-07 | 华为技术有限公司 | Message sending method and equipment |
US20120151550A1 (en) * | 2009-08-20 | 2012-06-14 | Bin Zhang | Method for switching node main-standby controllers based on content delivery network (cdn) and cdn thereof |
CN102594703A (en) * | 2012-03-19 | 2012-07-18 | 广州华多网络科技有限公司 | Relay-node-based Internet communication system and communication path selection method |
CN103118083A (en) * | 2013-01-21 | 2013-05-22 | 北京交通大学 | Method and device of transmitting service messages |
CN104283780A (en) * | 2014-09-26 | 2015-01-14 | 深圳市华为技术软件有限公司 | Method and device for establishing data transmission route |
-
2015
- 2015-09-14 CN CN201510584030.6A patent/CN105897615A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079840A (en) * | 2007-02-12 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A data transmission system and method |
US20120151550A1 (en) * | 2009-08-20 | 2012-06-14 | Bin Zhang | Method for switching node main-standby controllers based on content delivery network (cdn) and cdn thereof |
CN102368736A (en) * | 2011-11-10 | 2012-03-07 | 华为技术有限公司 | Message sending method and equipment |
CN102594703A (en) * | 2012-03-19 | 2012-07-18 | 广州华多网络科技有限公司 | Relay-node-based Internet communication system and communication path selection method |
CN103118083A (en) * | 2013-01-21 | 2013-05-22 | 北京交通大学 | Method and device of transmitting service messages |
CN104283780A (en) * | 2014-09-26 | 2015-01-14 | 深圳市华为技术软件有限公司 | Method and device for establishing data transmission route |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110637446A (en) * | 2017-05-17 | 2019-12-31 | 三星电子株式会社 | TCP proxy device assisted communication method and apparatus in wireless communication |
CN110581801A (en) * | 2018-06-08 | 2019-12-17 | 阿里巴巴集团控股有限公司 | network adjusting method and device for content distribution network |
CN110581801B (en) * | 2018-06-08 | 2022-06-28 | 阿里巴巴集团控股有限公司 | Network adjustment method and device for content distribution network |
CN110071977A (en) * | 2019-04-25 | 2019-07-30 | 北京风行极客科技有限公司 | A kind of data transmission method and device |
CN110071977B (en) * | 2019-04-25 | 2022-04-01 | 北京风行极客科技有限公司 | Data transmission method and device |
CN110094756A (en) * | 2019-04-30 | 2019-08-06 | 邵东弘邦电子有限公司 | The cigar lighter control method and cigar lighter with function of smoking stop based on Internet of Things |
CN111294385A (en) * | 2020-01-02 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN112202643A (en) * | 2020-10-12 | 2021-01-08 | 成都知道创宇信息技术有限公司 | Network detection method, device, test host and storage medium |
CN112202643B (en) * | 2020-10-12 | 2022-03-29 | 成都知道创宇信息技术有限公司 | Network detection method, device, test host and storage medium |
CN113872824A (en) * | 2021-08-19 | 2021-12-31 | 网宿科技股份有限公司 | CDN network quality detection method, system, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105897615A (en) | Data transmission method and device | |
CN102098301B (en) | The adaptive data transmission method of multilink and system | |
CN101286937B (en) | Network flow control method, device and system | |
CN103259696B (en) | Network bandwidth detection method, device and the network equipment | |
CN103716208B (en) | Support network management, system, interchanger and the network of elephant stream | |
CN103067214B (en) | For testing the method for web site performance, client, server and system | |
CN102752792A (en) | Method, device and system for monitoring internet service quality of mobile terminal | |
CN109787921A (en) | CDN bandwidth scheduling method, acquisition and dispatch server and storage medium | |
CN106411774A (en) | Method and device for controlling transaction data volume | |
CN104601467B (en) | A kind of method and apparatus for sending message | |
CN108234247A (en) | A kind of method and system for detecting network quality | |
CN112217725B (en) | Delay optimization method based on edge calculation | |
CN108322401A (en) | The control method and device of network transmission congestion | |
CN105049485B (en) | A kind of Load-aware cloud computing system towards real time video processing | |
JP5916877B2 (en) | Method, system, and computer program for testing a DIAMETER routing node | |
CN103348719B (en) | Communication system, base station and the game method for network attack | |
CN106412043B (en) | CDN network flow bootstrap technique and device | |
US20220053373A1 (en) | Communication apparatus, communication method, and program | |
CN107222403A (en) | A kind of data transmission method, system and electronic equipment | |
CN110139167A (en) | Data processing method, server and data acquisition equipment | |
CN114513467A (en) | Network traffic load balancing method and device of data center | |
CN104219111B (en) | Link bundling method and communication system based on MLPPP | |
CN107342946A (en) | A kind of communication means and terminal based on auto-negotiation | |
EP3560152B1 (en) | Determining the bandwidth of a communication link | |
CN104639557B (en) | A kind of method, system and equipment for establishing PCEP sessions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |
|
WD01 | Invention patent application deemed withdrawn after publication |