[go: up one dir, main page]

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
spacewire
packet
triggered
node module
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

本发明公开了一种测定SpaceWire数据包的传输时间的仿真系统,该仿真系统包括有带时间窗口的虫洞路由器模块(1)、时间主控节点模块(2)和终端应用节点模块(3),所述三个模块是基于SpaceWire总线标准通信构成航天通信网络的。终端应用节点模块(3)用于生成两种类型的SpaceWire数据包,通过时间主控节点模块(2)提供的仿真系统同步时间,在带时间窗口的虫洞路由器模块(1)中完成数据包传输时间、传输延迟时间的统计。本发明仿真系统用于测定基于SpaceWire总线标准中对SpaceWire数据包的传输时间及传输延迟时间,获得的时间信息能够改善航天通信网络的性能。

The invention discloses a simulation system for measuring the transmission time of a SpaceWire data packet. The simulation system includes a wormhole router module (1) with a time window, a time master control node module (2) and a terminal application node module (3) , the three modules form an aerospace communication network based on the SpaceWire bus standard communication. The terminal application node module (3) is used to generate two types of SpaceWire data packets, synchronize the time through the simulation system provided by the time master node module (2), and complete the data packets in the wormhole router module (1) with a time window Statistics of transmission time and transmission delay time. The simulation system of the invention is used to measure the transmission time and transmission delay time of the SpaceWire data packet based on the SpaceWire bus standard, and the obtained time information can improve the performance of the aerospace communication network.

Description

一种测定SpaceWire数据包的传输时间的仿真系统A simulation system for measuring the transmission time of SpaceWire data packets

技术领域technical field

本发明涉及一种航天通信网络仿真领域,更特别地说,是指一种测定SpaceWire数据包传输延时的仿真系统。The invention relates to the simulation field of aerospace communication network, more particularly, refers to a simulation system for measuring the transmission delay of SpaceWire data packets.

背景技术Background technique

SpaceWire(译文为空间总线)总线是一种串行、高速、点对点、全双工的星载数据网络标准(ECSS-E-ST-50-12C,31July2008),是多源、异步、事件触发通信网络,难以保证消息的传输端到端延时。若事先已知网络中部分节点的消息属性,如时间、大小等信息,对它们的传输进行规划,按照固定时间窗口进行调度,即可形成时间触发消息网络,并极大提高网络中消息传输的确定性。SpaceWire (translated as space bus) bus is a serial, high-speed, point-to-point, full-duplex spaceborne data network standard (ECSS-E-ST-50-12C, 31July2008), which is a multi-source, asynchronous, event-triggered communication Network, it is difficult to guarantee the end-to-end delay of message transmission. If the message attributes of some nodes in the network are known in advance, such as time, size and other information, their transmission is planned and scheduled according to a fixed time window, a time-triggered message network can be formed, and the speed of message transmission in the network can be greatly improved. Certainty.

SpaceWire数据包传输端到端延时在网络分析中是一个非常重要的测定指标,它体现网络的实时性。测定消息传输延时的方法有很多,其中网络仿真是常用的一种选择。网络仿真运用数学建模和统计分析模拟网络行为,可以方便的修改模型并进行仿真,适合预测网络的性能,为网络的规划设计提供可靠的定量依据。The end-to-end delay of SpaceWire data packet transmission is a very important measurement index in network analysis, which reflects the real-time nature of the network. There are many methods for measuring message transmission delay, among which network emulation is a common choice. Network simulation uses mathematical modeling and statistical analysis to simulate network behavior. It can easily modify the model and perform simulation. It is suitable for predicting network performance and providing reliable quantitative basis for network planning and design.

基于软件进行协议仿真来模拟SpaceWire网络通信机制,测定事件触发SpaceWire网络中消息的传输端到端延时,缺乏基于时间触发消息、对虫洞路由器调度时刻表进行规划的仿真系统。Based on software protocol simulation to simulate the SpaceWire network communication mechanism, measure the end-to-end delay of event-triggered message transmission in the SpaceWire network, there is a lack of simulation system based on time-triggered messages and planning the scheduling schedule of wormhole routers.

发明内容Contents of the invention

本发明的目的是提出一种测定SpaceWire数据包的传输时间的仿真系统,该仿真系统在于解决SpaceWire总线网络中时间触发消息的仿真问题,对路由器的调度时刻进行了规划,利用时间窗宽与窗宽大小条件来处理SpaceWire数据包的转发,对时间触发的SpaceWire数据包优先处理,保证时间触发的SpaceWire数据包的传输时间。对于事件触发的SpaceWire数据包,则利用窗宽大小条件进行转发。The purpose of this invention is to propose a kind of simulation system of measuring the transmission time of SpaceWire data packet, this simulation system is to solve the simulation problem of time-triggered message in SpaceWire bus network, the scheduling time of router is planned, utilize time window width and window Wide size conditions are used to process the forwarding of SpaceWire data packets, priority is given to time-triggered SpaceWire data packets, and the transmission time of time-triggered SpaceWire data packets is guaranteed. For the SpaceWire data packet triggered by the event, the condition of the window width is used for forwarding.

本发明的一种测定SpaceWire数据包的传输时间的仿真系统,该仿真系统依据SpaceWire总线标准通信构建航天通信网络。该仿真系统包括有带时间窗口的虫洞路由器(1)、时间主控节点模块(2)和终端应用节点模块(3)。The invention relates to a simulation system for measuring the transmission time of the SpaceWire data packet. The simulation system constructs an aerospace communication network according to the SpaceWire bus standard communication. The simulation system includes a wormhole router with a time window (1), a time master node module (2) and a terminal application node module (3).

带时间窗口的虫洞路由器(1)包括有虫洞路由单元(11)、时间窗口设置单元(12)和数据包缓存单元(13)。The wormhole router (1) with a time window includes a wormhole routing unit (11), a time window setting unit (12) and a data packet cache unit (13).

虫洞路由单元(11)用于完成对时间触发的SpaceWire数据包和事件触发的SpaceWire数据包的转发。The wormhole routing unit (11) is used for forwarding SpaceWire data packets triggered by time and SpaceWire data packets triggered by events.

