CN107566106A - A kind of AOS distributed communication analogue systems based on HLA RTI - Google Patents

A kind of AOS distributed communication analogue systems based on HLA RTI Download PDF

Info

Publication number
CN107566106A
CN107566106A CN201710770521.9A CN201710770521A CN107566106A CN 107566106 A CN107566106 A CN 107566106A CN 201710770521 A CN201710770521 A CN 201710770521A CN 107566106 A CN107566106 A CN 107566106A
Authority
CN
China
Prior art keywords
data
information source
frame
queue
member unit
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.)
Pending
Application number
CN201710770521.9A
Other languages
Chinese (zh)
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.)
Shenyang Ligong University
Original Assignee
Shenyang Ligong 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 Shenyang Ligong University filed Critical Shenyang Ligong University
Priority to CN201710770521.9A priority Critical patent/CN107566106A/en
Publication of CN107566106A publication Critical patent/CN107566106A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of AOS distributed communication analogue systems based on HLA RTI, including data processing member unit, attaching frame sync mark member unit, frame synchronization member unit and data extraction member unit.What the present invention can emulate all kinds of information sources in AOS spaces sends and receives process, provides simulation analysis foundation for AOS space link Research on Communication Technology personnel and data are supported.

Description

A kind of AOS distributed communication analogue systems based on HLA-RTI
Technical field
The present invention relates to Computer Simulation field, a kind of particularly AOS distributed communications based on HLA-RTI are imitated True system.
Background technology
With the continuous development of space science, the processing to data such as aircraft, means of transport and the space station in space and Transmission has bigger requirement.Meanwhile space tasks have that data type is more, data volume is big, data rate is high, it is sudden it is strong, The features such as real-time, the processing of traditional spatial data and transmission method have been difficult the number for meeting that these in space tasks are complicated According to demand.Based on the above situation, to meet that space station requires, adapts to technology development spatially, it is necessary to produce new general Standard.Therefore, CCSDS (consultative committee for space data system) in 1986 in conventional in-orbit system (Conventional Orbiting Systems, COS) on the basis of develop Advanced Orbiting Systems (Advanced Orbiting Systems, AOS), to meet the data processing needs of complicated space mission.
AOS is a kind of advanced space data communication system regime level, has the characteristics that high flexibility and diversified, it By establishing unified data flow, still image, voice signal, experimental data, telemetry and telecommand are transmitted using a channel A variety of information such as data.In order to make different types of data enjoy a physical channel jointly, AOS is first using more Individual pseudo channel carries the data source of different qualities and different transmission requirements, then each pseudo channel is shared same again It is transmitted on bar physical channel.The research in terms of emulation has been also extended into except the research of theoretical side to AOS at present.
The content of the invention
The defects of for prior art, the invention provides a kind of AOS distributed communications based on HLA-RTI to emulate system System.
A kind of AOS distributed communication analogue systems based on HLA-RTI, including data processing member unit, additional frame are same Step mark member unit, frame synchronization member unit and data extraction member unit.
Data processing member unit, for information source data to be carried out with space encapsulation processing first, obtain information source data Space packet data streams, MPDU multiplexing process is secondly carried out, obtains the MPDU data flows of information source data, then carried out at frame generation Reason, obtains the frame data stream of information source data, after the dispatch deal that the frame data streams of last information source data passes through pseudo channel, is sent out Deliver to attaching frame sync mark member;For bit stream service, data processing member is carried out at BPDU encapsulation first to information source data Reason, obtains the BPDU data flows of information source data, then carries out frame generation processing, obtains the frame data stream of information source data, finally believe After the dispatch deal that the frame data stream of source data passes through pseudo channel, attaching frame sync mark member unit is sent to;
Attaching frame sync marks member unit, its in packaging with the effect in bit stream service be it is consistent, it is right first The frame data stream received is added frame synchronization mark processing, obtains complete transmission frame, then by socket transmission Frame is sent to frame synchronization member unit;
Frame synchronization member unit, it is also consistent with the effect in bit stream service in packaging, first to receiving Transmission frame be removed frame synchronization mark processing, the frame data stream of each road information source is recovered, then by socket frame number Sent according to stream to data and extract member unit;
Data extract member unit, for carrying out MPDU extractions, recover the MPDU data flows of information source data, then carry out Space bag extraction, recovers the space packet data streams of information source data, finally carries out information source data extraction, recover original information source Data;Wherein, BPDU extractions are carried out first, recover the BPDU data of information source data for bit stream service, data extraction member Stream, information source data extraction is then carried out, recovers original information source data.
The beneficial effects of the invention are as follows:Present invention foundation Advanced Orbiting Systems (Advanced Orbiting Systems, AOS) agreement, set up by High Level Architecture (High Level Architecture HLA) and run time infrastructure (RTI) Distributing emulation system, by the transmission three's separation of copying, simulation run time management and bottom communication, realize each sub- Simulation Application " plug and play ".All kinds of information sources in AOS spaces can be emulated sends and receives process, is AOS space link Research on Communication Technology Personnel provide simulation analysis foundation and data are supported.
Brief description of the drawings
Fig. 1 is the overall framework figure of transmitting terminal of the present invention.
Fig. 2 is the overall framework figure of receiving terminal of the present invention.
Fig. 3 is the structure chart of the AOS distributed communication analogue systems based on HLA-RTI.
Fig. 4 is the flow chart of data processing figure inside data processing member.
Fig. 5 is the flow chart of data processing figure inside frame synchronization mark member.
Fig. 6 is the flow chart of data processing figure inside frame synchronization member.
Fig. 7 is the flow chart of data processing figure inside the information source data person of being extracted into.
Fig. 8 is the runnable interface figure of master control member.
Fig. 9 is the runnable interface figure of data processing member.
Figure 10 is the runnable interface figure of attaching frame sync mark member.
Figure 11 is the runnable interface figure of frame synchronization member.
Figure 12 is the runnable interface figure of data extraction member.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention Embodiment be described in detail, make the above and other purpose of the present invention, feature and advantage will become apparent from.Complete Identical reference instruction identical part in portion's accompanying drawing.Not deliberately accompanying drawing drawn to scale, it is preferred that emphasis is show this hair Bright purport.
The present invention is to set up each federal member of analogue system using HLA-RTI according to the consensus standard of AOS systems, The function of each federal member is realized by Visual C++, is an AOS distributed communication analogue system based on HLA-RTI Software, the software can emulate the transmission of all kinds of information sources in AOS spaces and the data handling procedure received.
The system composition of the present invention mainly has hardware and software two parts, and wherein hardware components are:Four host computer (is configured to Pentium II and more than), an interchanger, netting twine is some;Software section is:RTI software platforms, master control member unit, at data Manage member unit, attaching frame sync mark member unit, frame synchronization member unit, data extraction member unit.
Four host computer numbering in described hardware components is followed successively by A1, A2, B1 and B2, wherein, host A 1 and host A 2 For the encapsulation process function for the information source data for completing transmitting terminal, the information source data of host B 1 and host B 2 for completing receiving terminal Recover function.
Switch device in described hardware components is used for the data for forwarding the communication between main frame, realizes between main frame Communication function.Netting twine in described hardware components is used to connect four host computer and interchanger, to complete local between main frame Net is built.
RTI software platforms in described software section are installed on four host computer, for connect each federal member and Bottom communication supports system, and important supporting role is played in whole analogue system.Master control in described software section into Member's unit is run on host A 1, is emulation system for controlling RTI execution, the startup of all federal member copyings The master control end of system.
Data processing member unit in described software section is also run on host A 1, for entering to information source data Row encapsulation and dispatch deal.Attaching frame sync mark member unit in described software section is run on host A 2, is used Attaching frame sync mark processing is carried out in the frame data stream sended over to host A 1, so as to form complete transmission frame data Stream.
Frame synchronization member unit in described software section is run on host B 1, for being sent to transmitting terminal Data flow be removed frame synchronization mark processing, recover the frame data stream of information source.
Data extraction member unit in described software section is run on host B 2, for being transmitted across to host B 1 The frame data stream come carries out information source data extraction function, recovers the initial data of information source.
Two kinds of business of packaging and bit stream that the present invention is directed in AOS systems are handled, its transmitting terminal and receiving terminal it is whole Respectively as shown in Figures 1 and 2, the structure of analogue system is as shown in figure 3, the present invention will two kinds of packaging and bit stream for body frame diagram Business integration carries out parallel processing together, is controlled by master control member.Wherein, data processing member is integrated with packing business Data encapsulation and scheduling feature inside business and bit stream service;Attaching frame sync mark member is integrated with to packaging and bit stream The attaching frame sync mark function of business information source data;Frame synchronization member is integrated with to packaging and bit stream service information source data Removal frame synchronization mark function;Data extraction member is integrated with the extraction work(to packaging and bit stream service information source data Energy.
Packaging is carried out integrated approach by the present invention with federal member corresponding to two kinds of business of bit stream, simplifies setting for module Meter, makes whole flow chart of data processing simpler, and the information source data of packaging and two kinds of business of bit stream can be handled simultaneously, Enhance the data processing function of system.When having text and image among multiple information sources, that is designed at present in some papers is imitative True system can only be handled successively, and efficiency comparison is low, and the analogue system of Patent design can be located parallel to it simultaneously Reason, efficiency are higher.
1) data processing member carries out space encapsulation processing to information source data first, obtains the space bag number of information source data According to stream, MPDU multiplexing process is secondly carried out, obtains the MPDU data flows of information source data, then carried out frame generation processing, obtain letter The frame data stream of source data, after the dispatch deal that the frame data streams of last information source data passes through pseudo channel, it is sent to additional Frame synchronization mark member;For bit stream service, data processing member carries out BPDU encapsulation process to information source data, obtains letter first The BPDU data flows of source data, frame generation processing is then carried out, obtains the frame data stream of information source data, the frame of last information source data After the dispatch deal that data flow passes through pseudo channel, attaching frame sync mark member is sent to.
2) attaching frame sync mark member is consistent with the effect in bit stream service in packaging, first to receiving Frame data stream be added frame synchronization mark processing, complete transmission frame is obtained, then by socket (Socket) biography Defeated frame is sent to going frame synchronization mark member.
3) frame synchronization member is in packaging and the effect in bit stream service and consistent, the transmission first to receiving Frame is removed frame synchronization mark processing, the frame data stream of each road information source is recovered, then by socket (Socket) frame Data flow sends to data and extracts member.
4) data extraction member, for packaging, MPDU extractions are carried out first, recover the MPDU data of information source data Stream, space bag extraction is then carried out, the space packet data streams of information source data is recovered, finally carries out information source data extraction, recover Go out original information source data.For bit stream service, data extraction member carries out BPDU extractions first, recovers information source data BPDU data flows, information source data extraction is then carried out, recovers original information source data.
Further, the step 1) is for packaging, as shown in figure 4, specifically including the following steps:
11) data in information source file are extracted to internal memory;
12) according to the requirement of hollow bag data cell format of AOS agreements, information source data are packaged into space bag data Stream;
13) according to the requirement of MPDU data unit formats in AOS agreements, information source data are packaged into MPDU data flows;
14) according to the requirement of virtual channel data unit member form in AOS agreements, information source data are packaged into frame data stream;
15) dispatching algorithm of First Come First Served is used, pseudo channel Zhong Ge roads frame data stream is sent same to additional frame Step mark member;
The step 1) is for bit stream service, as shown in figure 4, specifically comprising the following steps:
11) data in information source file are extracted to internal memory;
12) according to the requirement of BPDU data unit formats in AOS agreements, information source data are packaged into BPDU data flows;
13) according to the requirement of virtual channel data unit member form in AOS agreements, information source data are packaged into frame data stream;
14) dispatching algorithm of First Come First Served is used, pseudo channel Zhong Ge roads frame data stream is sent same to additional frame Step mark member.
Further, either packaging, or bit stream service, the step 11) are specially:
(1) calling character string class CString first, definition character string object, for storing the routing information of information source data, Secondly input stream class ifstream is called, definition input flow object, for connecting applying unit information source data, then defines shaping Queue, for storing information source data.
(2) in.open () is called to open information source file in a manner of binary first, secondly call function get () is obtained Data in information source file, then call function push_back () data got are deposited among queue.
(3) step (2) is set and circulated, until after the data in information source file are all extracted into queue, recalled Function close () closes information source file.
Further, it is specially for packaging, the step 12):
(1) the information source data that queue deqSource is used for storage package business are defined;Queue deqSMain is defined to be used to deposit Store up the leading header of space bag;Define the secondary top guide information that queue deqSVice is used for memory space bag;Define queue DeqSMainVice is used for the leading head of memory space bag and secondary top guide information;Define queue DeqSWhole and be used for storage enclosure Good single space bag data;Container space_Pool is defined to be used to store all space bag data units.
(2) call function insert () extracts the information source number of M byte from the queue that store packaging information source data According to, and insert it among queue deqSource.
(3) first, call function space_Pkg.setMainHead () installation space bags in queue deqSMain are dominated Header.Then, call function space_Pkg.setViceHead () pairs of installation space bag in queue deqSVice are led Header.
(4) first, call function space_Pkg.setMainViceHead () is by queue deqSMain and queue Data order in deqVMain is combined among queue deqSMainVice;Then, space_Pkg.SetWholePkg is called () combines the data order in queue deqSMainVice and tepSource among queue DeqSWhole, now queue Data in DeqSWhole are a complete space bag data units.
(5) data in queue DeqSWhole are inserted into container space_ by call function space_Pool.insert () Among Pool.
(6) step (2) to (5) is set and circulated, until the information source data in packaging are all extracted.
Further, it is specially for packaging, the step 13):
(1) define queue deqM and be used for memory space packet data streams;Queue deqMHead is defined to be used to store leading for MPDU Header;Queue deqMWhole is defined to be used to store single MPDU data cells;Container MPDU_Pool is defined to be used to store All MPDU data cells.
(2) first, call function insert () extracts N number of space bag data from container Space_Pool, and is inserted Enter among queue deqM;Then, call MPDU.setHead () that MPDU top guide information is set in queue deqMHead.
(3) call function MPDU.setWhole () exists the data order combination in queue deqMHead and queue deqM Among queue DeqMWhole.Now the data in queue DeqMWhole are a complete MPDU data cells.
(4) the MPDU data in queue DeqMWhole are inserted into container by call function MPDU_Pool.insert () Among MPDU_Pool.
(5) step (2) to (4) is set and circulated, until the space bag data in container space_Pool is all extracted.
Further, it is specially for packaging, the step 14):
(1) the MPDU data cells that queue deqV is used in storage package business are defined;Define queue deqFrameHead For storing VCDU frame head data;Define the postamble data that queue deqFrameEnd is used to store VCDU;Define queue DeqVWhole is used to store single VCDU frame data;Container VCDU_Pool is defined to be used to store all VCDU data cells.
(2) first, call function insert () extracts P MPDU data cell from container MPDU_Pool, and will extraction Data be inserted among queue deqV;Then, call function VCDU.setFreamHead () is in queue deqFreamHead Middle setting VCDU frame originating point information;Finally, call function VCDU.setFreamEnd () is set in queue deqFreamEnd VCDU trailer information.
(3) call function VCDU.setWhole () is by the number in queue deqFreamHead, deqV and deqFreamEnd According to sequential combination among queue deqVWhole.Now the data in queue deqVWhole are a complete VCDU data Unit.
(4) data of VCDU in queue deqVWhole are inserted into container by call function VCDU_Pool.insert () Among VCDU_Pool.
(5) step (2) to (4) is set and circulated, until the MPDU data cells in container MPDU_Pool are all carried Take.
Further, it is specially for packaging, the step 15):
Prerequisite variable dispatching algorithm is to select phase according to the sequencing that data frame reaches in each pseudo channel caching The pseudo channel answered takes physical channel, i.e., the pseudo channel that data frame first reaches preferentially takes physical channel.Packing business The concrete methods of realizing of prerequisite variable dispatching algorithm is under business:
(1) first, define an integer variable and be initialized as zero, the public money for each thread accesses in packaging Source, secondly, marking variable corresponding with each information source in packaging is defined, according to the size of its value, for identifying each road information source Data frame reach sequencing, then, calling system function CreateMutex () create a Mutex object.
(2) first, it is in the thread afterbody calling system function of each road information source, the function name respectively WaitForSingleObject (), allows the power used of its each thread request Mutex object, secondly, then is respectively written into and needs to protect Code:“index_pack++;" and " marking variable=index_pack ", then, calling system function ReleaseMutex () discharges access right of the current thread to Mutex object.
(3) size of marking variable is compared, the value of marking variable is smaller, illustrates the frame in its corresponding pseudo channel Data more first reach, and according to the order that marking variable is ascending, select corresponding pseudo channel to take physical channel successively, adjust Corresponding data frame is sent to packaging attaching frame sync with sendto () function and marks member.
Further, it is specially for bit stream service, the step 12):
(1) the information source data that queue deqBSource is used to store bit stream service are defined;Queue deqBHead is defined to be used for Store BPDU top guide information;Define queue deqBWhole and be used for the good individual bpdu data cell of storage enclosure;Due to container BPDU_Pool is used to store all BPDU data cells.
(2) call function insert () extracts the information source number of W bytes from the queue that store bit stream service information source data According to, and insert it among queue deqBSource;Then, call function BPDU.setHead () is in queue deqBHead Middle setting BPDU top guide information.
(3) call function BPDU.setWholePkg () is by the data order group in queue deqBSource and deqBHead Close among queue deqBWhole, now the data in queue deqBWhole are a complete BPDU data cells.
(4) BPDU data in queue deqWhole are put into container B PDU_ by call function BPDU_Pool.insert () Among Pool.
(5) step (2) to (4) is set and circulated, until the information source data in bit stream service are all extracted.
Further, for bit stream service, the step 13) and detailed process 14) are the same as the step 14) of packaging and step It is rapid 15).
Further, the step 2), as shown in figure 5, specifically comprising the following steps:
21) frame data stream sended over by Socket reception data processing members, and be deposited among queue;
22) sync mark code is added on the head of each frame data, obtains complete transmission frame;
23) complete transmission frame is sent to frame synchronization member by Socket;
Further, the step 21) is specially:
First, integer queue " deque is defined<int>FrameSource ", then, the call function in master unit Receivefrom (), the frame data stream sended over from data processing member is received, and the data received are put into team Among row frameSource.
Further, the step 22) is specially:
First, integer queue " deque is defined<int>SyncHead ", and call function syncHead.push_back (), Among frame swynchronization code storage is arrived into queue syncHead, secondly, queue " deque is defined<int>Sync_ASM ", and call function Among frame swynchronization code in queue syncHead is inserted into queue sync_ASM by sync_ASM.insert (), then, again Sync_ASM.insert () is called to extract the tail that a frame data are inserted into queue syncHead from queue frameSource Portion, so as to form a complete transmission frame.First two steps are set and circulated, until the data in queue FrameSource are carried Take complete, now, frame synchronization mark, which is inserted into, to be finished.
Further, the step 23) is specially:
Call function sendto () sends complete transmission frame data stream to the frame synchronization member of receiving terminal.
Further, the step 3), as shown in fig. 6, specifically comprising the following steps:
31) data sended over by Socket reception attaching frame sync mark members, and it is deposited into what is defined Among queue;
32) the sync mark code on each frame data head is removed, recovers frame data stream;
33) frame data stream that will be recovered by Socket, send to data and extract member;
Further, the step 31) is specially:
First, integer queue " deque is defined<int>Source ", then, the call function in master unit Receivefrom (), receive the transmission frame data stream sended over from attaching frame sync mark member, and the number that will be received According to being put among queue Source.
Further, the step 32) is specially:
Frame synchronization principle is to pass through the data frame code stream for comparing the frame synchronization mark being locally stored He receiving, emulation system System can identify the frame synchronization mark in data frame, and remove frame synchronization mark, so as to find the start bit of each data frame Put, realize frame synchronization function, concrete implementation step is as follows:
(1) shaping queue deque is defined<int>Temp, one complete transmission frame of extraction is put into from queue Source Among queue Temp.
(2) shaping queue deque is defined<char>SynHead, the frame synchronization mark of local is stored in this queue.So Call function FMS.FirstEnter () and function FMS.enterSearched () is identified and is removed frame synchronization mark afterwards.
(3) shaping queue deque is defined<char>SynedPOOL, the frame data after removal frame synchronization mark are stored in In this queue, in case subsequent treatment.
(4) circulation step (1) to (3), until the data in queue Source are extracted and finished.
Further, the step 33) is specially:
The frame data stream recovered is sent to data and extracts member by call function sendto ().
Further, the step 4), for packaging, as shown in fig. 7, specifically comprising the following steps:
41) data sended over by Socket reception frame synchronization members;
42) MPDU data cells are extracted from the frame data stream for the packaging Zhong Ge roads information source isolated, obtain each road The MPDU data flows of information source;
43) space bag data unit is extracted from the MPDU data flows of each road information source of packaging, obtains each road information source number According to space packet data streams;
44) original source data are extracted from the space packet data streams of each road information source of packaging, obtain each road information source Initial data;
Further, the step 4), for bit stream service, as shown in fig. 7, specifically comprising the following steps:
41) data that send over of frame synchronization member are received by Socket, and according to the difference of virtual channel identifier, Carry out pseudo channel point to use, different types of information source data in bit stream service are separated;
42) BPDU data cells are extracted from the frame data stream for the bit stream service Zhong Ge roads information source isolated, obtain bit stream The BPDU data flows of business Zhong Ge roads information source;
43) original source data are extracted from the BPDU data flows of each road information source of bit stream service, obtain the original of each road information source Beginning data;
Further, it is specially for packaging, the step 41):
Shaping queue deque is defined first<int>Frame, next call function receivefrom () in master unit, Receive the data that are sended over from frame synchronization member, and among the data received are put into queue Frame, then according to void Intend the difference of Channel Identifier, carry out pseudo channel point and use, different types of information source data in packaging are separated.
Further, it is specially for packaging, the step 42):
(1) queue deque is defined<int>VCDU_Pkg0 and MPDU0, call function VCDU_Pkg0.insert (), from team One data frame information of extraction is stored in VCDU_Pkg0 in row Frame.
(2) integer queue deque is defined<int>MPDU_POOL0, call function ProcessVCDU0.SetPkg (), from A MPDU data cell is extracted in queue VCDU_Pkg0 to be put into queue MPDU_POOL0.
(3) repeat step (1) and (2), until the data in queue Frame are all extracted.
Further, it is specially for packaging, the step 43):
(1) integer queue deque is defined<int>MPDU_Pkg0 and SP_POOL0, call function MPDU_Pkg0.insert (), one MPDU data cell of extraction is stored in queue MPDU_Pkg0 from queue MPDU_POOL0.
(2) call function ProcessMPDU0.SetPkg (), N number of space bag data list is extracted from queue MPDU_Pkg0 Member is put into queue SP_POOL0.
(3) repeat step (1) and (2), until the data in queue MPDU_POOL0 are all extracted.
Further, it is specially for packaging, the step 44):
(1) integer deque deque is defined<int>SP_Pkg0, call function SP_Pkg0.insert (), from queue A space bag data unit is extracted in SP_POOL0 to be stored in queue SP_Pkg0.
(2) define arrays DES_DATA0, call function ProcessSP0.SetPkg (), by hollow of queue SP_Pkg0 The valid data of bag are extracted in array DES_DATA0.
(3) repeat step (1) and (2), until the data in queue SP_POOL0 are all extracted.
Further, it is specially for bit stream service, the step 41):
Shaping queue deque is defined first<int>Frame_Bit, next call function receivefrom in master unit (), receives the data sended over from frame synchronization member, and among the data received are put into queue Frame_Bit, so Afterwards according to the difference of virtual channel identifier, carry out pseudo channel point and use, different types of information source data in bit stream service are entered Row separation.
Further, it is specially for bit stream service, the step 42):
(1) shaping queue deque is defined<int>VCDU_Pkg3 and BPDU_POOL0, call function VCDU_ Pkg3.insert (), a data frame is extracted from queue Frame_Bit, be stored in queue VCDU_Pkg3.
(2) integer queue deque is defined<int>BPDU_POOL0, call function ProcessVCDU3.SetPkg (), from A BPDU data cell is extracted in queue VCDU_Pkg3, and is deposited into queue BPDU_POOL0.
(3) repeat step (1) and (2), until the data in queue Frame_Bit are all extracted.
Further, it is specially for bit stream service, the step 43):
(1) integer deque deque is defined<int>BP_Pkg0, call function BP_Pkg0.insert (), from queue A BPPDU data cell is extracted in BPDU_POOL0 to be stored in queue BP_Pkg0.
(2) define arrays DES_DATA1, call function ProcessBP1.SetPkg (), by BPDU in queue BP_Pkg0 Valid data extract in array DES_DATA1.
(3) repeat step (1) and (2), until the data in queue BPDU_POOL0 are all extracted.
Master control member:Master control member is the control terminal of whole analogue system, is responsible for control and starts whole analogue system. After the simulated program for successfully starting up RTI software platforms and all federal members, the operation of master control member as shown in Figure 8 is obtained Surface chart.In concrete operations, " adding federal " button first, is clicked on, is sent to RTI and adds federal request, RTI responses please Ask and add master control member federal;Secondly, after other federal members add federation, click on " startup analogue system " and press Button, the operational support system, OSS RTI of analogue system is opened, make to interact between member;Then, " startup " button is clicked on, you can Open the data processing function of analogue system.
Transmitting terminal:Five kinds of different types of information sources, respectively 8 bit random sources, 16 bit random sources, text are selected This information source, still image information source and voice signal information source.Wherein, 8 bit random sources, 16 bit random sources and text information source Packaging is selected, still image information source and voice signal information source have selected bit stream service, and information source data are processed into data Handling process inside member is as shown in Figure 1:For 8 bit random sources, 16 bit random sources, text information source, enter first The encapsulation processing of row space, obtains the space packet data streams of each information source data, secondly carries out MPDU multiplexing process, obtain each information source The MPDU data flows of data, for still image information source and voice signal information source, BPDU encapsulation process are carried out first, obtains each letter The BPDU data flows in source, then, five tunnel information sources proceed by frame generation processing, obtain the frame data stream of five tunnel information sources, finally, five The frame data stream of road information source sends to attaching frame sync by virtual channel schedule and marks member, operation circle of data processing member Face is as shown in Figure 9.
The internal processes of attaching frame sync mark member are as shown in Figure 5:Receive first and come from data processing member The data sended over, attaching frame sync mark processing is then carried out, so as to obtain complete transmission frame, wherein, the frame of selection Sync mark is EB90, and binary form is " 1110101110010000 ", and will transmit frame data finally by Socket sends To frame synchronization mark member, the runnable interface of attaching frame sync mark member is as shown in Figure 10.
Receiving terminal:The internal processes of frame synchronization member are as shown in Figure 6:Receive and marked from attaching frame sync first The data that member sends over, then carry out frame synchronization mark and handle, recover the frame data stream of each information source of transmitting terminal, frame is same The runnable interface of step mark member is as shown in Figure 11.
The internal processes of the information source data person of being extracted into are as shown in Figure 7:Receive and sent from frame synchronization member first The data flow to come over, pseudo channel point processing is then carried out, the data of five tunnel information sources are obtained, for the data flow of packaging MPDU extractions are first carried out, recover information source data MPDU data cells, then carry out space bag extraction, recover the sky of information source data Between bag data unit;BPDU extractions are then carried out for the data flow of bit stream service, recover the BPDU data cells of information source data. Then five tunnel information sources carry out information source data extraction, finally recover five kinds of different types of original source data, data are extracted into The runnable interface of member is as shown in Figure 12.
It is design science of the present invention, reasonable, original, compact-sized, tight, it is reliable and stable, it is easy to operate, have it is stronger Practicality, the communication simulation of suitable AOS spatial informations economic and practical, of the invention.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.For the side of the application For method embodiment, because it is substantially similar to device embodiment, so description is fairly simple, related part is real referring to device Apply the part explanation of example.
Many details are elaborated in the above description in order to fully understand the present invention.But above description is only Presently preferred embodiments of the present invention, the invention can be embodied in many other ways as described herein, therefore this Invention is not limited by specific implementation disclosed above.Any those skilled in the art are not departing from the technology of the present invention simultaneously In the case of aspects, all technical solution of the present invention is made using the methods and technical content of the disclosure above many possible Changes and modifications, or it is revised as the equivalent embodiment of equivalent variations.Every content without departing from technical solution of the present invention, according to this The technical spirit of invention still falls within skill of the present invention to any simple modifications, equivalents, and modifications made for any of the above embodiments In the range of the protection of art scheme.

