CN103746878B - Simulation system for measuring transmission time of SpaceWire data packets - Google Patents

Simulation system for measuring transmission time of SpaceWire data packets Download PDF

Info

Publication number
CN103746878B
CN103746878B CN201310753304.0A CN201310753304A CN103746878B CN 103746878 B CN103746878 B CN 103746878B CN 201310753304 A CN201310753304 A CN 201310753304A CN 103746878 B CN103746878 B CN 103746878B
Authority
CN
China
Prior art keywords
time
packet
spacewire
window width
triggered
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.)
Active
Application number
CN201310753304.0A
Other languages
Chinese (zh)
Other versions
CN103746878A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201310753304.0A priority Critical patent/CN103746878B/en
Publication of CN103746878A publication Critical patent/CN103746878A/en
Application granted granted Critical
Publication of CN103746878B publication Critical patent/CN103746878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a simulation system for measuring the transmission time of SpaceWire data packets. The simulation system comprises a wormhole router module (1) with a time window, a time main control node module (2) and a terminal application node module (3), wherein the three modules construct an aerospace communication network on the basis of SpaceWire bus standard communication; the terminal application node module (3) is used for generating two types of SpaceWire data packets; the transmission time and transmission delay time of the data packets are counted in the wormhole router module (1) with the time window through simulation system synchronizing time provided by the time main control node module (2). The simulation system is used for measuring the transmission time and transmission delay time of the SpaceWire data packets on the basis of a SpaceWire bus standard, and the performance of the aerospace communication network can be improved by using the obtained time information.

Description

