CN109428801A - File transmitting method and device - Google Patents

File transmitting method and device Download PDF

Info

Publication number
CN109428801A
CN109428801A CN201710731263.3A CN201710731263A CN109428801A CN 109428801 A CN109428801 A CN 109428801A CN 201710731263 A CN201710731263 A CN 201710731263A CN 109428801 A CN109428801 A CN 109428801A
Authority
CN
China
Prior art keywords
data message
tunnel
token
network equipment
message
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.)
Withdrawn
Application number
CN201710731263.3A
Other languages
Chinese (zh)
Inventor
陈李昊
张民贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201710731263.3A priority Critical patent/CN109428801A/en
Publication of CN109428801A publication Critical patent/CN109428801A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

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

Abstract

This application discloses a kind of file transmitting method and devices, belong to field of communication technology.The described method includes: being stored when receiving the data message for carrying test serial number that second network equipment is sent by any tunnel in a plurality of tunnel to data message;Multiple data messages of storage are ranked up multiple data messages according to the test serial number that data message each in multiple data messages carries;When there is n data message for meeting numeric order in multiple data messages after sequence, if the total bytes of n data message are greater than predetermined word joint number, the problem tunnel of time delay maximum is determined from a plurality of tunnel;The control message for generating the problematic Tunnel Identifier of carrying is sent to second network equipment, and the quantity for being sent to the data message in problem tunnel is reduced by second network equipment.The forward efficiency of data message can be improved in the application, to improve the entire throughput in a plurality of tunnel established between first network equipment and second network equipment.

Description

File transmitting method and device
Technical field
This application involves field of communication technology, in particular to a kind of file transmitting method and device.
Background technique
With the development of communication technology, in order to improve the access bandwidth of the network equipment, increase the reliability of access, often adopt The connection of LA Management Room is realized with mixing access (Hybrid Access, HA) technology.HA technology refers to two network equipments Simultaneously be attached by a variety of different types of data link, with established in a variety of different types of data link this two Message can be passed through a plurality of tunnel by a plurality of tunnel between a network equipment, a network equipment in the two network equipments Any tunnel in road is sent to another network equipment.For example, the two network equipments can be home gateway (Home Gateway, HG) and mixing cut-in convergent point (Hybrid Access Aggregation Point, HAAP), HG and HAAP it Between can establish the digital subscriber line tunnel (Digital Subscriber Line, DSL) and Long Term Evolution (Long Term Evolution, LTE) tunnel.At this point, message can be sent to HAAP by the tunnel DSL or LTE tunnel by HG, certainly, Message can also be sent to HG by the tunnel DSL or LTE tunnel by HAAP.
The network equipment that message transmission is carried out in the two network equipments is properly termed as transmitting terminal, carries out the received net of message Network equipment is properly termed as receiving end.Currently, can safeguard a token bucket (Token Bucket, TB), transmitting terminal in transmitting terminal Token can be added into the token bucket with constant rate, which can be more based on what is established between transmitting terminal and receiving end The bandwidth determination in the target tunnel in tunnel obtains.It later, can be with if transmitting terminal will send some message to receiving end The byte number of the message is compared with the token number in the token bucket.If the byte number of the message is less than or equal to the order Token number in board bucket, then take out the token of quantity identical as the byte number of the message from the token bucket, and the message is led to It crosses target tunnel and is sent to receiving end;If the byte number of the message is greater than the token number in the token bucket, not from the token Token is taken out in bucket, which is sent to receiving end by the tunnel in a plurality of tunnel in addition to target tunnel.
In practical application, a data stream can be generally divided into multiple data messages and sent by transmitting terminal, at this time in order to Guarantee that data flow can accurately be restored in receiving end, transmitting terminal can be multiple according to the transmission sequence of multiple data message Data message assignment message serial number.After receiving end receives the data message of transmitting terminal transmission, first the data message can be deposited It stores up into Re-Order Buffer, later, for multiple data messages in Re-Order Buffer, according in multiple data message The test serial number of each data message is ranked up multiple data message, and to full in multiple data message after sequence The data message of sufficient numeric order is forwarded, and guarantees that data message is that transmission sequence according to it on transmitting terminal carrys out quilt with this Forwarding.
However, if the time delay in certain tunnel in a plurality of tunnel established between transmitting terminal and receiving end and other tunnels Time delay difference it is larger, then the time that transmitting terminal is sent by the tunnel data message reaches receiving end will be later than while lead to Spend the time that the data message that other tunnels are sent reaches receiving end.In this case, the datagram sent by other tunnels Text is after reaching receiving end, since the data message sent by the tunnel not yet reaches, so, it is sent by other tunnels After data message needs persistently to wait until the data message arrival sent by the tunnel in the Re-Order Buffer of receiving end, The sequence for meeting numeric order could be completed, then can be just forwarded, is taken a long time so as to cause the forwarding of data message, is forwarded Efficiency is lower, and then causes the entire throughput in a plurality of tunnel established between transmitting terminal and receiving end lower.
Summary of the invention
Forward efficiency in order to solve the problems, such as data message in the related technology is lower, and this application provides a kind of message hairs Delivery method and device.The technical solution is as follows:
In a first aspect, provide a kind of file transmitting method, be applied to first network equipment, the first network equipment with Establishing between second network equipment has a plurality of tunnel, which comprises
Message is carried by what any tunnel in a plurality of tunnel was sent when receiving second network equipment When the data message of serial number, the data message is stored;
For multiple data messages of storage, the message sequence carried according to data message each in the multiple data message Number, the multiple data message is ranked up;
When there is n data message for meeting numeric order in the multiple data message after sequence, if the n The total bytes of a data message are greater than predetermined word joint number, then problem tunnel, described problem tunnel are determined from a plurality of tunnel Road is the maximum tunnel of time delay in a plurality of tunnel, and the n is positive integer;
The control message for carrying problematic Tunnel Identifier is generated, and the control message is sent to second network and is set It is standby, described problem Tunnel Identifier is based on by second network equipment, reduces the number for being sent to the data message in described problem tunnel Amount.
It should be noted that second network equipment and first network equipment can be the network being attached using HA technology Equipment.For example, second network equipment can be HAAP when first network equipment is HG;When first network equipment is HAAP, Second network equipment can be HG, and the embodiment of the present invention is not construed as limiting this.
In addition, the different types of tunnel that a plurality of tunnel is established between second network equipment and first network equipment. For example, a plurality of tunnel can be the tunnel DSL, LTE tunnel etc., the embodiment of the present invention is not construed as limiting this.
It in embodiments of the present invention, can be with after second network equipment reduces the quantity of the data message for being sent to problem tunnel It effectively reduces time delay caused by problem tunnel blocks because of message to increase, so as to which the time delay in problem tunnel is effectively reduced, in turn Gap between the time delay in reduction problem tunnel and the time delay in other tunnels.In the case, it is stored in first network equipment The data message sent by other tunnels can be forwarded without waiting for the long period, and the forward efficiency of data message is mentioned It rising, the entire throughput in a plurality of tunnel established between first network equipment and second network equipment will also be promoted, and this When first network equipment in a large amount of data message burst type the situation that is forwarded will be alleviated so that subsequent second The network equipment can send new data message with relatively uniform speed, and then avoid first network equipment and the second network Bursts of traffic between equipment, and every data stream enables a plurality of tunnel more steadily to carry out work without burst characteristic Make.
Wherein, the first network equipment includes the first token bucket, and the token number in first token bucket is not 0 When, token is added into first token bucket with the first scheduled rate, when the token number in first token bucket is 0, The token for the maximum quantity that first token bucket can accommodate, the maximum number are disposably added into first token bucket Amount is the predetermined word joint number;If the total bytes of the n data message are greater than default value, from described a plurality of Problem tunnel is determined in tunnel, comprising:
For i-th of data message in the n data message, judge that the byte number of i-th of data message is The no token number greater than in first token bucket, the i are the integer more than or equal to 1 and less than or equal to n;
When the byte number of i-th of data message is less than or equal to the token number in first token bucket, from institute State the token that quantity identical as the byte number of i-th of data message is taken out in the first token bucket;When i-th of datagram When the byte number of text is greater than the token number in first token bucket, problem tunnel is determined from a plurality of tunnel, determines institute The difference between the token number in the byte number and first token bucket of i-th of data message is stated, from first token bucket It is middle to take out all tokens, and after adding token into first token bucket, taken out from first token bucket with it is described The token of the identical quantity of difference;
I=i+1 is enabled, return is described for i-th of data message in the n data message, judges i-th of number The step of whether being greater than the token number in first token bucket according to the byte number of message, until the i is equal with the n is Only.
Due to the token that can accommodate quantity identical as predetermined word joint number maximum in the first token bucket, so when i-th of number When being greater than the token number in the first token bucket according to the byte number of message, show the total of preceding i data message in the n data message Therefore byte number is greater than predetermined word joint number can determine problem tunnel from a plurality of tunnel at this time.
Further, right when the byte number of i-th of data message is greater than the token number in first token bucket I-th of data message carries out the first label;It is enabled when the byte number of i-th of data message is less than or equal to described first When token number in board bucket, the second label is carried out to i-th of data message.
It in embodiments of the present invention, is the n by the quantity for the data message that carry out first marks in the n data message The total bytes of a data message and the ratio of predetermined word joint number, the number marked in the n data message by carry out first at this time Bursts of traffic degree can be characterized according to the quantity of message, i.e., the data message marked in the n data message by carry out first Quantity is more, and bursts of traffic degree is higher, and the quantity of the data message marked in the n data message by carry out first is fewer, Bursts of traffic degree is lower.And bursts of traffic degree is by the gap between the time delay in problem tunnel and the time delay in other tunnels Determine, therefore, the quantity of the data message marked in the n data message by carry out first can with characterization problems tunnel when Prolong the difference degree between the time delay in other tunnels, i.e., the data message marked in the n data message by carry out first Quantity is more, and the gap between the time delay in problem tunnel and the time delay in other tunnels is bigger, is carried out the in the n data message The quantity of the data message of one label is fewer, and the gap between the time delay in problem tunnel and the time delay in other tunnels is smaller.
It is wherein, described that problem tunnel is determined from a plurality of tunnel, comprising:
The target data message of receiving time the latest is determined from the n data message;
Used tunnel when the first network equipment sends the target data message is determined from a plurality of tunnel Road;
Used tunnel is determined as problem tunnel when the first network equipment is sent the target data message.
It is wherein, described to generate the control message for carrying problematic Tunnel Identifier, comprising:
Whenever carrying out the first label to the data message in the n data message, generates and carry problematic tunnel mark The control message of knowledge;Alternatively,
In each predetermined period, the quantity of the data message marked in the n data message by carry out first is determined, Based on the quantity of the data message marked by carry out first, the problem of determining described problem tunnel grade, generate carry it is problematic The control message of Tunnel Identifier and described problem grade.
It in embodiments of the present invention, can be when one data marked by carry out first of every appearance in the n data message When message, just generates a control message and send it to second network equipment, in the case, transmitted control message Quantity can be with the difference degree between the time delay in characterization problems tunnel and the time delay in other tunnels.Alternatively, can be each pre- If generating a control message in the period and sending it to second network equipment, in the case, transmitted control message The problem of middle carrying, grade can be with the difference degree between the time delay in characterization problems tunnel and the time delay in other tunnels.
Further, it is described the multiple data message is ranked up after, further includes:
When there is n data message for meeting numeric order in the multiple data message after sequence, it is based on the n The byte number of each data message in a data message, to be less than or equal to the rate of the second scheduled rate to the n data Message is forwarded.
In embodiments of the present invention, first network equipment is to be less than or equal to the rate of the second scheduled rate to this n number Be forwarded according to message, so as to be forwarded with effectively avoiding mass data message burst type, and then it is possible to prevente effectively from after Continue the confirmation message of the mass data message and second network equipment returned to by burst type, allow subsequent second network equipment with More uniform speed carries out the transmission of new data message, avoids the stream between first network equipment and second network equipment Amount burst, ensure that the stability in a plurality of tunnel.
Wherein, the first network equipment includes the second token bucket, and is enabled with second scheduled rate to described second Token is added in board bucket;The byte number based on each data message in the n data message, to be less than or equal to second The rate of scheduled rate is forwarded the n data message, comprising:
For i-th of data message in the n data message, judge that the byte number of i-th of data message is The no token number greater than in second token bucket;
When the byte number of i-th of data message is less than or equal to the token number in second token bucket, from institute The token that quantity identical as the byte number of i-th of data message is taken out in the second token bucket is stated, and to i-th of data Message is forwarded;When the byte number of i-th of data message is greater than the token number in second token bucket, continue To, until when the byte number of i-th of data message is less than or equal to the token number in second token bucket, from described the The token of quantity identical as the byte number of i-th of data message is taken out in two token buckets, and to i-th of data message It is forwarded;
I=i+1 is enabled, return is described for i-th of data message in the n data message, judges i-th of number The step of whether being greater than the token number in second token bucket according to the byte number of message, until the i is equal with the n is Only.
In embodiments of the present invention, first network equipment can be enabled when being forwarded to the n data message by second The maximum number of byte for the data message that the limitation of board bucket can once forward, thereby may be ensured that first network equipment to be less than or wait The n data message is forwarded in the rate of the second scheduled rate.
Second aspect provides a kind of packet transmission device, and the packet transmission device, which has, realizes above-mentioned first aspect The function of middle message transmitting party judicial act.The packet transmission device includes at least one module, at least one described module is used The file transmitting method provided by the above-mentioned first aspect of realization.
The third aspect, provides a kind of packet transmission device, include in the structure of the packet transmission device processor and Memory, the memory support packet transmission device to execute file transmitting method provided by above-mentioned first aspect for storing Program, and storage for realizing data involved in file transmitting method described in above-mentioned first aspect.The processor It is configurable for executing the program stored in the memory.The packet transmission device can also include communication bus, institute Communication bus is stated for establishing connection between the processor and the memory.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Instruction, when run on a computer, so that computer executes file transmitting method described in above-mentioned first aspect.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes file transmitting method described in above-mentioned first aspect.
Above-mentioned second aspect, the third aspect, fourth aspect and the 5th aspect technical effect obtained and above-mentioned first party The technical effect that corresponding technological means obtains in face is approximate, repeats no more herein.
Technical solution provided by the present application has the benefit that second network equipment passes through any in a plurality of tunnel Tunnel sends the data message for carrying test serial number to second network equipment, sets when first network equipment receives the second network When the standby data message for passing through transmission, which is stored.Later, multiple numbers of the first network equipment for storage Multiple data message is arranged according to the test serial number that data message each in multiple data message carries according to message Sequence, then when there is n data message for meeting numeric order in multiple data messages after sequence, if the n data The total bytes of message are greater than predetermined word joint number, show the time delay in the problem tunnel of time delay maximum and other tunnels in a plurality of tunnel The time delay difference in road is larger, then problem tunnel can be determined from a plurality of tunnel, and generate and carry problematic Tunnel Identifier Control message is sent to second network equipment.When second network equipment receives the control message, the control message can be based on The problem of carrying Tunnel Identifier, reduce be sent to problem tunnel data message quantity, with reduce problem tunnel because message block Caused time delay increases, so as to which the time delay in problem tunnel, and then the time delay in reduction problem tunnel and other tunnels are effectively reduced Gap between the time delay in road.In the case, the data message sent by other tunnels stored in first network equipment It can be forwarded without waiting for the long period, the forward efficiency of data message is promoted, first network equipment and the second network The entire throughput in a plurality of tunnel established between equipment will also be promoted, and a large amount of data in first network equipment at this time The situation being forwarded to message burst type will be alleviated, so that subsequent second network equipment can be with relatively uniform speed Degree sends new data message, and then avoids the bursts of traffic between first network equipment and second network equipment, and every Data flow enables a plurality of tunnel more steadily to work without burst characteristic.
Detailed description of the invention
Figure 1A is a kind of schematic diagram of two network equipments connection provided in an embodiment of the present invention;
Figure 1B is schematic diagram when a kind of data message provided in an embodiment of the present invention is sent;
Schematic diagram when Fig. 1 C is a kind of data message forwarding provided in an embodiment of the present invention;
Fig. 1 D is the schematic diagram of implementation environment involved in a kind of file transmitting method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of network equipment provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of file transmitting method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention.
Specific embodiment
Implementation to keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application Mode is described in further detail.
Before to the embodiment of the present invention carrying out that explanation is explained in detail, to the present embodiments relate to application scenarios and Implementation environment is explained.
Firstly, to the present embodiments relate to application scenarios be illustrated.
HA technology allows to establish a plurality of tunnel simultaneously between two network equipments, in the two network equipments a network Message can be sent to another network equipment by any tunnel in a plurality of tunnel by equipment, so as to significantly improve The access bandwidth of the network equipment increases the reliability of access.For example, as shown in Figure 1A, the two network equipments can for HG and Establishing simultaneously between HAAP, HG and HAAP has the tunnel DSL and LTE tunnel, and message can be passed through the tunnel DSL or LTE tunnel by HG Road is sent to HAAP, and certainly, message can also be sent to HG by the tunnel DSL or LTE tunnel by HAAP.
The network equipment that message transmission is carried out in the two network equipments is properly termed as transmitting terminal, carries out the received net of message Network equipment is properly termed as receiving end.Currently, transmitting terminal can be several according to the transmission sequence of data message when sending datagram It, can be according to its test serial number after the data message that transmitting terminal transmission is received so as to receiving end according to message assignment message serial number Restore transmission sequence of the data message on transmitting terminal, then data message is forwarded.For example, as shown in Figure 1B, sending It holds to receiving end and sends six data messages that test serial number is respectively 1,2,3,4,5,6.Later, receiving end first receives message The data message is stored in Re-Order Buffer by the data message of serial number 1, at this time since the data message meets serial number Sequentially, so being forwarded to the data message.Hereafter, receiving end receives two data that test serial number is respectively 3,5 again The two data messages are stored in Re-Order Buffer by message, at this time since the two data messages are according to its message sequence Number sequence after be unsatisfactory for numeric order, so not being forwarded to the two data messages temporarily.
In this case, if the time delay in certain tunnel in a plurality of tunnel established between transmitting terminal and receiving end and its The time delay difference in its tunnel is larger, then the time that the data message that transmitting terminal is sent by the tunnel reaches receiving end will be later than The time of receiving end is reached by the data message that other tunnels are sent simultaneously.At this point, the datagram sent by other tunnels After text reaches receiving end, after needing persistently to wait until the data message arrival sent by the tunnel in Re-Order Buffer, The sequence for meeting numeric order could be completed, then can be just forwarded, is taken a long time so as to cause the forwarding of data message, is forwarded Efficiency is lower, and then causes the entire throughput in a plurality of tunnel established between transmitting terminal and receiving end lower.For example, such as Figure 1B Shown, three data messages that test serial number is respectively 1,3,5 are sent to receiving end by a tunnel by transmitting terminal, by message Serial number is respectively that 2,4,6 three data messages are sent to receiving end by another tunnel.Assuming that the delay inequality in two tunnels Away from larger, test serial number is respectively that 1,3,5 three data messages first reach receiving end, and test serial number is respectively the three of 2,4,6 Receiving end is reached after a data message, then the data message needs that test serial number is 3 persistently wait until in Re-Order Buffer After the data message that test serial number is 2 reaches, the sequence for meeting numeric order could be completed with it, then can be just forwarded.Together Reason, the data message that test serial number is 5 need the data message for persistently waiting until that test serial number is 4 in Re-Order Buffer to arrive After reaching, can just it be forwarded.
In addition, time delay and other tunnels when certain tunnel in a plurality of tunnel established between transmitting terminal and receiving end When time delay difference is larger, the data message that the data message of receiving end needs to reach after waiting first is reached.In the waiting process, Receiving end may receive more data message by the lesser tunnel of time delay, then send when by the biggish tunnel of time delay Data message when reaching receiving end, have a large amount of data message in a short period of time and complete the row for meeting numeric order Sequence to be forwarded with causing a large amount of data message burst type, and then leads to the confirmation report of the subsequent a large amount of data message Text returns to transmitting terminal by burst type, and transmitting terminal can carry out to burst type a large amount of new data after receiving a large amount of confirmation message The transmission of message, causes bursts of traffic, affects the stability in tunnel.For example, as shown in Figure 1 C, between transmitting terminal and receiving end Foundation has tunnel 1 and tunnel 2, and the time delay in tunnel 1 differs larger with the time delay in tunnel 2, and the time delay in tunnel 1 is less than tunnel 2 Time delay, three data messages that test serial number is respectively 4,5,6 are sent to receiving end by tunnel 2 by transmitting terminal, by message sequence It number is respectively that 7,8,9 three data messages are sent to receiving end by tunnel 1.Later, due to the time delay in tunnel 1 and tunnel 2 It influences, receiving end first receives the data message that test serial number is 7, then receives two numbers that test serial number is 8 and 4 simultaneously According to message, then two data messages that test serial number is 9 and 5 are received, finally receives the data message that test serial number is 6. At this point, if waiting until that the data message that test serial number is 6 reaches after three data messages that test serial number is 7,8,9 reach, The sequence for meeting numeric order will be then completed, four data messages that then test serial number is 6,7,8,9 will be forwarded, from And it is forwarded with causing a large amount of data message burst type.
From the foregoing, it will be observed that time delay and other tunnels when certain tunnel in a plurality of tunnel established between transmitting terminal and receiving end When the time delay difference in road is larger, the drop of the entire throughput in a plurality of tunnel established between transmitting terminal and receiving end is not only resulted in It is low, it also will cause the bursts of traffic between transmitting terminal and receiving end, influence the steady of the tunnel established between transmitting terminal and receiving end It is qualitative.For this purpose, what can be established between transmitting terminal and receiving end is more the embodiment of the invention provides a kind of file transmitting method When the time delay in certain tunnel in tunnel differs larger with the time delay in other tunnels, determine that time delay is maximum in a plurality of tunnel Problem tunnel, and transmitting terminal is made to reduce the quantity for being sent to the data message in problem tunnel, to avoid the entirety in a plurality of tunnel The reduction of handling capacity, and avoid the bursts of traffic between transmitting terminal and receiving end.
Then, to the present embodiments relate to implementation environment be illustrated.
Fig. 1 D is the schematic diagram of implementation environment involved in a kind of file transmitting method provided in an embodiment of the present invention.Referring to Fig. 1 D, the implementation environment may include: first network equipment 110 and second network equipment 120, first network equipment 110 and Establishing between two network equipments 120 has a plurality of tunnel, and first network equipment 110 can pass through any tunnel in a plurality of tunnel Road sends message to second network equipment 120, and certainly, second network equipment 120 can also pass through any in a plurality of tunnel Tunnel sends message to first network equipment 110.
Wherein, first network equipment 110 can be data message assignment message serial number according to the transmission sequence of data message, And the data message for carrying test serial number is sent to second network equipment 120 by a plurality of tunnel.Second network equipment 120 whenever receiving a data message of the transmission of first network equipment 110, can store the data message, and Whenever storing a data message, multiple data messages of storage can be ranked up, if multiple data after sequence There is n data message for meeting numeric order in message, then the n data message can be forwarded.
Next first network equipment provided in an embodiment of the present invention and second network equipment are explained.
Fig. 2 is a kind of structural schematic diagram of network equipment provided in an embodiment of the present invention, which can be Fig. 1 D Shown in first network equipment 110 or second network equipment 120.Referring to fig. 2, which includes at least one processor 201, communication bus 202, memory 203 and at least one communication interface 204.
Processor 201 can be a general central processor (Central Processing Unit, CPU), micro process Device, application-specific integrated circuit (application-specific integrated circuit, ASIC) or one or more A integrated circuit executed for controlling application scheme program.
Communication bus 202 may include an access, and information is transmitted between said modules.
Memory 203 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other types of static storage device, random access memory (random access memory, RAM) or letter can be stored The other types of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this. Memory 203, which can be, to be individually present, and is connected by communication bus 202 with processor 201.Memory 203 can also and be located Reason device 201 integrates.
Communication interface 204, using the device of any transceiver one kind, for other equipment or communication, such as Ethernet, wireless access network (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the concrete realization, as one embodiment, processor 201 may include one or more CPU, such as in Fig. 2 Shown in CPU0 and CPU1.
In the concrete realization, as one embodiment, which may include multiple processors, such as institute in Fig. 2 The processor 201 and processor 205 shown.Each of these processors can be a single core processor (single- CPU), it is also possible to a multi-core processor (multi-CPU).Here processor can refer to one or more equipment, circuit, And/or the processing core for handling data (such as computer program instructions).
In the concrete realization, as one embodiment, which can also include output equipment 206 and input equipment 207.Output equipment 206 and processor 201 communicate, and can show information in many ways.For example, output equipment 206 can be with It is liquid crystal display (liquid crystal display, LCD), light emitting diode (light emitting diode, LED) Show equipment, cathode-ray tube (cathode ray tube, CRT) shows equipment or projector (projector) etc..Input Equipment 207 and processor 201 communicate, and can receive the input of user in many ways.For example, input equipment 207 can be mouse Mark, keyboard, touch panel device or sensing equipment etc..
The above-mentioned network equipment can be a universal network equipment either private network device.It is implementing In, the network equipment can be desktop computer, portable computer, network server, palm PC (Personal Digital Assistant, PDA), cell phone, tablet computer, wireless terminal device, communication equipment or embedded device, the present invention is real Apply the type that example does not limit the network equipment.
Wherein, memory 203 is used to store the program code 210 for executing application scheme, and processor 201 is deposited for executing The program code 210 stored in reservoir 203.The network equipment can pass through the program in processor 201 and memory 203 Code 210, the file transmitting method that Lai Shixian following FIG. 3 embodiment provides.
Next file transmitting method provided in an embodiment of the present invention is carried out that explanation is explained in detail.
Fig. 3 is a kind of flow chart of file transmitting method provided in an embodiment of the present invention.Referring to Fig. 3, this method comprises:
Step 301: second network equipment is sent datagram by any tunnel in a plurality of tunnel to first network equipment Text.
It should be noted that second network equipment and first network equipment can be the network being attached using HA technology Equipment.For example, second network equipment can be HAAP when first network equipment is HG;When first network equipment is HAAP, Second network equipment can be HG, and the embodiment of the present invention is not construed as limiting this.
In addition, the different types of tunnel that a plurality of tunnel is established between second network equipment and first network equipment. For example, a plurality of tunnel can be the tunnel DSL, LTE tunnel etc., the embodiment of the present invention is not construed as limiting this.
It should be noted that can carry test serial number in data message, test serial number that data message carries can be with It is to be obtained according to the transmission sequence determination of data message.For example, second network equipment successively sends data to first network equipment Message 1, data message 2 and data message 3, then the test serial number difference that data message 1, data message 2 and data message 3 carry It can be 1,2,3.
In addition, default tunnel protocol encapsulation can be used to the data message that first network equipment is sent in second network equipment It obtains, at this time may include tunnel protocol header fields in data message, may include message sequence in tunnel protocol header fields Number field can wrap the test serial number containing data message in test serial number field.
Furthermore default tunnel protocol can be configured in advance, and such as default tunnel protocol can be generic route encapsulation (Generic Routing Encapsulation, GRE) agreement, may include GRE header fields (GRE in data message at this time Header), may include in GRE header fields test serial number field (Sequence Number), in Sequence Number It can wrap containing test serial number.
Step 302: being sent when first network equipment receives second network equipment by any tunnel in a plurality of tunnel Data message when, which is stored.
It should be noted that first network equipment can store the data message to Re-Order Buffer (bonding Reordering buffer) in, certainly, first network equipment can also store the data message into other memories, this Inventive embodiments are not construed as limiting this.
In addition, first network equipment often receives a data message of second network equipment transmission, so that it may to the number It is stored according to message, and one data message of every storage, so that it may 303 pairs of stored multiple data as follows Message is ranked up.
Step 303: first network equipment for storage multiple data messages, according to every number in multiple data message According to the test serial number that message carries, multiple data message is ranked up.
For example, multiple data message is data message 1, data message 3, data message 2 and data message 5, and data The test serial number that message 1, data message 3, data message 2 and data message 5 carry is respectively 1,3,2,5, then can be according to this The test serial number that each data message carries in multiple data messages, is ranked up multiple data message, more after sequence A data message is sequentially data message 1, data message 2, data message 3, data message 5.
Step 304: when there is n data message for meeting numeric order in multiple data messages after sequence, if The total bytes of the n data message are greater than predetermined word joint number, then first network equipment determines problem tunnel from a plurality of tunnel Road, n are positive integer.
It should be noted that numeric order is sequence when compiling and editing test serial number according to preset coding rule.For example, When test serial number is digital number, numeric order can be 1,2,3,4 ...;When test serial number is alpha code, serial number Sequence can be a, b, c, d ....
In addition, predetermined word joint number can be configured in advance, and predetermined word joint number can be set it is larger, such as preset byte Number can be 1000,1500 etc., and the embodiment of the present invention is not construed as limiting this.
Furthermore problem tunnel can be the maximum tunnel of time delay in a plurality of tunnel, and the time delay in problem tunnel is more with this The time delay difference in other tunnels in tunnel in addition to problem tunnel is larger, at this point, second network equipment passes through problem tunnel The time that the data message of transmission reaches first network equipment, which will be later than second network equipment while pass through other tunnels, to be sent Data message reach first network equipment time.
It will be stored since first network equipment often receives a data message, and one data of every storage Message will be ranked up multiple data messages of storage, and turn to the data message for meeting numeric order after sequence Hair.Therefore, when the total bytes of the n data message are greater than predetermined word joint number, i.e. total bytes when the n data message When larger, show that the test serial number of the data message of receiving time the latest in the n data message is located at other data messages Before test serial number, other data messages are waiting always the arrival of the data message and are failing in the n data message at this time It is forwarded, thus causes the data message to reach first network equipment and after being ranked up, meet the data message of numeric order Total bytes it is larger.
Due to test serial number be according to data message on second network equipment transmission sequence determination obtain, so the n In a data message the data message of receiving time the latest be before other data messages transmitted by second network equipment.So And the data message but just reaches first network equipment after other data messages, thus show time delay in a plurality of tunnel The time delay in maximum problem tunnel differs larger with the time delay in other tunnels.Under the influence of the time delay in problem tunnel, by asking The time that the data message that more early sends of topic tunnel reaches first network equipment is later instead, thus reaches the in the data message There is a large amount of data message to complete the sequence for meeting numeric order after one network equipment, in the short time, causes bursts of traffic.
Therefore, if the total bytes of the n data message are greater than predetermined word joint number, first network equipment can be from this Problem tunnel is determined in a plurality of tunnel, and from a plurality of tunnel when determining problem tunnel, it can be first from the n data message It determines the target data message of receiving time the latest, then determines that first network equipment sends target data report from a plurality of tunnel Used tunnel when literary, later, used tunnel is determined as problem when first network equipment is sent target data message Tunnel.
It should be noted that first network equipment directly can be greater than predetermined word when the total bytes of the n data message When joint number, problem tunnel is determined from a plurality of tunnel;Alternatively, can be by the first token bucket for including in first network equipment If realizing that the total bytes of the n data message are greater than predetermined word joint number, problem tunnel is determined from a plurality of tunnel Operation.
Wherein, when the token number in the first token bucket is not 0, first network equipment can be with the first scheduled rate to Token is added in one token bucket, when the token number in the first token bucket is 0, first network equipment can be enabled disposably to first The token for the maximum quantity that the first token bucket can accommodate is added in board bucket, which can be preset byte number.
In addition, the first scheduled rate is committed information rate (the Committed Information of the first token bucket Rate, CIR), the first scheduled rate can be configured in advance, and the first scheduled rate can be according to the total of a plurality of tunnel Bandwidth determination obtains, and that is to say, the token adding speed in the first token bucket connects from a plurality of tunnel with first network equipment The speed for receiving byte matches.
Specifically, if when the total bytes for realizing the n data message by the first token bucket are greater than predetermined word joint number, When then determining the operation in problem tunnel from a plurality of tunnel, which may include steps of (1)-(3).
(1) for i-th of data message in the n data message, judge whether the byte number of i-th of data message is big Token number in the first token bucket, i are the integer more than or equal to 1 and less than or equal to n.
(2) when the byte number of i-th of data message is less than or equal to the token number in the first token bucket, from the first token The token of quantity identical as the byte number of i-th of data message is taken out in bucket;When the byte number of i-th of data message is greater than first When token number in token bucket, problem tunnel is determined from a plurality of tunnel, determines the byte number and first of i-th of data message The difference between token number in token bucket is taken out all tokens from the first token bucket, and is added into the first token bucket After token, the token of quantity identical as the difference is taken out from the first token bucket.
Due to the token that can accommodate quantity identical as predetermined word joint number maximum in the first token bucket, so when i-th of number When being greater than the token number in the first token bucket according to the byte number of message, show the total of preceding i data message in the n data message Therefore byte number is greater than predetermined word joint number can determine problem tunnel from a plurality of tunnel at this time.
(3) i=i+1, return step (1), until i is equal with n are enabled.
It further, can also be to the when the byte number of i-th of data message is greater than the token number in the first token bucket I data message carries out the first label.Wherein, the first label can be configured in advance, and such as the first label can be by data Packet labeling is yellow etc., and the embodiment of the present invention is not construed as limiting this.
It in this case, is the n data by the quantity for the data message that carry out first marks in the n data message The total bytes of message and the ratio of predetermined word joint number, the data message marked in the n data message by carry out first at this time Quantity can characterize bursts of traffic degree, i.e., got in the n data message by the quantity for the data message that carry out first marks More, bursts of traffic degree is higher, and the quantity of the data message marked in the n data message by carry out first is fewer, and flow is prominent Hair degree is lower.
And bursts of traffic degree is determined by the gap between the time delay in problem tunnel and the time delay in other tunnels, because This, the quantity of the data message marked in the n data message by carry out first can with the time delay in characterization problems tunnel with it is other The quantity of difference degree between the time delay in tunnel, i.e., the data message marked in the n data message by carry out first is more, Gap between the time delay in problem tunnel and the time delay in other tunnels is bigger, is marked in the n data message by carry out first The quantity of data message is fewer, and the gap between the time delay in problem tunnel and the time delay in other tunnels is smaller.
In practical application, in order to become apparent the data message of the first label of progress in the n data message and its Its data message distinguishes, further, when the byte number of i-th of data message is less than or equal to the order in the first token bucket When board number, the second label can also be carried out to i-th of data message.Wherein, the second label can be configured in advance, and such as second Label can be for by data message, labeled as green etc., the embodiment of the present invention is not construed as limiting this.In the case, this n number It according to one data message marked by carry out first of every appearance in message, then can determine whether a problem tunnel, and a quilt occur The data message for carrying out the second label, then not can determine whether problem tunnel.
Step 305: first network equipment generates the control message for carrying problematic Tunnel Identifier, and the control message is sent out Give second network equipment.
It should be noted that problem Tunnel Identifier is used for unique identification problem tunnel, and problem Tunnel Identifier can be to ask Title, the type etc. in tunnel are inscribed, the embodiment of the present invention is not construed as limiting this.
When determining the mode difference in problem tunnel, generates and carry the mode of the control message of problematic Tunnel Identifier also not Together.Specifically, when step 304 is directly when the total bytes of the n data message are greater than predetermined word joint number, from a plurality of tunnel It when determining problem tunnel in road, that is to say, when only determining a problem tunnel in step 304, can directly generate and carry The control message of problem Tunnel Identifier only generates a control message at this time and sends it to second network equipment.
If alternatively, when step 304 is to realize that the total bytes of the n data message are greater than by the first token bucket to preset Byte number can be whenever to the datagram in the n data message when then determining the operation in problem tunnel from a plurality of tunnel It when text carries out the first label, that is to say, in step 304 when every problem tunnel of determination, generate and carry problematic tunnel mark The control message of knowledge, one data message marked by carry out first of every appearance in the n data message, will generate one at this time A control message simultaneously sends it to second network equipment, and in the case, the quantity of transmitted control message can characterize Difference degree between the time delay in problem tunnel and the time delay in other tunnels.
If alternatively, when step 304 is to realize that the total bytes of the n data message are greater than by the first token bucket to preset Byte number can determine this n number in each predetermined period when then determining the operation in problem tunnel from a plurality of tunnel According to the quantity of the data message marked in message by carry out first, based on the quantity of the data message marked by carry out first, really The problem of determining problem tunnel grade generates the control message for carrying problematic Tunnel Identifier and the problem magnitude, is every at this time A control message is generated in a predetermined period and sends it to second network equipment, in the case, transmitted control The problem of carrying in message grade can be with the difference degree between the time delay in characterization problems tunnel and the time delay in other tunnels.
It should be noted that predetermined period can be configured in advance, and predetermined period can be according to practical application request It is configured, the embodiment of the present invention is not construed as limiting this.
In addition, problem magnitude is used for the difference degree between the time delay in characterization problems tunnel and the time delay in other tunnels, and Problem magnitude is higher, shows that the gap between the time delay in problem tunnel and the time delay in other tunnels is bigger, problem magnitude is smaller, table Gap between the time delay in bright problem tunnel and the time delay in other tunnels is smaller.
Wherein, the quantity based on the data message marked by carry out first can when the problem of determining problem tunnel grade With the quantity based on the data message marked by carry out first, from the corresponding relationship between the quantity and grade of storage, obtain Corresponding grade, and grade the problem of the grade that will acquire is determined as the problem tunnel.It certainly, can also be with base in practical application In the quantity of the data message marked by carry out first, the problem of determining the problem tunnel otherwise grade, the present invention Embodiment is not construed as limiting this.
It should be noted that the control message can be by being extended existing control message in practical application It arrives, for example, bad Tunnel Notify attribute value can be increased in existing control message to (Bad Tunnel Notification Attribute Value Pair, BTN AVP), it may include attribute type (Attribute Type) field, category in BTNAVP Property length (Attribute Length) field, bad Tunnel Notify (Bad Tunnel Notification) field etc., wherein It may include problem Tunnel Identifier in Bad Tunnel Notification field.
Further, when also carrying problem magnitude in the control message, which can also be by existing Control message be extended to obtain, for example, the level attributed value in bad tunnel can be increased in existing control message to (Bad Tunnel Grade Attribute Value Pair, BTG AVP), it may include attribute type in BTG AVP (Attribute Type) field, attribute length (Attribute Length) field, bad tunnel grade (Bad Tunnel Grade) field etc., wherein may include problem Tunnel Identifier and problem magnitude in Bad Tunnel Grade field.
Step 306: when second network equipment receives the control message, being based on the problem of control message carries tunnel Mark reduces the quantity for being sent to the data message in problem tunnel.
It specifically, can be by tunnel the problem of control message carrying when second network equipment receives the control message Road identifies identified tunnel and is determined as problem tunnel, and reduces the quantity for being sent to the data message in problem tunnel.
Wherein, it when second network equipment reduces the quantity for the data message for being sent to problem tunnel, is also based on and receives The control message quantity, or based on grade the problem of carrying in the control message, determine the time delay in problem tunnel with it is other Difference degree between the time delay in tunnel;Time delay based on problem tunnel and the difference degree between the time delay in other tunnels, really Surely it is sent to the destination number of the data message in problem tunnel, and the quantity for being sent to the data message in problem tunnel is reduced to target Quantity.
It is worth noting that after the quantity for the data message that the reduction of second network equipment is sent to problem tunnel, it can be effective Time delay caused by reduction problem tunnel blocks because of message increases, and so as to which the time delay in problem tunnel is effectively reduced, and then reduces Gap between the time delay in problem tunnel and the time delay in other tunnels.In the case, what is stored in first network equipment passes through The data message that other tunnels are sent can be forwarded without waiting for the long period, and the forward efficiency of data message is promoted, The entire throughput in a plurality of tunnel established between first network equipment and second network equipment will also be promoted, and at this time The situation being forwarded to a large amount of data message burst type in one network equipment will be alleviated, so that subsequent second network Equipment can send new data message with relatively uniform speed, and then avoid first network equipment and second network equipment Between bursts of traffic, and every data stream without burst characteristic enables a plurality of tunnel more steadily to work.
In embodiments of the present invention, second network equipment is sent out by any tunnel in a plurality of tunnel to second network equipment The data message for carrying test serial number is sent, passes through the data message of transmission when first network equipment receives second network equipment When, which is stored.Later, first network equipment for storage multiple data messages, according to multiple number According to the test serial number that data message each in message carries, multiple data message is ranked up, it is then more after sequence When there is n data message for meeting numeric order in a data message, if the total bytes of the n data message are greater than in advance If byte number, show that the time delay in the problem tunnel of time delay maximum in a plurality of tunnel differs larger with the time delay in other tunnels, then Problem tunnel can be determined from a plurality of tunnel, and is generated and carried the control message of problematic Tunnel Identifier and be sent to the second net Network equipment.When second network equipment receives the control message, it can be based on the problem of control message carries Tunnel Identifier, subtracted It is sent to the quantity of the data message in problem tunnel less, is increased with reducing time delay caused by problem tunnel blocks because of message, so as to The time delay in problem tunnel is effectively reduced, and then reduce the gap between the time delay in problem tunnel and the time delay in other tunnels.? In this case, the data message sent by other tunnels stored in first network equipment can be by without waiting for the long period Forwarding, the forward efficiency of data message are promoted, a plurality of tunnel established between first network equipment and second network equipment The entire throughput feelings that will also be promoted, and be forwarded to a large amount of data message burst type in first network equipment at this time Shape will be alleviated, so that subsequent second network equipment can send new data message with relatively uniform speed, into And the bursts of traffic between first network equipment and second network equipment is avoided, and every data stream makes without burst characteristic The a plurality of tunnel can more steadily work.
As it was noted above, in the step 303 of the embodiment of the present invention first network equipment for storage multiple data messages, According to the test serial number that data message each in multiple data message carries, after being ranked up to multiple data message, no Only problem tunnel can be determined by step 304, further, can also existed completely in multiple data message after sequence When n data message of sufficient numeric order, based on the byte number of each data message in the n data message, to be less than or wait The n data message is forwarded in the rate of the second scheduled rate.
It should be noted that the second scheduled rate can be configured in advance, and the second scheduled rate can be basis and be somebody's turn to do The total bandwidth determination in a plurality of tunnel obtains, and that is to say, the second scheduled rate is received from a plurality of tunnel with first network equipment The speed of byte matches.
Wherein, the byte number based on each data message in the n data message, to be less than or equal to the second scheduled rate Rate operation that the n data message is forwarded can be real by the second token bucket for including in first network equipment It is existing.
It should be noted that the highest number of tokens that the second token bucket can accommodate is smaller, example in order to limit bursts of traffic Such as, the highest number of tokens that the second token bucket can accommodate can be much smaller than the highest number of tokens that the first token bucket can accommodate.
In addition, first network equipment can add token, the second default speed with the second scheduled rate into the second token bucket Rate is the CIR of the second token bucket, and the token adding speed in the second token bucket and first network equipment are from a plurality of tunnel at this time The speed that byte is received in road matches.
Specifically, first network equipment is realized by the second token bucket based on each data message in the n data message Byte number, be less than or equal to the second scheduled rate rate the n data message is forwarded operation when, the operation It may include steps of (1)-(3).
(1) for i-th of data message in the n data message, judge whether the byte number of i-th of data message is big Token number in the second token bucket.
(2) when the byte number of i-th of data message is less than or equal to the token number in the second token bucket, from the second token The token of quantity identical as the byte number of i-th of data message is taken out in bucket, and i-th of data message is forwarded;When i-th It when the byte number of a data message is greater than the token number in the second token bucket, continues waiting for, until the byte of i-th of data message When number is less than or equal to the token number in the second token bucket, the byte number with i-th of data message is taken out from the second token bucket The token of identical quantity, and i-th of data message is forwarded.
Further, when the byte number of i-th of data message is less than or equal to the token number in the second token bucket, may be used also To carry out third label to i-th of data message, when the byte number of i-th of data message is greater than the token number in the second token bucket When, the 4th label can also be carried out to i-th of data message.In the case, by carry out third label in the n data message Data message allow its forwarding, the data message for being carried out the 4th label then needs the token number in the second token bucket to restore To after enough quantity, label (third label is carried out to it) can be just re-started to it and allows its forwarding.
Wherein, third label and the 4th label can be configured in advance, if third label can be by data message mark It is denoted as green etc., the 4th label can be for, labeled as red etc., the embodiment of the present invention is not construed as limiting this by data message.
(3) i=i+1, return step (1), until i is equal with n are enabled.
In embodiments of the present invention, first network equipment can be enabled when being forwarded to the n data message by second The maximum number of byte for the data message that the limitation of board bucket can once forward, so as to effectively avoid mass data message burst type Ground is forwarded, and then it is possible to prevente effectively from the confirmation message of the subsequent mass data message returns to the second network by burst type and sets It is standby, allow subsequent second network equipment to carry out the transmission of new data message with more uniform speed, avoids first Bursts of traffic between the network equipment and second network equipment ensure that the stability in a plurality of tunnel.
Fig. 4 is a kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which answers For first network equipment, which being implemented in combination with as first network by software, hardware or both Equipment it is some or all of, which can be the network equipment shown in Fig. 2, and first network equipment and second Establishing between the network equipment has a plurality of tunnel.Referring to fig. 4, which includes memory module 401, sorting module 402, determining module 403 and sending module 404.
Memory module 401, for executing the step 302 in Fig. 3 embodiment;
Sorting module 402, for executing the step 303 in Fig. 3 embodiment;
Determining module 403, for executing the step 304 in Fig. 3 embodiment;
Sending module 404, for executing the step 305 in Fig. 3 embodiment.
Optionally, first network equipment includes the first token bucket, and when the token number in the first token bucket is not 0, with First scheduled rate adds token into the first token bucket, when the token number in the first token bucket is 0, disposably enables to first The token for the maximum quantity that the first token bucket can accommodate is added in board bucket, maximum quantity is predetermined word joint number;Determining module 403 Include:
First judging unit, for the step of executing the step 304 in Fig. 3 embodiment (1);
Token is taken, for the step of executing the step 304 in Fig. 3 embodiment (2);
First trigger unit, for the step of executing the step 304 in Fig. 3 embodiment (3).
Optionally it is determined that module 403 includes:
First determination unit, for determining the target data message of receiving time the latest from n data message;
Second determination unit is used when for determining that first network equipment sends target data message from a plurality of tunnel Tunnel;
Third determination unit, used tunnel is determined as asking when for first network equipment to be sent target data message Inscribe tunnel.
Optionally it is determined that module 403 further include:
Marking unit, for when the byte number of i-th of data message be greater than the first token bucket in token number when, to i-th A data message carries out the first label;
Correspondingly, sending module 404 includes:
First generation unit, for generating and carrying whenever carrying out the first label to the data message in n data message The control message of problematic Tunnel Identifier;Alternatively,
Second generation unit, for determining the number marked in n data message by carry out first in each predetermined period According to the quantity of message, based on the quantity of the data message marked by carry out first, the problem of determining problem tunnel grade, generation takes Control message with problematic Tunnel Identifier and problem magnitude.
Optionally, the device further include:
Forwarding module, when for there is n data message for meeting numeric order in multiple data messages after sequence, Based on the byte number of each data message in n data message, to be less than or equal to the rate of the second scheduled rate to n number It is forwarded according to message.
Optionally, first network equipment includes the second token bucket, and is added with the second scheduled rate into the second token bucket Token;Forwarding module includes:
Second judgment unit, for judging i-th of data message for i-th of data message in n data message Whether byte number is greater than the token number in the second token bucket;
Retransmission unit, for when the byte number of i-th of data message be less than or equal to the second token bucket in token number when, The token of quantity identical as the byte number of i-th of data message is taken out from the second token bucket, and i-th of data message is carried out Forwarding;It when the byte number of i-th of data message is greater than the token number in the second token bucket, continues waiting for, until i-th of data When the byte number of message is less than or equal to the token number in the second token bucket, taken out and i-th of datagram from the second token bucket The token of the identical quantity of byte number of text, and i-th of data message is forwarded;
Second trigger unit triggers second judgment unit for i-th of number in n data message for enabling i=i+1 According to message, judge whether the byte number of i-th of data message is greater than the token number in the second token bucket, is up to i is equal with n Only.
Optionally, when first network equipment is home gateway HG, second network equipment is mixing cut-in convergent point HAAP; When first network equipment is HAAP, second network equipment is HG.
In embodiments of the present invention, second network equipment is sent out by any tunnel in a plurality of tunnel to second network equipment The data message for carrying test serial number is sent, passes through the data message of transmission when first network equipment receives second network equipment When, which is stored.Later, first network equipment for storage multiple data messages, according to multiple number According to the test serial number that data message each in message carries, multiple data message is ranked up, it is then more after sequence When there is n data message for meeting numeric order in a data message, if the total bytes of the n data message are greater than in advance If byte number, show that the time delay in the problem tunnel of time delay maximum in a plurality of tunnel differs larger with the time delay in other tunnels, then Problem tunnel can be determined from a plurality of tunnel, and is generated and carried the control message of problematic Tunnel Identifier and be sent to the second net Network equipment.When second network equipment receives the control message, it can be based on the problem of control message carries Tunnel Identifier, subtracted It is sent to the quantity of the data message in problem tunnel less, is increased with reducing time delay caused by problem tunnel blocks because of message, so as to The time delay in problem tunnel is effectively reduced, and then reduce the gap between the time delay in problem tunnel and the time delay in other tunnels.? In this case, the data message sent by other tunnels stored in first network equipment can be by without waiting for the long period Forwarding, the forward efficiency of data message are promoted, a plurality of tunnel established between first network equipment and second network equipment The entire throughput feelings that will also be promoted, and be forwarded to a large amount of data message burst type in first network equipment at this time Shape will be alleviated, so that subsequent second network equipment can send new data message with relatively uniform speed, into And the bursts of traffic between first network equipment and second network equipment is avoided, and every data stream makes without burst characteristic The a plurality of tunnel can more steadily work.
It should be understood that packet transmission device provided by the above embodiment message send when, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, packet transmission device provided by the above embodiment and file transmitting method embodiment belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program produces Product include one or more computer instructions.When loading and execute on computers the computer instruction, all or part of real estate The raw process or function being somebody's turn to do according to the embodiment of the present invention.The computer can be general purpose computer, special purpose computer, computer network Network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or count from one Calculation machine readable storage medium storing program for executing is transmitted to another computer readable storage medium, for example, the computer instruction can be from a net Website, computer, server or data center by it is wired (such as: coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave etc.) mode to another web-site, calculate Machine, server or data center are transmitted.The computer readable storage medium can be that computer can access it is any can It either include the data storage devices such as one or more usable mediums integrated server, data center with medium.This is available Medium can be magnetic medium (such as: floppy disk, hard disk, tape), optical medium (such as: digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as: solid state hard disk (Solid State Disk, SSD)) etc..
It above should be embodiment provided by the present application, it is all in spirit herein and principle not to limit the application Within, any modification, equivalent replacement, improvement and so on should be included within the scope of protection of this application.

Claims (14)

1. a kind of file transmitting method, which is characterized in that be applied to first network equipment, the first network equipment and the second net Establishing between network equipment has a plurality of tunnel, which comprises
Test serial number is carried by what any tunnel in a plurality of tunnel was sent when receiving second network equipment Data message when, the data message is stored;
For multiple data messages of storage, according to the test serial number that data message each in the multiple data message carries, The multiple data message is ranked up;
When there is n data message for meeting numeric order in the multiple data message after sequence, if the n number It is greater than predetermined word joint number according to the total bytes of message, then determines problem tunnel from a plurality of tunnel, described problem tunnel is The maximum tunnel of time delay in a plurality of tunnel, the n are positive integer;
The control message for carrying problematic Tunnel Identifier is generated, and the control message is sent to second network equipment, Described problem Tunnel Identifier is based on by second network equipment, reduces the quantity for being sent to the data message in described problem tunnel.
2. the method as described in claim 1, which is characterized in that the first network equipment includes the first token bucket, and works as institute When to state the token number in the first token bucket not be 0, token is added into first token bucket with the first scheduled rate, when described When token number in first token bucket is 0, first token bucket is disposably added into first token bucket to be accommodated Maximum quantity token, the maximum quantity be the predetermined word joint number;
If the total bytes of the n data message are greater than default value, problem is determined from a plurality of tunnel Tunnel, comprising:
For i-th of data message in the n data message, judge whether the byte number of i-th of data message is big Token number in first token bucket, the i are the integer more than or equal to 1 and less than or equal to n;
When the byte number of i-th of data message is less than or equal to the token number in first token bucket, from described the The token of quantity identical as the byte number of i-th of data message is taken out in one token bucket;When i-th of data message When byte number is greater than the token number in first token bucket, problem tunnel is determined from a plurality of tunnel, determines described i-th The difference between token number in the byte number of a data message and first token bucket, takes out from first token bucket All tokens, and after adding token into first token bucket, it is taken out and the difference phase from first token bucket With the token of quantity;
I=i+1 is enabled, return is described for i-th of data message in the n data message, judges i-th of datagram The step of whether byte number of text is greater than the token number in first token bucket, until the i is equal with the n.
3. method according to claim 1 or 2, which is characterized in that described to determine problem tunnel, packet from a plurality of tunnel It includes:
The target data message of receiving time the latest is determined from the n data message;
Used tunnel when the first network equipment sends the target data message is determined from a plurality of tunnel;
Used tunnel is determined as problem tunnel when the first network equipment is sent the target data message.
4. method according to claim 2, which is characterized in that the method also includes:
When the byte number of i-th of data message is greater than the token number in first token bucket, to i-th of data Message carries out the first label;
It is correspondingly, described to generate the control message for carrying problematic Tunnel Identifier, comprising:
Whenever carrying out the first label to the data message in the n data message, generates and carry problematic Tunnel Identifier Control message;Alternatively,
In each predetermined period, determines the quantity of the data message marked in the n data message by carry out first, be based on The quantity of the data message marked by carry out first, the problem of determining described problem tunnel grade, generate and carry problematic tunnel The control message of mark and described problem grade.
5. the method as described in claim 1-4 is any, which is characterized in that described to be ranked up it to the multiple data message Afterwards, further includes:
When there is n data message for meeting numeric order in the multiple data message after sequence, it is based on the n number According to the byte number of data message each in message, to be less than or equal to the rate of the second scheduled rate to the n data message It is forwarded.
6. method as claimed in claim 5, which is characterized in that the first network equipment includes the second token bucket, and with institute It states the second scheduled rate and adds token into second token bucket;
The byte number based on each data message in the n data message, to be less than or equal to the second scheduled rate Rate is forwarded the n data message, comprising:
For i-th of data message in the n data message, judge whether the byte number of i-th of data message is big Token number in second token bucket;
When the byte number of i-th of data message is less than or equal to the token number in second token bucket, from described the The token of quantity identical as the byte number of i-th of data message is taken out in two token buckets, and to i-th of data message It is forwarded;When the byte number of i-th of data message is greater than the token number in second token bucket, continue waiting for, Until when the byte number of i-th of data message is less than or equal to the token number in second token bucket, from described second Take out the token of identical as the byte number of i-th of data message quantity in token bucket, and to i-th of data message into Row forwarding;
I=i+1 is enabled, return is described for i-th of data message in the n data message, judges i-th of datagram The step of whether byte number of text is greater than the token number in second token bucket, until the i is equal with the n.
7. the method as described in claim 1-6 is any, which is characterized in that
When the first network equipment is home gateway HG, second network equipment is mixing cut-in convergent point HAAP;
When the first network equipment is HAAP, second network equipment is HG.
8. a kind of packet transmission device, which is characterized in that be applied to first network equipment, the first network equipment and the second net Establishing between network equipment has a plurality of tunnel, and described device includes:
Memory module receives second network equipment taking by any tunnel transmission in a plurality of tunnel for working as When data message with test serial number, the data message is stored;
Sorting module is taken for multiple data messages for storage according to each data message in the multiple data message The test serial number of band is ranked up the multiple data message;
Determining module, when for there is n data message for meeting numeric order in the multiple data message after sequence, If the total bytes of the n data message are greater than predetermined word joint number, problem tunnel, institute are determined from a plurality of tunnel Stating problem tunnel is the maximum tunnel of time delay in a plurality of tunnel, and the n is positive integer;
Sending module for generating the control message for carrying problematic Tunnel Identifier, and the control message is sent to described Second network equipment is based on described problem Tunnel Identifier by second network equipment, reduces the number for being sent to described problem tunnel According to the quantity of message.
9. device as claimed in claim 8, which is characterized in that the first network equipment includes the first token bucket, and works as institute When to state the token number in the first token bucket not be 0, token is added into first token bucket with the first scheduled rate, when described When token number in first token bucket is 0, first token bucket is disposably added into first token bucket to be accommodated Maximum quantity token, the maximum quantity be the predetermined word joint number;
The determining module includes:
First judging unit, for judging i-th of datagram for i-th of data message in the n data message Whether the byte number of text is greater than the token number in first token bucket, and the i is more than or equal to 1 and less than or equal to n's Integer;
Token is taken, the order for being less than or equal in first token bucket when the byte number of i-th of data message When board number, the token of quantity identical as the byte number of i-th of data message is taken out from first token bucket;When described When the byte number of i-th of data message is greater than the token number in first token bucket, problem is determined from a plurality of tunnel Tunnel determines the difference between the token number in the byte number and first token bucket of i-th of data message, from described All tokens are taken out in first token bucket, and after adding token into first token bucket, from first token bucket Take out the token of quantity identical as the difference;
First trigger unit triggers the judging unit for i-th of number in the n data message for enabling i=i+1 According to message, the token number whether byte number of i-th of data message is greater than in first token bucket is judged, until described Until i is equal with the n.
10. device as claimed in claim 8 or 9, which is characterized in that the determining module includes:
First determination unit, for determining the target data message of receiving time the latest from the n data message;
Second determination unit, for determining that the first network equipment sends the target data message from a plurality of tunnel When used tunnel;
Third determination unit, used tunnel determines when for the first network equipment to be sent the target data message For problem tunnel.
11. device as claimed in claim 9, which is characterized in that the determining module further include:
Marking unit, for when the byte number of i-th of data message be greater than first token bucket in token number when, it is right I-th of data message carries out the first label;
Correspondingly, the sending module includes:
First generation unit, for generating and carrying whenever carrying out the first label to the data message in the n data message The control message of problematic Tunnel Identifier;Alternatively,
Second generation unit, for determining the number marked in the n data message by carry out first in each predetermined period According to the quantity of message, based on the quantity of the data message marked by carry out first, the problem of determining described problem tunnel grade, it is raw At the control message for carrying problematic Tunnel Identifier and described problem grade.
12. the device as described in claim 8-11 is any, which is characterized in that described device further include:
Forwarding module, when for there is n data message for meeting numeric order in the multiple data message after sequence, Based on the byte number of each data message in the n data message, to be less than or equal to the rate of the second scheduled rate to institute N data message is stated to be forwarded.
13. device as claimed in claim 12, which is characterized in that the first network equipment includes the second token bucket, and with Second scheduled rate adds token into second token bucket;
The forwarding module includes:
Second judgment unit, for judging i-th of datagram for i-th of data message in the n data message Whether the byte number of text is greater than the token number in second token bucket;
Retransmission unit, the token for being less than or equal in second token bucket when the byte number of i-th of data message When number, the token of quantity identical as the byte number of i-th of data message is taken out from second token bucket, and to described I-th of data message is forwarded;When the byte number of i-th of data message is greater than the token number in second token bucket When, it continues waiting for, until the byte number of i-th of data message is less than or equal to the token number in second token bucket When, take out the token of identical as the byte number of i-th of data message quantity from second token bucket, and to described the I data message is forwarded;
Second trigger unit triggers the second judgment unit for i-th in the n data message for enabling i=i+1 A data message judges the token number whether byte number of i-th of data message is greater than in second token bucket, until Until the i is equal with the n.
14. the device as described in claim 8-13 is any, which is characterized in that
When the first network equipment is home gateway HG, second network equipment is mixing cut-in convergent point HAAP;
When the first network equipment is HAAP, second network equipment is HG.
CN201710731263.3A 2017-08-23 2017-08-23 File transmitting method and device Withdrawn CN109428801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710731263.3A CN109428801A (en) 2017-08-23 2017-08-23 File transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710731263.3A CN109428801A (en) 2017-08-23 2017-08-23 File transmitting method and device

Publications (1)

Publication Number Publication Date
CN109428801A true CN109428801A (en) 2019-03-05

Family

ID=65499353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710731263.3A Withdrawn CN109428801A (en) 2017-08-23 2017-08-23 File transmitting method and device

Country Status (1)

Country Link
CN (1) CN109428801A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669831A (en) * 2020-05-22 2020-09-15 中国联合网络通信集团有限公司 Resource allocation method and device
CN111726300A (en) * 2020-06-15 2020-09-29 哈工大机器人(合肥)国际创新研究院 Data sending method and device
CN112751741A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message transmission method and device
CN113992607A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Message processing method and device
CN114095433A (en) * 2021-11-25 2022-02-25 新华三技术有限公司合肥分公司 Message sending method, device, electronic equipment and medium
CN114731334A (en) * 2020-02-14 2022-07-08 华为技术有限公司 Message order preserving method and device
WO2022156808A1 (en) * 2021-01-25 2022-07-28 华为技术有限公司 Packet processing method and related apparatus
CN114978986A (en) * 2022-05-13 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and storage medium
CN115037671A (en) * 2021-03-04 2022-09-09 华为技术有限公司 Multi-path aggregation scheduling method and electronic equipment
WO2023283924A1 (en) * 2021-07-16 2023-01-19 北京小米移动软件有限公司 Data transmission method, data transmission apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271086A (en) * 2011-07-25 2011-12-07 华为技术有限公司 Data transmission method and device
CN102984081A (en) * 2012-10-30 2013-03-20 盛科网络(苏州)有限公司 Method and system of message processing in network equipment
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
US20150003240A1 (en) * 2006-02-21 2015-01-01 Rockstar Consortium Us Lp Adaptive call routing in ip networks
CN106230619A (en) * 2016-07-21 2016-12-14 湖南智卓创新金融电子有限公司 Data sending, receiving method and device, data transmission method and system
CN106411773A (en) * 2016-08-29 2017-02-15 武汉微创光电股份有限公司 Traffic shaping method and system in video transmission based on token bucket

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150003240A1 (en) * 2006-02-21 2015-01-01 Rockstar Consortium Us Lp Adaptive call routing in ip networks
CN102271086A (en) * 2011-07-25 2011-12-07 华为技术有限公司 Data transmission method and device
CN102984081A (en) * 2012-10-30 2013-03-20 盛科网络(苏州)有限公司 Method and system of message processing in network equipment
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN106230619A (en) * 2016-07-21 2016-12-14 湖南智卓创新金融电子有限公司 Data sending, receiving method and device, data transmission method and system
CN106411773A (en) * 2016-08-29 2017-02-15 武汉微创光电股份有限公司 Traffic shaping method and system in video transmission based on token bucket

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751741A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message transmission method and device
CN112751741B (en) * 2019-10-31 2023-09-15 中兴通讯股份有限公司 Message transmission method and device
CN114731334B (en) * 2020-02-14 2023-10-20 华为技术有限公司 Message order preserving method and device
CN114731334A (en) * 2020-02-14 2022-07-08 华为技术有限公司 Message order preserving method and device
CN111669831B (en) * 2020-05-22 2022-09-09 中国联合网络通信集团有限公司 Resource allocation method and device
CN111669831A (en) * 2020-05-22 2020-09-15 中国联合网络通信集团有限公司 Resource allocation method and device
CN111726300A (en) * 2020-06-15 2020-09-29 哈工大机器人(合肥)国际创新研究院 Data sending method and device
EP4254883A4 (en) * 2021-01-25 2024-05-22 Huawei Technologies Co., Ltd. Packet processing method and related apparatus
WO2022156808A1 (en) * 2021-01-25 2022-07-28 华为技术有限公司 Packet processing method and related apparatus
CN115037671A (en) * 2021-03-04 2022-09-09 华为技术有限公司 Multi-path aggregation scheduling method and electronic equipment
WO2023283924A1 (en) * 2021-07-16 2023-01-19 北京小米移动软件有限公司 Data transmission method, data transmission apparatus, and storage medium
CN113992607B (en) * 2021-09-09 2023-11-03 新华三信息安全技术有限公司 Message processing method and device
CN113992607A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Message processing method and device
CN114095433A (en) * 2021-11-25 2022-02-25 新华三技术有限公司合肥分公司 Message sending method, device, electronic equipment and medium
CN114095433B (en) * 2021-11-25 2024-02-23 新华三技术有限公司合肥分公司 Message sending method and device, electronic equipment and medium
CN114978986A (en) * 2022-05-13 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and storage medium
CN114978986B (en) * 2022-05-13 2024-05-14 中国联合网络通信集团有限公司 Data transmission method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109428801A (en) File transmitting method and device
US11445569B2 (en) Session establishment method and system, and device
CN111436030B (en) Method, device and system for reporting data usage
US11463346B2 (en) Data processing method, device, and system
CN107360591A (en) A kind of method and apparatus of reporting buffer status report
CN108471629A (en) The control method of business service quality, equipment and system in transmission network
CN105511954A (en) Method and device for message processing
US20180006970A1 (en) Technologies for scalable packet reception and transmission
CN112019363B (en) Method, device and system for determining service transmission requirement
CN113630796A (en) Service quality monitoring method, equipment and system
CN110521178B (en) Method, device and system for distributing data
WO2019158033A1 (en) Policy control method, equipment and system
CN104883302A (en) Method, device and system for forwarding data packet
CN109962961A (en) A kind of reorientation method and system of content distribution network CDN service node
WO2016202158A1 (en) Message transmission method and device, and computer-readable storage medium
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
CN112702700A (en) Resource allocation method and device
CN108390811B (en) GRE tunnel establishment method and equipment thereof
CN111669835A (en) Communication method, device and system
CN112019492B (en) Access control method, device and storage medium
WO2021146926A1 (en) Data transmission method, device, and system
CN104853447A (en) Method and device for processing data information
CN105656794A (en) Data distribution method and device
CN104639557A (en) Method and system for establishing PCEP (Path Computation Element Communication Protocol) session and equipment
WO2019206063A1 (en) Service flow transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190305