CN104869059B - A kind of route backup method based on SpaceWire timing codes - Google Patents

A kind of route backup method based on SpaceWire timing codes Download PDF

Info

Publication number
CN104869059B
CN104869059B CN201510296948.0A CN201510296948A CN104869059B CN 104869059 B CN104869059 B CN 104869059B CN 201510296948 A CN201510296948 A CN 201510296948A CN 104869059 B CN104869059 B CN 104869059B
Authority
CN
China
Prior art keywords
routers
bit
equipment
spaceborne computer
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510296948.0A
Other languages
Chinese (zh)
Other versions
CN104869059A (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 CN201510296948.0A priority Critical patent/CN104869059B/en
Publication of CN104869059A publication Critical patent/CN104869059A/en
Application granted granted Critical
Publication of CN104869059B publication Critical patent/CN104869059B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of route backup methods based on SpaceWire timing codes, and using two SpaceWire routers, following setting is done to reserved bit T6, T7 of two router timing codes:Using T6 as subnet label, it is set as " 0 " and " 1 ";T7 is 0 as reserved bit acquiescence;Two routers connect spaceborne computer and A groups and two group node equipment of B groups respectively;Include the following steps:1) initial timing code, is sent to two routers respectively;2) status register of two routers, is accessed;3) breakdown judge, is carried out according to the data content of status register;4) two routers, are subjected to translative mode;5) double net fusions, are carried out;6) next timing code, is sent, is repeated up to end.The advantage of the invention is that:The backup of router is realized by way of being combined using a reserved bit SpaceWire routers switching working mode, sufficient leeway is left for standard and the subsequent extension of system, improves SpaceWire router reliabilities.

Description