A kind of analogue system of the transmission time of mensure spacewire packet
Technical field
The present invention relates to a kind of space communication network emulates field, more particularly, refer to a kind of mensure spacewire number Analogue system according to bag transmission delay.
Background technology
Spacewire(translation be space bus) bus be a kind of serial, at a high speed, point-to-point, full duplex spaceborne data Network standard (ecss-e-st-50-12c, 31july2008), is multi-source, asynchronous, event-triggered communication network it is difficult to ensure to disappear The transmission end-to-end delay of breath.If the message attributes of part of nodes in previously known network, the such as information such as time, size, to it Transmission planned, be scheduling according to set time window, you can form time triggered news network, and be greatly improved The certainty of message transmission in network.
Spacewire packet transmission end-to-end delay is a very important testing index in network analysis, it Embody the real-time of network.The method measuring message transmission delay has a lot, and wherein network simulation is a kind of conventional selection.Net Network simulator service mathematical modeling and statistical analysis analog network behavior, in that context it may be convenient to changing model and being emulated, are suitable for pre- The performance of survey grid network, the planning and designing for network provide reliable quantitative basis.
Protocol emulation is carried out based on software and simulates spacewire network communication mechanism, measure event triggering spacewire The transmission end-to-end delay of message in network, lacks based on time triggered message, enters professional etiquette to Wormhole rou ting device scheduling instance table The analogue system drawn.
Content of the invention
The purpose of the present invention is to propose to a kind of analogue system of the transmission time of mensure spacewire packet, this emulation System is to solve the simulation problems of time triggered message in spacewire bus network, and the scheduling instance of router is carried out Planning, processes the forwarding of spacewire packet, to time triggered using time window width and window width size condition Spacewire packet priority is processed it is ensured that the transmission time of the spacewire packet of time triggered.For event triggering Spacewire packet, then forwarded using window width size condition.
A kind of analogue system of the transmission time of mensure spacewire packet of the present invention, this analogue system foundation The communication of spacewire bus standard builds space communication network.This analogue system includes the Wormhole rou ting device with time window (1), time main controlled node module (2) and terminal applies node module (3).
Wormhole rou ting device (1) with time window includes Wormhole rou ting unit (11), time window arranging unit (12) Data bag buffer unit (13).
Wormhole rou ting unit (11) be used for complete the spacewire packet to time triggered and event triggering The forwarding of spacewire packet.
Time window arranging unit (12) binding time window width to judge the transmission order of packet with window width size.
Data pack buffer unit (13) triggers for the interim spacewire packet to time triggered and event Spacewire packet is preserved.
Time main controlled node module (2) includes time synchronized control unit (21) and time master control receiving unit (22). Time synchronized control unit (21) is used for generating lock in time code tm_time_code, and to based on spacewire bus standard Broadcast in the space communication network of communication.When time main controlled node module (2) is as purpose, time master control receiving unit (22) it is used for receiving the spacewire packet of the spacewire packet of time triggered and event triggering.
Terminal applies node module (3) includes terminal applies transmitting element (31) and terminal applies receiving unit (32).
When terminal applies node module (3) is as source node, terminal applies node module (3) is sent by terminal applies The spacewire packet that unit (31) triggers come the spacewire packet and event to send time triggered.The setting time touches The t of the spacewire packet sent outInterval.
When terminal applies node module (3) is as intermediate node, terminal applies node module (3) is sent out by terminal applies Unit (31) is sent to carry out the spacewire packet of forwarding time triggering and the spacewire of event triggering according to transmission link Packet.
When terminal applies node module (3) is as destination node, terminal applies node module (3) is connect by terminal applies Receive unit (32) to receive the spacewire packet of time triggered and the spacewire packet of event triggering.
The analogue system of the described transmission time of mensure spacewire packet, in described time window arranging unit (12), in, the interval between the time window width of the spacewire packet of any two time triggered is referred to as window width interval ch, institute State window width and be spaced ch for forwarding the spacewire packet of event triggering.The spacewire packet of time triggered is according to raw Become moment atGeneratePriority be transmitted the spacewire packet of described time triggered.The spacewire data of event triggering Bag is according to generation moment btGeneratePriority and whether meet the window width size condition at window width interval and be transmitted the triggering of described event Spacewire packet.
The advantage that the present invention measures the analogue system of spacewire packet transmission delay is:
1. the analogue system of the present invention Wormhole rou ting device model traditional to spacewire is transformed, and increased data Bag caching mechanism, increased router scheduling time window it is achieved that Simulation Control to time triggered message, thus obtaining one Plant the router-modelle that process time triggers scheduling message.
2. the triggering of analogue system of the present invention compatibility event and two kinds of message transfer mechanism of time triggered are it is adaptable to multiple network The emulation of scene, such as: event triggering network, time-triggered network, event and time triggered compatible network.Simulation result can feed back It is used for evaluating the transmission performance of network to designer.
3. the present invention also can complete the emulation to standard spacewire network, when not containing time triggered data in network Bao Shi, is all event trigger data bag, then consistent with the network that standard agreement specifies.
Brief description
Fig. 1 is the structure chart of the analogue system of transmission time that the present invention measures spacewire packet.
Fig. 2 a is the structural representation of time window width and window width interval.
Fig. 2 b is a kind of structural representation of multiple time window widths and window width interval.
Fig. 2 c is another kind of structural representation of multiple time window widths and window width interval.
Fig. 2 d is the yet another construction schematic diagram of multiple time window widths and window width interval.
Fig. 3 is the simulation contact surface of the analogue system of transmission time that the present invention measures spacewire packet.
Fig. 4 is the space communication network schematic diagram based on spacewire standard agreement.
Fig. 5 is simulation result schematic diagram.
Specific embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The present invention is to realize in a space communication network based on the communication of spacewire bus standard, right Transmission time when end-to-end transmission for the spacewire packet is emulated, and is measured by emulating the transmission time obtaining The transmission end-to-end delay of spacewire packet.
In the present invention, based on matlab(version number 7.13) platform emulated.
Shown in Figure 1, analogue system of the present invention includes the Wormhole rou ting device 1 with time window, time main controlled node Module 2 and terminal applies node module 3.Wherein, the Wormhole rou ting device 1 with time window include Wormhole rou ting unit 11, when Between window arranging unit 12 data bag buffer unit 13.Wherein, time main controlled node module 2 includes time synchronized control list Unit 21 and time master control receiving unit 22.Wherein, terminal applies node module 3 includes terminal applies transmitting element 31 and terminal Application receiving unit 32.
In the present invention, in the space communication network being communicated based on spacewire bus standard, time main controlled node mould Block 2 can be used in receiving the spacewire packet of the spacewire packet of time triggered and event triggering, for the purpose of one-tenth Node.
In the present invention, terminal applies node module 3 one aspect can be used in sending the spacewire data of time triggered Bag and the spacewire packet of event triggering, become source node;On the other hand can be used in receiving time triggered Spacewire packet and the spacewire packet of event triggering, become destination node.Pass to destination node from source node The process of defeated spacewire packet is referred to as transmission link, on described transmission link in addition to source node and destination node Node is referred to as intermediate node.Described intermediate node can be the Wormhole rou ting device 1 with time window and/or terminal applies node mould Block 3.
The spacewire packet of described time triggered refers to fix transmission time interval t according to the packet settingInterval To trigger the transmission of spacewire packet.In detail, when in terminal applies node module 3, if being provided with tInterval=0.5 second Carry out the transmission of spacewire packet, then the terminal applies transmitting element 31 in terminal applies node module 3 can be according to every Periodically carry out spacewire packet every the time of 0.5 second to time main controlled node module 2.
The spacewire packet of described event triggering refers to that not timing carries out spacewire packet transmission.
In the present invention, spacewire packet includes typetime、typeevent、size、src、dest、num、 eop、tGenerate;Wherein typetime、typeevent, size, src and dest constitute spacewire packet packet header src_node. Data block in one spacewire packet is set to num=50;In described generation moment tGenerateExplanation in, due to sometimes Between triggering spacewire packet type typetimeType type with the spacewire packet of event triggeringevent, So being directed to typetimeThe packet generation moment of type is designated as atGenerate, typeeventThe packet generation moment of type is designated as btGenerate.
Time main controlled node module 2
In the present invention, the time synchronized control unit 21 in time main controlled node module 2 is used for generating lock in time code Tm_time_code, and broadcast in the space communication network being communicated based on spacewire bus standard.In terminal applies node After module 3 and the Wormhole rou ting device 1 with time window receive described lock in time code tm_time_code, whole base is ensured with this Unified time in the space communication network of spacewire bus standard communication.
The lock in time code tm_time_code that the time synchronized control unit 21 of the present invention produces is controlling space communication The time synchronized of network, tm_time_code is identical with the time-code in spacewire standard agreement.
When time main controlled node module 2 is as destination node, time main controlled node module 2 pass through time master control receive single The spacewire packet that unit 22 triggers come the spacewire packet and event to receive time triggered.
In the present invention, the time synchronized control unit 21 generation time code in time main controlled node module 2 and broadcast to Whole network sends, to control whole artificial network time synchronized.Complete to the time receiving in time master control receiving unit 22 After the process of spacewire packet of the spacewire packet of triggering and event triggering, extract spacewire data The generation moment t of bagGenerateReach the moment t of destination node with spacewire packetendSuch that it is able to count spacewire Packet reaches transmission time et=t of destination node from source nodeend-tGenerate.
Terminal applies node module 3
Before emulation, setting terminal applies node module 3 identity (source node, intermediate node or be purpose node), Send type (the spacewire number of the spacewire packet of time triggered or event triggering of spacewire packet According to bag), and terminal applies node module 3 is carried out with time interval t of the spacewire packet of time triggeredIntervalSet Put, then setting spacewire packet (the spacewire data of the spacewire packet of time triggered and event triggering Bag) transfer rate, the generation moment t of packetGenerate, size size of packet.If terminal applies node module 3 is used for complete Portion generates time triggered message, then constitute time-triggered network;If terminal applies node module 3 is used for whole events that generate triggering Message, then constitute event triggering network;If terminal applies node module 3 part generates event-triggered message, part generates the time Triggering message, then trigger compatible network for event time.
Terminal applies node module 3 to ensure in simulation process according to the lock in time code tm_time_code receiving, Network time synchronization when receiving and send spacewire packet and in space communication network for the terminal applies node module 3.
When terminal applies node module 3 is as source node, terminal applies node module 3 passes through terminal applies transmitting element The 31 spacewire packets triggering the spacewire packet and event to send time triggered.Setting time triggered The t of spacewire packetInterval.
When terminal applies node module 3 is as intermediate node, terminal applies node module 3 is sent single by terminal applies Unit 31 carries out the spacewire packet of forwarding time triggering and the spacewire packet of event triggering according to transmission link.
When terminal applies node module 3 is as destination node, terminal applies node module 3 is received single by terminal applies The spacewire packet that unit 32 triggers come the spacewire packet and event to receive time triggered.
Wormhole rou ting device 1 with time window
In the present invention, in order to ensure the spacewire packet of time triggered and the spacewire data of event triggering Network transmission in described space communication network for the bag, is to set up on existing Wormhole rou ting device (i.e. Wormhole rou ting unit 11) Time window arranging unit 12 data bag buffer unit 13, therefore, Wormhole rou ting device referred to as band time window in the present invention The Wormhole rou ting device of mouth.
Wormhole rou ting unit 11 be used for complete the spacewire packet to time triggered and event triggering The forwarding of spacewire packet.
Time window arranging unit 12 binding time window width to judge the transmission order of packet with window width size.
Data pack buffer unit 13 triggers for the interim spacewire packet to time triggered and event Spacewire packet is preserved.Because each input port of each router is provided with buffer queue, for slow storage Spacewire packet.After the packet header of packet reaches router, router passes through the destination node letter carrying in packet Breath obtains the required output port of its transmission, if this output port is now busy condition, should be by data pack buffer in router Buffer queue in, after this output port be idle condition after, router ability sends packet from buffer queue and is forwarded. In the present invention, the packet of data pack buffer unit 13 caching is because time window arranging unit 12 to described packet Forwarding time carried out forwarding the control of priority according to time window width.
In the present invention, the time window width of the spacewire packet of time triggered is designated as ah, describedThe time window width of the spacewire packet of event triggering is designated as bh, describedsize Represent the size of a spacewire packet, c represents the link transmission rate of emulation setting.Any two time triggered Interval between the time window width of spacewire packet is referred to as window width interval ch, and described window width interval ch is used for forwarding event The spacewire packet of triggering.The spacewire packet of time triggered is according to generation moment atGeneratePriority be transmitted The spacewire packet of described time triggered.The spacewire packet of event triggering is according to generation moment btGeneratePriority And whether meet the spacewire packet that the window width size condition at window width interval is transmitted described event triggering.At this In bright, the window width size condition at window width interval is: if ch >=bh, forward the spacewire packet of described event triggering, if Ch < bh, then wait next window width interval, and determine whether whether the window width size that described next one window width is spaced meets Forward the time window of the spacewire packet of event triggering roomy little.In the present invention, overlapping for generating the moment , carry out forwarding spacewire packet according to the size of time window width, the little packet of time window width first sends, time window Send after roomy packet.
Referring to shown in Fig. 2 a, in a network transmission cycle tCycleIn, the Wormhole rou ting device 1 with time window successively receives The spacewire packet of two time triggered arriving, i.e. the spacewire packet of previous time triggered and when latter Between triggering spacewire packet;
The spacewire data of described time triggered is extracted from the spacewire packet of previous time triggered The generation moment of bagData bag size size, and calculate time window width
The spacewire data of described time triggered is extracted from the spacewire packet of a rear time triggered The generation moment of bagData bag size size, and calculate time window width
Through generating after moment successively sequence, then ahBeforeWith ahAfterwardsBetween there is window width interval
Transmission for the spacewire packet of two time triggered is then to carry out according to respective generation moment priority The forwarding of spacewire packet of time triggered.
Referring to shown in Fig. 2 b, Fig. 2 c, Fig. 2 d, in a network transmission cycle tCycleIn, with the Wormhole rou ting of time window Device 1 will receive multiple spacewire packets.
Spacewire data packet recording as first time triggered is swt1, the spacewire number of second time triggered It is designated as swt according to bag2..., the spacewire data packet recording of penultimate time triggered be swtx-1, last time touch The spacewire data packet recording sent out is swtx, the spacewire data packet recording of first event triggering be swe1, second event The spacewire data packet recording of triggering is swe2..., last event triggering spacewire data packet recording be swey;x Represent the identification number of the spacewire packet of time triggered, for convenience of explanation, swtxIt is also referred to as any one time triggered Spacewire packet;Y represents the identification number of the spacewire packet of event triggering, for convenience of explanation, swey? It is referred to as the spacewire packet of any one event triggering.
In time window arranging unit 12, need to obtain out following generation moment and time window width:
swt1The generation moment be designated asswt1Time window width be designated as
swt2The generation moment be designated asswt2Time window width be designated as
swtx-1The generation moment be designated asswtxTime window width be designated as
swtxThe generation moment be designated asswtxTime window width be designated as
swe1The generation moment be designated asswe1Time window width be designated as
swe2The generation moment be designated asswe2Time window width be designated as
sweyThe generation moment be designated assweyTime window width be designated as
Referring to shown in Fig. 2 b, generate being ordered as of moment: With
Referring to shown in Fig. 2 b, time window width occurs in that overlap is:
(1)Rear end withFront end overlapping;
(2)Rear end withFront end overlapping;
(3)Rear end withFront end overlapping;
(4)Rear end withFront end overlapping;
(5)Rear end withFront end overlapping.
Referring to shown in Fig. 2 b, there are window width and be spaced apart:WithBetween there are window width intervalWithBetween there are window width interval
According to the transmission order that time window width carries out packet it is: swt1→swtx→swtx-1→swe2→swt2→swe1 →swey.Due toWindow width be more than or equal to swe2Time window widthTherefore swe2Can be in swt2Send out before Go out.IfWindow width be less than swe2Time window widthThen swe2Satisfaction can have been waitedAbility Sent swe2.
Referring to shown in Fig. 2 c, generate being ordered as of moment: With
Referring to shown in Fig. 2 c, time window width occurs in that overlap is:Rear end withFront end overlapping.
Referring to shown in Fig. 2 c, there are window width and be spaced apart:WithBetween there are window width intervalWithBetween there are window width intervalWithBetween deposit In fenestrate wide interval
According to the transmission order that time window width carries out packet it is: swt1→swe1→swtx-1→swe2→swt2→swtx →swey.IfTime window width can be met simultaneouslyWithThen the transmission order of packet is: swt1→swe1→swtx-1→swe2→swey→swt2→swtx.
Referring to shown in Fig. 2 d, generate being ordered as of moment: With
Referring to shown in Fig. 2 d, time window width occurs in that overlap is:Rear end withFront end overlapping.
Referring to shown in Fig. 2 d, there are window width and be spaced apart:WithBetween there are window width intervalWithBetween there are window width intervalWithBetween deposit In fenestrate wide interval
According to the transmission order that time window width carries out packet it is: swt1→swe1→swtx-1→swe2→swt2→swey →swtx.
In the present invention, because the spacewire packet of event triggering is intended to wait the time being suitable in transmitting procedure Window width, therefore the spacewire packet for event triggering there are the propagation delay time.By comparing the big of time window width Little, just can obtain this propagation delay time more conveniently.
In the present invention, the time window width of the spacewire packet of the time triggered being obtained by calculating and event are touched The sum of the time window width of spacewire packet sent out, just can obtain the data in a network cycle more conveniently Packet transmission time.
In the present invention, by the analysis to propagation delay time data packet transmission time, it is obtained in that and is based on The performance of the space communication network of spacewire bus standard communication.
In the present invention, suitable come the transmission of control data bag by setting time window width in time window arranging unit 12 Sequence, improves the spacewire packet of the time triggered transmission real-time performance in space communication network.
Wormhole rou ting device 1 with time window ensures imitative according to the lock in time code tm_time_code receiving During true, when spacewire packet to time triggered and the spacewire packet of event triggering forward and boat Network time synchronization in its communication network.
The simulation flow of the space communication network based on the communication of spacewire bus standard:
Step one: communicated the Wormhole rou ting device 1 with time window, time master control section based on spacewire bus standard Point module 2 and terminal applies node module 3 build a space communication network;The biography of the space communication network having been built up is set Transmission link and the transfer rate of packet;
According to space communication network demand, choose several terminal applies nodes, time main controlled node, several bands The Wormhole rou ting device of time window, connects and composes network using communication link.
Shown in Figure 4,5 terminal applies nodes, 3 Wormhole rou ting devices with time window and 1 time master control section Point constitutes a space communication network.Terminal applies node is designated as symbol es, the Wormhole rou ting device with time window is designated as symbol Wr, time main controlled node are designated as symbol tm.
If first terminal applies node es1Be set to source node, time main controlled node is set to destination node tm, then in Intermediate node is first Wormhole rou ting device wr with time window1, second Wormhole rou ting device wr with time window2, therefore transmission Link is es1To wr1Send out packet, wr1To wr2Forward packet, wr2Forward packet to tm.After determining transmission link, Packet transmission time is et=tend-tGenerate.
Step 2: configurating terminal application node module;
The type of setting spacewire packet, a kind of is time triggered spacewire packet, and another kind of is event Triggering spacewire packet;
Time interval t of setting time triggered spacewire packetInterval
The data package size of setting time triggered spacewire packet;
Setting event triggers the data package size of spacewire packet;
Step 3: setup time main controlled node module;
Setting initial time lock in time code tm_time_code, and by this tm_time_code in space communication network Broadcasted;Each time initially emulate when on the basis of 0 the time;
Step 4: the network cycle time of the Wormhole rou ting device with time window for the configuration, emulation starts;
Step 5: with the Wormhole rou ting device timing statisticses window width of time window, and receive, forward packet;
Wormhole rou ting device with time window first receives all packets in a network cycle, then extracts number According to the generation moment of bag, time window width, last foundation type of data packet and window width size Rule of judgment to forward packet successively.
The time delay that packet is delayed by transmission can be calculated by the time window width counting, window width interval.
Step 6: simulation result figure is obtained by simulation time, packet number, type of data packet.
Embodiment 1
As shown in figure 5, being simulation result schematic diagram.Wherein circular "○" is expressed as the spacewire data of time triggered The transmission time of bag, a circle is the transmission time of a time triggered spacewire packet;Five-pointed star " ☆ " represents thing The transmission time of the spacewire packet of part triggering, a pentagonal is the biography that an event triggers spacewire packet The defeated time.
It can be seen that in the emulation cycle of 1.6s, when measuring the transmission having 20 time triggered spacewire packets altogether Between, being 200ms(is 2 × 10-4S);Measure the transmission time of the spacewire packet having 19 event triggerings altogether (respectively For 200ms, 200ms, 200ms, 856ms, 200ms, 402ms, 200ms, 500ms, 200ms, 200ms, 490ms, 200ms, 200ms, 680ms, 200ms, 200ms, 200ms, 200ms and 200ms).It can be seen that due to time window width prioritised transmission time triggered Spacewire packet, therefore the transmission time of the spacewire packet of time triggered is constant, and transmission delay is 0.For The packet of the spacewire of event triggering, there may be waiting process in transmitting procedure, therefore what partial event triggered The transmission delay of spacewire packet is not the biography of the spacewire packet that 0(this in figure transmission delay triggers for event The part more than 200ms for the defeated time), the transmission time that this partial event triggers spacewire packet will be because of transmission delay Size and increase, cause the difference of stand-by period length, in simulation result in figure, the spacewire of this partial event triggering The transmission time of packet, due to the difference of transmission delay size, occurs in that different degrees of upper shifting.
The physical significance applying letter in the present invention is as follows:
tInterval Represent the interval between the time window width of spacewire packet of any two time triggered
src_node Represent the packet header of spacewire packet
typetime Represent the type of the spacewire packet of time triggered
atGenerate Represent and be directed to typetimeThe packet of type generates the moment
typeevent The type of the spacewire packet of expression event triggering
btGenerate Represent and be directed to typeeventThe packet of type generates the moment
size Represent the size of a spacewire packet
src Represent the source node of spacewire packet
dest Represent the destination node of spacewire packet
num Represented how many data block in a spacewire packet
thead Represent the start time receiving a spacewire packet, referred to as packet header moment
tend Represent the finish time finishing receiving a spacewire packet, referred to as bag tail moment
et Represent the time finishing receiving needed for a spacewire packet, referred to as section transmission time
swtx Represent the spacewire packet of any one time triggered
x Represent the identification number of the spacewire packet of time triggered
swey Represent the spacewire packet of any one event triggering
y The identification number of the spacewire packet of expression event triggering

