CN105610727A - Network data transmission method and device - Google Patents

Network data transmission method and device Download PDF

Info

Publication number
CN105610727A
CN105610727A CN201510752868.1A CN201510752868A CN105610727A CN 105610727 A CN105610727 A CN 105610727A CN 201510752868 A CN201510752868 A CN 201510752868A CN 105610727 A CN105610727 A CN 105610727A
Authority
CN
China
Prior art keywords
contract
project
giving out
transmission rate
clock
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
CN201510752868.1A
Other languages
Chinese (zh)
Other versions
CN105610727B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201510752868.1A priority Critical patent/CN105610727B/en
Publication of CN105610727A publication Critical patent/CN105610727A/en
Application granted granted Critical
Publication of CN105610727B publication Critical patent/CN105610727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a network data transmission method and device which are applied to the end-to-end asynchronous transmission network. The method comprises that when the practical operation parameter of a network link from the packet sending end to the packet receiving end belongs to a preset low-load state and the data bulk received by the packet receiving end in a preset packet sending time is lower than the data bulk sent by the packet sending end, a service sending rate of the packet sending end is adjusted according to a first preset strategy; and when the service sending rate of the packet sending end is adjusted to the minimal service sensing rate, but the data bulk received at the packet receiving end in the preset packet sending time is still lower than the data bulk sent by the packet sending end, a TCP message with clock quality level information is transmitted in the network link from the packet sending end to the packet receiving end to carry out clock synchronization. According to the network data transmission method and device provided by the invention, packet loss in the data transmission process of the asynchronous network is reduced.

Description