A kind of route backup method based on SpaceWire timing codes
Technical field
The invention belongs to space communication technical fields, and in particular to a kind of route backup based on SpaceWire timing codes Method.
Background technology
SpaceWire is a kind of completely new high speed (2Mb/s~400Mb/s) proposed by European Space Agency, point-to-point, full duplex Serial bus technology has good electromagnetic compatibility characteristic, while strengthens online error detection and recovery, troubleshooting and guarantor Shield and the time broadcast etc. function.
SpaceWire has succeeded and has been applied in major aerospace project as space communication bus standard of new generation:ESA The moon exploration that Mars Express, space probe, space telescope, the x-ray telescope of JAXA exploitations, the NASA of exploitation are developed Orbiter, the component part of stationary orbit business satellite of U.S. NOAA, NASA and ESA joint developments James's Wei Primary space telescope;Chinese No. four meteorological satellite plans of wind and cloud are using SpaceWire buses as key network.
SpaceWire routers are the important compositions in SpaceWire networks, the institute transmitted in SpaceWire networks There are data to be required for getting to destination node by SpaceWire routers, use in the reliable sexual intercourse of router Whether the space communication Mission Success of SpaceWire bus standards, the reliability of entire communication system is directly affected.
Timing code in SpaceWire standards has 8, i.e. T0-T7, and wherein T0-T5 is effective time code, for time- T6, T7 of code wouldn't be used as timing code control mark, not provide particular use.In the prior art, although someone It is proposed backs up router using the two reserved bits, but occupies this two reserved bits completely, is follow-up The supplement of SpaceWire standards, the Function Extension of system cause to hinder.
Invention content
The purpose of the present invention is be directed to:Timing code reserved bit in the prior art in SpaceWire standards is completely occupied, Subsequently the supplement to SpaceWire standards, system Function Extension cause to hinder, it is proposed that one kind be based on the SpaceWire times The route backup method of code using two SpaceWire routers, respectively #1 routers and #2 routers, route two Reserved bit T6, T7 of device does following setting:Using T6 as subnet label, it is set as " 0 " and " 1 ";T7 is still as reservation Position acquiescence is 0;
Two routers connect spaceborne computer and two group node equipment respectively, and two group node equipment are divided into A groups and B groups, A Group includes equipment 1, equipment 2 and equipment 3;B groups equipment includes equipment 4, equipment 5, equipment 6 and equipment 7;Do not have between two groups of equipment Communicating requirement.
A kind of route backup method flow diagram based on SpaceWire timing codes, includes the following steps:
Step 1: spaceborne computer sends initial timing code to two SpaceWire routers respectively;
Spaceborne computer sends the timing code that T6 is " 1 " to #1 routers, and the time that T6 is " 0 " is sent to #2 routers Code;
Step 2: spaceborne computer accesses the status register of two SpaceWire routers, status register returns to letter It ceases to spaceborne computer.
The bit-1 of status register in #1 routers, bit-2, bit-3 respectively with equipment 1, the first of equipment 2 and equipment 3 Interface is connected, if equipment breaks down, corresponding bit of status register is changed to 1 and exports to spaceborne meter in #1 routers Calculation machine;
In #2 routers bit-4, bit-5, bit-6 and the bit-7 of status register respectively with equipment 4, equipment 5, equipment 6 It is connected with the second interface of equipment 7, if equipment breaks down, corresponding bit of status register is changed to 1 in #2 routers It exports to spaceborne computer.
Step 3: spaceborne computer carries out breakdown judge according to the data content of status register;
Spaceborne computer is judged, if belonging to the first failure, enters step four;
Specially:If in #1 Router Control Register output datas, at least occur one 1 in bit-0 to bit-3, It represents that single first interface or multiple first interfaces in A group equipment break down, enters step four;
If in #2 Router Control Register output datas, at least occurring one 1 in bit-4 to bit-7, B groups are represented Single second interface or multiple second interfaces in equipment break down, and enter step four;
If at least occur one 1 and #2 roads in #1 Router Control Register output datas, in bit-0 to bit-3 By in device output data, at least occurring one 1 in bit-4 to bit-7, represent that single or multiple first in A group equipment connects Mouth breaks down simultaneously with the single or multiple second interface in B group equipment;Enter step four.
If belonging to second of failure, five are entered step;
Specially:If in #1 Router Control Register output datas, at least occur one 1 in bit-0 to bit-3, At least occurs one 1 in bit-4 to bit-7 simultaneously;It represents that A groups break down with multiple first interfaces in B group equipment, enters Step 5;
If in #2 Router Control Register output datas, at least occur one 1, while bit- in bit-0 to bit-3 At least occurs one 1 in 4 to bit-7;A groups break down with multiple second interfaces in B group equipment, enter step five;
If without failure, six are entered step.
Step 4: spaceborne computer enters step 6 after two routers are carried out translative mode;
Step 401, spaceborne computer read the data of Router Control Register;
Step 402, spaceborne computer send order packet to two routers, by two router translative mode;
The bit-31 that the timing code of #1 routers is enabled register by spaceborne computer is changed to " 1 " by " 0 ", by #1 routers " 0 pattern " switch to " 1 pattern ";Meanwhile the timing code of #2 routers is enabled the bit-31 of register by " 1 " by spaceborne computer " 0 " is changed to, " 1 pattern " of #2 routers is switched to " 0 pattern ".
After step 403, conversion, spaceborne computer sends effective time code to #1 routers and gives B group equipment, B group equipment works Make in first network;
After conversion, the T6 timing codes for " 0 " are considered as effectively by #1 routers, and spaceborne computer sends T6 to #1 routers Position is the timing code of " 0 ";B groups equipment obtains effective time code by #1 routers at this time, and B group equipment is operated in first network In;
After step 404, conversion, spaceborne computer sends effective time code to #2 routers and gives A group equipment, A group equipment works Make in the second network;
After conversion, the timing code that T6 is " 1 " is considered as effectively by #2 routers, and spaceborne computer sends T6 to #2 routers For the timing code of " 1 ", A groups equipment obtains effective time code by #2 routers at this time, and the work of A groups equipment is in the second network.
Step 5: spaceborne computer enters step 6 after carrying out double net fusions;
After carrying out double net fusions, it is divided into two types, the work of #1 routers or the work of #2 routers.
When working such as #1 routers, the bit-31 that timing code enables register is " 0 " or " 1 ", and #1 routers are in " 0 mould The timing code that T6 is " 1 " or " 0 " is considered as effectively by formula " or " 1 pattern ", all nodes;Spaceborne computer is sent out to #1 routers Send the T6 timing codes for being " 1 " or " 0 ";All devices 1- equipment 7 obtains effective time code by #1 routers and is operated in first In network or the second network;
When working such as #2 routers, the bit-31 that timing code enables register is " 1 " or " 0 ", and #2 routers are in " 1 mould The timing code that T6 is " 0 " or " 1 " is considered as effectively by formula " or " 0 pattern ", all nodes;Spaceborne computer is sent to #2 routers The T6 timing codes for " 0 " or " 1 ";All devices 1- equipment 7 obtains effective time code by #2 routers and is operated in the second net In network or first network.
Step 6: spaceborne computer sends next timing code, step 1 is repeated to step 5 until terminating.
The advantages and positive effects of the present invention are:
(1), a kind of route backup method based on SpaceWire timing codes of the present invention, by using SpaceWire two-ways Ensure the reliability of SpaceWire routers work by device.
(2), a kind of route backup method based on SpaceWire timing codes of the present invention, two routings in normal work Device operates simultaneously, but when a router or the link being attached thereto break down, and by the network integration, another is normal The router of work can bear the communication task of failure routing, so as to ensure the completion of communication task.
(3), a kind of route backup method based on SpaceWire timing codes of the present invention, is cut by SpaceWire routers The pattern that changes jobs realizes the backup of router with the mode being combined using a reserved bit in T6 or T7, be standard and The subsequent extension of system leaves sufficient leeway, achievees the purpose that improve SpaceWire router reliabilities.
(4), a kind of route backup method based on SpaceWire timing codes of the present invention, in a network using SpaceWire Under conditions of timing code running, Spacewire routers improve the reliability of system by the way of backup;
(5), a kind of route backup method based on SpaceWire timing codes of the present invention, during failure, spaceborne computer The position of failure appearance is learnt by the status register for reading router, by using handoff links, SpaceWire routers Operating mode ensures carrying out for communication with the mode that the normal SpaceWire router of work undertakes all working;
(6), a kind of route backup method based on SpaceWire timing codes of the present invention uses bit time therein code Reserved bit (i.e. T6 or T7) merges for double nets of SpaceWire routers, so as to fulfill the standby of SpaceWire routers Part, wherein can optionally one of timing code reserved bit as subnet label, another is not used as reserved bit.
Description of the drawings
Fig. 1 is SpaceWire double routes structure diagram of the present invention.
Fig. 2 is a kind of route backup method flow diagram based on SpaceWire timing codes of the present invention.
Specific embodiment
Below in conjunction with attached drawing, the present invention is described in further detail.
A kind of route backup method based on SpaceWire timing codes, on the basis of existing SpaceWire routers, One in T6, T7 timing code reserved bit is only taken up, it is optionally one of to be used as subnet label, with reference to SpaceWire routers Double nets fusion, on the basis of SpaceWire router reliabilities are improved, realize SpaceWire routers backup, for mark Accurate expansion leaves sufficient leeway with the subsequent extension of system.
The present invention selects 8 interface SpaceWire routers to propose double route system structure, two SpaceWire routers A veneer or fusion are integrated in as in a router or same equipment;Due to router back mechanism with Router port number is unrelated, and the SpaceWire routers of other count interfaces also can be selected.
Two SpaceWire routers are respectively #1 routers and #2 routers, to the guarantor of two SpaceWire routers T6, T7 is stayed to do following setting:Using T6 as subnet label, T7 is 0 still as reserved bit acquiescence;Or use T7 Make subnet label, T6 is 0 as reserved bit acquiescence, is not used.The present invention selects T6 as subnet label, and T7 is as reservation Position.
8 interfaces of #1 routers and #2 routers connect respectively:Spaceborne computer, equipment 1 to equipment 7;Spaceborne calculating Machine, equipment 1 to equipment 7 have 2 interfaces, respectively first interface and second interface, wherein, spaceborne computer, equipment 1 is to setting Standby 7 first interface is all connected with 8 interfaces of 1# routers.Spaceborne computer, the second interface of equipment 1 to equipment 7 are all connected with 8 interfaces of 2# routers.
According to whether there is the situation for being in communication with each other requirement between each equipment, node device is divided into two groups.Equipment 1 is set It is one group, referred to as A groups to be compiled for 2 and equipment 3;It is one group, referred to as B groups that equipment 4, equipment 5 and equipment 6, which are compiled,;Do not have between A groups and B groups There is communicating requirement.
The first interface of all devices is connected with #1 routers, forms first network;The second interface and #2 of all devices Router is connected, and forms the second network.A group equipment carries out communications in first network, B groups equipment in the second network into Row communications.Two groups of equipment reduce single network live load using different sub-networks;Two groups of equipment form two nets Network, respectively using two sets of timing codes, i.e. two groups of equipment using two group scheduling tables, shorten the period of each group scheduling table respectively;Two A SpaceWire routers guarantee of work utilization of resources.If there is special installation to communicate between A groups and B groups, make this special Two sets of timing codes are accordingly to be regarded as effectively by equipment.
SpaceWire standards provide that node device and all stateful register of router in SpaceWire networks are used In the status information for storing each link, such as:First interface breaks down with the link being connected, and is stored in status register Information is read by spaceborne computer, while spaceborne computer sends order packet to change the control of node and router deposit Device, so as to manage whole network.
Wherein control register enables register including timing code, which can be read by spaceborne computer using order packet It takes and rewrites, write-in modification is carried out according to the order packet of transmission.
The control register structure of router is as follows:
31 301 0
Wherein, bit-0:It does not use, it is read-only.
Bit-30 to bit-1:Whether normal mark corresponding physical port, under normal condition, bit-30 extremely Bit-1 are 0, if corresponding numerical digit is arranged to " 1 ", timing code is forwarded from corresponding physical port;
Such as bit-3 be arranged to " 1 ", represents the equipment being connected with bit-3 failure, then timing code is from physics end Mouth 3 forwards.
The numerical value of the 31st is transmitted and kept in the flag_mode in timing code judgment module by bit-31.It is set " 0 " and " 1 " are set to,
When timing code enable register the 31st is " 0 ", i.e. bit-31 when being written to ' 0 ', timing code judgment module In flag_mode be " 0 ", router is referred to as in " 0 pattern ";
Under " 0 pattern ", if transmitting the timing code that T6 is " 1 ", timing code judgment module is by internal signal VALID_ TIME is labeled as " 1 ", it is meant that the timing code that timing code reserved bit T6 is " 1 " is considered as effectively by router, receives effective time The time Code memory that code will update route internal, and effective time code is forwarded;
Otherwise, if transmitting the timing code that T6 is " 0 ", internal signal VALID_TIME is labeled as by timing code judgment module " 0 ", it is meant that the timing code is invalid.Router, which receives ineffective time code, will not update the timing code deposit of route internal Device, will not sending time code.
When timing code enable register the 31st is " 1 ", i.e. bit-31 by one writing when, in timing code judgment module Flag_mode be " 1 ", claim router be in " 1 pattern ".
Under " 1 pattern ", if transmitting the timing code that T6 is " 0 ", timing code judgment module is by internal signal VALID_TIME Labeled as " 1 ", it is meant that the timing code that timing code reserved bit T6 is " 0 " is considered as effectively by router, and receiving effective time code will The time Code memory of route internal is updated, and effective time code is forwarded;Otherwise, if transmitting the time that T6 is " 1 " Internal signal VALID_TIME is labeled as " 0 " by code, timing code judgment module, it is meant that the timing code is invalid.Router The time Code memory of route internal will not be updated by receiving ineffective time code, will not sending time code.
The numerical value that timing code enables the 31st, register is different, and used effective time code type is different.
There are two types of patterns when SpaceWire routers work:The timing code that T6 is " 1 " is only considered as by the first pattern to be had Effect, referred to as " 0 pattern ";The timing code that T6 is " 0 " is only considered as effectively by second of pattern, referred to as " 1 pattern ".
Spaceborne computer is by first interface and second interface simultaneously to first network and the second network sending time code.The The circulation of one network is timing codes of the T6 for " 1 ", and the circulation of the second network is timing codes of the T6 for " 0 ".
A groups equipment uses first network, and #1 routers are in " 0 pattern ", then #1 routers send the time that T6 is " 1 " Code, it is effective as the timing code of " 1 " that A group equipment regards T6, otherwise ignores, and guarantee A group equipment is operated in first network;
B groups equipment uses the second network, and #2 routers are in " 1 pattern ", then #2 routers send the time that T6 is " 0 " Code, it is effective that B group equipment, which regards T6 as the timing code of " 0 ", is otherwise ignored, and ensures that B group equipment is operated in the second network.
When can obtain normal operating conditions according to said program:
#1 routers are in " 0 pattern ", and the timing code that T6 is " 1 " is considered as effectively;
#2 routers are in " 1 pattern ", and the timing code that T6 is " 0 " is considered as effectively;
A groups equipment uses first interface, the timing code that T6 are " 1 " is considered as effectively, this group of equipment is obtained by #1 routers To effective time code, it is operated in first network;
B groups equipment uses second interface, and the T6 timing codes for " 0 " are considered as effectively, this group of equipment is by #2 routers Effective time code is obtained, is operated in the second network;
The failure that link between equipment and sub-router occurs is divided into 3 kinds:One kind is a certain interface in same network Either multiple and different model interfaces in multiple failures or two networks break down simultaneously;Second is some net The same model interface in connection failure or two networks between network and corresponding router breaks down simultaneously;The Three kinds are that armamentarium is in paralyzed state.
The first failure includes:Single first interface or multiple first interfaces in A group equipment break down, and B groups are set Single second interface in standby either multiple second interfaces break down or A group equipment in single or multiple first connect Mouth breaks down simultaneously with the single or multiple second interface in B group equipment.
Second of failure includes:Between some router failure, same group equipment many places failure, spaceborne computer and router Link breaks down, in the single either multiple first interfaces failures or A groups and B group equipment in A groups and B group equipment Single or multiple second interface break down, the equipment in a certain group is caused not have same-interface normal work,
The third failure includes:Spaceborne computer and two groups of equipment disconnectings or two groups of equipment total interfaces go out Existing failure.
A kind of route backup method flow diagram based on SpaceWire timing codes, as shown in Figure 2:Include the following steps:
Spaceborne computer sending time code, 7 receiving time code of node device 1- equipment, due between two timing codes of transmission Having time interval, i.e. time slot, corresponding node device mutually send out data in corresponding time slot.
Such as it is 1 that the time code type that is identified of some equipment, which is T6, assigned timing code virtual value is 5, works as equipment When timing code virtual value " 0010110 " arrives, the equipment transmission data.
Step 1: spaceborne computer sends initial timing code to two SpaceWire routers respectively;
Spaceborne computer sends 8 to first network and the second network simultaneously respectively by first interface and second interface Timing code sends the timing code " 00000010 " that T6 is " 1 " to #1 routers;The timing code that T6 is " 0 " is sent to #2 routers “00000000”;
Step 2: spaceborne computer accesses the status register of two SpaceWire routers, status register returns to letter It ceases to spaceborne computer.
Status register structure in router is identical with the structure of control register, comprising 32, bit-0 to bit- 31, the normal data of storage is 30 0;
The bit-1 of status register in #1 routers, bit-2, bit-3 are respectively at equipment 1, and the first of equipment 2 and equipment 3 Interface is connected, if equipment breaks down, is changed to 1 and exports to spaceborne computer for corresponding bit in #1 routers;For example, The first interface of equipment 2 breaks down, and the data for returning to #1 routers are 0010 ...;
Bit-4, bit-5, bit-6 and the bit-7 of status register are respectively at equipment 4, equipment 5, equipment 6 in #2 routers It is connected with the second interface of equipment 7, if equipment breaks down, is changed to 1 and exports to spaceborne for corresponding bit in #2 routers Computer;For example, the second interface of equipment 5 breaks down, the data for returning to #2 routers are 000001 ...;
Step 3: spaceborne computer carries out breakdown judge according to the data content of status register;
Spaceborne computer is judged, if belonging to the first failure, enters step four;
Specially:If in #1 Router Control Register output datas, at least occur one 1 in bit-0 to bit-3, It represents that single first interface or multiple first interfaces in A group equipment break down, enters step four;
If in #2 Router Control Register output datas, at least occurring one 1 in bit-4 to bit-7, B groups are represented Single second interface or multiple second interfaces in equipment break down, and enter step four;
If at least occur one 1 and #2 roads in #1 Router Control Register output datas, in bit-0 to bit-3 By in device output data, at least occurring one 1 in bit-4 to bit-7, represent that single or multiple first in A group equipment connects Mouth breaks down simultaneously with the single or multiple second interface in B group equipment;Enter step four.
If belonging to second of failure, five are entered step;
Specially:If in #1 Router Control Register output datas, at least occur one 1 in bit-0 to bit-3, At least occurs one 1 in bit-4 to bit-7 simultaneously;It represents that A groups break down with multiple first interfaces in B group equipment, enters Step 5;
If in #2 Router Control Register output datas, at least occur one 1, while bit- in bit-0 to bit-3 At least occurs one 1 in 4 to bit-7;A groups break down with multiple second interfaces in B group equipment, enter step five;
If without failure, six are entered step.
Step 4: when failure is the first failure, spaceborne computer enters step after two routers are carried out translative mode Rapid six:
It first confirms that the position that failure occurs is located at using interface, then exchanges the communication interface that two groups of equipment use;
Step 401, spaceborne computer read the data of Router Control Register;
Step 402, spaceborne computer send order packet to two routers, by two router translative mode;
The bit-31 that the timing code of #1 routers is enabled register by spaceborne computer is changed to " 1 " by " 0 ", by #1 routers " 0 pattern " switch to " 1 pattern ";Meanwhile the timing code of #2 routers is enabled the bit-31 of register by " 1 " by spaceborne computer " 0 " is changed to, " 1 pattern " of #2 routers is switched to " 0 pattern ".
After step 403, conversion, spaceborne computer sends effective time code to #1 routers and gives B group equipment, B group equipment works Make in first network;
After conversion, the T6 timing codes for " 0 " are considered as effectively by #1 routers, and spaceborne computer sends T6 to #1 routers Position is the timing code of " 0 ";B groups equipment obtains effective time code by #1 routers at this time, and B group equipment is operated in first network In;
After step 404, conversion, spaceborne computer sends effective time code to #2 routers and gives A group equipment, A group equipment works Make in the second network;
After conversion, the timing code that T6 is " 1 " is considered as effectively by #2 routers, and spaceborne computer sends T6 to #2 routers For the timing code of " 1 ", A groups equipment obtains effective time code by #2 routers at this time, and the work of A groups equipment is in the second network.
Spaceborne computer is enabled and is posted by sending the form of signal or order packet, the timing code that router is written to router Storage so as to change router operating mode, still ensures that two SpaceWire routers work together.
Step 5: when failure is second of failure, spaceborne computer enters step 6 after carrying out double net fusions;
Second of failure be:Link breaks down between many places failure or spaceborne computer and router:Certain is caused to organize equipment There is no same-interface normal work, or all devices use second interface using first interface or all, there was only one in network A router work, transfers to a router to undertake the communication work of two routers, double net fusions can only be carried out, by two The burden of router transfers to a router to undertake, and ensures the progress of communication;It is single by two groups of equipment same subnets The live load of SpaceWire routers can increase.
After carrying out double net fusions, it is divided into two types, the work of #1 routers or the work of #2 routers.
When working such as #1 routers, the bit-31 that timing code enables register is " 0 ", and #1 routers are in " 0 pattern ", institute There is node to be considered as the timing code that T6 is " 1 " effectively;Spaceborne computer sends the timing code that T6 are " 1 " to #1 routers;Institute There is equipment 1- equipment 7 to obtain effective time code by #1 routers to be operated in first network;
Or during the work of #1 routers, the bit-31 that timing code enables register is " 1 ", and #1 routers are in " 1 pattern ", The timing code that T6 is " 0 " is considered as effectively by all nodes;Spaceborne computer sends the timing code that T6 are " 0 " to #1 routers; All devices 1- equipment 7 obtains effective time code work in the second network by #1 routers;
When working such as #2 routers, the bit-31 that timing code enables register is " 1 ", and #2 routers are in " 1 pattern ", institute There is node to be considered as the timing code that T6 is " 0 " effectively;Spaceborne computer sends the timing code that T6 are " 0 " to #2 routers;Institute There is equipment 1- equipment 7 to obtain effective time code work in the second network by #2 routers;
Or during the work of #2 routers, the bit-31 that timing code enables register is " 0 ", and #2 routers are in " 0 pattern ", The timing code that T6 is " 1 " is considered as effectively by all nodes;Spaceborne computer sends the timing code that T6 are " 1 " to #2 routers; All devices 1- equipment 7 obtains effective time code by #2 routers and is operated in first network;
In this case router not switching working mode, spaceborne computer modification network central control register, so as to make The effective time code type for obtaining node device changes.
Step 6: spaceborne computer sends next timing code, step 1 is repeated to step 5 until terminating.
Spaceborne computer sends the timing code " 00000110 " that next T6 is " 1 " to #1 routers;It is sent out to #2 routers Send the timing code " 00000100 " that next T6 is " 0 ".

Claims (5)

1. a kind of route backup method based on SpaceWire timing codes, using two SpaceWire routers, is divided into #1 roads By device and #2 routers, the timing code of router, which enables register, 32:Bit-0 to bit-31, it is characterised in that:bit-31 Position is arranged to " 0 " or " 1 ";
When being written to " 0 " for bit-31, router is referred to as in " 0 pattern ";When being written to " 1 " for bit-31, routing Device is referred to as in " 1 pattern ";
Following setting is done to reserved bit T6, T7 of two router timing codes:Using T6 as subnet label, it is set as " 0 " or " 1 ";T7 is 0 as reserved bit acquiescence;
Under " 0 pattern ", the timing code that timing code reserved bit T6 is " 1 " is considered as effectively by router;
Under " 1 pattern ", the timing code that timing code reserved bit T6 is " 0 " is considered as effectively by router;
Each router connects spaceborne computer and A groups and two group node equipment of B groups;Wherein, there are two connect spaceborne computer Mouthful, first interface and second interface, there are two interface, first interface and second interfaces for each equipment in two group node equipment; First interface in spaceborne computer and two groups of equipment is all connected with #1 routers;Second in spaceborne computer and two groups of equipment connects Mouth is all connected with #2 routers;
Route backup method includes the following steps:
Step 1: spaceborne computer sends initial timing code to two SpaceWire routers respectively;
#1 routers are in " 0 pattern ", and spaceborne computer is set as the timing code of " 1 ", #2 routers to #1 routers transmission T6 In " 1 pattern ", spaceborne computer is set as the timing code of " 0 " to #2 routers transmission T6;
Step 2: spaceborne computer accesses the status register of two SpaceWire routers, status register return information is given Spaceborne computer;
Step 3: spaceborne computer carries out breakdown judge according to the data content of status register;
Spaceborne computer is judged, if event occur in the single first interface or at least two first interfaces in A group equipment Barrier or B group equipment in single second interface either at least two second interfaces failure or A group equipment in it is single Either at least two first interfaces break down simultaneously with single or at least two second interfaces in B group equipment, into step Rapid four;
If A groups break down simultaneously with single either at least two first interfaces in B group equipment or A groups are set with B groups Single or at least two second interfaces in standby break down simultaneously, enter step five;
If without failure, six are entered step;
Specially:Spaceborne computer is judged, if belonging to following failure, enters step four, specially:
If in #1 Router Control Register output datas, at least occurring one 1 in bit-1 to bit-3, represent that A groups are set At least one first interface breaks down in standby, enters step four;
If in #2 Router Control Register output datas, at least occurring one 1 in bit-4 to bit-7, B group equipment is represented At least one of second interface break down, enter step four;
If at least occur one 1 and #2 routers in #1 Router Control Register output datas, in bit-1 to bit-3 In status register output data, at least occur one 1 in bit-4 to bit-7, represent at least one of A group equipment first At least one of interface and B group equipment second interface break down simultaneously;Enter step four;
If belonging to following failure, five are entered step, specially:
If in #1 Router Control Register output datas, at least occurs one 1 in bit-1 to bit-3, while bit-4 is arrived At least occurs one 1 in bit-7;It represents that A groups break down with multiple first interfaces in B group equipment, enters step five;
If in #2 Router Control Register output datas, at least occurs one 1 in bit-1 to bit-3, while bit-4 is arrived At least occurs one 1 in bit-7;It represents that A groups break down with multiple second interfaces in B group equipment, enters step five;
If without failure, six are entered step;
Step 4: spaceborne computer enters step 6 after two routers are carried out translative mode;
The bit-31 positions that spaceborne computer enables timing code in register are modified, and the pattern of router is converted, will The job network of two groups of equipment swaps;
Step 5: spaceborne computer enters step 6 after carrying out double net fusions;
Two kinds of job categories, the work of #1 routers or the work of #2 routers are formed after carrying out double net fusions;Spaceborne computer pair The bit-31 that the timing code of router enables register modifies, and confirms the operating mode of router, is further set to all Preparation send effective time code;
Step 6: spaceborne computer sends next timing code, step 1 is repeated to step 5 until terminating.
2. a kind of route backup method based on SpaceWire timing codes as described in claim 1, it is characterised in that:It is described A groups include equipment 1, equipment 2 and equipment 3;B groups equipment includes equipment 4, equipment 5, equipment 6 and equipment 7;Between two groups of equipment There is no communicating requirement.
3. a kind of route backup method based on SpaceWire timing codes as claimed in claim 2, it is characterised in that:It is described The step of two be specially:The bit-1 of status register to bit-7 corresponds to the first of two group node equipment respectively in #1 routers Interface, if there is failure, the corresponding bit output 1 of status register is to spaceborne computer in #1 routers;
The bit-1 of status register to the bit-7 second interface for corresponding to two group node equipment respectively in #2 routers, if gone out Show failure, the corresponding bit output 1 of status register is to spaceborne computer in #2 routers.
4. a kind of route backup method based on SpaceWire timing codes as described in claim 1, it is characterised in that:It is described The step of four be specially:
Step 401, spaceborne computer read the data of Router Control Register;
Step 402, spaceborne computer send order packet to two routers, by two router translative mode;
The bit-31 positions that the timing code of #1 routers is enabled register by spaceborne computer are changed to " 1 " by " 0 ", by #1 routers by " 0 pattern " is converted into " 1 pattern ";Meanwhile spaceborne computer by the timing code of #2 routers enable the bit-31 positions of register by " 1 " is changed to " 0 ", and #2 routers are converted into " 0 pattern " by " 1 pattern ";
Step 403, spaceborne computer send effective time code to #1 routers and give B group equipment, and B group equipment is operated in first network In;
After conversion, the T6 timing codes for " 0 " are considered as effectively by #1 routers, and spaceborne computer sends T6 to #1 routers and is The timing code of " 0 ";B groups equipment obtains effective time code by #1 routers at this time, and B group equipment is operated in first network;
Step 404, spaceborne computer send effective time code to #2 routers and give A group equipment, and A group equipment is operated in the second network In;
After conversion, the timing code that T6 is " 1 " is considered as effectively by #2 routers, and spaceborne computer sends T6 to #2 routers and is The timing code of " 1 ", at this time A groups equipment by #2 routers obtain effective time code, A groups equipment work in the second network.
5. a kind of route backup method based on SpaceWire timing codes as described in claim 1, it is characterised in that:It is described The step of five be specially:
When working such as #1 routers, the bit-31 that timing code enables register is " 0 " or " 1 ", and #1 routers are in " 0 pattern " Or the timing code that T6 is " 1 " or " 0 " is considered as effectively by " 1 pattern ", all nodes;Spaceborne computer sends T6 to #1 routers Position is the timing code of " 1 " or " 0 ";All devices 1- equipment 7 obtains effective time code by #1 routers and is operated in first network Or second in network;
When working such as #2 routers, the bit-31 that timing code enables register is " 1 " or " 0 ", and #2 routers are in " 1 pattern " Or the timing code that T6 is " 0 " or " 1 " is considered as effectively by " 0 pattern ", all nodes;Spaceborne computer sends T6 to #2 routers Position is the timing code of " 0 " or " 1 ";All devices 1- equipment 7 obtains effective time code by #2 routers and is operated in the second net In network or first network.
CN201510296948.0A 2015-06-03 2015-06-03 A kind of route backup method based on SpaceWire timing codes Expired - Fee Related CN104869059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510296948.0A CN104869059B (en) 2015-06-03 2015-06-03 A kind of route backup method based on SpaceWire timing codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510296948.0A CN104869059B (en) 2015-06-03 2015-06-03 A kind of route backup method based on SpaceWire timing codes