Claims (3)

1. a kind of analogue system of the transmission time of mensure spacewire packet, this analogue system is according to spacewire bus Standard traffic build space communication network it is characterised in that: this analogue system includes the Wormhole rou ting device with time window (1), time main controlled node module (2) and terminal applies node module (3);
Wormhole rou ting device (1) with time window includes Wormhole rou ting unit (11), time window arranging unit (12) sum According to bag buffer unit (13);
Wormhole rou ting unit (11) is used for completing the spacewire of the spacewire packet to time triggered and event triggering The forwarding of packet;
Time window arranging unit (12) binding time window width to judge the transmission order of packet with window width size;When described Between in window arranging unit (12), the time window width of the spacewire packet of time triggered is designated as ah, describedThe time window width of the spacewire packet of event triggering is designated as bh, describedsize Represent the size of a spacewire packet, c represents the link transmission rate of emulation setting;In the setting of described time window In unit (12), the interval between the time window width of the spacewire packet of any two time triggered is referred to as window width interval Ch, described window width is spaced ch and is used for forwarding the spacewire packet of event triggering;The spacewire packet of time triggered According to generation moment atGeneratePriority be transmitted the spacewire packet of described time triggered;Event triggering Spacewire packet is according to generation moment btGeneratePriority and whether meet window width interval window width size condition be transmitted The spacewire packet of described event triggering;
Data pack buffer unit (13) triggers for the interim spacewire packet to time triggered and event Spacewire packet is preserved;
Time main controlled node module (2) includes time synchronized control unit (21) and time master control receiving unit (22);Time Synchronous control unit (21) is used for generating lock in time code tm_time_code, and to based on the communication of spacewire bus standard Space communication network in broadcast;When time main controlled node module (2) is as purpose, time master control receiving unit (22) is used for Receive the spacewire packet of time triggered and the spacewire packet of event triggering;
Terminal applies node module (3) includes terminal applies transmitting element (31) and terminal applies receiving unit (32);
When terminal applies node module (3) is as source node, terminal applies node module (3) passes through terminal applies transmitting element (31) the spacewire packet triggering the spacewire packet and event to send time triggered;Setting time triggered The t of spacewire packetInterval, described tIntervalIt is that the packet setting fixes transmission time interval;
When terminal applies node module (3) is as intermediate node, terminal applies node module (3) is sent single by terminal applies First (31) carry out the spacewire packet of forwarding time triggering and the spacewire data of event triggering according to transmission link Bag;
When terminal applies node module (3) is as destination node, terminal applies node module (3) is received single by terminal applies The spacewire packet that first (32) trigger come the spacewire packet and event to receive time triggered.
2. the transmission time of mensure spacewire packet according to claim 1 analogue system it is characterised in that: This analogue system is emulated based on matlab platform.
3. the transmission time of mensure spacewire packet according to claim 1 analogue system it is characterised in that: The simulation process of this analogue system is:
Step one: communicated the Wormhole rou ting device (1) with time window, time main controlled node based on spacewire bus standard Module (2) and terminal applies node module (3) build a space communication network;The space communication network having been built up is set Transmission link and the transfer rate of packet;
Step 2: configurating terminal application node module;
The type of setting spacewire packet, a kind of is time triggered spacewire packet, and another kind is event triggering Spacewire packet;
The t of setting time triggered spacewire packetInterval, described tIntervalIt is that the packet setting fixes transmission time interval;
The data package size of setting time triggered spacewire packet;
Setting event triggers the data package size of spacewire packet;
Step 3: setup time main controlled node module;
Time synchronized control unit (21) is used for generating lock in time code tm_time_code, and by this tm_time_code in boat Broadcasted in its communication network;Each time initially emulate when on the basis of 0 the time;
Step 4: the network cycle time of the Wormhole rou ting device with time window for the configuration, emulation starts;
Step 5: with the Wormhole rou ting device timing statisticses window width of time window, and receive, forward packet;
Wormhole rou ting device with time window first receives all packets in a network cycle, then extracts packet The generation moment, time window width, last to forward packet successively according to type of data packet and window width size Rule of judgment;
The time delay that packet is delayed by transmission can be calculated by the time window width counting, window width interval;
Step 6: simulation result figure is obtained by simulation time, packet number, type of data packet.
CN201310753304.0A 2013-12-31 2013-12-31 Simulation system for measuring transmission time of SpaceWire data packets Active CN103746878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753304.0A CN103746878B (en) 2013-12-31 2013-12-31 Simulation system for measuring transmission time of SpaceWire data packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753304.0A CN103746878B (en) 2013-12-31 2013-12-31 Simulation system for measuring transmission time of SpaceWire data packets