时间窗口设置单元(12)结合时间窗宽与窗宽大小来判断数据包的发送顺序。The time window setting unit (12) determines the sending sequence of the data packets in combination with the time window width and the size of the window width.

数据包缓存单元(13)用于临时对时间触发的SpaceWire数据包和事件触发的SpaceWire数据包进行保存。The data packet buffer unit (13) is used for temporarily saving the SpaceWire data packets triggered by time and the SpaceWire data packets triggered by events.

时间主控节点模块(2)包括有时间同步控制单元(21)和时间主控接收单元(22)。时间同步控制单元(21)用于生成同步时间码TM_Time_Code,并向基于SpaceWire总线标准通信的航天通信网络中广播。当时间主控节点模块(2)作为目 的时,时间主控接收单元(22)用来接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。The time master control node module (2) includes a time synchronization control unit (21) and a time master control receiving unit (22). The time synchronization control unit (21) is used to generate a synchronization time code TM_Time_Code, and broadcast it to the aerospace communication network based on SpaceWire bus standard communication. When the time master control node module (2) serves as the purpose, the time master control receiving unit (22) is used to receive time-triggered SpaceWire data packets and event-triggered SpaceWire data packets.

终端应用节点模块(3)包括有终端应用发送单元(31)和终端应用接收单元(32)。The terminal application node module (3) includes a terminal application sending unit (31) and a terminal application receiving unit (32).

在终端应用节点模块(3)作为源节点时,终端应用节点模块(3)通过终端应用发送单元(31)来发送时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。设置时间触发的SpaceWire数据包的T间隔When the terminal application node module (3) serves as the source node, the terminal application node module (3) sends time-triggered SpaceWire data packets and event-triggered SpaceWire data packets through the terminal application sending unit (31). Sets the T interval for time-triggered SpaceWire packets.

在终端应用节点模块(3)作为中间节点时,终端应用节点模块(3)通过终端应用发送单元(31)依据传输链路进行转发时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。When the terminal application node module (3) acts as an intermediate node, the terminal application node module (3) forwards time-triggered SpaceWire data packets and event-triggered SpaceWire data packets through the terminal application sending unit (31) according to the transmission link.

在终端应用节点模块(3)作为目的节点时,终端应用节点模块(3)通过终端应用接收单元(32)来接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。When the terminal application node module (3) serves as the destination node, the terminal application node module (3) receives time-triggered SpaceWire data packets and event-triggered SpaceWire data packets through the terminal application receiving unit (32).

所述的测定SpaceWire数据包的传输时间的仿真系统,在所述时间窗口设置单元(12)中,任意两个时间触发的SpaceWire数据包的时间窗宽之间的间隔称为窗宽间隔CH,所述窗宽间隔CH用来转发事件触发的SpaceWire数据包。时间触发的SpaceWire数据包依据生成时刻AT生成的先后进行发送所述时间触发的SpaceWire数据包。事件触发的SpaceWire数据包依据生成时刻BT生成的先后且是否满足窗宽间隔的窗宽大小条件进行发送所述事件触发的SpaceWire数据包。In the simulation system for measuring the transmission time of the SpaceWire data packet, in the time window setting unit (12), the interval between the time window widths of any two time-triggered SpaceWire data packets is called the window width interval CH, The window width interval CH is used to forward the SpaceWire data packet triggered by the event. The time-triggered SpaceWire data packets are sent according to the sequence generated by the AT at the generation time. The event-triggered SpaceWire data packets are sent according to the order in which the BT is generated at the generation time and whether the window width size condition of the window interval is satisfied.

本发明测定SpaceWire数据包传输延时的仿真系统的优点在于:The present invention measures the advantage of the emulation system of SpaceWire packet transmission delay and is:

①本发明仿真系统对SpaceWire传统的虫洞路由器模型进行了改造,增加了数据包缓存机制,增加了路由器调度时间窗口,实现了对时间触发消息的仿真控制,从而得到一种处理时间触发消息调度的路由器模型。①The simulation system of the present invention has transformed the traditional wormhole router model of SpaceWire, increased the data packet cache mechanism, increased the router scheduling time window, and realized the simulation control of time-triggered messages, thereby obtaining a scheduling of processing time-triggered messages router model.

②本发明仿真系统兼容事件触发和时间触发两种消息传输机制,适用于多种网络场景的仿真,如:事件触发网络,时间触发网络,事件和时间触发兼容网络。仿真结果可反馈给设计者用于评价网络的传输性能。② The simulation system of the present invention is compatible with event-triggered and time-triggered message transmission mechanisms, and is applicable to the simulation of various network scenarios, such as: event-triggered network, time-triggered network, event-triggered and time-triggered compatible network. The simulation results can be fed back to the designer to evaluate the transmission performance of the network.

③本发明也能完成对标准SpaceWire网络的仿真,当网络中不含有时间触发数据包时,全为事件触发数据包,则和标准协议规定的网络一致。③The present invention can also complete the simulation of the standard SpaceWire network. When the network does not contain time-triggered data packets, all of them are event-triggered data packets, which is consistent with the network specified by the standard protocol.

附图说明Description of drawings

图1是本发明测定SpaceWire数据包的传输时间的仿真系统的结构图。Fig. 1 is a structural diagram of a simulation system for measuring the transmission time of SpaceWire data packets according to the present invention.

图2A是时间窗宽与窗宽间隔的结构示意图。FIG. 2A is a structural schematic diagram of a time window width and a window width interval.

图2B是多个时间窗宽与窗宽间隔的一种结构示意图。FIG. 2B is a structural schematic diagram of multiple time windows and window intervals.

图2C是多个时间窗宽与窗宽间隔的另一种结构示意图。FIG. 2C is another structural schematic diagram of multiple time windows and window intervals.

图2D是多个时间窗宽与窗宽间隔的再一种结构示意图。FIG. 2D is another structural schematic diagram of multiple time windows and window intervals.

图3是本发明测定SpaceWire数据包的传输时间的仿真系统的仿真流程图。Fig. 3 is a simulation flow chart of the simulation system for measuring the transmission time of SpaceWire data packets in the present invention.

图4是基于SpaceWire标准协议的航天通信网络示意图。Figure 4 is a schematic diagram of an aerospace communication network based on the SpaceWire standard protocol.

图5是仿真结果示意图。Figure 5 is a schematic diagram of the simulation results.

具体实施方式detailed description

下面将结合附图和实施例对本发明做进一步的详细说明。The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

本发明是为了实现在一个基于SpaceWire总线标准通信的航天通信网络中,对SpaceWire数据包从端到端传输时的传输时间进行仿真,通过仿真得到的传输时间来测定SpaceWire数据包的传输端到端延时。The present invention is to realize in an aerospace communication network based on the SpaceWire bus standard communication, simulate the transmission time of the SpaceWire data packet from end-to-end transmission, and measure the transmission end-to-end of the SpaceWire data packet by the transmission time obtained by the simulation delay.

在本发明中,基于matlab(版本号7.13)平台进行仿真。In the present invention, the simulation is performed based on the platform of matlab (version number 7.13).

参见图1所示,本发明仿真系统包括有带时间窗口的虫洞路由器1、时间主控节点模块2和终端应用节点模块3。其中,带时间窗口的虫洞路由器1包括有虫洞路由单元11、时间窗口设置单元12和数据包缓存单元13。其中,时间主控节点模块2包括有时间同步控制单元21和时间主控接收单元22。其中,终端应用节点模块3包括有终端应用发送单元31和终端应用接收单元32。Referring to FIG. 1 , the simulation system of the present invention includes a wormhole router 1 with a time window, a time master node module 2 and a terminal application node module 3 . Wherein, the wormhole router 1 with time window includes a wormhole routing unit 11 , a time window setting unit 12 and a data packet cache unit 13 . Wherein, the time master node module 2 includes a time synchronization control unit 21 and a time master receiving unit 22 . Wherein, the terminal application node module 3 includes a terminal application sending unit 31 and a terminal application receiving unit 32 .

在本发明中,在基于SpaceWire总线标准通信的航天通信网络中,时间主控节点模块2能够用于接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包,成为目的节点。In the present invention, in the aerospace communication network based on the SpaceWire bus standard communication, the time master control node module 2 can be used to receive time-triggered SpaceWire data packets and event-triggered SpaceWire data packets, and become a destination node.

在本发明中,终端应用节点模块3一方面能够用于发送时间触发的SpaceWire数据包和事件触发的SpaceWire数据包,成为源节点;另一方面能够用于接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包,成为目的节点。从源节点向目的节点传输SpaceWire数据包的过程称为传输链路,在所述传输链路上的除源节点和目的节点外的节点称为中间节点。所述中间节点可以是带时间窗口的虫洞路由器1和/或终端应用节点模块3。In the present invention, the terminal application node module 3 can be used to send the SpaceWire data packet triggered by time and the SpaceWire data packet triggered by event on the one hand, and become a source node; on the other hand, it can be used to receive the SpaceWire data packet triggered by time and the event triggered The SpaceWire data packet becomes the destination node. The process of transmitting a SpaceWire data packet from a source node to a destination node is called a transmission link, and nodes on the transmission link except the source node and the destination node are called intermediate nodes. The intermediate node may be a wormhole router 1 with a time window and/or a terminal application node module 3 .

所述时间触发的SpaceWire数据包是指依据设定的数据包固定发送时间间隔T间隔来触发SpaceWire数据包传输。详细地说,当在终端应用节点模块3中,若设置了T间隔=0.5秒进行SpaceWire数据包的发送,则终端应用节点模块3中的终端应用发送单元31会按照每间隔0.5秒的时间定期向时间主控节点模块2进行SpaceWire数据包。The time-triggered SpaceWire data packet refers to triggering the transmission of the SpaceWire data packet according to the set fixed sending time interval T of the data packet. In detail, when in the terminal application node module 3, if the T interval =0.5 second is set to send the SpaceWire packet, then the terminal application sending unit 31 in the terminal application node module 3 will regularly SpaceWire packets to time master node module 2.

所述事件触发的SpaceWire数据包是指不定时进行SpaceWire数据包传输。The SpaceWire data packet triggered by the event refers to irregular SpaceWire data packet transmission.

在本发明中,SpaceWire数据包包含有typetime、typeEvent、size、src、dest、num、eop、T生成;其中typetime、typeEvent、size、src和dest构成SpaceWire数据包的包头src_node。一个SpaceWire数据包中的数据块设置为num=50;在所述生成时刻T生成的说明中,由于有时间触发的SpaceWire数据包的类型typetime和事件触发的SpaceWire数据包的类型typeEvent,所以针对typetime类型的数据包生成时刻记为AT生成,typeEvent类型的数据包生成时刻记为BT生成In the present invention, the SpaceWire data packet contains type time , type Event , size, src, dest, num, eop, T generation ; wherein type time , type Event , size, src and dest constitute the header src_node of the SpaceWire data packet. The data blocks in a SpaceWire data packet are set to num=50; in the description generated at the generation time T, since there are the type type time of the SpaceWire data packet triggered by time and the type type Event of the SpaceWire data packet triggered by the event, so The generation time of data packets of type time type is recorded as AT generation , and the generation time of data packets of type Event type is recorded as BT generation .

时间主控节点模块2Time Master Node Module 2

在本发明中,时间主控节点模块2中的时间同步控制单元21用于生成同步时间码TM_Time_Code,并向基于SpaceWire总线标准通信的航天通信网络中广播。在终端应用节点模块3和带时间窗口的虫洞路由器1收到所述同步时间码TM_Time_Code后,以此保证整个基于SpaceWire总线标准通信的航天通信网络的统一时间。In the present invention, the time synchronization control unit 21 in the time master node module 2 is used to generate a synchronization time code TM_Time_Code, and broadcast it to the aerospace communication network based on the SpaceWire bus standard communication. After the terminal application node module 3 and the wormhole router 1 with a time window receive the synchronous time code TM_Time_Code, the unified time of the entire aerospace communication network based on the SpaceWire bus standard communication is guaranteed.

本发明的时间同步控制单元21产生的同步时间码TM_Time_Code来控制航天通信网络的时间同步,TM_Time_Code与SpaceWire标准协议中的 Time-Code相同。The synchronization time code TM_Time_Code generated by the time synchronization control unit 21 of the present invention is used to control the time synchronization of the aerospace communication network, and the TM_Time_Code is the same as the Time-Code in the SpaceWire standard protocol.

