CN101374112B - Method, system and apparatus for transmitting packet - Google Patents
Method, system and apparatus for transmitting packet Download PDFInfo
- Publication number
- CN101374112B CN101374112B CN2008101720004A CN200810172000A CN101374112B CN 101374112 B CN101374112 B CN 101374112B CN 2008101720004 A CN2008101720004 A CN 2008101720004A CN 200810172000 A CN200810172000 A CN 200810172000A CN 101374112 B CN101374112 B CN 101374112B
- Authority
- CN
- China
- Prior art keywords
- store
- forward unit
- packet
- ending equipment
- sending ending
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention discloses a method, a system and a device for transmitting a message. The method comprises the following steps: determining whether a storing and forwarding device for transmitting a data packet from a transmission terminal device is in an idle state according to the transmission condition of a transmission terminal device data packet; and when the transmission of the event message is necessary, transmitting the event message to the storing and forwarding de\vice if the transmission terminal device is determined in the idle state. In the embodiment, the event message transmission is implemented after the transmission terminal device is determined in the idle state, and the transmission delay can be accurately determined, therefore, the precise time synchronization can be realized.
Description
Technical field
The embodiment of the invention relates to communication technical field, particularly a kind of file transmitting method, system and device.
Background technology
Ethernet is with its high bandwidth, advantage more and more becomes the main networking mode of each application cheaply.The passback circuit of wireless base station is that the typical case one of uses.Traditional wireless base station generally returns business datum by 4 or above E1/T1 circuit to base station controller, but along with non-speech service IP (Internet Protocol particularly, Internet Protocol) Ye Wu quick growth, bandwidth more and more becomes the bottleneck of business development.In order to address this problem, the passback circuit of base station begins to develop to Ethernet gradually, at present more application adopts 100M Ethernet light mouth as back transfer interface, and Ethernet light mouth has that bandwidth is big, the characteristics of long transmission distance, can well satisfy the application of base station.
Simultaneously at IP RAN (Radio Access Network, wireless access network) on the load bearing equipment, how providing more highdensity Ethernet interface to reduce every port cost also is the problem that each equipment producer need solve, based on current connector technique, the density that directly goes out the Ethernet optical interface on equipment can not show a candle to out the density of Ethernet electrical interface, in order to reduce cost, generally be on equipment, to go out highdensity Ethernet electrical interface, realize the conversion of dielectric by lower-cost external optical fiber transceiver then to the light medium.
Fiber optical transceiver has two kinds of working methods, and a kind of physical layer that is operated in is pressed bit stream mode translation data, postpones lessly and fixing, can not carry out rate consulation, and general fixed rate is 100M; A kind of link layer that is operated in is worked according to the mode that storage is transmitted, and supports electricity mouthful rate consulation and filters wrong packet function; The fiber optical transceiver of current main-stream all is operated in link layer.
Clock Synchronization Technology also is the problem that the wireless base station need solve, and is according to the difference of radio communication standard, also different for the requirement of clock synchronization.In general, clock synchronization is divided into two kinds: a kind of is Frequency Synchronization, and a kind of is Phase synchronization (being also referred to as time synchronized).
Particularly the conventional art of Frequency Synchronization is of a great variety to realize clock synchronization, can transmit clock by physical circuit, also can transmit clock by packet technology.But realize that phase locked conventional art is relatively single, general by GPS (Global Positioning System, global positioning system) etc. Service of Timing by Satellite realizes the Phase synchronization between the wireless base station, but GPS receives and has relatively high expectations for the antenna mounting condition, and installation cost is also than higher.
Along with determining of 1588v2 technical standard, realize that by ethernet line the high precision time transmission becomes possibility, can use Frequency Synchronization and Phase synchronization between the lower cost realization base station.
1588v2 is a kind of packet clock technology, by a series of event messages of exchange between node, and these event messages are realized accurate time stamp in the place of as close as possible physical circuit, summary is got up, and 1588v2 realizes that two prerequisites of time synchronized between the node are: the propagation delay time of (1) circuit is fixed; (2) the propagation delay time bi-directional symmetrical of circuit.
Yet, be operated in the fiber optical transceiver of link layer owing to use store-and-forward mechanism, in repeating process because current storage waits that the size of the bag sending out or sending is unknown, therefore, when 1588 event messages that can't predict subsequently just enough send, thereby have introduced unfixed propagation delay time, also can't guarantee the time delay bi-directional symmetrical, two prerequisites of 1588 time synchronized can't satisfy, adopt directly under this applicable cases that traditional interface transmitting-receiving mode can't the deadline synchronously.
Summary of the invention
The embodiment of the invention provides a kind of file transmitting method, system and device, determines to send event message after the store-and-forward unit zero load to be implemented in, and accurately determines transmission delay.
For achieving the above object, the embodiment of the invention provides a kind of file transmitting method on the one hand, comprising:
Whether the transmission situation of the store-and-forward unit packet of determining according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit is determined to send from the store-and-forward unit of the packet of described sending ending equipment unloaded; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay;
When needs send event message,, then send described event message to described store-and-forward unit if determine described store-and-forward unit zero load.
On the other hand, the embodiment of the invention also provides a kind of transmitting system, comprises sending ending equipment and store-and-forward unit,
Described store-and-forward unit is used to send the packet from described sending ending equipment;
Described sending ending equipment, the transmission situation that is used for the store-and-forward unit packet determined according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit, determine whether described store-and-forward unit is unloaded, when needs send event message, if determine described store-and-forward unit zero load, then send described event message to described store-and-forward unit; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay.
On the one hand, the embodiment of the invention also provides a kind of sending ending equipment, comprising again:
Determination module, whether the transmission situation that is used for the store-and-forward unit packet determined according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit is determined to send from the store-and-forward unit of the packet of described sending ending equipment unloaded; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay;
Sending module is used for if described determination module is determined described store-and-forward unit zero load, then sending described event message to described store-and-forward unit when needs send event message.
Compared with prior art, the embodiment of the invention has the following advantages: pass through the embodiment of the invention, sending ending equipment is according to the transmission situation of this sending ending equipment packet, determine whether store-and-forward unit is unloaded, when sending ending equipment need send event message, if determine this store-and-forward unit zero load, then send event message to this store-and-forward unit.Thereby realized after definite store-and-forward unit zero load, sending event message, can accurately determine transmission delay, and then can realize exact time synchronization.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of file transmitting method of the embodiment of the invention;
Fig. 2 is the flow chart of the another kind of file transmitting method of the embodiment of the invention;
Fig. 3 is the flow chart of another file transmitting method of the embodiment of the invention;
Fig. 4 is the structure chart of embodiment of the invention transmitting system;
Fig. 5 is the structure chart of a kind of sending ending equipment of the embodiment of the invention;
Fig. 6 is the structure chart of the another kind of sending ending equipment of the embodiment of the invention;
Fig. 7 is the structure chart of another sending ending equipment of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
For store-and-forward unit fiber optical transceiver for example, be generally dual-port equipment, identical and when store-and-forward unit is unloaded (outbound port is not occupied by other message during forwarding) at the two ends port speed, forward delay very little (<5 μ s), and be basic fixed and symmetry (ns level) for onesize message forward delay, but in that being arranged under the situation of buffer memory, forward delay just can't determine, under the worst case, suppose to have big bag about 10KB etc. to be sent, this delay can reach 800 μ s under 100M speed.The embodiment of the invention provides a kind of file transmitting method, has realized sending event message after definite store-and-forward unit zero load, can accurately determine transmission delay, and then can realize exact time synchronization.
As shown in Figure 1, the flow chart for a kind of file transmitting method of the embodiment of the invention comprises:
Whether step S101 according to the transmission situation of sending ending equipment packet, determines to send from the store-and-forward unit of the packet of this sending ending equipment unloaded.
According to the principle that storage is transmitted, after store-and-forward unit was received next complete bag, by a fixing forwarding processing delay, message will be begun to be sent.Under the identical situation of store-and-forward unit two ends speed, at a time, the historical maximum packet length that the maximum number of byte of current store-and-forward unit internal damping equals to receive adds the equivalent byte number of fixing forwarding processing delay correspondence under present rate.
In one implementation, sending ending equipment can obtain the reception condition of store-and-forward unit packet according to the transmission situation of this sending ending equipment ethernet port packet, can obtain the transmission situation of store-and-forward unit packet simultaneously according to the transmission rate of store-and-forward unit, the delay situation that produces in the store-and-forward unit internal buffer that causes in conjunction with store-and-forward mechanism can determine whether store-and-forward unit is unloaded again.Particularly, sending ending equipment is added up the total bytes that this sending ending equipment sends in predetermined fixed time interval, and determine the total bytes that this store-and-forward unit sends in above-mentioned fixed time interval according to the transmission rate of this store-and-forward unit, fixed time interval then after, the difference of the total bytes that the total bytes that sending ending equipment is sent and this store-and-forward unit send, the length of the event message that sends with needs compares.The length of the event message of Fa Songing is then determined this store-and-forward unit zero load more than or equal to above-mentioned difference and default error word joint number sum if desired.Because store-and-forward mechanism can cause packet produce to be detained in the store-and-forward unit internal buffer, therefore when the length of the event message that relatively needs to send and above-mentioned difference, certain surplus need be set.This error word joint number is exactly for guaranteeing zero load, default surplus when the length of the event message that relatively needs to send and above-mentioned difference, and this error word joint number is a positive integer.
In another kind of implementation, sending ending equipment is provided with the transmission package counting facility, and when packet of the every transmission of this sending ending equipment, this transmission package counting facility counts from zero according to predetermined clock frequency, when packet sends end, send package counting facility and stop counting.And the token bucket counter is set, when this transmission package counting facility stopped to count, this token bucket counter added up and sends the count value of package counting facility when each packet sends end, and carries out countdown according to above-mentioned predetermined clock frequency.When the count value of this token bucket counter is decremented to zero, determine the store-and-forward unit zero load.
Step S102 when needs send event message, if determine the store-and-forward unit zero load, then sends this event message to this store-and-forward unit.
Sending ending equipment is when sending event message, and when for example sending 1588 event messages, whether the inquiry store-and-forward unit is unloaded, if determine this store-and-forward unit zero load, then sends this event message.
In above-mentioned file transmitting method, sending ending equipment is according to the transmission situation of this sending ending equipment packet, determine whether store-and-forward unit is unloaded, when sending ending equipment need send event message, if determine this store-and-forward unit zero load, then send event message, thereby can accurately determine transmission delay, realize exact time synchronization.
The embodiment of the invention realizes exact time synchronization on the ethernet port of supporting the 1588v2 function, can adopt FPGA (Field Programmable Gates Array, field programmable gate array), ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)) or other method realize.In the description of following examples of the present invention, be that fiber optical transceiver is that example describes with the store-and-forward unit.
As shown in Figure 2, the flow chart for the another kind of file transmitting method of the embodiment of the invention specifically comprises:
Step S201, the register of initialization sending ending equipment.Be specifically as follows:
A) establish a token bucket register TOKEN, initial value is 0;
B) establish a unit interval timer DeltaT, the suggestion value is not more than the transmitting time of one 64 byte packet, for example: when the speed of fiber optical transceiver is 100M, suggestion value 2 μ s;
C) establish a unit interval transmission byte number register OB, OB equals the byte number that the fiber optical transceiver port sends DeltaT time planted agent under the current transmission rate, and for example: under the 100M speed, when DeltaT value 2 μ s, OB corresponds to 25 bytes.
Step S202 waits for that the ethernet port up to sending ending equipment sends packet, and length of data package is IB, and packet sends and finishes, and DeltaT picks up counting, at this moment TOKEN=IB.
Step S203, ethernet port whenever send a packet, increase the byte number IB of this packet in token bucket, i.e. TOKEN=TOKEN+IB.
Step S204, after the fixed time interval of DeltaT arrived, DeltaT reverted to initial value and begins new timing, carried out following calculating: TOKEN=TOKEN-OB simultaneously in token bucket.If TOKEN at this moment≤0, then execution in step S205.
Step S205, clear 0 to TOKEN, DeltaT stops regularly and recovers initial value, transfers execution in step S202 to.
When sending ending equipment prepares to begin to send 1588 event messages, the length and the TOKEN of 1588 event messages compared, the length of establishing 1588 event messages is LT.
If LT 〉=TOKEN+PROB, then sending ending equipment is determined the fiber optical transceiver zero load, can send 1588 event messages, otherwise waits for up to the fiber optical transceiver zero load.Wherein, PROB is the error word joint number, because store-and-forward mechanism can cause packet produce to be detained in the store-and-forward unit internal buffer, therefore when the length of the event message that relatively needs to send and above-mentioned difference certain surplus need be set, this surplus is made as PROB, PROB 〉=0.
Above-mentioned file transmitting method, the difference of the total bytes that total bytes that sending ending equipment sends according to sending ending equipment and fiber optical transceiver send under current transmission rate, the length of 1588 event messages that send with needs determines whether this fiber optical transceiver is unloaded, when sending ending equipment need send 1588 event messages, after determining this fiber optical transceiver zero load, send 1588 event messages.Thereby realized after definite fiber optical transceiver zero load, sending 1588 event messages, can accurately determine transmission delay, and then can realize exact time synchronization.
As shown in Figure 3, the flow chart for another file transmitting method of the embodiment of the invention specifically comprises:
Step S301, the register of initialization sending ending equipment.
If an overall work clock CLK, clock frequency can be made as current port working speed, and for example: the CLK frequency of 100M fiber optical transceiver can be made as 100MHZ, and following various counters all carry out work by this timeticks.
If a token bucket counter TOKENC, initial value is 0;
If one sends package counting facility IC, initial value is 0;
If the unloaded indicating bit BUSYB of fiber optical transceiver, initial value is 0, and expression is unloaded.
Step S302 waits for that the ethernet port up to sending ending equipment sends packet, when packet sends beginning, and IC=0, to begin to carry out stepping be 1 the counting that progressively increases to IC then.Packet sends and finishes, and IC stops counting and does following operation:
TOKENC=IC;
BUSYB=1;
It is 1 countdown that TOKENC begins to carry out stepping by the frequency of CLK.
Packet of the every transmission of follow-up ethernet port sends package counting facility IC and picks up counting, initial IC=0, and to carry out stepping be that 1 the counting that progressively increases sends up to packet and finishes to IC then.Packet sends and finishes, and IC stops counting and does following operation:
TOKENC=TOKENC+IC;
BUSYB=1;
It is 1 countdown that TOKENC begins to carry out stepping by the frequency of CLK.
Step S303, TOKENC is when countdown, if TOKENC is decremented to 0, then carries out following operation:
TOKENC stops countdown, and BUSYB is put 0, transfers execution in step S302 to.
When sending ending equipment is prepared to begin to send 1588 event messages, check BUSYB, if BUSYB is 0, then definite fiber optical transceiver zero load of this sending ending equipment can begin to send 1588 event messages; Otherwise wait for up to the fiber optical transceiver zero load.
Above-mentioned file transmitting method, sending ending equipment sends 1588 event messages after definite fiber optical transceiver zero load.Thereby realized after definite fiber optical transceiver zero load, sending 1588 event messages, can accurately determine transmission delay, and then can realize exact time synchronization.
The embodiment of the invention is not only applicable to fiber optical transceiver, and other any two ports transmitting-receiving speed is identical and that identical bag length is had a fixing store-and-forward unit of transmitting time delay is all applicable.
If whether uncertain fiber optical transceiver is unloaded, directly wait for a maximum time, send 1588 event messages again, the fixing bigger transmission lag of introducing then, realizing under the situation of Frequency Synchronization and need sending 1588 event messages, then can seriously cause the reduction of link performance with frequency faster.
As shown in Figure 4, be the structure chart of embodiment of the invention transmitting system, comprise store-and-forward unit 41 and sending ending equipment 42,
Store-and-forward unit 41 is used to send the packet from transmitting terminal equipment 42;
Sending ending equipment 42 is used for the transmission situation according to sending ending equipment 42 packets, determines whether store-and-forward unit 41 is unloaded, when needs send event message, if determine store-and-forward unit 41 zero loads, then sends this event message to store-and-forward unit 41.
Above-mentioned transmitting system, sending ending equipment 42 determines whether store-and-forward unit 41 is unloaded, when sending ending equipment 42 needs to send event message according to the transmission situation of these sending ending equipment 42 packets, if determine these store-and-forward unit 41 zero loads, then send event message.Thereby realized after definite store-and-forward unit 41 zero loads, sending event message, can accurately determine transmission delay, and then can realize exact time synchronization.
As shown in Figure 5, the structure chart for embodiment of the invention sending ending equipment comprises:
Whether determination module 421 is used for the transmission situation according to sending ending equipment 42 packets, determine to send from the store-and-forward unit 41 of the packet of transmitting terminal equipment 42 unloaded;
Sending module 422 is used for when needs send event message, if determination module 421 is determined store-and-forward unit 41 zero loads, then sends this event message to store-and-forward unit 41.
As shown in Figure 6, determination module 421 can comprise:
First determines submodule 4212, is used for determining the total bytes that store-and-forward unit 41 sends according to the transmission rate of store-and-forward unit 41 in above-mentioned fixed time interval;
Second determines submodule 4214, is used in length that comparison sub-module 4213 is determined the event message that needs send determining store-and-forward unit 41 zero loads more than or equal to after this difference and the error word joint number sum of presetting.
As shown in Figure 7, determination module 421 can comprise:
First is provided with submodule 4215, be used to be provided with the transmission package counting facility, when packet of sending ending equipment 42 every transmissions, this transmission package counting facility counts from zero according to predetermined clock frequency, when packet sent end, this transmission package counting facility stopped counting;
Second is provided with submodule 4216, be used to be provided with the token bucket counter, when the first transmission package counting facility that submodule 4215 settings are set stops to count, this token bucket counter adds up and sends the count value of package counting facility when each packet sends end, and carries out countdown according to predetermined clock frequency;
The 3rd determines submodule 4217, is used for determining store-and-forward unit 41 zero loads when second count value that the token bucket counter of submodule 4216 settings is set is decremented to zero.
Above-mentioned sending ending equipment 42, determination module 421 determine whether store-and-forward unit 41 is unloaded, and when sending module 422 sent event message at needs, after determination module 421 was determined store-and-forward unit 41 zero loads, sending module 422 sent this event message.Thereby realized after definite store-and-forward unit 41 zero loads, sending event message, can accurately determine transmission delay, and then can realize exact time synchronization.
Above-mentioned module can be distributed in a device, also can be distributed in multiple arrangement.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (8)
1. a file transmitting method is characterized in that, comprising:
Whether the transmission situation of the store-and-forward unit packet of determining according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit is determined to send from the store-and-forward unit of the packet of described sending ending equipment unloaded; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay;
When needs send event message,, then send described event message to described store-and-forward unit if determine described store-and-forward unit zero load.
2. the method for claim 1, it is characterized in that, described according to the sending ending equipment packet the transmission situation and the transmission situation of the store-and-forward unit packet determined by the transmission rate of store-and-forward unit, whether zero load specifically comprises to determine to send store-and-forward unit from the packet of described sending ending equipment:
According to the transmission rate of described store-and-forward unit, determine the transmission situation of described store-and-forward unit packet;
According to the transmission situation of described sending ending equipment packet and the transmission situation of described store-and-forward unit packet, whether unloadedly determine to send from the store-and-forward unit of the packet of described sending ending equipment.
3. method as claimed in claim 2, it is characterized in that, described according to the transmission situation of described sending ending equipment packet and the transmission situation of described store-and-forward unit packet, whether zero load comprises to determine to send store-and-forward unit from the packet of described sending ending equipment:
Add up the total bytes that described sending ending equipment sends in predetermined fixed time interval, and determine the total bytes that described store-and-forward unit sends in described fixed time interval according to the transmission rate of described store-and-forward unit;
Described fixed time interval then after, the difference of the total bytes that total bytes that described sending ending equipment is sent and described store-and-forward unit send, the length of the event message that sends with needs compares;
If the length of the described event message that need send more than or equal to described difference and default error word joint number sum, is then determined described store-and-forward unit zero load.
4. the method for claim 1, it is characterized in that, described according to the sending ending equipment packet the transmission situation and the transmission situation of the store-and-forward unit packet determined by the transmission rate of store-and-forward unit, whether zero load specifically comprises to determine to send store-and-forward unit from the packet of described sending ending equipment:
The transmission package counting facility is set, and when packet of the every transmission of described sending ending equipment, described transmission package counting facility counts from zero according to predetermined clock frequency, and each packet sends when finishing, and described transmission package counting facility stops counting;
The token bucket counter is set, and when described transmission package counting facility stopped to count, the described token bucket counter described transmission package counting facility that adds up sent count value when finishing at each packet, and carries out countdown according to predetermined clock frequency;
When the count value of described token bucket counter is decremented to zero, determine described store-and-forward unit zero load.
5. a transmitting system is characterized in that, comprises sending ending equipment and store-and-forward unit,
Described store-and-forward unit is used to send the packet from described sending ending equipment;
Described sending ending equipment, the transmission situation that is used for the store-and-forward unit packet determined according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit, determine whether described store-and-forward unit is unloaded, when needs send event message, if determine described store-and-forward unit zero load, then send described event message to described store-and-forward unit; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay.
6. a sending ending equipment is characterized in that, comprising:
Determination module, whether the transmission situation that is used for the store-and-forward unit packet determined according to the transmission situation of sending ending equipment packet and by the transmission rate of store-and-forward unit is determined to send from the store-and-forward unit of the packet of described sending ending equipment unloaded; Described zero load is that outbound port is not occupied by other message when transmitting; Described store-and-forward unit is that two ports are received and dispatched the store-and-forward unit that speed is identical and identical bag length is had fixing forwarding time delay;
Sending module is used for if described determination module is determined described store-and-forward unit zero load, then sending described event message to described store-and-forward unit when needs send event message.
7. equipment as claimed in claim 6 is characterized in that, described determination module comprises:
The statistics submodule is used to add up the total bytes that described sending ending equipment sends in predetermined fixed time interval;
First determines submodule, is used for determining the total bytes that described store-and-forward unit sends according to the transmission rate of described store-and-forward unit in described fixed time interval;
Comparison sub-module, be used for described fixed time interval then after, the total bytes and described first that the sending ending equipment of described statistics submodule statistics is sent is determined the difference of the total bytes that store-and-forward unit that submodule is determined sends, and the length of the event message that sends with needs compares;
Second determines submodule, is used in length that described comparison sub-module is determined the event message that described needs send determining described store-and-forward unit zero load more than or equal to after described difference and the error word joint number sum of presetting.
8. equipment as claimed in claim 6 is characterized in that, described determination module comprises:
First is provided with submodule, be used to be provided with the transmission package counting facility, when packet of the every transmission of described sending ending equipment, described transmission package counting facility counts from zero according to predetermined clock frequency, each packet sends when finishing, and described transmission package counting facility stops counting;
Second is provided with submodule, be used to be provided with the token bucket counter, when the described first transmission package counting facility that the submodule setting is set stops to count, the described token bucket counter described transmission package counting facility that adds up sends count value when finishing at each packet, and carries out countdown according to described predetermined clock frequency;
The 3rd determines submodule, is used for determining described store-and-forward unit zero load when described second count value that the token bucket counter of submodule setting is set is decremented to zero.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101720004A CN101374112B (en) | 2008-10-28 | 2008-10-28 | Method, system and apparatus for transmitting packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101720004A CN101374112B (en) | 2008-10-28 | 2008-10-28 | Method, system and apparatus for transmitting packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101374112A CN101374112A (en) | 2009-02-25 |
CN101374112B true CN101374112B (en) | 2011-02-09 |
Family
ID=40448044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101720004A Expired - Fee Related CN101374112B (en) | 2008-10-28 | 2008-10-28 | Method, system and apparatus for transmitting packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101374112B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621850B (en) * | 2009-08-14 | 2012-04-25 | 杭州华三通信技术有限公司 | Message transmitting method and user terminal apparatus |
US8594134B2 (en) * | 2010-06-02 | 2013-11-26 | Symmetricom, Inc. | Precision time transfer over optical fiber |
CN105873207B (en) * | 2015-01-20 | 2020-06-09 | 中兴通讯股份有限公司 | Air interface synchronization system and method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791097A (en) * | 2004-12-15 | 2006-06-21 | 北京邮电大学 | RPF protocol applied in optical burst switching ring network based on WDM |
CN1819579A (en) * | 2005-12-15 | 2006-08-16 | 中国人民解放军国防科学技术大学 | Open loop time delivering method |
CN101018115A (en) * | 2007-02-13 | 2007-08-15 | 张承瑞 | Real time synchronization network based on the standard Ethernet and its operating method |
EP1865666A2 (en) * | 2002-03-05 | 2007-12-12 | Nokia Corporation | Synchronisation in communication systems |
-
2008
- 2008-10-28 CN CN2008101720004A patent/CN101374112B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1865666A2 (en) * | 2002-03-05 | 2007-12-12 | Nokia Corporation | Synchronisation in communication systems |
CN1791097A (en) * | 2004-12-15 | 2006-06-21 | 北京邮电大学 | RPF protocol applied in optical burst switching ring network based on WDM |
CN1819579A (en) * | 2005-12-15 | 2006-08-16 | 中国人民解放军国防科学技术大学 | Open loop time delivering method |
CN101018115A (en) * | 2007-02-13 | 2007-08-15 | 张承瑞 | Real time synchronization network based on the standard Ethernet and its operating method |
Also Published As
Publication number | Publication date |
---|---|
CN101374112A (en) | 2009-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101749202B1 (en) | Method, apparatus, and system for generating timestamp | |
TWI242946B (en) | Wireless packet communication apparatus and method | |
US8155136B2 (en) | Single network interface circuit with multiple-ports and method thereof | |
CN106162860A (en) | The method and system of a kind of time synchronized, the network equipment | |
US20100250821A1 (en) | Inter-processor communication link with manageability port | |
US20080062873A1 (en) | Credit-based rate control for high-speed interfaces | |
WO2008125043A1 (en) | Multi-frame network clock synchronization | |
WO2008125025A1 (en) | Inter-packet gap network clock synchronization | |
US7464201B1 (en) | Packet buffer management apparatus and method | |
CN102394795B (en) | Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor | |
CN101848168B (en) | Target MAC (Media Access Control) address based flow control method, system and equipment | |
US20070237076A1 (en) | Node | |
US9634950B2 (en) | Ethernet media converter supporting high-speed wireless access points | |
CN101374112B (en) | Method, system and apparatus for transmitting packet | |
EP3883151A1 (en) | Time synchronization method and device, and storage medium | |
JP2000224199A (en) | Time division multiple bus synchronizing signal concentrator, data transmission system and method therefor | |
CN113300798A (en) | Transmission certainty access method of asynchronous terminal | |
CN101415027B (en) | Communication module based on HDLC protocol, and control method for data real time forwarding and storage | |
EP1894370B1 (en) | Electronic device, method for frame synchronization, and mobile device | |
CN101267390B (en) | Asynchronous delay network communication method, its system and buffer processing device | |
CN114762274B (en) | Rate adjustment apparatus and method | |
CN102332997B (en) | Network equipment and method for adjusting link capacity by using network equipment | |
US7321593B1 (en) | Fibre channel SERDES with elastic transmitter FIFO | |
CN110912611A (en) | SFP transmission system based on distributed synchronous time service technology | |
WO2023082087A1 (en) | Control signaling transmission method, communication node, and base station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110209 Termination date: 20181028 |
|
CF01 | Termination of patent right due to non-payment of annual fee |