A kind of network data transmission method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of network data transmission method and device.
Background technology
In Ethernet, traditional simultaneous asynchronous data transmissions is carried out with the form of the bag that transmits and receive data. under perfect condition, the number of data packets that packet receiving termination the is received number of data packets that end sends that equals to give out a contract for a project. and because the message transmitting spped rate between each node, receiving velocity and flow in Ethernet all have suddenly, therefore, in Ethernet, each equipment all adopts caching mechanism, what while carrying out the message interaction between level and smooth different nodes, produce is sudden. specifically, each equipment sets in advance the spatial cache of fixed size. with transmission control protocol (TCP, TransmissionControlProtocol)/procotol (IP, InternetProtocol) sliding window in standard and caching mechanism are that example describes, the end of giving out a contract for a project writes transmission buffer memory the message that will send, as shown in Figure 1, now, sending buffer memory is used for temporarily depositing: the message data that the end of giving out a contract for a project is ready for sending and the end of giving out a contract for a project have sent but met Bao Duan not yet confirms the data that correctly receive, wherein, the message data that has been identified reception can be deleted from send buffer memory, therefore, sending buffer memory overlaps with the rear edge of send window. packet receiving end, from receiving the message byte information that reads reception buffer memory, as shown in Figure 2, receives buffer memory and is used for temporarily depositing: arrive according to the order of sequence but not yet receiving end confirm the correct data message receiving and the data message not arriving according to the order of sequence.
But, in real network, due to reasons such as physical circuit fault, equipment fault, virus attack, network congestion, routing iinformation mistakes, conventionally can't there is the result of the perfect condition of transfer of data. Packet receiving end cannot normally receive the total data that the end of giving out a contract for a project is sent, that is, packet loss occurs whole network system in data transmission procedure, thus, causes the information that packet receiving termination is received to occur disappearance, and then can traffic affecting proper communication. In the business that above-mentioned this situation has higher requirements on network performance in video communication etc. impact more severe, therefore, how reducing transfer of data packet loss in ethernet network is a problem of needing solution badly.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of network data transmission method and device, be used for reducing the packet loss in asynchronous network data transmission procedure.
In order to reach above-mentioned technical purpose, the invention provides a kind of network data transmission method, be applied to end-to-end asynchronous transmission network, comprise: when giving out a contract for a project, end belongs to default low load condition to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, according to the give out a contract for a project business transmission rate of end of the first preset strategy adjustment; When the business transmission rate of the end of giving out a contract for a project is adjusted into after the minimum transmission rate of business, when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the TCP message that carries clock quality class information to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous.
Further, the method also comprises: when giving out a contract for a project, end belongs to default high load condition to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume of the end transmission of giving out a contract for a project, the TCP message that carries Precision Time Protocol (PTP, PreciousTimeProtocol) field to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous.
Further, the described TCP message that carries PTP field to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous, comprising:
At the end of giving out a contract for a project to determining through consultation clock principal and subordinate attribute between every two the connected network nodes on the network link of packet receiving end;
Master clock side sends the Announce message that carries master clock information to from clock side;
Described master clock side transmission Sync message is to described from clock side, and described Sync message carries the transmitting time stamp t1 of described Sync message;
Stab t2 the described time of advent of recording Sync message from clock side, and send Delay_Req message to described master clock side, and described Delay_Req message carries the transmitting time stamp t3 of described Delay_Req message;
Described master clock side transmission Delay_Resp message is to described from clock side, and described Delay_Resp message carries the time of reception stamp t4 of master clock side to Delay_Req message;
Described from clock side according to described timestamp t1, t2, t3 and t4, determine master clock side and poor and master clock and the time difference from clock from the two-way average delay between clock side, and according to described two-way average delay poor and time difference adjust from clock to synchronize with master clock, wherein, described two-way average delay is poor is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
Further, described according to the first preset strategy adjustment give out a contract for a project end business transmission rate comprise:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M gives out a contract for a project to hold the network link maximum bandwidth of packet receiving end, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is the frequency deviation that network end-to-end produces,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, the data volume that end sends if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project equals to give out a contract for a project, according to the give out a contract for a project business transmission rate of end of the second preset strategy adjustment;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the business packet sending speed of adjusting the end of giving out a contract for a project is the minimum transmission rate of business, wherein, the minimum transmission rate V of described businessmin=m/8, the network demand bandwidth that m is basic service.
Further, described according to the second preset strategy adjustment give out a contract for a project end business transmission rate comprise:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
Further, the described TCP message that carries clock quality class information to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous, comprising:
Know the timing reference input grade of peer node according to the TCP message receiving to the network node on the network link of packet receiving end at the end of giving out a contract for a project;
Described network node is the timing reference input grade of local reference clock source grade and peer node relatively, when local reference clock source grade is during lower than the timing reference input grade of peer node, using the timing reference input of peer node as current local reference clock source.
Further, described timing reference input grade comprises from high to low: reference clock, transit exchange's clock, local office clock, synchronous equipment timing source, synchronizing quality are not known and should be as not synchronous.
The present invention also provides a kind of network data transmission device, be applied to the network node of end-to-end asynchronous transmission network, comprise: speed adjusting module, for belonging to default low load condition when the end of giving out a contract for a project to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, according to the give out a contract for a project business transmission rate of end of the first preset strategy adjustment; The first synchronization module, after being the minimum transmission rate of business for the business transmission rate of the end of giving out a contract for a project when the adjustment of described speed adjusting module, when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume of the end transmission of giving out a contract for a project, the TCP message that clock quality class information is carried in transmission carries out clock synchronous.
Further, this device also comprises: the second synchronization module, for belonging to default high load condition when the end of giving out a contract for a project to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume of the end transmission of giving out a contract for a project, the TCP message that PTP field is carried in transmission carries out clock synchronous.
Further, described the second synchronization module, the TCP message that carries PTP field for transmitting carries out clock synchronous, comprising:
When described network node is during as master clock side, for the Announce message that sends the information when main of carrying to from clock side; Send Sync message to from clock side, and described Sync message carries the transmitting time stamp t1 of described Sync message; Receiving the Delay_Req message sending from clock side, send Delay_Resp message to from clock side, and described Delay_Resp message is carrying the time of reception stamp t4 of master clock side to Delay_Req message;
When described network node is when from clock side, carry the Announce message of master clock information and carry the Sync message of message transmitting time stamp t1 for receiving successively; Record the time of advent of Sync message and stab t2, and send the Delay_Req message that carries message transmitting time stamp t3 to master clock side; The Delay_Resp message of the time of reception stamp t4 of master clock side to Delay_Req message is carried in reception; According to described timestamp t1, t2, t3 and t4, determine master clock side and poor and master clock and the time difference from clock from the two-way average delay between clock side, and according to described two-way average delay poor and time difference adjust from clock to synchronize with master clock, wherein, described two-way average delay is poor is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
Further, described speed adjusting module, for the business transmission rate of the end of giving out a contract for a project according to the first preset strategy adjustment, comprising:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M gives out a contract for a project to hold the network link maximum bandwidth of packet receiving end, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is the frequency deviation that network end-to-end produces,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, the data volume that end sends if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project equals to give out a contract for a project, according to the give out a contract for a project business transmission rate of end of the second preset strategy adjustment;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the business packet sending speed of adjusting the end of giving out a contract for a project is the minimum transmission rate of business, wherein, the minimum transmission rate V of described businessmin=m/8, the network demand bandwidth that m is basic service.
Further, described speed adjusting module, for the business transmission rate of the end of giving out a contract for a project according to the second preset strategy adjustment, comprising:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
Further, described the first synchronization module, the TCP message that carries clock quality class information for transmitting carries out clock synchronous, comprising: the timing reference input grade of knowing peer node according to the TCP message receiving; The relatively timing reference input grade of local reference clock source grade and peer node, when local reference clock source grade is during lower than the timing reference input grade of peer node, using the timing reference input of peer node as current local reference clock source.
Further, described timing reference input grade comprises from high to low: reference clock, transit exchange's clock, local office clock, synchronous equipment timing source, synchronizing quality are not known and should be as not synchronous.
By the present invention, when giving out a contract for a project, end belongs to default low load condition to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, according to the give out a contract for a project business transmission rate of end of the first preset strategy adjustment; When the business transmission rate of the end of giving out a contract for a project is adjusted into after the minimum transmission rate of business, when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the TCP message that carries clock quality class information to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous. So, at end-to-end asynchronous transmission network during in low load condition, by the business transmission rate that reduces to give out a contract for a project and hold, reduce the current link utilization of network, increase thus nodes and remain available buffer memory and value, thereby without the time of packet loss, reduce Network Packet Loss probability of happening in increase network; In the time that the business transmission rate of holding by reducing to give out a contract for a project causes Network to meet the demands, by ICP/IP protocol in conjunction with clock quality grade coding techniques, clock quality class information is carried in ICP/IP protocol message to be transmitted, by high-quality, can follow the tracks of synchronous other clock of one-level reference clock signal, make the Ethernet system of asynchronous transmission become the Ethernet system of a synchronous transfer, greatly increase without the packet loss time, and then reduced the generation probability of Network Packet Loss.
Further, when giving out a contract for a project, end belongs to default high load condition to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the TCP message that carries PTP field to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous. So, at end-to-end asynchronous transmission network during in high load condition, by PTP simultaneous techniques, make the precision clock in distributed network keep synchronizeing with other clock, high-precision frequency is provided, and under the prerequisite that meets precision (up-downgoing time delay is consistent), realize the synchronous of high-precision frequency and time.
Brief description of the drawings
Fig. 1 is the schematic diagram of transmission buffer memory of end of giving out a contract for a project in prior art;
Fig. 2 is the schematic diagram of the reception buffer memory of packet receiving end in prior art;
Fig. 3 is application scenarios schematic diagram of the present invention;
The flow chart of the network data transmission method that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 is the TCP/IP message format figure that carries temporal quality grade Synchronization Control (SC, SynchronizationControl) field in the embodiment of the present invention;
Fig. 6 is the TCP/IP message format figure that carries PTP message field (MFLD) in the embodiment of the present invention;
The schematic diagram of the network data transmission device that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, embodiments of the invention are elaborated, should be appreciated that following illustrated embodiment, only for description and interpretation the present invention, is not intended to limit the present invention.
The network data transmission method that the embodiment of the present invention provides, is applied to end-to-end asynchronous transmission network, as shown in Figure 3. In end-to-end asynchronous transmission Ethernet, in the time receiving and dispatching message traffic between two network nodes, a network node is the end of giving out a contract for a project, and another network node is packet receiving end, and intermediate network node carries out message repeating. It is for example V that the end of giving out a contract for a project is fixed packet sending speed at full capacity, and the end of giving out a contract for a project sends the Ethernet message of fixing frame length, if the duration of giving out a contract for a project is T, the end of giving out a contract for a project amounts to and sends message amount Q=V*T, and packet receiving end amounts to and receives message amount Q '. When the message amount Q ' that in duration T, packet receiving termination is received when giving out a contract for a project is less than the message amount Q of the end transmission of giving out a contract for a project, in ethernet network, there is data packet loss. Wherein, the data receiver situation of packet receiving end is fed back to the end of giving out a contract for a project by ethernet test instrument.
For end-to-end asynchronous transmission network, no matter be to send buffer memory or receive buffer memory, its size is all default fixed value, in the time of network operation state, conventionally can not change, and data message amount is also fixed value, thus, the transmission rate of ether data message directly affected buffer memory by sky to the time size of filling up, i.e. time of packet loss not.
The flow chart of the network data transmission method that Fig. 4 provides for the embodiment of the present invention. As shown in Figure 4, the network data transmission method that the present embodiment provides comprises the following steps:
Step 401: end belongs to default low load condition to the actual operation parameters of the network link of packet receiving end when giving out a contract for a project, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, according to the give out a contract for a project business transmission rate of end of the first preset strategy adjustment.
In this, default low load condition is for example less than network link peak use rate for the end of giving out a contract for a project to the network link practical efficiency of packet receiving end, and the end of giving out a contract for a project is less than or equal to the half of network link maximum load to the network link actual loading of packet receiving end.
Wherein, the end of giving out a contract for a project for example comprises as the network node of end of giving out a contract for a project, network node and intermediate node as packet receiving end to the network node on the network link of packet receiving end. In this, the end of giving out a contract for a project can directly be adjusted business transmission rate according to the first preset strategy. Or, in end-to-end asynchronous transmission network, arrange and be independent of as the network node of end of giving out a contract for a project, as the management node outside network node and the intermediate node of packet receiving end, determined the business transmission rate of the end of giving out a contract for a project after adjusting according to the first preset strategy by management node, and the business transmission rate that giving out a contract for a project after adjusting holds is indicated to the network node as the end of giving out a contract for a project. But the present invention does not limit this.
Further, described according to the first preset strategy adjustment give out a contract for a project end business transmission rate comprise:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M gives out a contract for a project to hold the network link maximum bandwidth of packet receiving end, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is the frequency deviation that network end-to-end produces,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, the data volume that end sends if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project equals to give out a contract for a project, according to the give out a contract for a project business transmission rate of end of the second preset strategy adjustment;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the business packet sending speed of adjusting the end of giving out a contract for a project is the minimum transmission rate of business, wherein, the minimum transmission rate V of described businessmin=m/8, the network demand bandwidth that m is basic service.
Further, described according to the second preset strategy adjustment give out a contract for a project end business transmission rate comprise:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
Step 402: when the business transmission rate of the end of giving out a contract for a project is adjusted into after the minimum transmission rate of business, when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the TCP message that carries clock quality class information to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous.
Further, the described TCP message that carries clock quality class information to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous, comprising:
Know the timing reference input grade of peer node according to the TCP message receiving to the network node on the network link of packet receiving end at the end of giving out a contract for a project;
Described network node is the timing reference input grade of local reference clock source grade and peer node relatively, when local reference clock source grade is during lower than the timing reference input grade of peer node, using the timing reference input of peer node as current local reference clock source.
Wherein, described timing reference input grade comprises from high to low: reference clock (PRC), transit exchange's clock (TNC), local office clock (LNC), synchronous equipment timing source (SETS), synchronizing quality are not known (UNKNOWN) and should not be used as synchronous (DNU).
Step 403: end belongs to default high load condition to the actual operation parameters of the network link of packet receiving end when giving out a contract for a project, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the TCP message that carries PTP field to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous.
In this, default high load condition for example equals network link peak use rate for the end of giving out a contract for a project to the network link practical efficiency of packet receiving end, or the end of giving out a contract for a project is greater than the half of network link maximum load to the network link actual loading of packet receiving end.
Further, the described TCP message that carries PTP field to transmission on the network link of packet receiving end at the end of giving out a contract for a project carries out clock synchronous, comprising:
At the end of giving out a contract for a project to determining through consultation clock principal and subordinate attribute between every two the connected network nodes on the network link of packet receiving end;
Master clock side sends the Announce message that carries master clock information to from clock side;
Described master clock side transmission Sync message is to described from clock side, and described Sync message carries the transmitting time stamp t1 of described Sync message;
Stab t2 the described time of advent of recording Sync message from clock side, and send Delay_Req message to described master clock side, and described Delay_Req message carries the transmitting time stamp t3 of described Delay_Req message;
Described master clock side transmission Delay_Resp message is to described from clock side, and described Delay_Resp message carries the time of reception stamp t4 of master clock side to Delay_Req message;
Described from clock side according to described timestamp t1, t2, t3 and t4, determine master clock side and poor and master clock and the time difference from clock from the two-way average delay between clock side, and according to described two-way average delay poor and time difference adjust from clock to synchronize with master clock, wherein, described two-way average delay is poor is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
Next the embodiment of the present invention is specifically described.
First,, for the network data transmission method that clearly illustrates that the embodiment of the present invention provides, first carry out following explanation:
Suppose that in the end-to-end ethernet network of just beginning and end work, the equipment cache size of each intermediary device 1~n is respectively bk, wherein, k=1 ..., n, n is greater than 1 integer, and the unit of equipment cache size is megabit (Mb); Thus, the available cache memory value B in end to end network equals the equipment cache size sum of intermediary device 1~n, B = b 1 + b 2 + b 3 + ... + b k + ... + b n - 1 + b n = Σ 1 n b k ; When after ethernet network work end to end, use buffer memory part except what each intermediate node sliding window took, nodes remains available cache size sum and isWherein, U ' is ethernet network link practical efficiency, and U is ethernet network link peak use rate, U '=V*8/M, wherein, M is current network link total bandwidth (unit: Mb/s), V be current network give out a contract for a project end total Business Stream transmission rate (unit: Bps);
, a maximum load C=N*t for Business Stream, wherein, N is wall scroll service bandwidth, unit: Mb; T is network link time delay, unit: millisecond (ms); In the time of network operation n bar Business Stream, satisfied network link maximum load is: Cmax=M*t, wherein, M is current network link total bandwidth, t is network link time delay; In the time moving Business Stream number in network and be n, network link actual loading is Δ C = ( N 1 + N 2 + N 3 + ... + N k + ... + N n - 1 + N n ) × t = t × Σ 1 n N k , Wherein, NkBe the service bandwidth of k article of Business Stream, t is network link time delay;
Due in end-to-end Ethernet, the present load meeting of network link constantly changes, and thus, makes the network may be in low load condition or high load condition; Particularly, when network link practical efficiency U ' is less than network link peak use rate U, and network link actual loading is less than or equal to the half of network link maximum load, that is,Now, network is in low load condition; Otherwise network link practical efficiency U ' equals network link peak use rate U, or network link actual loading is greater than the half of network link maximum load, that is,Now, network is in high load condition;
In addition, according to network different business demand, for ensureing important basic service bandwidth resources, the demand bandwidth m (m < M) based on basic service network, definition meets the minimum transmission rate V of business of current basic service bandwidthmin=m/8, unit: MB/s.
Particularly, when end to end network is in low load condition and while there is the situation of packet loss, the business that redefining the end of giving out a contract for a project sends optimal rate V0For:
V m a x - ( T &times; M &times; &Delta; f 64 &times; &Sigma; 1 n b k ) ,
Wherein, T is transfer of data packet loss duration measuring period, unit: second (s); M is the system maximum bandwidth of current known network link, unit: Mb; VmaxBusiness during for system sends maximum rate, Vmax=M/8, unit: Mb/s; △ f is the frequency deviation of the end-to-end generation of current network, unit: hertz (Hz), conventionally the network equipment uses crystal oscillator identical, crystal oscillator frequency deviation is known, because network is when the low load condition, be not prone to network timeout and retransmit, the propagation delay time producing on link is less, can ignore, can directly utilize thus hardware frequency deviation;For the cache size sum of all intermediate equipments of end to end network, wherein, intermediate equipment cache size is known.
In this, when being adjusted into business, the business transmission rate of the end of giving out a contract for a project sends optimal rate V0(Vmin<V0<Vmax) after, still there is Network packet loss, adjusting Network transmission rate is Vmin, and check that Network transmission rate is VminTime, whether current network business there is packet loss; When business transmission rate is adjusted into VminAfter, there is not Network packet loss, determine that adjusting current network business transmission rate is Vmin, now, not only meet the service bandwidth of current network basic service, and not packet loss of Network;
When being adjusted into business, the business transmission rate of the end of giving out a contract for a project sends optimal rate V0(Vmin<V0<Vmax) after, there is not Network packet loss, while adjusting so for the first time Network transmission rate, Network transmission rate is decided to be to V1=(Vmax+V0)/2, check and adopt V1While sending datagram, whether Network there is packet loss; If there is packet loss in Network, by V0Be defined as current network business transmission rate, V0The business that is sends optimal rate; If there is not packet loss in Network, continue to adjust Network transmission rate, in the time adjusting Network transmission rate for the second time, Network transmission rate is decided to be to V2=(Vmax+V1)/2, by that analogy, until while adjusting Network transmission rate the n time, there is packet loss in Network, the Network transmission rate the V inferior adjustment of n-1 (n >=1) being obtainedn-1=(Vmax+Vn-2)/2 are decided to be current network business transmission rate. So, at network during in low load condition, by reducing business transmission rate, reduce the current link utilization U ' of ethernet network, thus, increase nodes and remain available cache size sum △ B ', thereby without the time of packet loss, reduce Network Packet Loss probability of happening in increase network.
But the present invention does not limit concrete adjustment mode. In other embodiment, when being adjusted into business, the business transmission rate of the end of giving out a contract for a project sends optimal rate V0(Vmin<V0<Vmax) after, there is not Network packet loss, can be according to Vi=Vi-1+AiAdjust current business transmission rate. Particularly, i is more than or equal to 1 integer, AiFor preset value, V0For the optimum transmission rate of business, and Vi≤Vmax. In other words, from the optimum transmission rate V of business0Towards VmaxAdjust steppingly, adjust each time step value Ai and can set according to actual needs, until stop when network generation packet loss adjusting, and to send the previous business transmission rate of packet loss as current business transmission rate.
When Network transmission rate is adjusted into VminTime, still there is packet loss in network, now continues to reduce Network transmission rate and cannot meet current network business demand. Therefore, increase the time without packet loss by increase transmission synchronizing information in mutual message, thereby reduce Network Packet Loss. Change for TCP message structure, utilize wherein option to carry temporal quality grade Synchronization Control (SC with filling field, SynchronizationControl) field, as shown in Figure 5, SC field accounts for option and fills 4 bit lengths (bit0~bit3) in field.
Wherein, can utilize bits of encoded different in SC field to describe the credit rating of synchronised clock. For example, in conjunction with description and the transmission of information in Synchronization Network, can carry out as given a definition SC field bit coding, as in table 1: SC (b0-b3) value (Value) is binary format coding, can certainly adopt 16 scale codings or other form codings, as long as can distinguish for different clocks source.
Table 1SC field bit coding
Wherein, in the time that the network equipment powers on for the first time, the default clock quality grade of timing reference input is that synchronizing quality is not known (UNKNOWN).
Wherein, the sequence of the timing reference input grade of SC code field is as follows: reference clock (PRC, PrimaryReferenceClock) clock (TNC of > transit exchange, TransitNodeClock) > local office clock (LNC, LocalNodeClock) > synchronous equipment timing source (SETS, SynchronousEquipmentTimingSource) > synchronizing quality does not know that (UNKNOWN) > should be as synchronous (DNU, Donotuseforsynchronization). if the rank of reference source is DNU, and SC field participation control, this road reference source when protection is switched, do not selected.
Next taking the end of giving out a contract for a project to any two network nodes on the network link of packet receiving end as example explanation carry out the process of clock synchronous by carrying the TCP message of SC field.
Step S101: set up TCP between two network nodes and connect, owing to having carried SC field in TCP message, therefore, completing in TCP handshake procedure (typically three-way handshake process), pass through transmitted SC field and can know the timing reference input grade of current network peer node;
Step S102: current network node compares the timing reference input grade of local reference clock source grade and peer node, if the timing reference input grade of peer node is higher than local reference clock source grade, current network node is using the timing reference input of peer node as current local reference clock source; If the timing reference input grade of peer node is lower than local reference clock source grade, current network node notice peer node, using the local reference clock source of current network node as the timing reference input of current peer node.
In practical application, in the time adopting the minimum transmission rate of business as the network node of the end of giving out a contract for a project and still have Network Packet Loss, send the TCP message that carries SC field to carry out clock synchronous by starting receiving node downstream as the network node of the end of giving out a contract for a project; Or, at end to end network, independently management node is set, by management node, in the time that current network adopts the minimum transmission rate of business and still has Network Packet Loss, instruction is as the network node of the end of giving out a contract for a project, send the TCP message that carries SC field to carry out clock synchronous as network node and the intermediate node of packet receiving end.
Thus, the mode of following the tracks of by network pointwise makes the timing reference input of whole network node all can be set to the timing reference input of highest ranking in current network, and the clock of the whole network all reaches synchronously, has reduced network data transmission time delay, has effectively reduced the packet loss between each network node.
So, when network is during in low load, reduce current network business transmission rate, can increase available cache memory value, increase without the packet loss time, reduce the generation of Network Packet Loss in scheduled duration, when when reducing business transmission rate and cause Network to meet the demands, clock quality grade code field is carried in ICP/IP protocol message and is transmitted, that is: in ICP/IP protocol header, increase clock quality grade coding SC field, make each network node keep clock synchronous by message interaction, and then reduce Network Packet Loss.
But when end to end network is during in high load condition, if still utilize the method for adjusting buffer memory and value, the overtime re-transmission time in network of easily causing occurs, thereby causes the Network Packet Loss time to occur. Now, need to consider by reducing the time delay t in real network, with reduce due toThe increase of the △ C that causes of increase, reduce real network load, make end to end network always in low load condition, and then ensure that in the set time, Ethernet is without packet loss.
Therefore, change for internodal sync message structure, PTP message is encapsulated in TCP/IP message, take the option in TCP message structure and fill field, as shown in Figure 6. Wherein, PTP message field (MFLD) comprises: PTP heading, PTP main body of the packet and PTP extended field option.
Wherein, PTP heading is all general to all PTP messages, accounts for 32 bytes (Octets), and concrete form is as shown in table 2.
Table 2PTP heading structure
As shown in table 2, the format description of PTP heading is as follows:
(1) messageId field accounts for 1 byte, defines current PTP type of message, as Sync, Delay_Req, Delay_Resp, Announce, PDelay_Req, PDelay_Resp;
(2) versionPTP field accounts for 1 byte, defines current PTP message protocol version, and for example, versionPTP is 1 corresponding to IEEE1588v1, and versionPTP is 2 corresponding to IEEE1588v2;
(3) messageLength field accounts for 2 bytes, and the total length of the definition PTP message field (MFLD) that sends, comprises PTP heading, main body of the packet and message extended field option field;
(4) domainNumber field accounts for 1 byte, the time-domain under definition PTP message; Wherein, in the time that clock type is ordinary clock (OC, OrdinaryClock) or boundary clock (BC, BoundaryClock), the current clock zone belonging to of message transmitting apparatus is described; In the time that clock type is transparent clock (TC, TransparentClock), the clock zone that initial message transmitting apparatus belongs to is described;
(5) flag field accounts for 2 bytes, is defined as the attribute field of the various show states of PTP message;
(6) correction field accounts for 8 bytes, and the temporal information of carrying in definition PTP message is in the time of TC clock, to other correction value of the nanosecond of the time of staying;
(7) Reserved field accounts for 3 bytes, is reserved field;
(8) sourcePortId field accounts for 2 bytes, and definition sends the source port mark (ID, Identification) of PTP message;
(9) sourcePortIdentify field accounts for 8 bytes, and definition sends the clock chip source port address information of PTP message;
(10) sequenceId field accounts for 2 bytes, defines each clock and sends an all corresponding unique number-mark of cycle;
(11) controlField field accounts for 1 byte, refers in particular to the field of the type of message of IEEE1588v1 Description of ××× (Release name);
(12) logMessageInterval field accounts for 1 byte, and definition shows that the message after consulting successfully sends interval.
Wherein, PTP message mainly comprises with Types Below: Announce, Sync, Delay_Req, Follow_Up, Delay_Resp, PDelay_Req, PDelay_Resp, concrete type of message definition is as shown in table 3.
The definition of table 3PTP type of message
Next taking the end of giving out a contract for a project to any two network nodes on the network link of packet receiving end as example explanation carry out the process of clock synchronous by carrying the TCP message of PTP field.
Set up TCP at sender node and receiving terminal node and be connected, typically carry out after three-way handshake, send the TCP message that carries PTP field, set up clock synchronous and connect, carry out clock synchronous. Under end-to-end (E2E, EndtoEnd) pattern, the concrete steps of said process are as follows:
Step S201: the clock principal and subordinate attribute of port between two connected network nodes of auto negotiation, in this, master clock side is sender node, is receiving terminal node from clock side;
Step S202: master clock side sends Announce message to from clock side, by the clock information that in Announce message, grandmasterPriority1, grandmasterClockAccuracy, grandmasterClockQuality, grandmasterPriority2 and timeSource field are carried, inform the clock source credit rating from clock side master clock; Wherein, Announce message structure is as shown in table 4;
Table 4Announce message structure
As shown in table 4, the format description of Announce message is as follows:
(1) originTimestamp field accounts for 10 bytes, definition time stamp;
(2) originCurrentUtcOffset field accounts for 2 bytes, the definition world (UTC unified time, UniversalTimeCoordinated) time difference leap second and between International Atomic Time (TAI, InternationalAtomicTime) time ruler;
(3) grandmasterPriority1 field accounts for 1 byte, defines user-defined master clock (grandmaster) priority 1;
(4) grandmasterClockQuality field accounts for 1 byte, definition grandmaster clock quality grade;
(5) grandmasterClockAccuracy field accounts for 3 bytes, the specific descriptions information of definition grandmaster clock quality grade;
(6) grandmasterPriority2 field accounts for 1 byte, defines user-defined grandmaster priority 2;
(7) reserved field accounts for 1 byte, reserved field;
(8) grandmasterClockIdentity field accounts for 8 bytes, definition grandmaster clock id information;
(9) localStepRemoved field accounts for 2 bytes, definition grandmaster and from clock path jumping figure between (slave) equipment;
(10) timeSource field accounts for 1 byte, definition clock source type;
Step S203: master clock side sends Sync message, by the originTimestamp field in Sync message, the Perfect Time stamp t1 that master clock side apparatus is sent to Sync message sends to from clock side; Wherein, Sync message structure is as shown in table 5;
Table 5Sync message structure
As shown in table 5, originTimestamp field accounts for 10 bytes, definition time stamp;
Step S204: master clock side sends Follow_Up message subsequently, by preciseOriginTimestamp field, notice the actual transmitting time stamp t1 of last Sync message, wherein, Follow_Up message is only effective for twostep, and onestep is without Follow_Up message;
Wherein, shown in Follow_Up message structure table 6;
Table 6Follow_Up message structure
As shown in table 6, preciseOriginTimestamp field accounts for 10 bytes, definition time stamp;
Step S205: stab t2 the corresponding time of advent of recording Sync message from clock side, and adjust local clock; Then send Delay_Req message from clock side at timestamp t3, timestamp t3 is informed to master clock side by the preciseOriginTimestamp field of carrying;
Wherein, Delay_req message structure is consistent with Sync message structure; Therefore repeat no more in this;
Step S206: master clock sidelights record receives the timestamp t4 of Delay_Req message, and sends response message Delay_Resp message; Wherein, Delay_Resp message structure is as shown in table 7;
Table 7Delay_Resp message structure
As shown in table 7, receiveTimestamp field accounts for 10 bytes, is defined as the time of reception stamp of response Delay_Req message; RequestingSourcePortIdentity field accounts for 8 bytes, is defined as the grandmaster clock id information of response Delay_Req message; RequestingSourcePortId field accounts for 2 bytes, is defined as the transmitting apparatus port id information of response Delay_Req message;
Step S207: from clock side according to described timestamp t1, t2, t3 and t4, determine master clock side and poor and master clock and the time difference from clock from the two-way average delay between clock side, and according to described two-way average delay poor and time difference adjust from clock to synchronize with master clock, wherein, described two-way average delay is poor is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
In practical application, when knowing that as the network node of the end of giving out a contract for a project current network is in the time that high load condition and network exist packet loss, the TCP message of PTP field is carried in network node receiving node transmission downstream as the end of giving out a contract for a project, the clock synchronous of the network node that makes the clock of downstream receiving node and hold as giving out a contract for a project, and then carry out successively the clock synchronous between subsequent network node, finally make as the network node of end of giving out a contract for a project, as the network node of packet receiving end and end-to-end between the clock of intermediate node all synchronous. Or, at end to end network, independently management node is set, in current network in the time there is packet loss in high load condition and network, management node instruction is carried the TCP message of PTP field as the network node receiving node transmission downstream of the end of giving out a contract for a project, the clock synchronous of the network node that makes the clock of downstream receiving node and hold as giving out a contract for a project, and then carry out successively the clock synchronous between subsequent network node, finally make as the network node of end of giving out a contract for a project, as the network node of packet receiving end and end-to-end between the clock of intermediate node all synchronous.
So, when network is during in high load condition, by adopting PTP simultaneous techniques, can make the precision clock in distributed network synchronize with other clock maintenance.
The schematic diagram of the network data transmission device that Fig. 7 provides for the embodiment of the present invention. As shown in Figure 7, the network data transmission device that the present embodiment provides, be applied to the network node of end-to-end asynchronous transmission network, comprise: speed adjusting module, for belonging to default low load condition when the end of giving out a contract for a project to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, according to the give out a contract for a project business transmission rate of end of the first preset strategy adjustment; The first synchronization module, after being the minimum transmission rate of business for the business transmission rate of the end of giving out a contract for a project when the adjustment of described speed adjusting module, when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume of the end transmission of giving out a contract for a project, the TCP message that clock quality class information is carried in transmission carries out clock synchronous.
Further, said apparatus also comprises: the second synchronization module, for belonging to default high load condition when the end of giving out a contract for a project to the actual operation parameters of the network link of packet receiving end, and when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume of the end transmission of giving out a contract for a project, the TCP message that PTP field is carried in transmission carries out clock synchronous.
Further, described the second synchronization module, the TCP message that carries PTP field for transmitting carries out clock synchronous, comprising:
When described network node is during as master clock side, for the Announce message that sends the information when main of carrying to from clock side; Send Sync message to from clock side, and described Sync message carries the transmitting time stamp t1 of described Sync message; Receiving the Delay_Req message sending from clock side, send Delay_Resp message to from clock side, and described Delay_Resp message is carrying the time of reception stamp t4 of master clock side to Delay_Req message;
When described network node is when from clock side, carry the Announce message of master clock information and carry the Sync message of message transmitting time stamp t1 for receiving successively; Record the time of advent of Sync message and stab t2, and send the Delay_Req message that carries message transmitting time stamp t3 to master clock side; The Delay_Resp message of the time of reception stamp t4 of master clock side to Delay_Req message is carried in reception; According to described timestamp t1, t2, t3 and t4, determine master clock side and poor and master clock and the time difference from clock from the two-way average delay between clock side, and according to described two-way average delay poor and time difference adjust from clock to synchronize with master clock, wherein, described two-way average delay is poor is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
Further, described speed adjusting module, for the business transmission rate of the end of giving out a contract for a project according to the first preset strategy adjustment, comprising:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M gives out a contract for a project to hold the network link maximum bandwidth of packet receiving end, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is the frequency deviation that network end-to-end produces,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, the data volume that end sends if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project equals to give out a contract for a project, according to the give out a contract for a project business transmission rate of end of the second preset strategy adjustment;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the data volume that the end of giving out a contract for a project sends, the business packet sending speed of adjusting the end of giving out a contract for a project is the minimum transmission rate of business, wherein, the minimum transmission rate V of described businessmin=m/8, the network demand bandwidth that m is basic service.
Further, described speed adjusting module, for the business transmission rate of the end of giving out a contract for a project according to the second preset strategy adjustment, comprising:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1 integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, when the business transmission rate of the end of giving out a contract for a project is ViTime, if the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
Further, described the first synchronization module, the TCP message that carries clock quality class information for transmitting carries out clock synchronous, comprising: the timing reference input grade of knowing peer node according to the TCP message receiving; The relatively timing reference input grade of local reference clock source grade and peer node, when local reference clock source grade is during lower than the timing reference input grade of peer node, using the timing reference input of peer node as current local reference clock source.
Wherein, described timing reference input grade comprises from high to low: reference clock, transit exchange's clock, local office clock, synchronous equipment timing source, synchronizing quality are not known and should be as not synchronous.
Particularly, the network data transmission device that the present embodiment provides is distributed on the network node of end-to-end asynchronous transmission network. The network node of end-to-end asynchronous transmission network for example comprises: as the network node of end of giving out a contract for a project, as network node and the intermediate node of packet receiving end. Wherein, speed adjusting module is for example distributed on the network node as the end of giving out a contract for a project, and the first synchronization module and the second synchronization module are for example distributed in as on the network node of the end of giving out a contract for a project, network node and intermediate node as packet receiving end. Or the network node of end-to-end asynchronous transmission network for example comprises: as the network node of end, network node, intermediate node and the management node as packet receiving end of giving out a contract for a project. Wherein, speed adjusting module is for example distributed on management node, and the first synchronization module and the second synchronization module are for example distributed in as on the network node of the end of giving out a contract for a project, network node and intermediate node as packet receiving end.
In practical application, speed adjusting module is for example the elements such as processor, and the first synchronization module and the second synchronization module are for example the communication devices such as transmitter or receiver. But the present invention does not limit this. The function of above-mentioned module for example can also be carried out the program/instruction being stored in memory by processor and realize.
In addition, about the concrete processing procedure of said apparatus with described in said method, therefore repeat no more in this.
More than show and described general principle of the present invention and principal character and advantage of the present invention. The present invention is not restricted to the described embodiments; that in above-described embodiment and description, describes just illustrates principle of the present invention; without departing from the spirit and scope of the present invention, the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.