在时间主控节点模块2作为目的节点时,时间主控节点模块2通过时间主控接收单元22来接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。When the time master control node module 2 is used as the destination node, the time master control node module 2 receives time-triggered SpaceWire data packets and event-triggered SpaceWire data packets through the time master control receiving unit 22 .

在本发明中,时间主控节点模块2中的时间同步控制单元21产生时间码并广播向全网络发送,以控制整个仿真网络时间同步。在时间主控接收单元22完成对接收到的时间触发的SpaceWire数据包和事件触发的SpaceWire数据包的处理后,提取出SpaceWire数据包的生成时刻T生成和SpaceWire数据包到达目的节点的时刻Tend,从而能够统计出SpaceWire数据包从源节点到达目的节点的传输时间ET=Tend-T生成In the present invention, the time synchronization control unit 21 in the time master node module 2 generates a time code and broadcasts it to the entire network to control the time synchronization of the entire simulation network. After the time master receiving unit 22 completes the processing of the SpaceWire data packet triggered by the time received and the SpaceWire data packet triggered by the event, the generation time T of the SpaceWire data packet is extracted and the time T end when the SpaceWire data packet arrives at the destination node , so that the transmission time ET=T end -T generation of the SpaceWire data packet from the source node to the destination node can be calculated.

终端应用节点模块3End Application Node Module 3

在仿真前,设置终端应用节点模块3的身份(源节点、中间节点或者为目的节点)、发送SpaceWire数据包的类型(时间触发的SpaceWire数据包或者事件触发的SpaceWire数据包),并对终端应用节点模块3进行时间触发的SpaceWire数据包的时间间隔T间隔进行设置,然后设置SpaceWire数据包(时间触发的SpaceWire数据包和事件触发的SpaceWire数据包)的传输速率、数据包的生成时刻T生成、数据包的大小size。若终端应用节点模块3用于全部生成时间触发消息,则构成时间触发网络;若终端应用节点模块3用于全部生成事件触发消息,则构成事件触发网络;若终端应用节点模块3部分生成事件触发消息,部分生成时间触发消息,则为事件时间触发兼容网络。Before the simulation, set the identity of the terminal application node module 3 (source node, intermediate node or destination node), send the type of SpaceWire data packet (time-triggered SpaceWire data packet or event-triggered SpaceWire data packet), and The node module 3 sets the time interval T interval of the time-triggered SpaceWire data packet, and then sets the transmission rate of the SpaceWire data packet (time-triggered SpaceWire data packet and event-triggered SpaceWire data packet), the generation time T of the data packet, The size of the packet size. If the terminal application node modules 3 are used to generate all time-triggered messages, a time-triggered network is formed; if the terminal application node modules 3 are used to generate all event-triggered messages, an event-triggered network is formed; Messages, partly generating time-triggered messages, are event-time-triggered compatible networks.

终端应用节点模块3依据接收到的同步时间码TM_Time_Code来保证在仿真过程,终端应用节点模块3在接收和发送SpaceWire数据包时与航天通信网络中的网络时间同步。The terminal application node module 3 ensures that during the simulation process, the terminal application node module 3 is synchronized with the network time in the aerospace communication network when receiving and sending SpaceWire data packets according to the received synchronization time code TM_Time_Code.

在终端应用节点模块3作为源节点时,终端应用节点模块3通过终端应用发送单元31来发送时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。设置时间触发的SpaceWire数据包的T间隔When the terminal application node module 3 serves as the source node, the terminal application node module 3 sends the time-triggered SpaceWire data packet and the event-triggered SpaceWire data packet through the terminal application sending unit 31 . Sets the T interval for time-triggered SpaceWire packets.

在终端应用节点模块3作为中间节点时,终端应用节点模块3通过终端应用发送单元31依据传输链路进行转发时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。When the terminal application node module 3 acts as an intermediate node, the terminal application node module 3 forwards the time-triggered SpaceWire data packet and the event-triggered SpaceWire data packet according to the transmission link through the terminal application sending unit 31 .

在终端应用节点模块3作为目的节点时,终端应用节点模块3通过终端应用接收单元32来接收时间触发的SpaceWire数据包和事件触发的SpaceWire数据包。When the terminal application node module 3 serves as the destination node, the terminal application node module 3 receives the time-triggered SpaceWire data packet and the event-triggered SpaceWire data packet through the terminal application receiving unit 32 .

带时间窗口的虫洞路由器1Wormhole Router with Time Window 1

在本发明中,为了保证时间触发的SpaceWire数据包和事件触发的SpaceWire数据包在所述的航天通信网络中的网络传输,是在现有虫洞路由器(即虫洞路由单元11)上增设了时间窗口设置单元12和数据包缓存单元13,因此,虫洞路由器在本发明中称为带时间窗口的虫洞路由器。In the present invention, in order to ensure the network transmission of time-triggered SpaceWire data packets and event-triggered SpaceWire data packets in the space communication network, an additional wormhole router (ie, wormhole routing unit 11) is added The time window setting unit 12 and the data packet cache unit 13, therefore, the wormhole router is called a wormhole router with a time window in the present invention.

虫洞路由单元11用于完成对时间触发的SpaceWire数据包和事件触发的SpaceWire数据包的转发。The wormhole routing unit 11 is used to complete the forwarding of time-triggered SpaceWire data packets and event-triggered SpaceWire data packets.

时间窗口设置单元12结合时间窗宽与窗宽大小来判断数据包的发送顺序。The time window setting unit 12 determines the sending order of the data packets in combination with the time window width and the size of the window width.

数据包缓存单元13用于临时对时间触发的SpaceWire数据包和事件触发的SpaceWire数据包进行保存。因为每个路由器的每个输入端口设置了缓存队列,用于缓储SpaceWire数据包。当数据包的包头到达路由器后,路由器通过数据包中携带的目的节点信息得到其传输所需的输出端口,若该输出端口此时为忙状态,则应将数据包缓存在路由器的缓存队列中,待该输出端口为空闲状态后,路由器才从缓存队列中发送数据包进行转发。在本发明中,数据包缓存单元13缓存的数据包是因为时间窗口设置单元12对所述的数据包的转发时间依据了时间窗宽进行了转发先后的控制。The data packet buffer unit 13 is used for temporarily saving the time-triggered SpaceWire data packets and the event-triggered SpaceWire data packets. Because each input port of each router has a buffer queue for buffering SpaceWire data packets. When the header of the data packet arrives at the router, the router obtains the output port required for its transmission through the destination node information carried in the data packet. If the output port is busy at this time, the data packet should be cached in the cache queue of the router. , the router sends data packets from the cache queue for forwarding after the output port is idle. In the present invention, the data packets buffered by the data packet cache unit 13 are because the time window setting unit 12 controls the forwarding time of the data packets according to the time window width.