Publications (2)

Publication Number Publication Date
CN103746878A CN103746878A (en) 2014-04-23
CN103746878B true CN103746878B (en) 2017-01-25

Family

ID=50503869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753304.0A Active CN103746878B (en) 2013-12-31 2013-12-31 Simulation system for measuring transmission time of SpaceWire data packets

Country Status (1)

Country Link
CN (1) CN103746878B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681123B (en) * 2015-12-25 2018-11-23 北京信息控制研究所 A kind of test of Spacewire network delay and optimization system
CN106788863B (en) * 2016-11-24 2018-05-11 北京航空航天大学 A kind of aviation electronics WDM network management analogue systems for supporting subnet time triggered to communicate
CN106789295A (en) * 2016-12-29 2017-05-31 中国科学院长春光学精密机械与物理研究所 A kind of SpaceWire bus communication systems and its supervision equipment
CN109889404B (en) * 2019-01-31 2021-06-01 北京英力恒达科技发展有限公司 High-speed data network monitoring method and system based on timestamp
CN110198186B (en) * 2019-05-07 2020-09-25 北京航空航天大学 High-speed SpaceWire optical fiber link test card capable of working offline

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255803A (en) * 2011-07-06 2011-11-23 北京航空航天大学 Periodic scheduling timetable construction method applied to time-triggered switched network
CN102624633A (en) * 2012-04-06 2012-08-01 航天东方红卫星有限公司 Time-trigger-based SpaceWire network communication method
CN103457815A (en) * 2013-08-22 2013-12-18 北京航空航天大学 Method for constructing moment dispatch list suitable for SpaceWire network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255803A (en) * 2011-07-06 2011-11-23 北京航空航天大学 Periodic scheduling timetable construction method applied to time-triggered switched network
CN102624633A (en) * 2012-04-06 2012-08-01 航天东方红卫星有限公司 Time-trigger-based SpaceWire network communication method
CN103457815A (en) * 2013-08-22 2013-12-18 北京航空航天大学 Method for constructing moment dispatch list suitable for SpaceWire network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SpaceWire星载网络通信协议设计;杨志 等;《宇航学报》;20120229;第33卷(第2期);第201页第2栏第3行-第207页第2栏28行,图8 *