Claims (14)

1. a network data transmission method, is applied to end-to-end asynchronous transmission network, it is characterized in that,Comprise:
When the end of giving out a contract for a project belongs to default low load condition to the actual operation parameters of the network link of packet receiving end,And when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume of the end transmission of giving out a contract for a project, according toThe first preset strategy adjustment give out a contract for a project end business transmission rate;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the minimum transmission rate of business, at the predetermined duration of giving out a contract for a projectWhen the data volume that interior packet receiving end is received is still less than the data volume that the end of giving out a contract for a project sends, at the end of giving out a contract for a project to packet receiving endThe transmission control protocol TCP message that on network link, clock quality class information is carried in transmission carries out clockSynchronously.
2. the method for claim 1, is characterized in that, also comprises: when the end of giving out a contract for a project is to packet receivingThe actual operation parameters of the network link of end belongs to default high load condition, and gives out a contract for a project in duration predeterminedWhen the data volume that packet receiving end is received is less than the data volume of the end transmission of giving out a contract for a project, at the network of end to packet receiving end of giving out a contract for a projectThe TCP message that on link, Precision Time Protocol PTP field is carried in transmission carries out clock synchronous.
3. method as claimed in claim 2, is characterized in that, described at the end of giving out a contract for a project to packet receiving endThe TCP message that on network link, PTP field is carried in transmission carries out clock synchronous, comprising:
Give out a contract for a project end between every two the connected network nodes on the network link of packet receiving end by associationBusiness determines clock principal and subordinate attribute;
Master clock side sends the Announce message that carries master clock information to from clock side;
Described master clock side send Sync message to described from clock side, described in described Sync message carriesThe transmitting time stamp t1 of Sync message;
Stab t2 the described time of advent of recording Sync message from clock side, and send Delay_Req messageGive described master clock side, described Delay_Req message carries the transmitting time of described Delay_Req messageStamp t3;
Described master clock side send Delay_Resp message to described from clock side, described Delay_RespMessage carries the time of reception stamp t4 of master clock side to Delay_Req message;
Described from clock side according to described timestamp t1, t2, t3 and t4, determine master clock side with from clockPoor and the master clock of two-way average delay between side and from time difference of clock, and according to described two-way flatAll delay inequality and time difference are adjusted from clock to synchronize with master clock, wherein, and described two-way average delayDifference is D e l a y = ( t 2 - t 1 ) - ( t 3 - t 4 ) 2 , The described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
4. the method for claim 1, is characterized in that, described according to the first preset strategy tuneThe business transmission rate of Bao Duan of haircuting comprises:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M is the lattice chain of end to packet receiving end of giving out a contract for a projectRoad maximum bandwidth, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is that network end-to-end producesRaw frequency deviation,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if send out predeterminedThe data volume that in bag duration, packet receiving end is received equals to give out a contract for a project and holds the data volume sending, according to the second default planSlightly adjust the business transmission rate of the end of giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if send out predeterminedIn bag duration, the data volume received of packet receiving end is still less than the data volume that the end of giving out a contract for a project sends, and adjusts the end of giving out a contract for a projectBusiness packet sending speed is the minimum transmission rate of business, wherein, and the minimum transmission rate V of described businessmin=m/8,M is the network demand bandwidth of basic service.
5. method as claimed in claim 4, is characterized in that, described according to the second preset strategy tuneThe business transmission rate of Bao Duan of haircuting comprises:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is for being more than or equal to1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime,If the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, adjustThe business transmission rate of holding of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1Integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, hold when giving out a contract for a projectBusiness transmission rate is ViTime, if being less than, the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project gives out a contract for a projectThe data volume that end sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
6. the method for claim 1, is characterized in that, described at the end of giving out a contract for a project to packet receiving endThe TCP message that on network link, clock quality class information is carried in transmission carries out clock synchronous, comprising:
Giving out a contract for a project, end obtains according to the TCP message receiving to the network node on the network link of packet receiving endKnow the timing reference input grade of peer node;
Described network node compares the timing reference input grade of local reference clock source grade and peer node,When local reference clock source grade is during lower than the timing reference input grade of peer node, by peer node timeClock reference source is as current local reference clock source.
7. method as claimed in claim 6, is characterized in that, described timing reference input grade is by heightExtremely low comprising: reference clock PRC, the clock TNC of transit exchange, local office clock LNC, synchronousEquipment timing source SETS, synchronizing quality are not known UNKNOWN and should be used as synchronous DNU.
8. a network data transmission device, is applied to the network node of end-to-end asynchronous transmission network,It is characterized in that, comprising:
Speed adjusting module, for belonging to the actual operation parameters of the network link of packet receiving end when the end of giving out a contract for a projectDefault low load condition, and the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the end of giving out a contract for a projectSend data volume time, according to the first preset strategy adjustment give out a contract for a project end business transmission rate;
The first synchronization module, for the business transmission rate of the end of giving out a contract for a project when the adjustment of described speed adjusting module isAfter the minimum transmission rate of business, the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is still less than the end of giving out a contract for a projectSend data volume time, the TCP message that clock quality class information is carried in transmission carries out clock synchronous.
9. device as claimed in claim 8, is characterized in that, also comprises: the second synchronization module,For belonging to default high load condition when the end of giving out a contract for a project to the actual operation parameters of the network link of packet receiving end,And when the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume of the end transmission of giving out a contract for a project, transmissionThe TCP message that carries PTP field carries out clock synchronous.
10. device as claimed in claim 9, is characterized in that, described the second synchronization module, forThe TCP message that PTP field is carried in transmission carries out clock synchronous, comprising:
When described network node is during as master clock side, for sending the Announce that carries information when mainMessage is given from clock side; Send Sync message to from clock side, and described in described Sync message carriesThe transmitting time stamp t1 of Sync message; Receiving the Delay_Req message sending from clock side, send outSend Delay_Resp message to from clock side, and described Delay_Resp message carries master clock side pairThe time of reception stamp t4 of Delay_Req message;
When described network node is when from clock side, for receiving successively the master clock information of carryingAnnounce message and carry the Sync message of message transmitting time stamp t1; Record Sync messageStab t2 the time of advent, and send the Delay_Req message that carries message transmitting time stamp t3 to master clockSide; The Delay_Resp report of the time of reception stamp t4 of master clock side to Delay_Req message is carried in receptionLiterary composition; According to described timestamp t1, t2, t3 and t4, determine master clock side and two-way between clock sidePoor and the master clock of average delay and from time difference of clock, and according to described two-way average delay poor andTime difference adjustment is from clock to synchronize with master clock, and wherein, described two-way average delay is poor isThe described time difference is O f f s e t = ( t 2 - t 1 ) + ( t 3 - t 4 ) 2 .
11. devices as claimed in claim 8, is characterized in that, described speed adjusting module, forAccording to the first preset strategy adjustment give out a contract for a project end business transmission rate, comprising:
The optimum transmission rate of business of determining the end of giving out a contract for a project is:
Wherein, T is transfer of data packet loss duration measuring period, and M is the lattice chain of end to packet receiving end of giving out a contract for a projectRoad maximum bandwidth, VmaxFor the maximum transmission rate of business, and Vmax=M/8, △ f is that network end-to-end producesRaw frequency deviation,Hold the cache size sum of all intermediate equipments between packet receiving end for giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if send out predeterminedThe data volume that in bag duration, packet receiving end is received equals to give out a contract for a project and holds the data volume sending, according to the second default planSlightly adjust the business transmission rate of the end of giving out a contract for a project;
When the business transmission rate of the end of giving out a contract for a project is adjusted into after the optimum transmission rate of described business, if send out predeterminedIn bag duration, the data volume received of packet receiving end is still less than the data volume that the end of giving out a contract for a project sends, and adjusts the end of giving out a contract for a projectBusiness packet sending speed is the minimum transmission rate of business, wherein, and the minimum transmission rate V of described businessmin=m/8,M is the network demand bandwidth of basic service.
12. devices as claimed in claim 11, is characterized in that, described speed adjusting module is usedIn the business transmission rate of the end of giving out a contract for a project according to the second preset strategy adjustment, comprising:
According to Vi=(Vmax+Vi-1)/2 adjust give out a contract for a project end business transmission rate, wherein, i is for being more than or equal to1 integer, V0For the optimum transmission rate of described business, when the business transmission rate of the end of giving out a contract for a project is ViTime,If the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project is less than the data volume that the end of giving out a contract for a project sends, adjustThe business transmission rate of holding of giving out a contract for a project is Vi-1; Or,
According to Vi=Vi-1+AiAdjustment give out a contract for a project end business transmission rate, wherein, i is more than or equal to 1Integer, AiFor preset value, V0For the optimum transmission rate of described business, and Vi≤Vmax, hold when giving out a contract for a projectBusiness transmission rate is ViTime, if being less than, the data volume that packet receiving end is received in the predetermined duration of giving out a contract for a project gives out a contract for a projectThe data volume that end sends, the business transmission rate of adjusting the end of giving out a contract for a project is Vi-1
13. devices as claimed in claim 8, is characterized in that, described the first synchronization module, forThe TCP message that clock quality class information is carried in transmission carries out clock synchronous, comprising: according to receivingTCP message know the timing reference input grade of peer node; Relatively local reference clock source grade withThe timing reference input grade of peer node, when local reference clock source grade is lower than the clock ginseng of peer nodeWhile examining source grade, using the timing reference input of peer node as current local reference clock source.
14. devices as claimed in claim 13, is characterized in that, described timing reference input grade byHigh to low comprising: reference clock PRC, the clock TNC of transit exchange, local office clock LNC, sameStep equipment timing source SETS, synchronizing quality are not known UNKNOWN and should be used as synchronous DNU.
CN201510752868.1A 2015-11-06 2015-11-06 A kind of network data transmission method and device Active CN105610727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510752868.1A CN105610727B (en) 2015-11-06 2015-11-06 A kind of network data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510752868.1A CN105610727B (en) 2015-11-06 2015-11-06 A kind of network data transmission method and device

