RBCCTC应用层接口规范Word文档格式.docx
《RBCCTC应用层接口规范Word文档格式.docx》由会员分享,可在线阅读,更多相关《RBCCTC应用层接口规范Word文档格式.docx(58页珍藏版)》请在冰豆网上搜索。
3.2.Connectionsupervision连接监控24
3.3.DualRBChandling/RBC主备处理25
3.4.CTC-RBC接口服务器主备处理DualCTC-RBCInterfaceServerhandling27
3.5.CommandMessages命令信息27
Summary概述
1.1.Purpose目的
ThisdocumentdefinestheRBC/CTCinterfaceapplicationlayerinWGDPL.
本文档定义了武广客运专线RBC/CTC接口应用层。
RBC/CTCinterfacereferstothefollowinginterfaces:
RBC/CTC接口指以下接口:
RBCcentralCTC
RBC和CTC中心
RBCCSM
RBC和CSM
Intherestofthedocument,‘CTC’referstoalloftheaboveinterfaces.
在以后的文档中,“CTC”指以上这些所有的接口。
1.2.Definitionsandabbreviation定义及缩写
CTCCentralizedTrafficControl调度集中
RBCRadioBlockCenter无线闭塞中心
ILInterlocking联锁
TCCTrainControlCenter列控中心
TSRTemporarySpeedRestriction临时限速
CSMCentralizedSignalingMonitoringsystem集中监测系统
VIAVariousInterfaceAdapter通用接口适配器(RBC设备)
L_RBC_TLocalRBCTerminalRBC本地终端
1.3.RBC/CTC系统连接RBC/CTCConnection
BombardiersuppliestheRBCandLocalRBCTerminal.TheCTCandCSMaresuppliedbytheCRSC.ThecentralCTCsystemcommunicateswiththeRBCthroughtheCTC-RBCInterfaceServerwhichconnectswiththeVIAandthecommunicationbasesonEthernet.TheCTC-RBCInterfaceServerisdualconfigurationandconnectswithseveralVIAs.
RBC系统(包括RBC本地终端)由庞巴迪提供,CTC和CSM系统由通号公司提供,CTC系统通过CTC-RBC接口服务器(属CTC系统设备)和RBC系统的VIA设备通信,设备之间基于以太网通信。
CTC-RBC接口服务器为双套配置,可同时和多套VIA相连。
WhenthemessageistransmittedfromCTCtoRBC,CTCsendthemessagetoconfiguredVIAs,itisVIAfunctionalitytodecidewhichRBCshallprocessthisinputmessage.
CTC向RBC传送消息时,直接将消息发送给所有的VIA,由VIA来决定发给哪些RBC。
Figure1IL/RBC/VIA/CTCSystemArchitecture
图0IL/RBC/VIA/CTC系统连接
图1RBC/CTC系统连接
Figure2RBC/CTCSystemConnection
1.4.ReferenceDocuments参考文件
3NSS008253D0008EbiScreenInterProcessCommunications
3NSS008253D0008EbiScreen进程间通信(庞巴迪关于CTC-RBC相关传输层和安全层描述)
ContentsofCommunication通信内容
Alldatainmessagesisinlittleendianbyteorder(leastsignificantbytefirst).
信息中所有的数据都是以little-endian的顺序排列的(最低有效字节优先)。
1.5.MessageStructure信息格式
Accordingtoreference(3NSS008253D0008),themessagestructureofRBC/CTCinterfaceisdefinedasthetable1.
根据参考文件(3NSS008253D0008)文档规定,RBC/CTC接口信息格式如表1。
Table1MessagestructureofRBC/CTCI/F
表1RBC/CTC接口信息格式
Field字段
Size长度
(bytes字节)
Description描述
SN序号
4
TheSNisarunningnumberintheCTCtorecogniseVIAacknowledgement.WhentheVIAhasrespondedwiththesameSN,themessagehasbeenreceivedcorrectlyintheVIA.
SN为在CTC内部连续的数字,用于确认VIA消息的接收。
当VIA回应的消息中为相同的SN时,则认为此消息已经被VIA正确地接收了。
Messagesequencenumber
消息序列号
ACK应答
Whenamessageshasbeenreceivedcorrectlyandaccepted,anACKshallbesent.
当一条消息正确接收后,ACK即被发送
Acknowledgemessagesequencenumber(nextexpectedmessageSN)
确认应答消息序列号(下一预期消息序列号)
ConnectionID/连接ID
Randomconnectionidentificationnumber.
连接随机标识码
Type类型
2
Messagetype
消息类型,此字段主要表示此消息是是否是Message、SYN、ACK、FIN消息,参考2007文档中的table4-5和table4-6
SecureHeader安全报头
Lengthofsecuritypayload.
安全有效载荷长度
DataLength数据长度
Lengthofdataarea
数据区长度
Timestamp时间标记
Timestamp(time_t),1secondresolution
时间戳(time_t),分辨率1秒
SecurityData安全数据
20
RIPE-MD-160hashvalue
RIPE-MD-160hash值
DataArea数据区
DependonDatalength
根据数据长度
Dataarea(IPCmessagesasdefinedinTable2IPCheadermessage)
数据区(IPC消息定义见表2的IPC报头)
Table2IPCmessageheader
表2IPC信息帧头部
Size长度
HEADER_VERSION1
报头-版本1
2
Always0xfafa
总是0xfafa
SAVED_VERSION1_DATA
保存-版本1-数据
Placetostoremodifieddatainmessage,afterithasbeensigned.
在信息被签署之后,储存修正数据。
CTC-RBCApplicationLayerprotocolversion.Guaranteetwosidesusethesameprotocol.
CTC-RBC应用层协议版本,以保证双方使用同一版本的协议
MESSAGE_CLASS
消息-种类
Messageclassinformation,fieldCLASSinTable4-2indocument3NSS008253D0008
消息种类信息,见3NSS008253D0008文档4-2表
PURE_MESSAGE_TYPE
纯-消息-类型
IPCmessagetype,fieldTYPEintable2-2indocument3NSS008253D0008
消息类型,见3NSS008253D0008文档4-2表TYPE栏
HASH_SEED
4
Usedasachancing“salt”
使用随机的,如“salt”
TOTAL_LENGTH
总-长度
Messagelength,includesallfieldsinthemessage.
信息长度,包括信息中所有项
SEQ_NO序号
Sequencenumbergivenbyapplication
应用程序给出的序号
HEADER_VERSION2
报头-版本2
Always0x5a5a
总是0x5a5a
CHANNEL_ID
通道-ID
Reservedforfuture
预留
EVENT_ORDER_TIME_HI
事件_顺序_时间_高
EVENT_ORDER_TIME_LO
事件_顺序_时间_低
RECEIVER接收方
Receiver,either0(broadcast),1(toclient)orIPCID(specificapplicationinserver)
接收方,0为广播,1为客户端或者IPCID(服务器特定应用程序)
LENGTH长度
Dataarealengthinbytes,0…20.000
数据区域长度,0-20.000
IPC_TYPE
IPC-类型
IPCmessagestype,seethenexttable3
IPC消息类型,见下面的表3
SENDER发送方
SenderIPCID
发送方IPCID
DATAArea数据区
DependonDatalength根据数据长度
Applicationleveldata,0…20.000bytes,startfromthesection2.2
应用层数据,0..20.000字节,从2.2章节开始
MD4
16
MD4hashcode
MD4hash码
Notereference[1](3NSS008253D0008)willcontaininmoredetaillevelinformationonthesemessageheadersandhowtoopenandclosetheconnection.
参考文献[1](3NSS008253D0008)中,在这些信息桢头部将包含更多层级的详细信息,以及如何打开和关闭它们之间的连接。
MessageTypefieldhasthefollowingpossiblevalues:
消息类型域中可能有以下这些值:
Table3IPC_TYPEmessagetypes
表3IPC_TYPE中的消息类型
Message消息
Messageclass(bits12...15)/消息级别(比特12...15)
Type(bits0..11)/类型(比特0..11)
CTC_OPEN_CONN
OPEN_SESSION
(2)
1000
OpenconnectionbetweenCTCandRBC
打开CTC和RBC之间的连接
CTC_CLOSE_CONN
CLOSE_SESSION(3)
CloseconnectionbetweenCTCandRBC
关闭CTC和RBC之间的连接
CTC_DATA
SESSION_ID(4)
1001
MessaagecontainingdatafromCTC
从CTC发送的应用数据
CTC_RBC_DATA
1002
MessagecontainingdatafromRBC
从RBC发送的应用数据
1.6.Applicationmessageheader应用消息头
Everyapplicationmessageswillhavethefollowingheader
每一个应用层消息都必须有以下的消息头。
Table4Applicationmessageheader
表4应用消息头
SessionId会话ID
Always1,usedbyRBCtoidentifyconnection
固定为1,用于RBC识别连接
MessageType消息类型
Messagesubtype
消息子类型
Messagesubtypesare:
消息子类型包括以下这些:
OpenConnection打开连接1
CloseConnection关闭连接2
ConnectionCheck检查连接3
ConnectionStatus连接状态4
EmergencyStopCommand紧急停车命令8
TrainStatusRequest列车状态请求10
StaticTrainsStatus静态列车状态11
DynamicTrainStatus动态列车状态12
AlarmMessage报警信息13
TextMessage文本信息14
ContextIDResponse操作响应15
IndicationMessage指示消息16
1.7.OpenConnection建立连接
DirectionCTC->
RBC
方向CTC->
ThismessageisusedtoopentheconnectionCTCandRBC.
用于CTC和RBC之间打开连接。
Table5OpenConnection
表5建立连接
Size大小
(bytes)
System系统
1
ConnectionopenedbyCTC(0)orCSM
(2)
连接打开方式:
CTC0
CSM2
ServerID服务器ID
ServerID服务器ID:
∙singleserversystem单服务器系统(0)
∙HotstandbyserverA热备服务器1
(1)
∙HotstandbyserverB热备服务器2
(2)
workingmode工作模式
Online(0),standby
(1)
主机0;
备机1
1.8.CloseConnection关闭连接
Thismessagedoesnothaveanydata.
此消息无数据
ThismessageisusedtoclosetheconnectionCTCandRBC.
用于CTC和RBC之间关闭连接。
1.9.ConnectionCheck连接检查
ThismessageisusedtosupervisetheapplicationlevelconnectionbetweenCTCandRBC,CTCsystemalsousesthismessagetoinformitsownworkingstatus(onlineorstandby)toRBC/VIA,theonlineoneandstandbyonebothsenditsownstatustoRBC/VIA.CTCwillsendthismessagecyclically(.g..onceper10seconds),RBCwillrespondwithConnectionStatusmessage
用于监测CTC和RBC之间的应用层连接,同时CTC通过此信息向RBC/VIA报告CTC-RBC接口服务器的主备机状态,CTC-RBC接口服务器的主备机均发送此信息。
CTC循环发送此信息(如每10秒),RBC以ConnectionStatus消息响应。
Table6ConnectionCheck
表6连接检查
Activaterequest激活请求
Activaterefreshrequestif1,otherwise0.
激活刷新请求1;
否则0
1.10.ConnectionStatus连接状态
DirectionRBC->
CTC
方向RBC->
ThismessageisusedtosupervisetheapplicationlevelconnectionbetweenCTCandRBC,RBCalsousesthismessagetoinformitsownworkingstatustoCTCsystem.RBCwillsendthismessagewhenitreceivesConnectioncheckmessage.
用于监测CTC和RBC之间的应用层连接,同时RBC可利用此消息向CTC报告其自身设备工作状态。
当收到ConnectionCheck消息时,RBC应发送此信息。
Table7ConnectionStatus
表7连接状态
Refreshrequeststate
刷新请求状态
Refreshrequeststarted
(1),refreshrequestdone
(2),norefreshrequestactive(0)
刷新请求开始1;
刷新请求结束2;
无刷新请求激活0
VIAleftmode
VIA左侧模式
Online(0),standby
(1),offline
(2)
主机0;
备机1;
掉线2
VIArightmode
VIA右侧模式
1.11.紧急停车命令EmergencyStopCommand
信息方向:
CTCRBC
Direction:
Inthecaseemergency,CTCdispatchercansendUEManytime.CEMisaninternalRBCfunction.
CTC调度员可随时发送UEM命令,CEM是RBC内部功能(无需CTC调度员发送)。
Note:
RBCacceptsRevokeofEmergencystopcommandwhichisusedtorevokeemergencystopofspecifictrainwhichhasbeenstopped.
注:
RBC接受紧急停车撤销指令,该指令被用来撤