Also Published As

Publication number Publication date
CN103746878A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN103746878B (en) Simulation system for measuring transmission time of SpaceWire data packets
CN103647682B (en) A kind of analogue system simulating the synchronization of switching Ethernet clock
CN105245301B (en) A kind of airborne optical-fiber network analogue system based on time triggered
CN103716248B (en) A kind of method that ethernet traffic based on Ethernet switching chip generates and analyzes
CN101645813B (en) Distributed semi-physical network simulation system and controlling method of semi-physical port thereof
CN102792658B (en) Carry out time measurement in a communication network
CN109194433B (en) High-precision time service method based on gigabit AFDX (avionics full Duplex switched Ethernet) network
CN106161117B (en) A kind of analogue system and emulation mode of AFDX network
CN105337885B (en) A kind of multistage suitable for credit shaping network is grouped the worst Delay computing method
CN107257311A (en) A kind of time triggered communication blended data based on virtual link sends dispatching method
CN103607270B (en) Method for improving synchronous performance of Powerlink Ethernet
CN103354528B (en) Method and device for multi-stream synchronization
CN106850331A (en) A kind of Ethernet with synchronised clock function hair frame device of field of traffic
CN109547157B (en) Ten-trillion network controller supporting time-triggered Ethernet and control method
CN102045256B (en) COTS (Commercial Off-The-Shelf) based bandwidth predistribution guarantee network function demonstration system
CN104009982B (en) File grouping group sending device and file grouping method for group sending based on ultrashort wave radio set
CN104601269B (en) Master-salve clock synchronous method and system
CN109104312A (en) A kind of configurable AFDX bus data frame latency device and AFDX data frame time-delay method
CN102790663B (en) Full-hardware network interface applied to very long baseline interferometry (VLBI) hardware related processor
CN115733759A (en) Simulation model system for TTFC message scheduling
CN103618681A (en) Elastic network bandwidth control method and system thereof
CN107018095B (en) System and method for simulating exchange unit based on discrete event
Zhang et al. Modeling time-triggered ethernet in systemc/tlm for virtual prototyping of cyber-physical systems
CN104486144B (en) A kind of AFDX network digitalizations end system deterministic simulation method
CN106993306A (en) Wireless network MAC layer distributed coordination system and its construction method based on FPGA

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