Publications (2)

Publication Number Publication Date
CN105610727A true CN105610727A (en) 2016-05-25
CN105610727B CN105610727B (en) 2019-02-12

Family

ID=55990269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510752868.1A Active CN105610727B (en) 2015-11-06 2015-11-06 A kind of network data transmission method and device

Country Status (1)

Country Link
CN (1) CN105610727B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106426169A (en) * 2016-10-21 2017-02-22 中国科学院力学研究所 Method and device for remotely controlling one operand through multiple operation terminals
CN110366151A (en) * 2019-06-28 2019-10-22 欧普照明股份有限公司 Reduce the method and network node of congestion
WO2019233404A1 (en) * 2018-06-05 2019-12-12 中国移动通信有限公司研究院 Message transmission method, device, network side apparatus and storage medium
CN111512602A (en) * 2017-12-31 2020-08-07 华为技术有限公司 Method, equipment and system for sending message
CN111970759A (en) * 2019-05-20 2020-11-20 中兴通讯股份有限公司 Time delay adjusting method and device of end-to-end service, storage medium and electronic device
WO2022089177A1 (en) * 2020-10-29 2022-05-05 中兴通讯股份有限公司 Time synchronization method and apparatus
CN116319624A (en) * 2023-05-24 2023-06-23 苏州浪潮智能科技有限公司 Message processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117846A (en) * 2012-12-31 2013-05-22 华为技术有限公司 Method, device and system of data transmission
CN102232278B (en) * 2011-06-23 2013-09-11 华为技术有限公司 Method and device for detecting 1588 equipment performance
CN103441833A (en) * 2013-08-26 2013-12-11 瑞斯康达科技发展股份有限公司 Method and system for synchronizing frequency of master unit and frequency of slave unit
CN103684647A (en) * 2012-09-21 2014-03-26 郑州威科姆科技股份有限公司 Time delay eliminating method and device for PTP data packet when converted between Ethernet and E1 protocol
CN101882990B (en) * 2010-06-24 2014-08-13 中兴通讯股份有限公司 Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system
CN102244603B (en) * 2010-05-11 2014-09-03 华为技术有限公司 Method, equipment and system for transmitting message bearing time

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244603B (en) * 2010-05-11 2014-09-03 华为技术有限公司 Method, equipment and system for transmitting message bearing time
CN101882990B (en) * 2010-06-24 2014-08-13 中兴通讯股份有限公司 Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system
CN102232278B (en) * 2011-06-23 2013-09-11 华为技术有限公司 Method and device for detecting 1588 equipment performance
CN103684647A (en) * 2012-09-21 2014-03-26 郑州威科姆科技股份有限公司 Time delay eliminating method and device for PTP data packet when converted between Ethernet and E1 protocol
CN103117846A (en) * 2012-12-31 2013-05-22 华为技术有限公司 Method, device and system of data transmission
CN103441833A (en) * 2013-08-26 2013-12-11 瑞斯康达科技发展股份有限公司 Method and system for synchronizing frequency of master unit and frequency of slave unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋波,孙超,姜守达: ""一种基于P T P协议的局域网高精度时钟同步方法"", 《仪器仪表与检测技术》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106426169A (en) * 2016-10-21 2017-02-22 中国科学院力学研究所 Method and device for remotely controlling one operand through multiple operation terminals
CN111512602A (en) * 2017-12-31 2020-08-07 华为技术有限公司 Method, equipment and system for sending message
CN111512602B (en) * 2017-12-31 2022-12-06 华为技术有限公司 Method, equipment and system for sending message
WO2019233404A1 (en) * 2018-06-05 2019-12-12 中国移动通信有限公司研究院 Message transmission method, device, network side apparatus and storage medium
US11924314B2 (en) 2018-06-05 2024-03-05 China Mobile Communication Co., Ltd Research Institute Message transmission method, message transmission device, network side device and storage medium
CN111970759A (en) * 2019-05-20 2020-11-20 中兴通讯股份有限公司 Time delay adjusting method and device of end-to-end service, storage medium and electronic device
CN111970759B (en) * 2019-05-20 2023-05-30 中兴通讯股份有限公司 Delay adjustment method and device for end-to-end service, storage medium and electronic device
CN110366151A (en) * 2019-06-28 2019-10-22 欧普照明股份有限公司 Reduce the method and network node of congestion
CN110366151B (en) * 2019-06-28 2023-02-17 欧普照明股份有限公司 Method for reducing congestion and network node
WO2022089177A1 (en) * 2020-10-29 2022-05-05 中兴通讯股份有限公司 Time synchronization method and apparatus
CN116319624A (en) * 2023-05-24 2023-06-23 苏州浪潮智能科技有限公司 Message processing method, device, equipment and storage medium
CN116319624B (en) * 2023-05-24 2023-08-22 苏州浪潮智能科技有限公司 Message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105610727B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN105450321B (en) A kind of network data transmission method and device
CN105610727A (en) Network data transmission method and device
US8982897B2 (en) Data block output apparatus, communication system, data block output method, and communication method
EP3491753B1 (en) System and methods for network synchronization
EP1912361B1 (en) Method, system and device for clock transmission between sender and receiver
EP2769596B1 (en) Methods and apparatuses for maintaining synchronization between a radio equipment controller and an item of radio equipment
US8971352B2 (en) High accuracy 1588 timestamping over high speed multi lane distribution physical code sublayers
EP2795995B1 (en) Methods and apparatus for communication synchronization
US8018968B2 (en) System and method for high precision clock recovery over packet networks
CN101753578B (en) ETHERNET/EI protocol conversion method and protocol converter
EP1903690A1 (en) Synchronous delivery method
CN102244603B (en) Method, equipment and system for transmitting message bearing time
CN106162860A (en) The method and system of a kind of time synchronized, the network equipment
WO2013170261A1 (en) Timing synchronization for networks with radio links
CN102006157A (en) Time synchronization method and system
CN110546926A (en) reducing packet delay variation for time sensitive packets
CN103152118A (en) Base band unit and remote radio unit data service synchronization method, device and system
EP2341650B1 (en) Transfer of a synchronization message through a packet radio network
CN113424466B (en) Method and device for clock synchronization
US20060133383A1 (en) Communications system with scan table identification
WO2022183875A1 (en) Method for determining transmission time slot and related apparatus
US20080112437A1 (en) Method And System For Providing Via A Data Network Information Data For Recovering A Clock Frequency
US11343007B2 (en) Time synchronization method and device
KR20100048124A (en) Time synchronization method in bridged local area network
JP6341869B2 (en) Communication apparatus and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant