A kind of control method and device of Ethernet service air interface transmission delay variation
Technical field
The present invention relates to field of microwave communication, more particularly, to a kind of Ethernet service air interface transmission delay variation
Control method and device.
Background technology
Microwave communication has many advantages, such as that capacity is big, high-quality, networking is convenient, anti-disaster ability is strong, is a kind of important communication
Means are also generally applicable to various private wire networks.
Multiple business when microwave system needs the simultaneous transmission to include including Ethernet, and Ethernet service is to propagation delay time
The index of shake has some standards, then when carrying out air interface transmission to Ethernet service, how to meet propagation delay time and trembles
Dynamic requirement is just particularly important.Industry provides corresponding solution not yet at present.
Invention content
Technical problem to be solved by the invention is to provide a kind of controlling parties of Ethernet service air interface transmission delay variation
Method and corresponding sending device.
In order to solve the above technical problem, the present invention provides a kind of controls of Ethernet service air interface transmission delay variation
Method, including:
The Ethernet data bag forwarded from switch is decapsulated, obtained Ethernet data is stored in slow
In punching;
According to the relationship of the buffering water level of Ethernet data and the critical groundwater table of setting, sent to switch for controlling
The instruction that switch data packet is sent, by the buffering water level control within the scope of requiring;
After the Ethernet data is Resealed, it is scheduled be multiplexed into eat dishes without rice or wine frame in send.
Preferably,
The critical groundwater table is arranged corresponding to bandwidth of air-interface, and for different bandwidth of air-interface, the critical groundwater table of setting is not
It is same or not exactly the same.
Preferably,
The critical groundwater table of the setting includes high water level and low water level, and the value of the high water level of setting is bigger, corresponding to eat dishes without rice or wine
Bandwidth is bigger.
Preferably,
The critical groundwater table of the setting includes high water level and low water level, the buffering water level according to Ethernet data with set
The relationship for the critical groundwater table set sends the instruction sent for controlling switch data packet to switch, including:
If the buffering water level of Ethernet data rises to high water level, speed limit instruction is sent to switch, instruction is handed over
Changing device suspends the transmission of Ethernet data bag;
If after sending limitation instruction, the buffering water level of Ethernet data drops to low water level, then is sent out to switch
It send and releases speed limit instruction, instruction switch can retransmit Ethernet data bag.
Correspondingly, the present invention also provides a kind of sending devices, including unpack module, buffer module, package module and hair
Module is sent, further includes control module, wherein:
The unpacking module is obtained for being decapsulated to the Ethernet data bag forwarded from switch
Ethernet data is stored in buffering;
The buffer module, for caching Ethernet data;
The control module, for the relationship for buffering water level and the critical groundwater table of setting according to Ethernet data, to friendship
Changing device send for control switch data packet transmission instruction, by it is described buffering water level control setting range
It is interior;
The package module, for the Ethernet data of caching to be re-packaged into new format by agreement;
The sending module, for being scheduled to packaged various businesses data, generation eats dishes without rice or wine frame and to send.
Preferably,
The critical groundwater table is arranged corresponding to bandwidth of air-interface for the control module, for different bandwidth of air-interface, setting
Critical groundwater table it is different or not exactly the same.
Preferably,
The critical groundwater table of the control module setting includes high water level and low water level, and the value of the high water level of setting is bigger, right
The bandwidth of air-interface answered is bigger.
Preferably,
The critical groundwater table of the control module setting includes high water level and low water level, the buffering according to Ethernet data
The relationship of water level and the critical groundwater table of setting sends the instruction sent for controlling switch data packet, packet to switch
It includes:
If the buffering water level of Ethernet data rises to high water level, speed limit instruction is sent to switch, instruction is handed over
Changing device suspends the transmission of Ethernet data bag;
If after sending limitation instruction, the buffering water level of Ethernet data drops to low water level, then is sent out to switch
It send and releases speed limit instruction, instruction switch can retransmit Ethernet data bag.
Using the method for the present invention and device, propagation delay time when air interface transmission Ethernet service can be controlled, when by transmitting
Prolong shake control in certain range, be easy to implement the index of the propagation delay time shake of Ethernet service, and difference can be directed to
Bandwidth adaptively adjusted.
Description of the drawings
Fig. 1 is the flow chart of present invention method;
Fig. 2 is the structural schematic diagram of apparatus of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature mutually can arbitrarily combine.
Ethernet delay shake is to have passed through buffering (buffer) caching during transmission because of Ethernet data, this
The depth cached a bit is inconsistent at different times, therefore time delay is also just different, and the difference of time delay is exactly delay variation.This reality
Apply example makes the variation range of caching depth reduce to achieve the purpose that delay of control is shaken by control.
As shown in Figure 1, the control method of the present embodiment Ethernet service air interface transmission delay variation includes:
Step 110, the Ethernet data bag forwarded from switch is decapsulated, obtained Ethernet data
It is stored in buffering;
Obtain Ethernet data after the Ethernet data bag decapsulation forwarded to switch such as exchange chip and be with
The too payload data of network service.
Step 120, it according to the relationship of the buffer water levels of Ethernet data and the critical groundwater table of setting, is sent out to switch
The instruction for controlling the transmission of switch data packet is sent, by the buffer water level controls within the scope of requiring;
Buffer water levels in text are the parameters for indicating data buffer storage depth in buffer.The higher expression of buffer water levels
The depth of data buffer storage is bigger in buffer.
In one example, critical groundwater table may include high water level and low water level, this step includes then:
If the buffer water levels of Ethernet data rise to high water level, speed limit instruction is sent (such as to switch
PAUSE frames), the transmission of instruction switch pause Ethernet data bag.Switch stops Ethernet after receiving speed limit instruction
The transmission of data packet;
If after sending limitation instruction, the buffer water level decreasings of Ethernet data are to low water level, then to switch
It sends and releases speed limit instruction, instruction switch can retransmit Ethernet data bag.Switch receives releasing speed limit and refers to
After order, the transmission of Ethernet data bag can be restarted.
For different bandwidth of air-interface, the critical groundwater table of setting is different or not exactly the same.For example, as bandwidth of air-interface compared with
Greatly, the value of high water level can be arranged larger, on the contrary then can be arranged smaller.
Step 130, after the Ethernet data being Resealed, it is scheduled be multiplexed into eat dishes without rice or wine frame in send.
In one example, be stored in buffering in Ethernet data reach it is complete one packet after can by protocol encapsulation at
Novel ether network packet, convenient for being positioned in frame of eating dishes without rice or wine.Sending device is according to the priority of various businesses and each business
Scheduling request is scheduled the data of each business, and multiplexing generates final frame of eating dishes without rice or wine.
It should be noted that each step can be with parallel processing, in addition step numbers are intended merely to convenience and attached drawing above
Control.
The speed that the present embodiment method sends switch according to buffer water levels Ethernet data bag controls, can
Buffer water level controls in a certain range, and then are controlled the delay by the Ethernet data of buffer, so as to
Reduce shake time delay.
As shown in Fig. 2, the present embodiment can be to sending device that Ethernet service air interface transmission delay variation is controlled
Including:
Unpack module 10, for being decapsulated to the Ethernet data bag forwarded from switch, obtain with
Too network data is stored in buffering.
Buffer module 20, for caching Ethernet data;
Control module 30 is used for the relationship according to the buffer water levels of Ethernet data and the critical groundwater table of setting, to friendship
Changing device send for control switch data packet transmission instruction, by the buffer water level controls setting range
It is interior.In one example, critical groundwater table includes high water level and low water level, if it is determined that the buffer water levels rise supreme water
Position then sends speed limit instruction, the transmission of instruction switch pause Ethernet data bag to switch.If it is determined that sending
After limitation instruction, the buffer water level decreasings then send to switch to low water level and release speed limit instruction, instruction exchanges dress
Ethernet data bag can be retransmitted by setting.Critical groundwater table can be accordingly arranged according to current bandwidth of air-interface, different skies
Different critical groundwater tables can be set under port band width, and when as larger such as bandwidth of air-interface, the value of high water level can be arranged larger, on the contrary
It then can be arranged smaller.
Package module 40, for the Ethernet data of caching to be re-packaged into new format by agreement.
Sending module 50, for being scheduled to packaged various businesses data, generation eats dishes without rice or wine frame and to send.
In receiving side, frame parsing module of eating dishes without rice or wine parses the frame of eating dishes without rice or wine received, the ether that will wherein Reseal
Network data packet distinguishes, and gives decapsulation module;Decapsulation module decapsulates the Ethernet data bag Resealed,
It obtains Ethernet data and is stored in cache module;Ethernet data packing in cache module is reverted to original by packetization module
Begin the format encapsulated, exports to switch.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly
Ground, the form that hardware may be used in each module/unit in above-described embodiment are realized, the shape of software function module can also be used
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.