CN108848040A - File transmitting method, equipment and computer readable storage medium - Google Patents

File transmitting method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108848040A
CN108848040A CN201810612429.4A CN201810612429A CN108848040A CN 108848040 A CN108848040 A CN 108848040A CN 201810612429 A CN201810612429 A CN 201810612429A CN 108848040 A CN108848040 A CN 108848040A
Authority
CN
China
Prior art keywords
data channel
message
sent
channel
byte number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810612429.4A
Other languages
Chinese (zh)
Other versions
CN108848040B (en
Inventor
李建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201810612429.4A priority Critical patent/CN108848040B/en
Publication of CN108848040A publication Critical patent/CN108848040A/en
Application granted granted Critical
Publication of CN108848040B publication Critical patent/CN108848040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • H04L47/722Admission control; Resource allocation using reservation actions during connection setup at the destination endpoint, e.g. reservation of terminal resources or buffer space
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

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

Abstract

A kind of file transmitting method, equipment and computer readable storage medium provided in an embodiment of the present invention, are related to data communication technology field.Method passes through the message byte number that respectively sends out based on the multiple data channel got and remaining not sent message byte number, obtain the mode of dispatch weight channel queue, and then it is based on dispatch weight channel queue, the message in control corresponding data channel is sent, it realizes the changeable weight for carrying out data channel without configuration to dispatch, so that message transmission be avoided underrun mistake occur in the case where multiple data channel flows are inconsistent.

Description

File transmitting method, equipment and computer readable storage medium
Technical field
The present invention relates to data communication technology fields, in particular to a kind of file transmitting method, equipment and computer Readable storage medium storing program for executing.
Background technique
In router device, it is commonly provided with the CPOS i.e. channelizing pos interface of 155M, POS is packet over SDH, SDH are that Synchronous Digital Hierarchy wide area card carries out data forwarding.The speed of usual backplane interface is big In the speed of wide area network interface, wide area is stuck in sending side and plug-in DDR (Double Data Rate) memory is needed to carry out storage turn Hair.In the CPOS wide area board of router SDH OC3 155M interface, there is the E1 physical channel of 63 2048Khz, if E1 matches It is set to CE1, then each CE1 can at most configure the subchannel of 31 64Khz, and entire OC3 interface maximum can configure 31*63= 1953 channels.Since backboard rate is much larger than the rate in each channel, needs to carry out storage using external DDR SDRAM and turn Hair, since the subchannel of the n*64k (n=1~31) of CE1 had both can be used in the data channel of a user, also can be used The E1 transparent channel (n=32) of 2048Khz, then message will read the buffer area for re-sending to some data channel from DDR When, it is possible that the case where sending underrun.
Summary of the invention
In order to solve the above technical problems, the embodiment of the present invention provides a kind of file transmitting method, equipment and computer-readable Storage medium.The technical solution adopted by the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of file transmitting method, the method includes:It obtains when default The message byte number and remaining not sent message byte number that interior multiple data channel are respectively sent out;Based on the multiple data The message byte number and remaining not sent message byte number that channel is respectively sent out, obtain dispatch weight channel queue, the tune Degree weight channel queue characterizes the priority of the multiple data channel;Based on the dispatch weight channel queue, control is corresponding The message of data channel is sent.
In the embodiment of the present application, by the message byte number that is respectively sent out based on the multiple data channel got and Remaining not sent message byte number obtains the mode of dispatch weight channel queue, and then is based on dispatch weight channel queue, control The message in corresponding data channel is sent, and is realized the changeable weight for carrying out data channel without configuration and is dispatched, thus Message transmission is avoided underrun mistake occur in the case that multiple data channel flows are inconsistent.
Optionally, the message byte number respectively sent out based on the multiple data channel and remaining not sent message Byte number obtains dispatch weight channel queue, including:The message byte number that is respectively sent out based on the multiple data channel and Remaining not sent message byte number, determines the size between the respective dynamic dispatching weighted value of the multiple data channel;It is based on Size between the multiple respective dynamic dispatching weighted value of data channel, correspondence arrange the multiple data channel Sequence, so that the dispatch weight channel queue is obtained, the smaller characterization dispatch weight channel team of dynamic dispatching weighted value The priority of the corresponding data channel of dynamic dispatching weighted value in column is higher.
In the embodiment of the present application, based on big between the determining respective dynamic dispatching weighted value of multiple data channel Small, the multiple data channel is ranked up by correspondence, to obtain the dispatch weight channel queue, realization is obtained in real time Dispatch weight channel queue and easy to operate.
Optionally, the message byte number respectively sent out based on the multiple data channel and remaining not sent message Byte number determines the size between the respective dynamic dispatching weighted value of the multiple data channel, including:Calculate the multiple number It is sent out according to the remaining not sent message byte number of the i-th data channel in channel and the jth data channel in the multiple data channel The product P of the message byte number of submittingijAnd the remaining not sent message byte number of the jth data channel and i-th data The product P for the message byte number that channel is sent outji, i successively takes 1,2 ... ..., and M-1, M are total of the multiple data channel Number, j correspondence take i+1;Compare one by one and obtains PijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is less than institute State the dynamic dispatching weighted value of jth data channel, so that it is determined that the respective dynamic dispatching weighted value of the multiple data channel it Between size.
In the embodiment of the present application, pass through the remaining not sent message word of the i-th data channel in the multiple data channel The product P for the message byte number that jth data channel in joint number and the multiple data channel is sent outijAnd the jth number According to the product P for the message byte number that the remaining not sent message byte number in channel and i-th data channel are sent outjiProduct, in turn Compare one by one and obtains PijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is less than the jth data channel Dynamic dispatching weighted value, realize size and the calculating determined between the multiple respective dynamic dispatching weighted value of data channel It measures small.
Optionally, described to be based on the dispatch weight channel queue, the message in control corresponding data channel is sent, is wrapped It includes:Obtain the highest target data channel of current priority in the dispatch weight channel queue;Pre-stored message is delayed The difference for depositing capacity and the not sent message byte number in the target data channel is determined as the byte number for needing to dispatch;Control message The storage control unit of sending device reads what the needs were dispatched from the corresponding target data channel of external memory The message output cache unit in the message to be sent of the several bytes of byte to the target data channel caches, so that the target data The byte transmission unit in channel is based on the corresponding E1 time slot enable signal in the target data channel, the report from the target data channel After reading the message to be sent in text output cache unit and carry out POS processing, by POS treated the message to be sent The corresponding E1 physical slot by time in the target data channel is mapped to issue.
In the embodiment of the present application, the transmission message for realizing each data channel obtains on-demand scheduling and improves scheduling Efficiency.
Second aspect, the embodiment of the invention provides a kind of message sending devices, including send scheduling unit.The transmission Scheduling unit, for obtaining the message byte number and remaining not sent report that multiple data channel within a preset time are respectively sent out Text joint number;The message byte number and remaining not sent message byte number respectively sent out based on the multiple data channel, is obtained Dispatch weight channel queue is obtained, the dispatch weight channel queue characterizes the priority of the multiple data channel;Based on described The message of dispatch weight channel queue, control corresponding data channel is sent.
The third aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has program code, and said program code executes above-mentioned method when being read out by the processor and running.
A kind of file transmitting method, equipment and computer readable storage medium provided in an embodiment of the present invention, by being based on The message byte number and remaining not sent message byte number that the multiple data channel got are respectively sent out, obtain dispatch weight The mode of channel queue, and then it is based on dispatch weight channel queue, the message in control corresponding data channel is sent, and is realized The changeable weight scheduling that data channel is carried out without configuration, to be avoided in the case where multiple data channel flows are inconsistent There is underrun mistake in message transmission.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of flow chart of file transmitting method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another file transmitting method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of message sending device provided in an embodiment of the present invention;
Fig. 4 is the structural block diagram of another message sending device provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.Therefore, below to the reality of the invention provided in the accompanying drawings The detailed description for applying example is not intended to limit the range of claimed invention, but is merely representative of selected implementation of the invention Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts Every other embodiment, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Referring to Fig. 1, the embodiment of the invention provides a kind of file transmitting method, the method includes:Step S100, it walks Rapid S110 and step S120.
Step S100:The message byte number that multiple data channel are respectively sent out within a preset time is obtained not send out with remaining Text of delivering newspaper joint number.
In the present embodiment, file transmitting method can be applied to message sending device, and message sending device includes sending Scheduling unit.Message sending device may be, but not limited to, as router, interchanger.Such as router SDH OC3 155M connects Mouthful CPOS wide area board in, have the E1 physical channel of 63 2048Khz, if E1 is configured to CE1, each CE1 at most can be with The subchannel of 31 64Khz is configured, entire OC3 interface maximum can configure 31*63=1953 channel.Since backboard rate is long-range Rate in each channel needs to carry out storage forwarding using external DDR SDRAM, since the data channel of a user both may be used To use the subchannel of the n*64k (n=1~31) of CE1, the E1 transparent channel (n=32) of 2048Khz also can be used.It is described Preset time can send the time of a frame data, such as 125us for E1.Further, message sending device further includes pulse Generator, impulse generator is used to generate the pulse in preset time, for example, generating the pulse of 125us.
Step S110:The message byte number and remaining not sent message word respectively sent out based on the multiple data channel Joint number, obtains dispatch weight channel queue, and the dispatch weight channel queue characterizes the priority of the multiple data channel.
Optionally, referring to Fig. 2, step S110 may include:
Step S111:The message byte number and remaining not sent message word respectively sent out based on the multiple data channel Joint number determines the size between the respective dynamic dispatching weighted value of the multiple data channel;
Step S112:It is corresponding by institute based on the size between the respective dynamic dispatching weighted value of the multiple data channel Multiple data channel are stated to be ranked up, so that the dispatch weight channel queue is obtained, the smaller table of dynamic dispatching weighted value The priority for levying the corresponding data channel of dynamic dispatching weighted value in the dispatch weight channel queue is higher.
In the embodiment of the present application, based on big between the determining respective dynamic dispatching weighted value of multiple data channel Small, the multiple data channel is ranked up by correspondence, to obtain the dispatch weight channel queue, realization is obtained in real time Dispatch weight channel queue and easy to operate.
Optionally, step S111 includes:
Calculate the remaining not sent message byte number of the i-th data channel and the multiple data in the multiple data channel The product P for the message byte number that jth data channel in channel is sent outijAnd the remaining not sent report of the jth data channel The product P for the message byte number that text joint number and i-th data channel are sent outji, i successively takes 1,2 ... ..., and M-1, M are institute The total number of multiple data channel is stated, j correspondence takes i+1;
Compare one by one and obtains PijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is less than the jth The dynamic dispatching weighted value of data channel, so that it is determined that big between the respective dynamic dispatching weighted value of the multiple data channel It is small.Wherein, dynamic dispatching weighted value is defined as the remaining not sent message byte number in corresponding data channel and the data channel is sent The quotient of message byte number out.
In the embodiment of the present application, by calculating the remaining not sent report of the i-th data channel in the multiple data channel The product P for the message byte number that jth data channel in text joint number and the multiple data channel is sent outijAnd it is described The product P for the message byte number that the remaining not sent message byte number of jth data channel and i-th data channel are sent outji, into And compares obtain P one by oneijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is logical less than the jth data The dynamic dispatching weighted value in road realizes the size and meter determined between the multiple respective dynamic dispatching weighted value of data channel Calculation amount is small.
For example, calculating the 1st data channel residue read not by taking the total number M=3 of the multiple data channel as an example The product P for the message byte number N2 that transmission message byte number S1 and the 2nd data channel are sent out12=S1 × N2 and the described 2nd The product P for the message byte number N1 that the remaining not sent message byte number S2 of data channel and the 1st data channel are sent out21= S2 × N1, and then compare P12=S1 × N2 is less than P21=S2 × N1, i.e. (S1 × N2)<(S2 × N1) characterizes S1/N1<S2/N2, Determine dynamic dispatching weighted value (S2/N2) of the dynamic dispatching weighted value (S1/N1) less than the 2nd data channel of the 1st data channel, I.e. the priority of the 1st data channel is higher than the 2nd data channel, then calculates the remaining not sent message of the 1st data channel read The product P for the message byte number N3 that byte number S1 and the 3rd data channel are sent out13=S1 × N3 and the 3rd data channel The product P for the message byte number N1 that remaining not sent message byte number S3 and the 1st data channel are sent out31=S3 × N1, And then compare P13=S1 × N3 is less than P31=S3 × N1, i.e. (S1 × N3)<(S3 × N1) characterizes S1/N1<S3/N3 determines the 1st Dynamic dispatching weighted value (S3/N3) of the dynamic dispatching weighted value (S1/N1) of data channel less than the 3rd data channel, i.e., the 1st number It is higher than the 3rd data channel ... and so on according to the priority in channel, continuous to compare, the priority of the 3rd data channel is higher than the 2nd Data channel obtains real-time dispatch weight channel queue Q={ the 2nd data channel of the 1st the 3rd data channel of data channel }.
Step S120:Based on the dispatch weight channel queue, the message for controlling corresponding data channel is sent.
Optionally, step S120 may include:
Obtain the highest target data channel of current priority in the dispatch weight channel queue;
The difference of pre-stored packet buffer capacity and the not sent message byte number in the target data channel is determined To need the byte number dispatched;The storage control unit of the control message sending device is from the corresponding mesh of external memory The message to be sent of the several bytes of byte for needing to dispatch is read in mark data channel to the message in the target data channel Cache unit caching is exported, when so that the byte transmission unit in the target data channel being based on the corresponding E1 in the target data channel Gap enable signal reads the message to be sent from the message in target data channel output cache unit and carries out from POS After reason, by POS, treated that the message to be sent is mapped to that the corresponding E1 physical slot by time in the target data channel issues.
In the embodiment of the present application, the transmission message for realizing each data channel obtains on-demand scheduling and improves scheduling Efficiency.
In the present embodiment, CPOS is channelizing pos interface.POS is Packet Over SDH.SDH is Synchronous Digital Hierarchy.External memory can be external DDR SDRAM (Double Data Rate SDRAM)。
For example, carrying out transmission scheduling based on dispatch weight channel queue.It is first obtained in dispatch weight channel queue when scheduling The highest target data channel of current priority, then calculates its remaining space, i.e. packet buffer capacity subtracts current priority The remaining not sent message byte number S in highest target data channel, obtains the byte number F for needing to dispatch, and then controls DDR control Unit is from the message to be sent of external DDR SDRAM F byte of corresponding target data channel reading to the target data channel Message output cache unit caching, then by target data channel byte transmission unit be based on the target data channel it is corresponding E1 time slot enable signal is read to one byte, one byte described from the message in target data channel output cache unit Message to be sent and after carrying out POS processing, by POS, treated that the message to be sent is mapped to the target data channel is corresponding E1 physical slot by time issue.Last 63 E1 converge to SDH mapper and send out from optical interface.It loops back and forth like this, ensure that every The transmission message in a channel obtains on-demand scheduling.
File transmitting method provided in an embodiment of the present invention, by respectively being sent out based on the multiple data channel got Message byte number and remaining not sent message byte number, obtain the mode of dispatch weight channel queue, and then based on scheduling power The message of weight channel queue, control corresponding data channel is sent, and the dynamic without configuring and carrying out data channel is realized Weight scheduling, so that message transmission be avoided underrun mistake occur in the case where multiple data channel flows are inconsistent.
Referring to Fig. 3, reality embodiment of the present invention provides a kind of message sending device 200, including send scheduling unit 210.The transmission scheduling unit 210, the message byte respectively sent out for obtaining multiple data channel within a preset time Several and remaining not sent message byte number;The message byte number and residue respectively sent out based on the multiple data channel is not sent out Text of delivering newspaper joint number, obtains dispatch weight channel queue, and the dispatch weight channel queue characterizes the multiple data channel Priority;Based on the dispatch weight channel queue, the message for controlling corresponding data channel is sent.
Optionally, the transmission scheduling unit 210, the message word for respectively being sent out based on the multiple data channel Joint number and remaining not sent message byte number, determine big between the respective dynamic dispatching weighted value of the multiple data channel It is small.
The transmission scheduling unit 210, for based between the respective dynamic dispatching weighted value of the multiple data channel Size, the multiple data channel is ranked up by correspondence, to obtain the dispatch weight channel queue, the dynamic tune Spend the preferential of the corresponding data channel of dynamic dispatching weighted value in the smaller characterization dispatch weight channel queue of weighted value Grade is higher.
It is remaining to be particularly used in the i-th data channel calculated in the multiple data channel for the transmission scheduling unit 210 The product P for the message byte number that jth data channel in not sent message byte number and the multiple data channel is sent outij, And the message byte number that sends out of the remaining not sent message byte number of the jth data channel and i-th data channel Product Pji, i successively takes 1,2 ... ..., and M-1, M are the total number of the multiple data channel, and j correspondence takes i+1;Compare one by one P outijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is less than the dynamic dispatching of the jth data channel Weighted value, so that it is determined that the size between the respective dynamic dispatching weighted value of the multiple data channel.
Further, the message sending device 200 can also be logical including storage control unit 220, the multiple data The corresponding message output cache unit 230 of each data channel and byte transmission unit 240 in road.The transmission scheduling unit 210 connect with the storage control unit 220, message output cache unit 230 and the byte transmission unit 240.
The transmission scheduling unit 210, for obtaining the highest mesh of current priority in the dispatch weight channel queue Mark data channel;The difference of pre-stored packet buffer capacity and the not sent message byte number in the target data channel is true It is set to the byte number for needing to dispatch;It is logical from the corresponding target data of external memory to control the storage control unit 220 The message to be sent of the several bytes of byte for needing to dispatch is read in road to the message output caching in the target data channel Unit 230 caches, so that the byte transmission unit 240 in the target data channel is based on the corresponding E1 time slot in the target data channel Enable signal reads the message to be sent from the message in target data channel output cache unit 230 and carries out from POS After reason, by POS, treated that the message to be sent is mapped to that the corresponding E1 physical slot by time in the target data channel issues.
Referring to Fig. 4, the message sending device 200 further include impulse generator 250, it is every in the multiple data channel The corresponding counter 260 of a data channel, the first register 270 and the second register 280.The counter of each data channel 260 connect with corresponding first register 270, the impulse generator 250 and the byte transmission unit 240 respectively, First register 270 is connect with the transmission scheduling unit 210.Second register 280 of each data channel respectively with The transmission scheduling unit 210 and the corresponding message output cache unit 230 connect.
The impulse generator 250, for generating the pulse in preset time.
The counter 260, the hair of the byte transmission unit for counting corresponding data channel in the preset time The message byte number sent out is simultaneously stored in first register 270 by the message byte number of submitting.
Counter 260 is transmitted completion signal for counting the byte of byte transmission unit in corresponding data channel default The times N occurred in time, and N value is sent into the first register when the pulse of impulse generator comes and is saved, while statistics Value sets 0.N is the natural number more than or equal to 0.
In the present embodiment, the E1 timeslot number n according to the configuration of each data channel is different, when E1 sends a frame data Interior (i.e. 125us), N statistical value meeting approximate statistical is n (N=n).Each data channel is counted using 125us impulse generator Byte transmit completion signal times N, this transmits completion signal times N E1 time slot enable signal phase corresponding with the data channel It closes.
Second register 280, the residue that the message for saving corresponding data channel exports cache unit are not sent Message byte number.
Further, the message sending device can also include SDH mapper, the SDH mapper, for that will receive To the message convergence that respectively sends of multiple E1 physical slot by time after and issued by the optical interface of the SDH mapper.
It is appreciated that structure shown in Fig. 4 is only to illustrate, it is only single with the corresponding message output caching of a data channel For member, byte transmission unit, counter, the first register and the second register, message sending device 200 may also include than figure More perhaps less component shown in 4 or with the configuration different from shown in Fig. 4.Each component shown in Fig. 4 can be adopted It is realized with hardware, software, or its combination.
It is apparent to those skilled in the art that for convenience and simplicity of description, the message of foregoing description The specific work process of sending device, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The embodiment of the invention provides a kind of message sending devices, including send scheduling unit, the transmission scheduling unit, For obtaining the message byte number and remaining not sent message byte number that multiple data channel within a preset time are respectively sent out. The transmission scheduling unit, message byte number and remaining not sent report for respectively being sent out based on the multiple data channel Text joint number, obtains dispatch weight channel queue, and the dispatch weight channel queue characterizes the preferential of the multiple data channel Grade.The transmission scheduling unit, for being based on the dispatch weight channel queue, the message in control corresponding data channel is sent out It send.It realizes the changeable weight for carrying out data channel without configuration to dispatch, thus inconsistent in multiple data channel flows In the case of avoid message transmission there is underrun mistake.
The embodiment of the invention provides a kind of computer readable storage medium, the computer-readable recording medium storage has Program code, said program code execute above-mentioned method when being read out by the processor and running.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of file transmitting method, which is characterized in that the method includes:
Obtain the message byte number and remaining not sent message byte number that multiple data channel are respectively sent out within a preset time;
The message byte number and remaining not sent message byte number respectively sent out based on the multiple data channel, is dispatched Weight channel queue, the dispatch weight channel queue characterize the priority of the multiple data channel;
Based on the dispatch weight channel queue, the message for controlling corresponding data channel is sent.
2. respectively being sent out the method according to claim 1, wherein described based on the multiple data channel Message byte number and remaining not sent message byte number, obtain dispatch weight channel queue, including:
The message byte number and remaining not sent message byte number respectively sent out based on the multiple data channel, determine described in Size between multiple respective dynamic dispatching weighted values of data channel;
It is corresponding by the multiple data channel based on the size between the respective dynamic dispatching weighted value of the multiple data channel It is ranked up, so that the dispatch weight channel queue is obtained, the smaller characterization dispatch weight of dynamic dispatching weighted value The priority of the corresponding data channel of dynamic dispatching weighted value in channel queue is higher.
3. according to the method described in claim 2, it is characterized in that, described respectively sent out based on the multiple data channel Message byte number and remaining not sent message byte number, determine between the respective dynamic dispatching weighted value of the multiple data channel Size, including:
Calculate the remaining not sent message byte number of the i-th data channel and the multiple data channel in the multiple data channel In the product P of message byte number that sends out of jth data channelijAnd the remaining not sent message word of the jth data channel The product P for the message byte number that joint number and i-th data channel are sent outji, i successively takes 1,2 ... ..., and M-1, M are described more The total number of a data channel, j correspondence take i+1;
Compare one by one and obtains PijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is logical less than the jth data The dynamic dispatching weighted value in road, so that it is determined that the size between the respective dynamic dispatching weighted value of the multiple data channel.
4. method according to claim 1-3, which is characterized in that described to be based on the dispatch weight channel team The message of column, control corresponding data channel is sent, including:
Obtain the highest target data channel of current priority in the dispatch weight channel queue;
The difference of pre-stored packet buffer capacity and the not sent message byte number in the target data channel is determined as needing The byte number to be dispatched;
The storage control unit of control message sending device reads institute from the corresponding target data channel of external memory The message output cache unit caching for needing the message to be sent for the several bytes of byte dispatched to the target data channel is stated, is made The byte transmission unit for obtaining the target data channel is based on the corresponding E1 time slot enable signal in the target data channel, from the target After reading the message to be sent in the message output cache unit of data channel and carry out POS processing, by POS treated institute It states message to be sent and is mapped to the corresponding E1 physical slot by time sending in the target data channel.
5. a kind of message sending device, which is characterized in that including sending scheduling unit,
The transmission scheduling unit, for obtain message byte number that multiple data channel within a preset time are respectively sent out and Remaining not sent message byte number;The message byte number and remaining not sent report respectively sent out based on the multiple data channel Text joint number, obtains dispatch weight channel queue, and the dispatch weight channel queue characterizes the preferential of the multiple data channel Grade;Based on the dispatch weight channel queue, the message for controlling corresponding data channel is sent.
6. message sending device according to claim 5, which is characterized in that the transmission scheduling unit, for being based on institute The message byte number and remaining not sent message byte number that multiple data channel are respectively sent out are stated, determines that the multiple data are logical Size between the respective dynamic dispatching weighted value in road;Based between the respective dynamic dispatching weighted value of the multiple data channel Size, the multiple data channel is ranked up by correspondence, to obtain the dispatch weight channel queue, the dynamic tune Spend the preferential of the corresponding data channel of dynamic dispatching weighted value in the smaller characterization dispatch weight channel queue of weighted value Grade is higher.
7. message sending device according to claim 6, which is characterized in that the transmission scheduling unit is specifically used for meter Calculate the in the remaining not sent message byte number of the i-th data channel in the multiple data channel and the multiple data channel The product P for the message byte number that j data channel is sent outijAnd the remaining not sent message byte number of the jth data channel with The product P for the message byte number that i-th data channel is sent outji, i successively takes 1,2 ... ..., and M-1, M are the multiple number According to the total number in channel, j correspondence takes i+1;
Compare one by one and obtains PijLess than Pji, determine that the dynamic dispatching weighted value of i-th data channel is logical less than the jth data The dynamic dispatching weighted value in road, so that it is determined that the size between the respective dynamic dispatching weighted value of the multiple data channel.
8. according to the described in any item message sending devices of claim 5-7, which is characterized in that the message sending device is also wrapped Include that storage control unit, the corresponding message output cache unit of each data channel and byte are sent in the multiple data channel Unit, the transmission scheduling unit and the storage control unit, message output cache unit and the byte send single Member connection;
The transmission scheduling unit is logical for obtaining the highest target data of current priority in the dispatch weight channel queue Road;The difference of pre-stored packet buffer capacity and the not sent message byte number in the target data channel is determined as needing The byte number of scheduling;It controls described in the storage control unit reads from the corresponding target data channel of external memory The message output cache unit in the message to be sent of the several bytes of the byte for needing to dispatch to the target data channel caches, so that The byte transmission unit in the target data channel is based on the corresponding E1 time slot enable signal in the target data channel, from the number of targets After reading the message to be sent in the message output cache unit in channel and carrying out POS processing, by POS, that treated is described Message to be sent is mapped to the corresponding E1 physical slot by time in the target data channel and issues.
9. message sending device according to claim 8, which is characterized in that the message sending device further includes pulse hair The corresponding counter of each data channel, the first register and the second register, every number in raw device, the multiple data channel Connect respectively with corresponding first register, the impulse generator and the byte transmission unit according to the counter in channel It connects, first register is connect with the transmission scheduling unit;Second register of each data channel respectively with the hair Scheduling unit is sent to connect with the corresponding message output cache unit;
The impulse generator, for generating the pulse in preset time;
The counter, the report of the byte transmission unit for counting corresponding data channel in the preset time sent out The message byte number sent out is simultaneously stored in first register by text joint number;
Second register, the message for saving corresponding data channel export the not sent message byte of residue of cache unit Number.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has program generation Code, said program code execute the method as described in claim 1-4 any one when being read out by the processor and running.
CN201810612429.4A 2018-06-13 2018-06-13 Message sending method, device and computer readable storage medium Active CN108848040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810612429.4A CN108848040B (en) 2018-06-13 2018-06-13 Message sending method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810612429.4A CN108848040B (en) 2018-06-13 2018-06-13 Message sending method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108848040A true CN108848040A (en) 2018-11-20
CN108848040B CN108848040B (en) 2022-06-21

Family

ID=64201867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810612429.4A Active CN108848040B (en) 2018-06-13 2018-06-13 Message sending method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108848040B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467938A (en) * 2021-06-18 2021-10-01 山东云海国创云计算装备产业创新中心有限公司 Bus resource allocation method, device and related equipment
CN113810459A (en) * 2021-07-29 2021-12-17 奇安信科技集团股份有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827446A (en) * 2010-04-09 2010-09-08 新邮通信设备有限公司 Radio bearer scheduling method and device
CN102594670A (en) * 2012-02-06 2012-07-18 北京星网锐捷网络技术有限公司 Multiport multi-flow scheduling method, device and equipment
CN105813213A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 Method, base station and system for data transmission in dual-connectivity scheme
CN107070620A (en) * 2016-12-09 2017-08-18 深圳信息职业技术学院 A kind of wireless communication system resource allocation methods and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827446A (en) * 2010-04-09 2010-09-08 新邮通信设备有限公司 Radio bearer scheduling method and device
CN102594670A (en) * 2012-02-06 2012-07-18 北京星网锐捷网络技术有限公司 Multiport multi-flow scheduling method, device and equipment
CN105813213A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 Method, base station and system for data transmission in dual-connectivity scheme
CN107070620A (en) * 2016-12-09 2017-08-18 深圳信息职业技术学院 A kind of wireless communication system resource allocation methods and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467938A (en) * 2021-06-18 2021-10-01 山东云海国创云计算装备产业创新中心有限公司 Bus resource allocation method, device and related equipment
CN113810459A (en) * 2021-07-29 2021-12-17 奇安信科技集团股份有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108848040B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN108770016B (en) 5G end to end network slice generation method and device based on template
US6205151B1 (en) ATM cell scheduler which uses a heap memory and associates timestamps with each channel
CN105264509B (en) Adaptive interruption joint in converged network
CN101095308B (en) Communication device for packet exchange of system packet interface of queue cascade and logic mark
EP0924954A1 (en) ATM cell transmissions
US20180324506A1 (en) Method and Apparatus for Transporting Deterministic Traffic in a Gigabit Passive Optical Network
CN110417650A (en) Multilink data distribution method, device and electronic equipment
CN109120525A (en) For the determining method of path of SDN, device, SDN controller and network
CN108848040A (en) File transmitting method, equipment and computer readable storage medium
WO2021052296A1 (en) Method for processing network congestion, method for updating model, and relevant apparatus
CN109547356A (en) A kind of data transmission method of electrical energy measurement, system, equipment and computer storage medium
CN105335323A (en) Buffering device and method of data burst
CN103577469B (en) Database connection multiplexing method and apparatus
CN108337582A (en) Time division multiplex switching system based on field programmable gate array
CN106598135B (en) A kind of DDS signal generator
CN109729025A (en) A kind of method and relevant device of the data handling flexible Ethernet
CN107479622A (en) A kind of binary channels AWG and production method based on SOC
CN209071004U (en) The nuclear power station security level I&amp;C system with configuration function based on FPGA
CN101833479B (en) MPI (Moldflow Plastics Insight) information scheduling method based on reinforcement learning under multi-network environment
CN106686046B (en) Vehicle-mounted FlexRay bus network static section Design of Signal method and device
CN108763107A (en) Write disk flow control method, device, electronic equipment and storage medium in backstage
US10079769B1 (en) Methods and apparatus for implementing dynamic rate controllers using linked list of rate programs
TWI692948B (en) Optical network unit and method for transmitting dynamic bandwidth report upstream information
CN103905256B (en) Optical network unit data processing method and relevant device
CN107820319A (en) For the device of terminal distribution ascending resource, method and ascending resource distributor

Legal Events

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