Publications (2)

Publication Number Publication Date
CN104869059A CN104869059A (en) 2015-08-26
CN104869059B true CN104869059B (en) 2018-06-26

Family

ID=53914595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510296948.0A Expired - Fee Related CN104869059B (en) 2015-06-03 2015-06-03 A kind of route backup method based on SpaceWire timing codes

Country Status (1)

Country Link
CN (1) CN104869059B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789295A (en) * 2016-12-29 2017-05-31 中国科学院长春光学精密机械与物理研究所 A kind of SpaceWire bus communication systems and its supervision equipment
CN108737275B (en) * 2018-05-29 2020-04-21 北京航空航天大学 Plug-and-play satellite-borne network management method based on SpaceFibre

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184555B1 (en) * 2009-06-24 2012-05-22 The Boeing Company SpaceWire network management
CN102624633A (en) * 2012-04-06 2012-08-01 航天东方红卫星有限公司 Time-trigger-based SpaceWire network communication method
EP2541851A1 (en) * 2011-06-30 2013-01-02 Astrium Limited Apparatus and method for use in a spacewire-based network
CN102932261A (en) * 2012-11-20 2013-02-13 航天东方红卫星有限公司 Management system for payload information of satellite based on intelligent high-speed router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184555B1 (en) * 2009-06-24 2012-05-22 The Boeing Company SpaceWire network management
EP2541851A1 (en) * 2011-06-30 2013-01-02 Astrium Limited Apparatus and method for use in a spacewire-based network
CN102624633A (en) * 2012-04-06 2012-08-01 航天东方红卫星有限公司 Time-trigger-based SpaceWire network communication method
CN102932261A (en) * 2012-11-20 2013-02-13 航天东方红卫星有限公司 Management system for payload information of satellite based on intelligent high-speed router

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SpaceWire: A Spacecraft Onboard Network for real-time communications;Parkes S M,et al.;《Real Time Conference,2005.14th IEEE-NPSS》;20051231;全文 *
基于IP核的SpaceWire-PCI通信卡设计;乔立岩等;《电子测量与仪器学报》;20101031;第24卷(第10期);全文 *
基于Spacewire的实时分布式中断***设计;梅洪;《航天控制》;20110430;第29卷(第2期);全文 *