Claims (8)

1. a kind of AOS distributed communication analogue systems based on HLA-RTI, including data processing member unit, attaching frame sync Mark member unit, frame synchronization member unit and data extraction member unit, it is characterised in that:
Data processing member unit, for packaging, for information source data to be carried out with space encapsulation processing first, obtain letter The space packet data streams of source data, MPDU multiplexing process is secondly carried out, the MPDU data flows of information source data is obtained, then carries out frame Generation is handled, and obtains the frame data stream of information source data, the dispatch deal that the frame data streams of last information source data passes through pseudo channel Afterwards, it is sent to attaching frame sync mark member;For bit stream service, data processing member carries out BPDU first to information source data Encapsulation process, the BPDU data flows of information source data are obtained, then carry out frame generation processing, obtain the frame data stream of information source data, After the dispatch deal that the frame data stream of last information source data passes through pseudo channel, it is single to be sent to attaching frame sync mark member Member;
Attaching frame sync marks member unit, and it is consistent with the effect in bit stream service in packaging, first to receiving To frame data stream be added frame synchronization mark processing, obtain complete transmission frame, then transmission frame sent out by socket Deliver to frame synchronization member unit;
Frame synchronization member unit, it is in packaging and the effect in bit stream service and consistent, the biography first to receiving Defeated frame is removed frame synchronization mark processing, the frame data stream of each road information source is recovered, then by socket frame data stream Send to data and extract member unit;
Data extract member unit, for packaging, for carrying out MPDU extractions, recover the MPDU data of information source data Stream, space bag extraction is then carried out, the space packet data streams of information source data is recovered, finally carries out information source data extraction, recover Go out original information source data;Wherein, BPDU extractions are carried out first, recover information source number for bit stream service, data extraction member According to BPDU data flows, then carry out information source data extraction, recover original information source data.
2. analogue system according to claim 1, it is characterised in that also including master control member unit, it is entirely to emulate The control terminal of system, for controlling and starting whole analogue system.
3. analogue system according to claim 1, it is characterised in that the data processing member unit is in processing packing business During business, comprise the following steps:
11) data in information source file are extracted to internal memory;
12) according to the requirement of hollow bag data cell format of AOS agreements, information source data are packaged into space packet data streams;
13) according to the requirement of MPDU data unit formats in AOS agreements, information source data are packaged into MPDU data flows;
14) according to the requirement of virtual channel data unit member form in AOS agreements, information source data are packaged into frame data stream;
15) dispatching algorithm of First Come First Served is used, pseudo channel Zhong Ge roads frame data stream is sent to attaching frame sync mark Remember member.
4. analogue system according to claim 1, it is characterised in that the data processing member unit is in processing bit stream industry During business, comprise the following steps:
11) data in information source file are extracted to internal memory;
12) according to the requirement of BPDU data unit formats in AOS agreements, information source data are packaged into BPDU data flows;
13) according to the requirement of virtual channel data unit member form in AOS agreements, information source data are packaged into frame data stream;
14) dispatching algorithm of First Come First Served is used, pseudo channel Zhong Ge roads frame data stream is sent to attaching frame sync mark Remember member.
5. analogue system according to claim 1, it is characterised in that the attaching frame sync marks member unit, specifically For:
21) frame data stream sended over by Socket reception data processing members, and be deposited among queue;
22) sync mark code is added on the head of each frame data, obtains complete transmission frame;
23) complete transmission frame is sent to frame synchronization member by Socket.
6. analogue system according to claim 1, it is characterised in that the frame synchronization member unit, be specifically used for:
31) data sended over by Socket reception attaching frame sync mark members, and it is deposited into the queue defined Among;
32) the sync mark code on each frame data head is removed, recovers frame data stream;
33) frame data stream that will be recovered by Socket, send to data and extract member.
7. analogue system according to claim 1, it is characterised in that the data extraction member unit is in processing packing business During business, comprise the following steps:
41) data sended over by Socket reception frame synchronization members;
42) MPDU data cells are extracted from the frame data stream for the packaging Zhong Ge roads information source isolated, obtain each road information source MPDU data flows;
43) space bag data unit is extracted from the MPDU data flows of each road information source of packaging, obtains each road information source data Space packet data streams;
44) original source data are extracted from the space packet data streams of each road information source of packaging, obtain the original of each road information source Data.
8. analogue system according to claim 1, it is characterised in that the data extraction member unit is in processing bit stream industry During business, comprise the following steps:
41) data sended over by Socket reception frame synchronization members, and according to the difference of virtual channel identifier, carry out Pseudo channel point is used, and different types of information source data in bit stream service are separated;
42) BPDU data cells are extracted from the frame data stream for the bit stream service Zhong Ge roads information source isolated, obtain bit stream service The BPDU data flows of Zhong Ge roads information source;
43) original source data are extracted from the BPDU data flows of each road information source of bit stream service, obtain the original number of each road information source According to.
CN201710770521.9A 2017-08-31 2017-08-31 A kind of AOS distributed communication analogue systems based on HLA RTI Pending CN107566106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710770521.9A CN107566106A (en) 2017-08-31 2017-08-31 A kind of AOS distributed communication analogue systems based on HLA RTI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710770521.9A CN107566106A (en) 2017-08-31 2017-08-31 A kind of AOS distributed communication analogue systems based on HLA RTI

Publications (1)

Publication Number Publication Date
CN107566106A true CN107566106A (en) 2018-01-09

Family

ID=60978469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710770521.9A Pending CN107566106A (en) 2017-08-31 2017-08-31 A kind of AOS distributed communication analogue systems based on HLA RTI

Country Status (1)

Country Link
CN (1) CN107566106A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039423A (en) * 2018-06-28 2018-12-18 上海卫星工程研究所 AOS data frame structure and its solution frame method suitable for low signal-to-noise ratio channel
CN110049020A (en) * 2019-03-27 2019-07-23 中国科学院国家空间科学中心 A kind of CCSDS AOS protocol data real-time processing method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750871A (en) * 2015-04-20 2015-07-01 哈尔滨工业大学 Field programmable gate array (FPGA) based Advanced Orbiting Systems (AOS) satellite data transmission valid data area extraction system and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750871A (en) * 2015-04-20 2015-07-01 哈尔滨工业大学 Field programmable gate array (FPGA) based Advanced Orbiting Systems (AOS) satellite data transmission valid data area extraction system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周雅芳: "基于HLA-RTI的AOS多信源链路层发送仿真***研究", 《中国优秀硕士学位论文全库,工程科技Ⅱ辑》 *
韩琪,等: "基于HLA-RTI的AOS卫星节点链路层发射仿真***设计", 《数字技术与应用》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039423A (en) * 2018-06-28 2018-12-18 上海卫星工程研究所 AOS data frame structure and its solution frame method suitable for low signal-to-noise ratio channel
CN110049020A (en) * 2019-03-27 2019-07-23 中国科学院国家空间科学中心 A kind of CCSDS AOS protocol data real-time processing method and system
CN110049020B (en) * 2019-03-27 2022-01-25 中国科学院国家空间科学中心 CCSDS AOS protocol data real-time processing method and system

Similar Documents

Publication Publication Date Title
CN106788855B (en) A kind of the optical transfer network bearing method and device of flexible Ethernet service
CN109639679B (en) Space-based measurement and control data transmission method suitable for Beidou short messages
CN105245301B (en) A kind of airborne optical-fiber network analogue system based on time triggered
CN107566106A (en) A kind of AOS distributed communication analogue systems based on HLA RTI
EP1746752A3 (en) Communication control apparatus for performing a synchronisation process and method thereof
CN111565113B (en) Flexible Ethernet network topology abstraction method and system for SDN controller
CN102208955B (en) Networked satellite tracking telemetry and command method and system
CN102291745A (en) Method and device for testing multiple access points (AP)
CN102983939B (en) A kind of upstream data communication method for spacecraft multilevel subnetwork
CN102685914A (en) Scheduling and multiplexing method and device for logical channels
CN105515638A (en) Satellite-borne multi-load data frame transmission device and method
CN108400811A (en) Spacelab information system based on advanced onboard processing method
WO2000072601A3 (en) Method and system for transmitting media streams over a variable bandwidth network
CN110267356A (en) A kind of digital movie distribution projection system based on 5G network
CN106657020A (en) Gateway protocol conversion testing system facing air and space communication
CN102143185A (en) Data transmission method and data transmission device
CN108023835A (en) Data sending, method of reseptance and device, ONU, OLT
CN106375276A (en) Authenticating communications
CN102821159A (en) Distributed simulation system for deep space communication
CN105680928B (en) Large capacity check-in signal captures and processing method and system
WO2002011327A3 (en) Data providing system, method and computer program
CN109302685A (en) A kind of launching site moonlet remote testing data processing method
CA2230184A1 (en) Method and apparatus for playing a game of chance over a computer network
CN106571865B (en) Telemetry data access transmission method of satellite constellation
CN107645450A (en) Flow table virtualization apparatus and method based on agreement unaware retransmission technique

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180109