在本发明中,时间触发的SpaceWire数据包的时间窗宽记为AH,所述事件触发的SpaceWire数据包的时间窗宽记为BH,所述 size表示一个SpaceWire数据包的大小,c表示仿真设置的链路传输速率。任意两个时间触发的SpaceWire数据包的时间窗宽之间的间隔称为窗宽间隔CH,所述窗宽间隔CH用来转发事件触发的SpaceWire数据包。时间触发的SpaceWire数据包依据生成时刻AT生成的先后进行发送所述时间触发的SpaceWire数据包。事件触发的SpaceWire数据包依据生成时刻BT生成的先后且是否满足窗宽间隔的窗宽大小条件进行发送所述事件触发的SpaceWire数据包。在本发明中,窗宽间隔的窗宽大小条件为:若CH≥BH,则转发所述事件触发的SpaceWire数据包,若CH<BH,则等待下一个窗宽间隔,并进一步判断所述下一个窗宽间隔的窗宽大小是否满足所要转发事件触发的SpaceWire数据包的时间窗宽大小。在本发明中,对于生成时刻重叠的,依据时间窗宽的大小进行转发SpaceWire数据包,时间窗宽小的数据包先发送,时间窗宽大的数据包后发送。In the present invention, the time window width of the SpaceWire data packet triggered by time is recorded as AH, and the The time window width of the SpaceWire packet triggered by the event is denoted as BH, the size represents the size of a SpaceWire packet, and c represents the link transmission rate set by the simulation. The interval between the time windows of any two time-triggered SpaceWire data packets is called the window width interval CH, and the window width interval CH is used to forward the event-triggered SpaceWire data packets. The time-triggered SpaceWire data packets are sent according to the sequence generated by AT at the generation time. The event-triggered SpaceWire data packets are sent according to the order in which the BT is generated at the generation time and whether the window width size condition of the window interval is satisfied. In the present invention, the window width condition of the window width interval is: if CH≥BH, then forward the SpaceWire data packet triggered by the event, if CH<BH, then wait for the next window width interval, and further judge the next Whether the window size of a window interval meets the time window size of the SpaceWire data packet triggered by the event to be forwarded. In the present invention, for those whose generation time overlaps, the SpaceWire data packets are forwarded according to the size of the time window, the data packets with a small time window are sent first, and the data packets with a large time window are sent later.

参见图2A所示,在一个网络传输周期T周期里,带时间窗口的虫洞路由器1先后接收到的两个时间触发的SpaceWire数据包,即前一个时间触发的SpaceWire数据包和后一个时间触发的SpaceWire数据包;As shown in Figure 2A, in a network transmission cycle T period , the wormhole router 1 with a time window receives two time-triggered SpaceWire data packets successively, that is, the previous time-triggered SpaceWire data packet and the latter time-triggered SpaceWire data packet. SpaceWire packets;

从前一个时间触发的SpaceWire数据包中提取出所述时间触发的SpaceWire数据包的生成时刻和数据包大小size,并计算时间窗宽 Extract the generation moment of said time-triggered SpaceWire packet from the previous time-triggered SpaceWire packet and packet size size, and calculate the time window width

从后一个时间触发的SpaceWire数据包中提取出所述时间触发的SpaceWire数据包的生成时刻和数据包大小size,并计算时间窗宽 Extract the generation moment of said time-triggered SpaceWire packet from the latter time-triggered SpaceWire packet and packet size size, and calculate the time window width

经生成时刻先后排序后,则AH与AH之间存在一个窗宽间隔 After sorting the generation time, there is a window width interval between before AH and after AH

对于两个时间触发的SpaceWire数据包的发送则是按照各自的生成时刻先后进行时间触发的SpaceWire数据包的转发的。For the sending of the two time-triggered SpaceWire data packets, the time-triggered SpaceWire data packets are forwarded successively according to their respective generation times.

参见图2B、图2C、图2D所示,在一个网络传输周期T周期里,带时间窗口的 虫洞路由器1将接收到多个SpaceWire数据包。Referring to FIG. 2B , FIG. 2C , and FIG. 2D , in a network transmission cycle T period , the wormhole router 1 with a time window will receive multiple SpaceWire data packets.

如第一个时间触发的SpaceWire数据包记为SWT1、第二个时间触发的SpaceWire数据包记为SWT2、……、倒数第二个时间触发的SpaceWire数据包记为SWTX-1、最后一个时间触发的SpaceWire数据包记为SWTX、第一个事件触发的SpaceWire数据包记为SWE1、第二个事件触发的SpaceWire数据包记为SWE2、……、最后一个事件触发的SpaceWire数据包记为SWEY;X表示时间触发的SpaceWire数据包的标识号,为了方便说明,SWTX也称为任意一个时间触发的SpaceWire数据包;Y表示事件触发的SpaceWire数据包的标识号,为了方便说明,SWEY也称为任意一个事件触发的SpaceWire数据包。For example, the SpaceWire data packet triggered by the first time is recorded as SWT 1 , the SpaceWire data packet triggered by the second time is recorded as SWT 2 , ..., the SpaceWire data packet triggered by the penultimate time is recorded as SWT X-1 , and the last A time-triggered SpaceWire packet is denoted as SWT X , the first event-triggered SpaceWire packet is denoted as SWE 1 , the second event-triggered SpaceWire packet is denoted as SWE 2 , ..., the last event-triggered SpaceWire data The packet is recorded as SWE Y ; X represents the identification number of the time-triggered SpaceWire data packet, for the convenience of explanation, SWT X is also called any time-triggered SpaceWire data packet; Y represents the identification number of the event-triggered SpaceWire data packet, for convenience Note that SWE Y is also known as any SpaceWire packet triggered by an event.

在时间窗口设置单元12中,需要获取出下列的生成时刻和时间窗宽:In the time window setting unit 12, the following generation time and time window width need to be obtained:

SWT1的生成时刻记为SWT1的时间窗宽记为 The generation time of SWT 1 is recorded as The time window width of SWT 1 is recorded as

SWT2的生成时刻记为SWT2的时间窗宽记为 The generation moment of SWT 2 is recorded as The time window width of SWT 2 is recorded as

SWTX-1的生成时刻记为SWTX的时间窗宽记为 The generation time of SWT X-1 is recorded as The time window width of SWT X is recorded as

SWTX的生成时刻记为SWTX的时间窗宽记为 The generation moment of SWT X is recorded as The time window width of SWT X is recorded as

SWE1的生成时刻记为SWE1的时间窗宽记为 The generation time of SWE 1 is recorded as The time window width of SWE 1 is recorded as

SWE2的生成时刻记为SWE2的时间窗宽记为 The generation time of SWE 2 is recorded as The time window width of SWE 2 is recorded as

SWEY的生成时刻记为SWEY的时间窗宽记为 The generation time of SWE Y is recorded as The time window width of SWE Y is denoted as

参见图2B所示,生成时刻的排序为: Referring to Figure 2B, the order of generation time is: and

参见图2B所示,时间窗宽出现了重叠为:As shown in Figure 2B, the time window width overlaps as follows:

(1)的后端与的前端重叠;(1) backend with front-end overlap;

(2)的后端与的前端重叠;(2) backend with front-end overlap;

(3)的后端与的前端重叠;(3) backend with front-end overlap;

(4)的后端与的前端重叠;(4) backend with front-end overlap;

(5)的后端与的前端重叠。(5) backend with front overlap.

参见图2B所示,存在有窗宽间隔为:之间存在有窗宽间隔之间存在有窗宽间隔 Referring to Figure 2B, there is a window width interval of: and There is a window width interval between and There is a window width interval between

依据时间窗宽进行数据包的发送顺序为:SWT1→SWTX→SWTX-1→SWE2→SWT2→SWE1→SWEY。由于的窗宽大于等于SWE2的时间窗宽 因此SWE2会在SWT2之前发出。假如的窗宽小于SWE2的时间 窗宽则SWE2会等待有满足才能被发送SWE2The sending sequence of data packets according to the time window width is: SWT 1 →SWT X →SWT X-1 →SWE 2 →SWT 2 →SWE 1 →SWE Y. because The window width is greater than or equal to the time window width of SWE 2 So SWE 2 will be emitted before SWT 2 . if The window width of is smaller than the time window width of SWE 2 Then SWE 2 will wait for a satisfying to be sent SWE 2 .

参见图2C所示,生成时刻的排序为: Referring to Figure 2C, the order of generation time is: and

参见图2C所示,时间窗宽出现了重叠为:的后端与的前端重叠。As shown in Figure 2C, the time window width overlaps as follows: backend with front overlap.

参见图2C所示,存在有窗宽间隔为:之间存在有窗宽间隔之间存在有窗宽间隔之间存在有窗宽间隔 Referring to Figure 2C, there is a window width interval of: and There is a window width interval between and There is a window width interval between and There is a window width interval between

依据时间窗宽进行数据包的发送顺序为:SWT1→SWE1→SWTX-1→SWE2→SWT2→SWTX→SWEY。如果能够同时满足时间窗宽则数据包的发送顺序为:SWT1→SWE1→SWTX-1→SWE2→SWEY→SWT2→SWTXThe sending sequence of data packets according to the time window width is: SWT 1 →SWE 1 →SWT X-1 →SWE 2 →SWT 2 →SWT X →SWE Y. if Can satisfy the time window width at the same time and Then the sending sequence of data packets is: SWT 1 →SWE 1 →SWT X-1 →SWE 2 →SWE Y →SWT 2 →SWT X .

参见图2D所示,生成时刻的排序为: As shown in Figure 2D, the order of generation time is: and

参见图2D所示,时间窗宽出现了重叠为:的后端与的前端重叠。As shown in Figure 2D, the time window width overlaps as follows: backend with front overlap.

参见图2D所示,存在有窗宽间隔为:之间存在有窗宽间隔之间存在有窗宽间隔之间存在有窗宽间隔 Referring to Figure 2D, there is a window width interval of: and There is a window width interval between and There is a window width interval between and There is a window width interval between

依据时间窗宽进行数据包的发送顺序为:SWT1→SWE1→SWTX-1→SWE2→SWT2→SWEY→SWTXThe sending sequence of data packets according to the time window width is: SWT 1 →SWE 1 →SWT X-1 →SWE 2 →SWT 2 →SWE Y →SWT X .

在本发明中,由于事件触发的SpaceWire数据包在传输过程是要等待适合的时间窗宽,因此对于事件触发的SpaceWire数据包存在有传输延迟时间。通过比较时间窗宽的大小,便能较为方便地获得该传输延迟时间。In the present invention, since the event-triggered SpaceWire data packet needs to wait for a suitable time window during transmission, there is a transmission delay time for the event-triggered SpaceWire data packet. The transmission delay time can be obtained more conveniently by comparing the size of the time window width.

在本发明中,通过计算获得的时间触发的SpaceWire数据包的时间窗宽和事件触发的SpaceWire数据包的时间窗宽的之和,便能较为方便地获得在一个网络周期里的数据包传输时间。In the present invention, by calculating the sum of the time window width of the SpaceWire data packet triggered by the time obtained and the time window width of the SpaceWire data packet triggered by the event, the data packet transmission time in a network cycle can be obtained more conveniently .

在本发明中,通过对传输延迟时间和数据包传输时间的分析,能够获得基于SpaceWire总线标准通信的航天通信网络的性能。In the present invention, the performance of the aerospace communication network based on the SpaceWire bus standard communication can be obtained by analyzing the transmission delay time and the data packet transmission time.