Also Published As

Publication number Publication date
CN104869059A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN103490966B (en) A kind of dual-redundant CAN bus method for receiving and processing data
CN102594711B (en) Message forwarding method and edge device therefor
CN101425953B (en) Address updating method for Ether ring network and network node
CN100448209C (en) Virtual private network fault tolerance
CN100388242C (en) Method and apparatus for multilevel translation and protection table
CN102737098B (en) Distributed file system
CN105933228A (en) Traffic engineering for bit indexed explicit replication
CN110401558B (en) Security level multi-point communication network equipment, system and security level network communication method
CN102098226A (en) Communication device and communication system
CN103685006A (en) Packet forwarding method for edge device and edge device
Ramanathan et al. Delivery of time-critical messages using a multiple copy approach
CN104717081A (en) Gateway function realization method and device
CN104270231B (en) A kind of system and method for realizing binode interconnection pseudo-wire
CN106603420B (en) It is a kind of in real time and failure tolerance network-on-chip router
CN102035688B (en) Design method for rapidly controlling network link access
CN104869059B (en) A kind of route backup method based on SpaceWire timing codes
CN104702717A (en) Planning method for IP addresses of data communication system in CBTC
CN111478856B (en) Master-slave mode-based addressing method and system for communication route between dual redundant devices
US20090122800A1 (en) Frame transfer route confirmation method, node, frame transfer route confirmation program and frame transfer route confirmation system
CN104217120A (en) Method for evaluating reliability of digital transformer substation relay protection system
CN105515835A (en) Aerospace TTE (Time-Triggered Ethernet) network system-level gateway with communication integrity check function
CN106713130A (en) Routing table updating method, EVPN control equipment and EVPN system
CN101222370B (en) Method and device for failure location using failure location packet
CN106911498A (en) The method of power distribution network distributed terminal intelligent modeling communication
JP5285461B2 (en) Wireless network structure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180626

Termination date: 20210603

CF01 Termination of patent right due to non-payment of annual fee