A kind of service traffics control and the satellite borne equipment system of Differentiated Services
Technical field
The present invention relates to the system of service traffics control and Differentiated Services between a kind of satellite borne equipment, belong to satellite communication system
On-board processing field.
Background technology
Conventional Transparent Transponder is also referred to as bent-tube boiler transponder because its is simple in construction, dependable performance, in Satellite Payloads
In the case of being limited with power, it is widely used.But with the development of communication technology of satellite, the increase of portfolio
With the raising to QoS requirement, to the satellite communication system availability of frequency spectrum, power system capacity, communication quality, network connectivty,
Communication link efficiency, the dynamic reorganization ability of network and interference free performance etc. propose strict and urgent requirement, with
The progress of technology and the change of application demand, satellite communication gradually develops from transparent forwarding towards the direction of on-board processing.
Satellite communication causes to need to carry out service traffics control on star, especially due to the difference of down-link reception ability
It is the development of phased array antenna technology, the demand is more urgent.And service traffics control is often faced with and abandons partial service number
It can will enter the discarding of the significant datas such as logout and network management information according to bag, if random drop, bring immeasurable risk.
The content of the invention
The technical problems to be solved by the invention provide a kind of spaceborne set in the weak point in above-mentioned background technology
Service traffics control and differentiated services system between standby.The present invention have support satellite borne equipment between flow control, support Differentiated Services,
Scalability is strong, takes the advantages that resource is few, especially suitable for the satellite communication system based on on-board processing.
The technical solution adopted in the present invention is:
A kind of service traffics control and the satellite borne equipment system of Differentiated Services, include satellite borne equipment A rate identification module
1st, processing module 4, queue management module 6 and satellite borne equipment B speed parsing module 2, receiving processing module 5, data are sent
Fifo module 8, it is characterised in that:Token bucket module 3 and transmission scheduler module 7 also including satellite borne equipment A;
Satellite borne equipment B speed parsing module 2, which is used to parsing external remote control to instruct to obtain rate information, to be exported to receiving area
Module 5 is managed, and the transmission information that rate information and data fifo module 8 are inputted is exported to spaceborne according to the protocol data of setting
The rate identification module 1 of device A;
Rate identification module 1 is used to identify rate information from the protocol data received and sends information, by speed
Information exports barrel module 3 that gives token, and transmission information is exported and gives transmission processing module 4;
Queue management module 6 is used to receive external data and according to prioritization management, is realized altogether using chained list mode
Caching multilevel precedence queue management is enjoyed, data are stored in corresponding to inside in priority query, and by each priority query
Frame length information, which exports, gives transmission scheduler module 7;Be additionally operable to send scheduler module 7 scheduling under by data output to send scheduling
Module 7;
Send scheduler module 7 is used to whether perform transmission scheduling according to the cache information decision-making for sending the output of processing module 4,
To the frame length information of the application queue of queue management module 6 if cache information is sky, and the frame length information applied is sent to
Token bucket module 3 is used to apply sending token;It is additionally operable to receive the feedback token of token bucket module 3, if feedback token is permission
Send out group signal then to extract data from the corresponding queue of queue management module 6 and be sent to transmission processing module 4, otherwise press
Next queue is dispatched according to the dispatching algorithm of setting;
Token bucket module 3, which is used to be produced according to the token bucket algorithm of setting according to rate information, sends token, and according to connecing
Whether the frame length information decision current data of receipts allows to send out team, and token is fed back to and sends scheduler module 7;
Processing module 4 is sent to be cached for data will to be received, and it is whether that data are defeated according to information decision is sent
Go out, data read to the receiving processing module 5 for being output to satellite borne equipment B if sending information and being to allow to send information from caching,
Otherwise continue waiting for allowing to send information;It is additionally operable to export cache information to transmission scheduler module 7;
After receiving processing module 5 carries out verification adaptation for the data that the transmission processing module 4 to satellite borne equipment A inputs,
The information that allows to send inputted according to data fifo module 8 sends the data to data fifo module 8;It is additionally operable to export read signal
To data fifo module 8, and receive the data of the output of data fifo module 8;Being additionally operable to will according to the flow control algorithm of setting
The data read from data fifo module 8 are sent with the speed of rate information requirement;
Data fifo module 8 is used to set a programmable lower limit and a programmable upper limit, if under caching reaches
Output allows to send information to receiving processing module 5 in limited time, if output stopping sends information to receiving area when caching reaches the upper limit
Manage module 5;It is additionally operable to cache the data of input, and the read signal inputted according to interface processing module 5 is by data read-out
Export to interface processing module 5.
Wherein, described satellite borne equipment A token bucket module 3 includes counter, token application enables module, the cycle reaches
Enabled module, cycle increase token number module and computing module;
The enabled module of token application is used to receive satellite borne equipment A transmission scheduler modules 7 for applying for transmission token
During frame length information, sent in effective status, and by oneself state to computing module;
Counter is used to count once when clock is in effective status, and is sent to after the cycle for reaching setting is counted
Enabled module is reached up to periodic signal to the cycle is counted, and resets and counts again;
Cycle reaches enabled module and is used to be in effective status after receiving arrival and counting periodic signal, and sends the cycle
Increasing signal to the cycle increases token number module;It is additionally operable to send oneself state to computing module;
Cycle increase token number module is used to increase token number after cycle increase signal is received, and will increase order the cycle
Board number is sent to computing module;
Computing module is used to enter maintenance state when token application enables module and the enabled module of cycle arrival is all invalid,
Do not deal with;Token application enable that module is invalid and the cycle reach enabled module it is effective when enter renewal token bucket state, sentence
Whether the remaining token number that breaks is more than token bucket sum plus cycle increase token number, if more than if remaining token keep count of same token
Bucket is total, and otherwise remaining token number increase cycle increase token number on the basis of original obtains new remaining token number;In token
The enabled module of application effectively and the cycle reach enabled module it is invalid when enter to become a mandarin control state, whether judgment frame long message is more than residue
Token number, do not allow to send out group signal if exporting more than if, otherwise output allows to send out group signal, while remaining token number
Frame length information number is reduced on the basis of original and obtains new remaining token number;Make when token application enables module and cycle arrival
System enters when energy module is simultaneously effective updates token bucket and stream control state simultaneously, is added in frame length information more than remaining token number
In the case of cycle increase token number, output does not allow to send out group signal, while judges remaining token number plus cycle increase order
Whether board number is more than token bucket sum, and if remaining token keeps count of more than if, same token bucket is total, and otherwise remaining token number is in original
Increase cycle increase token number on the basis of coming and obtain new remaining token number, added in frame length information less than or equal to remaining token number
In the case of cycle increase token number, output allows to send out group signal, while judges remaining token number plus cycle increase token
Number subtracts whether frame length information is more than token bucket sum again, if more than if remaining token keep count of same token bucket sum, otherwise remain
Remaining token number increase cycle increase token number on the basis of original subtracts frame length information and obtains new remaining token number again.
Wherein, described satellite borne equipment A transmission scheduler module 7 uses time slot weighted scheduling algorithm, i.e., will from time domain
Scheduling time is divided into multiple scheduling sub-slots, and each priority query obtains scheduled according to the scheduling sublayer number of time slot of occupancy
Chance.
The present invention has the following advantages that compared to background technology:
1. the present invention realizes the flow control between satellite borne equipment, do not carried out for other modules in ancillary equipment and equipment
Description and constraint, have the characteristics that scalability is strong, realize that occupancy resource is few.
2. the present invention uses time slot weighted scheduling algorithm, the dispatch deal of multilevel precedence can be achieved, realize high priority
Preferential forwarding strategy, while support dynamic and configurable function.
3. inventive flow control algolithm uses the token bucket algorithm based on frame length, service traffics shaping, stream control are realized
Speed is accurate and solves the flow control problems of bursty traffic.
Brief description of the drawings
Fig. 1 is the satellite borne equipment system implementation electrical schematic diagram of a kind of service traffics control of the present invention and Differentiated Services.
Fig. 2 is the state realization figure of the token bucket algorithm based on frame length.
Embodiment
The satellite borne equipment system of reference picture 1, a kind of service traffics control of the present invention and Differentiated Services, including satellite borne equipment A
Rate identification module 1, token bucket module 3, send processing module 4, queue management module 6 and send scheduler module 7 and spaceborne
Equipment B speed parsing module 2, receiving processing module 5 and data fifo module 8.Fig. 1 is electrical schematic diagram of the embodiment of the present invention,
Embodiment is according to Fig. 1 connection lines.
A kind of satellite borne equipment B of the satellite borne equipment system of the service traffics control and Differentiated Services speed parsing module
2 effect is that parsing external remote control instructs to obtain rate information and is sent to receiving processing module 5, and by rate information with from data
The transmission information that fifo module 8 inputs is sent to satellite borne equipment A rate identification module 1 according to the protocol data of setting;Speed
The effect of identification module 1 is to receive protocol data to identify rate information and send information, and rate information is exported to order
Board bucket module 3, transmission information is exported and gives transmission processing module 4;The effect of queue management module 6 is to receive external data and root
According to prioritization management, shared buffer memory multilevel precedence queue management is realized using chained list mode, data are stored in corresponding excellent
First level queue is medium to be read out;The effect for sending scheduler module 7 is that the cache information decision-making exported according to transmission processing module 4 is
No perform sends scheduling, applies for frame length information to queue management module 6 if cache information is sky, and the frame length applied is believed
Breath be sent to token bucket module 3 be used for apply transmission token;Wherein, send scheduler module 7 and use time slot weighted scheduling algorithm, i.e.,
Multiple scheduling sub-slots will be divided into scheduling time from time domain, each priority query obtains according to the scheduling sublayer number of time slot of occupancy
To scheduled chance;The effect of token bucket module 3 is to be produced to send order according to the token bucket algorithm of setting according to rate information
Board, and whether allow to send out team according to the frame length information decision current data of reception, token is fed back into transmission scheduler module
7;Another effect for sending scheduler module 7 is after obtaining feedback token information, by data from queue management if allowing to send
Extract and be sent in the corresponding queue of module 6 and send processing module 4, otherwise dispatch next queue according to the dispatching algorithm of setting;
The effect for sending processing module 4 is will to receive data to be cached, according to whether sending information decision by data output, if
Allow to send the receiving processing module 5 that data are then output to satellite borne equipment B by information from caching reading, otherwise continue waiting for allowing
Information is sent, and cache information is exported and gives transmission scheduler module 7;The effect of receiving processing module 5 is the hair to satellite borne equipment A
The information that allows to send that the data for sending processing module 4 to input inputted after verification adaptation according to data fifo module 8 is sent to
Data fifo module 8;The effect of data fifo module 8 is to set a programmable lower limit and a programmable upper limit, if
Output allows to send information when caching reaches lower limit, if output stops sending information when caching reaches the upper limit, another effect is
Export read signal to data fifo module 8 and read data;Another effect of data fifo module 8 is that the data of input are delayed
Deposit, exported data read-out to interface processing module 5 according to the read signal that interface processing module 5 inputs;Interface processing module 5
Another effect is with rate information requirement according to the flow control algorithm of setting by the data read in data fifo module 8
Speed is sent.
The satellite borne equipment system of reference picture 2, a kind of service traffics control of the present invention and Differentiated Services, using based on frame length
Token bucket algorithm.The realization principle of the described token bucket algorithm based on frame length is as follows:
Token bucket algorithm based on frame length, formed by seven using parameter and four systemses state, be respectively using parameter
Token bucket sum P1, counter P2, cycle increase token number P3, frame length information P4, remaining token number P5, token application enable P6
And the cycle reaches enabled P7, system mode is respectively maintenance state S1, renewal token bucket state S2, stream control state S3 and more simultaneously
New token bucket and stream control state S4;
Wherein, token bucket sum P1 sets token number according to caching situation, generally using ping-pong buffer, therefore
It may be configured as two caching number sums;Counter P2 is counted always, is reset after the cycle of setting is reached and is counted again, now
The enabled P7 of cycle arrival is effective, and the cycle of setting can use the greatest common divisor of rate value, so as to realize that each notch speed rate being capable of numeral
Represent;Cycle increase token number P3 is each notch speed rate arranges value, and the value can be worth to by setting cycle and each notch speed rate;Frame length
Information P4 is that satellite borne equipment A sends the value that scheduler module 7 inputs;Remaining token number P5 is used to characterize also surplus more in current token bucket
Few token can be used for sending;When satellite borne equipment A sends the application transmission token of scheduler module 7, it is effective that token application enables P6;
Token bucket module 3 includes counter, token application enables module, the cycle reaches enabled module, cycle increase token
Digital-to-analogue block and computing module;
Token application enables module and is used to be used to apply sending token in the transmission scheduler module 7 for receiving satellite borne equipment A
Frame length information when, sent in effective status, and by oneself state to computing module;
Counter P2 is used to count once when clock is in effective status, and is sent after the cycle for reaching setting is counted
Reach and count periodic signal to the enabled module of cycle arrival, and reset and count again;
Cycle reaches enabled module and is used to be in effective status after receiving arrival and counting periodic signal, and sends the cycle
Increasing signal to the cycle increases token number module;It is additionally operable to send oneself state to computing module;
Cycle increase token number module is used to increase token number after cycle increase signal is received, and will increase order the cycle
Board number P3 is sent to computing module;
When token application enables the enabled P6 of token application of module and the cycle reaches the cycle of enabled module in computing module
System enters maintenance state S1 when the enabled P7 of arrival is invalid, and system is now without any processing;When token application enable P6 without
Effect and cycle reach enabled P7 it is effective when system enter renewal token bucket state S2, judge remaining token number P5 plus cycle increase
Whether token number P3 is more than token bucket sum P1, and remaining token number P5 numbers are otherwise remaining with token bucket sum P1 if being more than
Token number P5 increases cycle increase token number P3 on the basis of original and obtains new remaining token number P5;When token application enables P6
Effectively and the cycle reach enabled P7 it is invalid when system enter to become a mandarin control state S3, whether judgment frame long message P4 is more than remaining token number
P5, do not allow to send out group signal if exporting more than if, otherwise output allows to send out group signal while remaining token number P5 exists
Frame length information P4 numbers are reduced on the basis of originally and obtain new remaining token number P5;Make when token application enables P6 and cycle arrival
System enters when energy P7 is simultaneously effective updates token bucket and stream control state S4 simultaneously, is more than remaining token number P5 in frame length information P4
In the case of cycle increase token number P3, output does not allow to send out group signal, while judges remaining token number P5 plus week
Whether phase increase token number P3 is more than token bucket sum P1, and remaining token number P5 numbers are no with token bucket sum P1 if being more than
Then remaining token number P5 increase cycle increase token number P3 on the basis of original obtain new remaining token number P5, in frame length information
In the case of P4 is less than or equal to remaining token number P5 plus cycle increase token number P3, output allows to send out group signal, sentences simultaneously
The remaining token number P5 that breaks subtracts whether frame length information P4 is more than token bucket sum P1 again plus cycle increase token number P3, if being more than
Then remaining token number P5 numbers increase cycle increase token with token bucket sum P1, otherwise remaining token number P5 on the basis of original
Number P3 subtracts frame length information P4 and obtains new remaining token number P5 again.
Briefly operation principle of the invention is as follows:
Satellite borne equipment B speed parsing module 2, which parses external remote control and instructs to obtain rate information, is sent to reception processing mould
Block 5, and rate information is sent to satellite borne equipment with the transmission information inputted from data fifo module 8 according to setting protocol data
A rate identification module 1;Rate identification module 1 receives protocol data and identifies rate information and send information, by speed
Information exports barrel module 3 that gives token, and transmission information is exported and gives transmission processing module 4;Queue management module 6 receives external data
And according to prioritization management, shared buffer memory multilevel precedence queue management is realized using chained list mode, by data deposit pair
Answer priority query is medium to be read out;Send whether scheduler module 7 is held according to the cache information decision-making for sending the output of processing module 4
Row sends scheduling, applies for frame length information to queue management module 6 if cache information is sky, and the frame length information applied is sent out
Give token bucket module 3;Token bucket module 3 produces according to the token bucket algorithm of setting according to rate information and sends token, and root
Whether allow to send out team according to the frame length information decision current data of reception, and feed back to and send scheduler module 7;Send scheduling mould
After block 7 obtains feedback information, if data are extracted from the corresponding queue of queue management module 6 if allowing to send and are sent to transmission
Processing module 4, otherwise dispatch next queue according to the dispatching algorithm of setting;Transmission processing module 4 will receive data and be delayed
Deposit, according to whether sending information decision by data output, data are then output to star from caching reading if allowing to send information
Equipment B receiving processing module 5 is carried, otherwise continues waiting for allowing to send information;Hair of the receiving processing module 5 to satellite borne equipment A
The data for sending processing module 4 to input are sent to data fifo module 8 after carrying out verification adaptation;Data fifo module 8 sets one
Programmable lower limit and a programmable upper limit, if output allows to send information when caching reaches lower limit, if caching reaches
Output in limited time stops sending information;Data fifo module 8 inputs to the data buffer storage of input according to interface processing module 5 simultaneously
Read signal data read-out is exported to interface processing module 5;Interface processing module 5 is according to the flow control algorithm of setting by number
Sent according to the data read in fifo module 8 with the speed of rate information requirement.