在本发明中,通过时间窗口设置单元12中设置时间窗宽来控制数据包的发送顺序,提高了时间触发的SpaceWire数据包在航天通信网络中的传输实时性能。In the present invention, the sending sequence of the data packets is controlled by setting the time window width in the time window setting unit 12, which improves the real-time transmission performance of the time-triggered SpaceWire data packets in the aerospace communication network.

带时间窗口的虫洞路由器1依据接收到的同步时间码TM_Time_Code来保证 在仿真过程中,对时间触发的SpaceWire数据包和事件触发的SpaceWire数据包进行转发时与航天通信网络中的网络时间同步。The wormhole router 1 with time window guarantees the synchronization with the network time in the aerospace communication network when forwarding the time-triggered SpaceWire data packets and event-triggered SpaceWire data packets according to the received synchronous time code TM_Time_Code.

基于SpaceWire总线标准通信的航天通信网络的仿真流程:Simulation process of aerospace communication network based on SpaceWire bus standard communication:

步骤一:基于SpaceWire总线标准通信将带时间窗口的虫洞路由器1、时间主控节点模块2和终端应用节点模块3构建一个航天通信网络;设置已经构建的航天通信网络的传输链路、以及数据包的传输速率;Step 1: Build an aerospace communication network based on SpaceWire bus standard communication with wormhole router 1 with time window, time master node module 2 and terminal application node module 3; set up the transmission link and data of the already constructed aerospace communication network packet transfer rate;

根据航天通信网络需求,选取若干个终端应用节点、一个时间主控节点、若干个带时间窗口的虫洞路由器,利用通信链路连接构成网络。According to the requirements of the aerospace communication network, several terminal application nodes, a time master node, and several wormhole routers with time windows are selected and connected by communication links to form a network.

参见图4所示,5个终端应用节点、3个带时间窗口的虫洞路由器和1个时间主控节点构成一个航天通信网络。终端应用节点记为符号ES、带时间窗口的虫洞路由器记为符号WR、时间主控节点记为符号TM。Referring to Figure 4, 5 terminal application nodes, 3 wormhole routers with time windows and 1 time master node form an aerospace communication network. The terminal application node is denoted by the symbol ES, the wormhole router with time window is denoted by the symbol WR, and the time master node is denoted by the symbol TM.

若第一个终端应用节点ES1设置为源节点,时间主控节点设置为目的节点TM,则中间节点为第一个带时间窗口的虫洞路由器WR1、第二个带时间窗口的虫洞路由器WR2,故传输链路为ES1向WR1发数据包、WR1向WR2转发数据包、WR2向TM转发数据包。在确定了传输链路后,数据包传输时间为ET=Tend-T生成If the first terminal application node ES 1 is set as the source node, and the time master node is set as the destination node TM, then the intermediate node is the first wormhole router WR 1 with a time window, and the second wormhole router with a time window Router WR 2 , so the transmission link is that ES 1 sends data packets to WR 1 , WR 1 forwards data packets to WR 2, and WR 2 forwards data packets to TM. After the transmission link is determined, the data packet transmission time is generated as ET=T end −T.

步骤二:配置终端应用节点模块;Step 2: Configure the terminal application node module;

设置SpaceWire数据包的类型,一种为时间触发SpaceWire数据包,另一种为事件触发SpaceWire数据包;Set the type of SpaceWire packet, one is time-triggered SpaceWire packet, the other is event-triggered SpaceWire packet;

设置时间触发SpaceWire数据包的时间间隔T间隔Set the time interval T interval for time-triggered SpaceWire packets;

设置时间触发SpaceWire数据包的数据包大小;Set the packet size for time-triggered SpaceWire packets;

设置事件触发SpaceWire数据包的数据包大小;Set the packet size of the event-triggered SpaceWire packet;

步骤三:配置时间主控节点模块;Step 3: Configure the time master node module;

设置初始时刻同步时间码TM_Time_Code,并将该TM_Time_Code在航天通信网络中进行广播;每一次初始仿真时以0为基准时间;Set the initial time synchronization time code TM_Time_Code, and broadcast the TM_Time_Code in the aerospace communication network; use 0 as the reference time for each initial simulation;

步骤四:配置带时间窗口的虫洞路由器的网络周期时间,仿真开始;Step 4: Configure the network cycle time of the wormhole router with time window, and start the simulation;

步骤五:带时间窗口的虫洞路由器统计时间窗宽,并接收、转发数据包;Step 5: The wormhole router with time window counts the time window width, and receives and forwards data packets;

带时间窗口的虫洞路由器先接收在一个网络周期里的所有数据包,然后提取出数据包的生成时刻、时间窗宽,最后依据数据包类型和窗宽大小判断条件来依次转发数据包。The wormhole router with a time window first receives all data packets in a network cycle, then extracts the generation time and time window width of the data packets, and finally forwards the data packets sequentially according to the data packet type and window width judgment conditions.

通过统计出的时间窗宽、窗宽间隔能够计算出数据包被延迟发送的延迟时间。The delay time for the delayed sending of data packets can be calculated through the calculated time window width and window width interval.

步骤六:通过仿真时间、数据包个数、数据包类型得到仿真结果图。Step 6: Obtain the simulation result diagram through the simulation time, the number of data packets, and the type of data packets.

实施例1Example 1

如图5所示,为仿真结果示意图。其中圆形“○”表示为时间触发的SpaceWire数据包的传输时间,一个圆形为一个时间触发SpaceWire数据包的传输时间;五角星“☆”表示事件触发的SpaceWire数据包的传输时间,一个五星形为一个事件触发SpaceWire数据包的传输时间。As shown in Figure 5, it is a schematic diagram of the simulation results. Among them, the circle "○" represents the transmission time of the SpaceWire data packet triggered by time, and the circle represents the transmission time of a time-triggered SpaceWire data packet; the five-pointed star "☆" represents the transmission time of the SpaceWire data packet triggered by the event, and a five-star In the form of an event triggering the transmission time of a SpaceWire packet.

可见在1.6s的仿真周期内,共测定有20个时间触发SpaceWire数据包的传输 时间,均为200ms(即2×10-4s);共测定有19个事件触发的SpaceWire数据包的传输时间(分别为200ms、200ms、200ms、856ms、200ms、402ms、200ms、500ms、200ms、200ms、490ms、200ms、200ms、680ms、200ms、200ms、200ms、200ms和200ms)。可见由于时间窗宽优先传输时间触发的SpaceWire数据包,故时间触发的SpaceWire数据包的传输时间恒定,传输延迟为0。对于事件触发的SpaceWire的数据包,在传输过程中可能存在等待过程,故部分事件触发的SpaceWire数据包的传输延迟不为0(本图中传输延迟为事件触发的SpaceWire数据包的传输时间超过200ms的部分),这部分事件触发SpaceWire数据包的传输时间将因为传输延迟的大小而增加,造成等待时间长短的不同,在仿真结果图中,这部分事件触发的SpaceWire数据包的传输时间,由于传输延迟大小的不同,出现了不同程度的上移。It can be seen that in the simulation period of 1.6s, a total of 20 times are measured to trigger the transmission time of SpaceWire data packets, all of which are 200ms (that is, 2×10 -4 s); a total of 19 events are measured to trigger the transmission time of SpaceWire data packets (200ms, 200ms, 200ms, 856ms, 200ms, 402ms, 200ms, 500ms, 200ms, 200ms, 490ms, 200ms, 200ms, 680ms, 200ms, 200ms, 200ms, 200ms, and 200ms, respectively). It can be seen that the transmission time of the time-triggered SpaceWire data packet is constant and the transmission delay is 0 because the time window width gives priority to the transmission of the time-triggered SpaceWire data packet. For event-triggered SpaceWire data packets, there may be a waiting process during transmission, so the transmission delay of some event-triggered SpaceWire data packets is not 0 (the transmission delay in this figure is that the transmission time of event-triggered SpaceWire data packets exceeds 200ms part), the transmission time of the SpaceWire data packet triggered by this part of the event will increase due to the size of the transmission delay, resulting in a different length of waiting time, in the simulation result diagram, the transmission time of the SpaceWire data packet triggered by this part of the event, due to the transmission Depending on the size of the delay, there are different degrees of upward shift.

本发明中应用字母的物理意义如下表:The physical significance of application letters is as follows in the present invention:

T间隔 T interval 表示任意两个时间触发的SpaceWire数据包的时间窗宽之间的间隔Indicates the interval between the time window widths of any two time-triggered SpaceWire packets src_nodesrc_node 表示SpaceWire数据包的包头Represents the header of a SpaceWire packet typetime type time 表示时间触发的SpaceWire数据包的类型Indicates the type of time-triggered SpaceWire packet AT生成 AT generated 表示针对typetime类型的数据包生成时刻Indicates the time at which packets of type time type are generated typeEvent type Event 表示事件触发的SpaceWire数据包的类型Indicates the type of SpaceWire packet triggered by the event BT生成 BT generation 表示针对typeEvent类型的数据包生成时刻Indicates the generation time of the data packet for the type Event type sizesize 表示一个SpaceWire数据包的大小Indicates the size of a SpaceWire packet srcsrc 表示SpaceWire数据包的源节点Indicates the source node of the SpaceWire packet destdest 表示SpaceWire数据包的目的节点Indicates the destination node of the SpaceWire packet numnum 表示一个SpaceWire数据包中有多少个数据块Indicates how many data blocks are in a SpaceWire packet Thead T head 表示接收到一条SpaceWire数据包的起点时刻,称为包头时刻Indicates the starting time of receiving a SpaceWire data packet, called the packet head time Tend T end 表示接收完成一条SpaceWire数据包的结束时刻,称为包尾时刻Indicates the end time of receiving a SpaceWire data packet, called the end time of the packet ETET 表示接收完成一条SpaceWire数据包所需的时间,称为段传输时间Indicates the time required to receive and complete a SpaceWire packet, called segment transmission time SWTX SWT X 表示任意一个时间触发的SpaceWire数据包Represents a SpaceWire packet triggered at any time Xx 表示时间触发的SpaceWire数据包的标识号Indicates the identification number of the time-triggered SpaceWire packet SWEY SWE Y 表示任意一个事件触发的SpaceWire数据包Represents any SpaceWire packet triggered by an event YY 表示事件触发的SpaceWire数据包的标识号 Indicates the identification number of the SpaceWire packet that the event triggered

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 北京航空航天大学 A high-speed SpaceWire fiber link test card that can work 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 航天东方红卫星有限公司 A Time-Triggered 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 航天东方红卫星有限公司 A Time-Triggered 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
CN103647682B (en) A Simulation System for Simulating Switched Ethernet Clock Synchronization
CN112511376B (en) Method and terminal for measuring TSN network forwarding time characteristic
CN105245301B (en) A kind of airborne optical-fiber network analogue system based on time triggered
CN103746878B (en) Simulation system for measuring transmission time of SpaceWire data packets
US8576713B2 (en) Traffic generator with priority flow control
CN107819539B (en) A device and method for realizing time-triggered Ethernet terminal system
CN103716248B (en) A kind of method that ethernet traffic based on Ethernet switching chip generates and analyzes
EP4319055A1 (en) Message transmission method and apparatus
CN106850466A (en) The retransmission method and device of packet in a kind of time-triggered network
CN106254254A (en) A kind of network-on-chip communication means based on Mesh topological structure
Hua et al. Scheduling heterogeneous flows with delay-aware deduplication for avionics applications
CN102427426A (en) Method and device for simultaneously supporting AFDX (avionics full Duplex switched Ethernet) and common Ethernet switching
CN107257311A (en) A kind of time triggered communication blended data based on virtual link sends dispatching method
CN113542148B (en) Message aggregation method and device, network card and readable storage medium
CN101257442A (en) Time-deterministic data exchange method and exchange device based on time pressure
CN106850331A (en) A kind of Ethernet with synchronised clock function hair frame device of field of traffic
CN107070815B (en) Method and device for queuing delay control of synchronization message in SDN network
CN109547157B (en) Ten-trillion network controller supporting time-triggered Ethernet and control method
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
CN115065646B (en) A method and device for sending messages on a regular basis based on software and hardware collaboration
WO2012106905A1 (en) Message processing method and device
CN106788863B (en) A kind of aviation electronics WDM network management analogue systems for supporting subnet time triggered to communicate
WO2023207628A1 (en) Packet transmission method and packet forwarding device
CN115733759A (en) Simulation model system for TTFC message scheduling

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