Movatterモバイル変換


[0]ホーム

URL:


CN103888293B - Data channel scheduling method of multichannel FC network data simulation system - Google Patents

Data channel scheduling method of multichannel FC network data simulation system
Download PDF

Info

Publication number
CN103888293B
CN103888293BCN201410064364.6ACN201410064364ACN103888293BCN 103888293 BCN103888293 BCN 103888293BCN 201410064364 ACN201410064364 ACN 201410064364ACN 103888293 BCN103888293 BCN 103888293B
Authority
CN
China
Prior art keywords
message
data
dma
channel
frame
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
CN201410064364.6A
Other languages
Chinese (zh)
Other versions
CN103888293A (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of ChinafiledCriticalUniversity of Electronic Science and Technology of China
Priority to CN201410064364.6ApriorityCriticalpatent/CN103888293B/en
Publication of CN103888293ApublicationCriticalpatent/CN103888293A/en
Application grantedgrantedCritical
Publication of CN103888293BpublicationCriticalpatent/CN103888293B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses a data channel scheduling method of a multichannel FC network data simulation system, comprising that: a standard FIFO port is provided by configuring a plurality of asynchronous printed circuit boards on one side of a PCIE management module of an FC network data simulated card, a DMA caching module is configured on each channel of one side of a PC, and the DMA caching module realizes bidirection multichannel transmission of the asynchronous printed circuit board FIFO and the PC through the PCIE management module. As a result, that a plurality of optical ports are arranged on the FC simulation card can be realized, which reduces the cost for information multichannel transmission and supports the port redundant.

Description

Translated fromChinese
多通道FC网络数据仿真系统的数据通道调度方法Data Channel Scheduling Method for Multi-channel FC Network Data Simulation System

技术领域technical field

本发明属于网络通信技术领域,更为具体地讲,涉及一种多通道FC网络数据仿真系统的数据通道调度方法。The invention belongs to the technical field of network communication, and more specifically relates to a data channel scheduling method of a multi-channel FC network data simulation system.

背景技术Background technique

随着综合化的深入,采用统一的光互联网络成为航空电子系统内部互联的必然趋势。机载光纤通道(Fiber Channel,FC)网络以其高可靠、低成本、高速率、实时性强、可扩展性好等优点成为机载航电网络设计的主流选择。机载光纤网络技术将在航空电子领域得到了更广泛的应用。With the deepening of integration, the use of a unified optical interconnection network has become an inevitable trend for the internal interconnection of avionics systems. Airborne Fiber Channel (FC) network has become the mainstream choice for airborne avionics network design due to its advantages of high reliability, low cost, high speed, strong real-time performance, and good scalability. Airborne optical fiber network technology will be more widely used in the field of avionics.

目前,世界上许多公司和科研单位,如IBM、HP、DELL、Brocade、Qlogic、华为等,都参与了基于光纤通道协议的一系列设备的研究和开发,并且已经开发出了许多已经被广泛应用的产品,如Brocade公司已经开发了多款基于FC协议的光纤通道交换机,Qlogic公司开发出的HBA卡等。但是,这些设备和产品大多针对存储局域网的应用,无法适应航空电子环境下的应用。即使是国外的一些针对FC协议的通用功能产品,也无法满足国内研究和开发的实际使用需求,且无法支持需要的后续开发。因此,迫切需要支持航空电子环境下应用的FC仿真系统。At present, many companies and scientific research institutes in the world, such as IBM, HP, DELL, Brocade, Qlogic, Huawei, etc., have participated in the research and development of a series of equipment based on the Fiber Channel protocol, and have developed many widely used For example, Brocade has developed a variety of fiber channel switches based on FC protocol, and HBA cards developed by Qlogic. However, most of these devices and products are aimed at the application of the storage area network, and cannot adapt to the application in the avionics environment. Even some foreign products with general functions for the FC protocol cannot meet the actual use needs of domestic research and development, and cannot support the required follow-up development. Therefore, there is an urgent need for a FC simulation system that supports applications in the avionics environment.

在航电网络中,各终端设备运行产生的各种消息包括紧急消息、周期消息、事件消息、流数据消息等共同构成航电网络系统中的业务数据,在各个系统和子系统之间实现高速、可靠的实时通信。机载FC网络数据仿真系统主要用于模拟机载终端设备的功能,实现满足FC-AE-ASM协议的FC网络数据的发送和接收,并支持FC总线网络通信系统的时钟管理和网络管理的控制功能。它通过便捷的配置可灵活地模拟不同类型的端口发送和接收数据,完成各种机载设备的半实物仿真,提供与此相关的地面仿真调试环境,模拟实现系统中各节点间的通信互连,是对机载FC航电网络系统进行综合验证的有效工具。In the avionics network, various messages generated by the operation of each terminal equipment, including emergency messages, periodic messages, event messages, stream data messages, etc., together constitute the business data in the avionics network system, and realize high-speed, Reliable real-time communication. The airborne FC network data simulation system is mainly used to simulate the functions of airborne terminal equipment, realize the transmission and reception of FC network data meeting the FC-AE-ASM protocol, and support the clock management and network management control of the FC bus network communication system Features. It can flexibly simulate different types of ports to send and receive data through convenient configuration, complete the half-physical simulation of various airborne equipment, provide a related ground simulation debugging environment, and simulate the communication and interconnection between nodes in the system , is an effective tool for comprehensive verification of the airborne FC avionics network system.

如图1所示,FC网络数据仿真系统由硬件FC网络数据仿真卡和软件FC网络数据仿真软件组成。硬件部分—FC网络数据仿真卡实现FC网络数据的高效传输,并以PCI-Express总线方式实现与PC的高速通信;软件部分—FC网络数据仿真系统软件运行在PC平台上,主要任务是模拟机载环境中的各种业务数据,根据用户要求进行组帧、封装、发帧、收帧等。FC网络数据仿真系统软硬件协调工作共同完成FC协议数据的发送和接收。其中发送过程主要包括消息在软件层封装为FC帧,底层PCIE驱动再把FC帧打包成符合PCIE协议传输的TLP包传给PCIE接口,通过DMA的方式,板卡上收到数据,再将TLP包解析成FC帧放入缓存,经过FC数据处理模块形成满足FC协议的数据流,并经过电光信号转换发送到光纤通道上;接收过程主要包括板卡上收到光纤通道上传来的FC帧,将其封装成符合PCIE协议传输的TLP包传给电脑主机,然后电脑上的仿真软件解析TLP包将其还原成标准的FC帧。As shown in Figure 1, the FC network data simulation system consists of hardware FC network data simulation card and software FC network data simulation software. The hardware part—the FC network data simulation card realizes the efficient transmission of FC network data, and realizes the high-speed communication with the PC through the PCI-Express bus; the software part—the FC network data simulation system software runs on the PC platform, and the main task is to simulate the Various business data in the load environment, and perform framing, encapsulation, frame sending, and frame receiving according to user requirements. The software and hardware of the FC network data simulation system work together to complete the sending and receiving of FC protocol data. The sending process mainly includes encapsulating messages into FC frames at the software layer, and the underlying PCIE driver packages the FC frames into TLP packets that conform to the PCIE protocol transmission and sends them to the PCIE interface. The packet is parsed into FC frames and placed in the cache, and the data flow that meets the FC protocol is formed through the FC data processing module, and then sent to the fiber channel through electro-optical signal conversion; the receiving process mainly includes receiving the FC frame uploaded by the fiber channel on the board, Encapsulate it into a TLP packet that conforms to the PCIE protocol and transmit it to the host computer, and then the simulation software on the computer analyzes the TLP packet and restores it to a standard FC frame.

通常,在航电网络中每个终端节点需要配置有多个端口,若采用多块分立的单端口机载FC网络数据仿真卡组合实现多通道数据传输,在网络布局上实现难度较大,重量和成本增加。Usually, in the avionics network, each terminal node needs to be configured with multiple ports. If multiple discrete single-port airborne FC network data emulation cards are combined to realize multi-channel data transmission, it will be difficult to implement in network layout, and the weight and cost increases.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,提供一种多通道FC网络数据仿真系统的数据通道调度方法,以实现仿真系统内部的多个通道数据的选择和读写操作,从而能够在一张FC仿真卡上实现多个数据通道的并行传输。The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a data channel scheduling method for a multi-channel FC network data simulation system, so as to realize the selection and read and write operations of multiple channel data inside the simulation system. The parallel transmission of multiple data channels is realized on the FC emulation card.

为实现上述发明目的,本发明一种多通道FC网络数据仿真系统的数据通道调度方法,其特征在于,包括以下步骤:In order to realize the foregoing invention object, a kind of data channel dispatching method of multi-channel FC network data emulation system of the present invention is characterized in that, comprises the following steps:

(1)、多通道FC网络数据仿真系统的端口初始化:(1) Port initialization of the multi-channel FC network data simulation system:

(1.1)、通过多通道FC网络数据仿真软件获取到FC网络数据仿真卡设备句柄和仿真卡支持的端口数目;(1.1) Obtain the device handle of the FC network data emulation card and the number of ports supported by the emulation card through the multi-channel FC network data emulation software;

(1.2)、多通道FC网络数据仿真软件从FC网络数据仿真卡获得由系统设计决定的端口配置方案文件,所述的端口配置方案文件内容包括端口ID、发送通信表和接收通信表,并根据通信表分配计算机内存资源;(1.2), the multi-channel FC network data simulation software obtains the port configuration scheme file determined by the system design from the FC network data simulation card. The content of the port configuration scheme file includes the port ID, the sending communication table and the receiving communication table, and according to The communication table allocates computer memory resources;

(2)、多通道FC网络数据仿真系统发送数据:(2), multi-channel FC network data simulation system sends data:

(2.1)、将发送的数据送入到消息发送队列中;消息生成后,通过查询端口的发送通信表,将发送数据封装成标准的FC帧,再根据查询到的端口ID和消息类型把封装后的FC帧送入到发送消息队列中;(2.1), send the sent data into the message sending queue; after the message is generated, by querying the sending communication table of the port, the sending data is encapsulated into a standard FC frame, and then encapsulated according to the queried port ID and message type The final FC frame is sent to the sending message queue;

(2.2)、将FC帧存放到DMA发送缓存中;发送调度模块扫描发送消息队列,根据消息的优先级将FC帧出队,并根据消息的端口ID存放到对应的DMA发送缓存中;消息完全存放到DMA发送缓存后,通过寄存器把FC帧相应信息通知FC网络数据仿真卡的PCIE管理模块,发起DMA读操作,如果DMA发送缓存存满时,则通知发送调度模块停止发送数据;(2.2), store the FC frame in the DMA sending buffer; the sending scheduling module scans the sending message queue, dequeues the FC frame according to the priority of the message, and stores it in the corresponding DMA sending buffer according to the port ID of the message; the message is completely After being stored in the DMA sending buffer, the corresponding information of the FC frame is notified to the PCIE management module of the FC network data emulation card through the register, and a DMA read operation is initiated. If the DMA sending buffer is full, the sending scheduling module is notified to stop sending data;

(2.3)、将发送数据从DMA发送缓存搬移到板卡异步FIFO中;DMA通过存储器写请求写入DMA读操作需要的物理地址和读请求个数,并传送给PCIE管理模块,PCIE管理模块根据写入信息,将请求数据经PCIE总线从PC机上的DMA发送缓存高速搬移至板卡FIFO;(2.3), move the sent data from the DMA send buffer to the asynchronous FIFO of the board; DMA writes the physical address and the number of read requests required by the DMA read operation through the memory write request, and transmits it to the PCIE management module, and the PCIE management module according to Write information, and move the requested data from the DMA sending buffer on the PC to the board FIFO at high speed through the PCIE bus;

(2.4)、通道仲裁器采用轮询的方式将板卡异步FIFO中的FC帧读取出,并发送到FC数据处理模块进行发送;(2.4), the channel arbitrator reads the FC frame in the asynchronous FIFO of the board by polling, and sends it to the FC data processing module for transmission;

(3)、多通道FC网络数据仿真系统接收数据:(3), multi-channel FC network data simulation system receives data:

(3.1)、接收数据经过FC数据处理模块处理后以接收FC帧存放到板卡异步FIFO中,通道仲裁器采用轮询方式判断当前需要处理的通道号,板卡发中断给PC机,并将该通道对应的板卡异步FIFO中的接收FC帧信息写入PCIE寄存器;(3.1) After the received data is processed by the FC data processing module, it is stored in the asynchronous FIFO of the board as the received FC frame. The channel arbitrator uses the polling method to judge the channel number that needs to be processed currently, and the board sends an interrupt to the PC, and sends The received FC frame information in the asynchronous FIFO of the board card corresponding to this channel is written into the PCIE register;

(3.2)、将板卡异步FIFO中的FC帧发送到DMA接收缓存中;计算机响应板卡中断,启动DMA写操作,同时将分配的接收缓存区起始地址及传输字节数传送给PCIE管理模块,将数据经PCIE总线从板卡FIFO高速搬移至PC机上的DMA接收缓存;一次DMA写完成后,板卡就会产生一个中断信号给PC机;(3.2) Send the FC frame in the asynchronous FIFO of the board to the DMA receiving buffer; the computer responds to the interrupt of the board, starts the DMA write operation, and at the same time transmits the allocated starting address of the receiving buffer and the number of bytes to be transferred to the PCIE management The module moves the data from the FIFO of the board to the DMA receiving buffer on the PC at high speed through the PCIE bus; after a DMA write is completed, the board will generate an interrupt signal to the PC;

(3.3)、通过接收调度模块将DMA接收缓存中的FC帧送入到消息接收队列;PC接收到DMA写完成的中断信号后,通知接收调度模块对写入的数据进行处理;接收调度模块判断FC帧的到来,按照先到先出的顺序取出FC帧,并根据端口接收通信表对该FC帧进行校验并解析后,按照消息ID放入消息对应端口的接收队列中,所述消息ID为每条消息的全局唯一标示号;(3.3), send the FC frame in the DMA receiving buffer to the message receiving queue through the receiving scheduling module; after the PC receives the interrupt signal of DMA writing completion, it notifies the receiving scheduling module to process the written data; the receiving scheduling module judges When the FC frame arrives, the FC frame is taken out in the order of first-come-first-out, and after the FC frame is checked and analyzed according to the port receiving communication table, it is put into the receiving queue of the port corresponding to the message according to the message ID, and the message ID is the globally unique identification number of each message;

(3.4)、将FC帧从消息接收队列出队并将消息内容提取,完成数据接收。(3.4), Dequeue the FC frame from the message receiving queue and extract the message content to complete the data reception.

进一步地,在PCIE管理模块一侧配置多个异步板卡FIFO,提供标准的FIFO接口,在PC机一侧的每个通道配置DMA缓存模块,DMA缓存模块通过PCIE管理模块实现异步板卡FIFO和PC机的双向多通道传输。Further, a plurality of asynchronous board card FIFOs are configured on the side of the PCIE management module to provide a standard FIFO interface, and a DMA buffer module is configured on each channel on the PC side, and the DMA buffer module realizes the asynchronous board card FIFO and FIFO through the PCIE management module. Two-way multi-channel transmission of PC.

其中,所述的消息包括紧急消息、周期消息、时间消息和流消息;消息的优先级别依次为:紧急消息>周期消息>事件消息>流消息。Wherein, the said messages include emergency messages, periodic messages, time messages and stream messages; the order of priority of messages is: urgent message>periodic message>event message>stream message.

所述的发送消息队列是端口初始化过程中根据端口发送通信表,分配发送缓存建立的发送队列,每个端口有四种类型的循环缓存:紧急消息缓存、周期消息缓存、事件消息缓存和大数据消息缓存;接收消息队列是端口初始化过程中根据端口接收通信表,分配接收缓存,每个消息ID拥有自己的消息接收队列。The sending message queue is a sending queue established by assigning sending buffers according to the port sending communication table during the port initialization process. Each port has four types of circular buffers: urgent message buffering, periodic message buffering, event message buffering and big data buffering. Message cache; the receiving message queue is allocated according to the port receiving communication table during the port initialization process, and each message ID has its own message receiving queue.

所述的通道仲裁器的仲裁方法为:通道仲裁器按照各个通道的优先级权重采用轮询方式决定处理当前哪个通道的数据,并判定当前选择的通道是否有数据发送,如果有数据发送则启动该通道,如果没有数据发送则直接跳过当前通道转向下一个通道。The arbitration method of the channel arbitrator is as follows: the channel arbitrator adopts a polling method to determine which channel's data is currently processed according to the priority weight of each channel, and determines whether the currently selected channel has data to send, and if there is data to send, then start For this channel, if there is no data to send, skip the current channel and go to the next channel.

本发明的发明目的是这样实现的:The purpose of the invention of the present invention is achieved like this:

本发明多通道FC网络数据仿真系统的数据通道调度方法,通过在FC网络数据仿真卡的PCIE管理模块一侧配置多个异步板卡FIFO,提供标准的FIFO接口,在PC机一侧的每个通道配置DMA缓存模块,DMA缓存模块通过PCIE管理模块实现异步板卡FIFO和PC机的双向多通道传输。从而实现在一张FC仿真卡上配置多个光端口,以低成本实现消息的多通道传输,同时还支持端口冗余。The data channel scheduling method of the multi-channel FC network data simulation system of the present invention provides a standard FIFO interface by disposing a plurality of asynchronous board card FIFOs on the side of the PCIE management module of the FC network data simulation card. The channel is configured with a DMA cache module, which realizes two-way multi-channel transmission between the FIFO of the asynchronous board card and the PC through the PCIE management module. In this way, multiple optical ports can be configured on one FC emulation card, and multi-channel transmission of messages can be realized at low cost, while port redundancy is also supported.

同时,本发明多通道FC网络数据仿真系统的数据通道调度方法还具有以下有益效果:At the same time, the data channel scheduling method of the multi-channel FC network data simulation system of the present invention also has the following beneficial effects:

(1)、FC网络数据仿真卡的PCIE管理模块一侧配置有多个异步板卡FIFO,FIFO提供标准的接口,能够连接FC数据;(1) The side of the PCIE management module of the FC network data simulation card is equipped with multiple asynchronous board card FIFOs, which provide standard interfaces and can connect to FC data;

(2)、多通道FC网络数据仿真系统中在一张FC仿真卡上实现多个数据通道的并行传输,大大节约了成本;(2) In the multi-channel FC network data simulation system, the parallel transmission of multiple data channels can be realized on one FC simulation card, which greatly saves the cost;

(3)、多通道FC网络数据仿真系统中采用直接内存访问方式,提高了数据传输效率,同时降低了处理器的负荷。(3) In the multi-channel FC network data simulation system, the direct memory access method is adopted, which improves the data transmission efficiency and reduces the processor load at the same time.

附图说明Description of drawings

图1是FC网络仿真系统的结构框图;Figure 1 is a structural block diagram of the FC network simulation system;

图2是多通道FC网络数据仿真系统数据通道调度方法的流程框图。Fig. 2 is a flowchart of a data channel scheduling method of a multi-channel FC network data simulation system.

具体实施方式detailed description

下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

实施例Example

图2是多通道FC网络数据仿真系统数据通道调度方法的流程框图。Fig. 2 is a flowchart of a data channel scheduling method of a multi-channel FC network data simulation system.

在本实施例中,如图2所示,本发明多通道FC网络数据仿真系统的数据通道调度方法,包括以下步骤:In this embodiment, as shown in FIG. 2, the data channel scheduling method of the multi-channel FC network data simulation system of the present invention includes the following steps:

1)、多通道FC网络数据仿真系统的端口初始化:1) Port initialization of the multi-channel FC network data simulation system:

1.1)、通过多通道FC网络数据仿真软件获取到FC网络数据仿真卡设备句柄和板卡支持的端口数目;1.1) Obtain the device handle of the FC network data simulation card and the number of ports supported by the board through the multi-channel FC network data simulation software;

1.2)、多通道FC网络数据仿真软件从FC网络数据仿真卡获得由系统设计决定的端口配置方案文件,其中,端口配置方案文件包括端口ID、发送通信表和接收通信表,并根据通信表分配计算机内存资源;1.2) The multi-channel FC network data simulation software obtains the port configuration scheme file determined by the system design from the FC network data simulation card, where the port configuration scheme file includes the port ID, the sending communication table and the receiving communication table, and is allocated according to the communication table computer memory resources;

2)、多通道FC网络数据仿真系统发送数据:2), Multi-channel FC network data simulation system sends data:

2.1)、将发送的数据送入到消息发送队列中;消息生成后,通过查询端口的发送通信表,将发送数据封装成标准的FC帧,再根据查询到的端口ID和消息类型把封装后的FC帧送入到发送消息队列中;本实施例中,生成的消息以紧急消息、周期消息、时间消息和流消息为例,消息的优先级别依次为:紧急消息>周期消息>事件消息>流消息;2.1) Send the sent data into the message sending queue; after the message is generated, the sending data is encapsulated into a standard FC frame by querying the sending communication table of the port, and then the encapsulated data is encapsulated according to the queried port ID and message type In this embodiment, the generated messages take emergency messages, periodic messages, time messages and stream messages as examples, and the priority levels of the messages are: urgent message>periodic message>event message> stream messages;

2.2)、将FC帧存放到DMA发送缓存中;发送调度模块扫描发送消息队列,根据消息的优先级将FC帧出队,并根据消息的端口ID存放到对应的DMA发送缓存中;消息完全存放到DMA发送缓存后,通过寄存器把FC帧相应信息通知FC网络数据仿真卡的PCIE管理模块,发起DMA读操作,如果DMA发送缓存存满时,则通知发送调度模块停止发送数据;2.2), store the FC frame in the DMA sending buffer; the sending scheduling module scans the sending message queue, dequeues the FC frame according to the priority of the message, and stores it in the corresponding DMA sending buffer according to the port ID of the message; the message is completely stored After the DMA sends the buffer, the PCIE management module of the FC network data simulation card is notified of the corresponding information of the FC frame through the register, and the DMA read operation is initiated. If the DMA send buffer is full, the sending scheduling module is notified to stop sending data;

2.3)、将发送数据从DMA发送缓存搬移到板卡异步FIFO中;DMA通过存储器写请求写入DMA读操作需要的物理地址和读请求个数,并传送给FCIE管理模块,PCIE管理模块根据写入信息,将请求数据经PCIE总线从PC机上的DMA发送缓存高速搬移至板卡FIFO;本实施例中,采用PCI Express总线可以很好满足FC网络数据仿真卡对传输速率和带宽的要求,从而实现FC网络数据仿真卡与主机之间的高速数据传输;2.3) Move the sent data from the DMA send buffer to the asynchronous FIFO of the board; DMA writes the physical address and the number of read requests required by the DMA read operation through the memory write request, and sends it to the FCIE management module, and the PCIE management module writes according to the input information, and request data is moved to the board card FIFO at a high speed from the DMA on the PC through the PCIE bus; in this embodiment, the use of the PCI Express bus can well meet the requirements of the FC network data emulation card for transmission rate and bandwidth, thereby Realize high-speed data transmission between the FC network data simulation card and the host;

2.4)、通道仲裁器采用轮询的方式将板卡异步FIFO中的FC帧读取出,并发送到FC数据处理模块进行发送;2.4), the channel arbitrator reads the FC frame in the asynchronous FIFO of the board card by means of polling, and sends it to the FC data processing module for transmission;

3)、多通道FC网络数据仿真系统接收数据:3), Multi-channel FC network data simulation system receives data:

3.1)、接收数据经过FC数据处理模块处理后以接收FC帧存放到板卡异步FIFO中,通道仲裁器采用轮询方式判断当前需要处理的通道号,并将该通道对应的板卡异步FIFO中的接收FC帧相应信息以中断方式发送给PC机;3.1) After the received data is processed by the FC data processing module, the received FC frame is stored in the asynchronous FIFO of the board card. The channel arbitrator uses polling to judge the channel number that needs to be processed currently, and transfers the corresponding channel number to the asynchronous FIFO of the board card. The corresponding information of the received FC frame is sent to the PC in an interrupt mode;

3.2)、将板卡异步FIFO中的FC帧发送到DMA接收缓存中;计算机响应板卡中断,启动DMA写操作,同时将分配的接收缓存区起始地址及传输字节数传送给PCIE管理模块,将数据经PCIE总线从板卡FIFO高速搬移至PC机上的DMA接收缓存;一次DMA写完成后,板卡就会产生一个中断信号给PC机;3.2) Send the FC frame in the asynchronous FIFO of the board to the DMA receiving buffer; the computer responds to the interrupt of the board, starts the DMA write operation, and at the same time transmits the allocated starting address of the receiving buffer and the number of bytes to be transferred to the PCIE management module , move the data from the board FIFO to the DMA receiving buffer on the PC at high speed through the PCIE bus; after a DMA write is completed, the board will generate an interrupt signal to the PC;

3.3)、通过接收调度模块将DMA接收缓存中的FC帧送入到消息接收队列;PC接收到DMA写完成的中断信号后,通知接收调度模块对写入的数据进行处理;接收调度模块判断FC帧的到来,按照先到先出的顺序取出FC帧,并对该FC帧进行校验并解析后,放入消息对应端口的接收队列中;3.3) Send the FC frame in the DMA receiving buffer to the message receiving queue through the receiving scheduling module; after the PC receives the interrupt signal of DMA writing completion, it notifies the receiving scheduling module to process the written data; the receiving scheduling module judges the FC When the frame arrives, the FC frame is taken out in the order of first-come-first-out, and after the FC frame is checked and analyzed, it is put into the receiving queue of the port corresponding to the message;

3.4)、将FC帧从消息接收队列出队并将消息内容提取,完成数据接收。3.4) Dequeue the FC frame from the message receiving queue and extract the message content to complete the data reception.

本实施例中,在数据发送和接收部分均采用了通道仲裁器轮询方式,为保证各个通道数据收发速率基本一致,将各个通道的优先级权重设置相同,在判定当前选择的通道是否有数据发送时,如果有数据发送则启动该通道,如果没有数据发送则直接跳过当前通道转向下一个通道。In this embodiment, the polling mode of the channel arbitrator is adopted in both the data sending and receiving part. In order to ensure that the data sending and receiving rates of each channel are basically the same, the priority weight of each channel is set to be the same. When determining whether the currently selected channel has data When sending, if there is data to send, start the channel, if there is no data to send, skip the current channel and go to the next channel.

尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.

Claims (5)

CN201410064364.6A2014-02-252014-02-25Data channel scheduling method of multichannel FC network data simulation systemExpired - Fee RelatedCN103888293B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410064364.6ACN103888293B (en)2014-02-252014-02-25Data channel scheduling method of multichannel FC network data simulation system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410064364.6ACN103888293B (en)2014-02-252014-02-25Data channel scheduling method of multichannel FC network data simulation system

Publications (2)

Publication NumberPublication Date
CN103888293A CN103888293A (en)2014-06-25
CN103888293Btrue CN103888293B (en)2017-01-18

Family

ID=50957020

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410064364.6AExpired - Fee RelatedCN103888293B (en)2014-02-252014-02-25Data channel scheduling method of multichannel FC network data simulation system

Country Status (1)

CountryLink
CN (1)CN103888293B (en)

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104243941A (en)*2014-10-162014-12-24成都思迈科技发展有限责任公司Video optical terminal system
CN104780019A (en)*2014-12-032015-07-15中国航天科工集团第三研究院第八三五七研究所Method for storing optical fiber communication data
CN106027349B (en)*2016-04-292019-01-18重庆爱思网安信息技术有限公司A kind of PCI-E bus interface transmission card and the data transmission method based on the transmission card
CN108614786B (en)*2016-12-122021-03-26中国航空工业集团公司西安航空计算技术研究所Channel management circuit based on message service type
CN108614800A (en)*2016-12-122018-10-02中国航空工业集团公司西安航空计算技术研究所FC-AE-ASM protocol processing chip circuit structures
CN108616374B (en)*2016-12-122021-03-26中国航空工业集团公司西安航空计算技术研究所Test excitation system of comprehensive core processor
CN108700855A (en)*2017-03-092018-10-23深圳市大疆创新科技有限公司 F channel control method and device
CN107171918B (en)*2017-04-262020-06-16成都成电光信科技股份有限公司Message transceiving method in GJB289A bus module supporting priority
CN107483370B (en)*2017-09-142020-07-03电子科技大学Method for transmitting IP and CAN service on FC network
CN108011795B (en)*2017-11-242019-02-19电信科学技术第五研究所有限公司A kind of method and system for realizing more boards and multiple data channel management in communication equipment
CN108768810B (en)*2018-05-282019-06-14北京航空航天大学 An efficient transmission method of transient big data based on FC
CN108828531B (en)*2018-06-272022-04-05电子科技大学 A Radar Data Processing Method on FC Bus Simulation Platform
CN109412683A (en)*2018-09-302019-03-01电子科技大学A method of realizing redundant transmission on FC network
CN109558107B (en)*2018-12-042023-06-30中国航空工业集团公司西安航空计算技术研究所FC message receiving management method for shared buffer area
CN109842534B (en)*2019-02-202022-10-04成都成电光信科技股份有限公司Equipment test verification method based on switched FC simulation card
CN110046114B (en)*2019-03-062020-08-14上海熠知电子科技有限公司DMA controller based on PCIE protocol and DMA data transmission method
CN110086865B (en)*2019-04-232021-01-29成都光航信科技有限公司Node card supporting parallel work of multiple FC-AE-1553 nodes and implementation method thereof
CN110098869B (en)*2019-05-092021-06-01中国航空工业集团公司西安航空计算技术研究所Optical fiber channel message transmission method
CN110602033B (en)*2019-07-012022-08-30西安勺子智能科技有限公司Cold chain vehicle-mounted Beidou coding and transmitting method
CN110347615B (en)*2019-07-052022-02-18南京芯驰半导体科技有限公司Dynamic resource allocation method and cache unit
CN110824218B (en)*2019-11-182022-03-22重庆邮电大学 A ZYNQ-based digital storage oscilloscope system
CN112039979B (en)*2020-08-272023-06-20中国平安财产保险股份有限公司Distributed data cache management method, device, equipment and storage medium
CN112398911B (en)*2020-10-222022-07-15成都中讯创新科技股份有限公司Multichannel network scheduling method based on FC network
CN112311702B (en)*2020-12-302021-04-06北京国科天迅科技有限公司FC switch scheduling method and device, electronic equipment and storage medium
CN112749112B (en)*2020-12-312021-12-24无锡众星微系统技术有限公司Hardware flow structure
CN113868870B (en)*2021-09-292025-05-16中国航空工业集团公司西安航空计算技术研究所 A method for generating FC network simulation data based on the whole network planning file
CN113783773B (en)*2021-11-122022-03-11北京国科天迅科技有限公司Message scheduling method and system
CN117217067A (en)*2022-05-312023-12-12北京有竹居网络技术有限公司Simulation device, simulation system, simulation method thereof, and storage medium
CN115118678B (en)*2022-06-072024-03-12南京全信传输科技股份有限公司Multi-partition network communication system of FC equipment end and communication method thereof
CN115378454B (en)*2022-08-042024-07-16成都索骥科技有限公司Multichannel data link communication system
CN116055409B (en)*2023-03-312023-07-14山东云海国创云计算装备产业创新中心有限公司Data transmission method and device of Ethernet card, network equipment and storage medium
CN116846706A (en)*2023-06-302023-10-03天津津航计算技术研究所 A multi-channel polling scheduling system and its scheduling mechanism and data transmission method
CN117834027B (en)*2024-02-232025-06-17北京中航通用科技有限公司 A long-distance ultra-low-delay relay method for half-duplex networks

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1567830A (en)*2003-06-242005-01-19中兴通讯股份有限公司Multi-channel network management apparatus and method for transmission equipment
CN101466109A (en)*2009-01-142009-06-24北京邮电大学Communication system and method for WiMAX network management
CN101877655A (en)*2009-04-302010-11-03华为技术有限公司 Network management system, network management server and method
CN101917231A (en)*2010-08-272010-12-15电子科技大学 A data caching method for a fiber channel switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8086721B2 (en)*2002-06-272011-12-27Alcatel LucentNetwork resource management in a network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1567830A (en)*2003-06-242005-01-19中兴通讯股份有限公司Multi-channel network management apparatus and method for transmission equipment
CN101466109A (en)*2009-01-142009-06-24北京邮电大学Communication system and method for WiMAX network management
CN101877655A (en)*2009-04-302010-11-03华为技术有限公司 Network management system, network management server and method
CN101917231A (en)*2010-08-272010-12-15电子科技大学 A data caching method for a fiber channel switch

Also Published As

Publication numberPublication date
CN103888293A (en)2014-06-25

Similar Documents

PublicationPublication DateTitle
CN103888293B (en)Data channel scheduling method of multichannel FC network data simulation system
CN109471816B (en)Descriptor-based PCIE bus DMA controller and data transmission control method
US10152441B2 (en)Host bus access by add-on devices via a network interface controller
US10095645B2 (en)Presenting multiple endpoints from an enhanced PCI express endpoint device
US8718065B2 (en)Transmission using multiple physical interface
US20140068134A1 (en)Data transmission apparatus, system, and method
CN110083461B (en)Multitasking system and method based on FPGA
CN111656336B (en)PCIE sending and receiving method, device, equipment and system
CN106648896B (en)Method for dual-core sharing of output peripheral by Zynq chip under heterogeneous-name multiprocessing mode
CN108123894B (en)Method for realizing low-delay transmission of sampled data stream based on Intel gigabit network card
CN102263698B (en)Method for establishing virtual channel, method of data transmission and line card
CN105450588A (en)RDMA-based data transmission method and RDMA network cards
CN106257434A (en)A kind of data transmission method based on enhancement mode peripheral interconnection protocol bus and device
CN103353851A (en)Method and equipment for managing tasks
US20110208891A1 (en)Method and apparatus for tracking transactions in a multi-speed bus environment
CN105357147A (en)High-speed and high-reliability network-on-chip adapter unit
CN101222430A (en) A high-speed multi-protocol data transmission system and method
CN116774933A (en)Virtualization processing method of storage device, bridging device, system and medium
CN110618956B (en) A BMC cloud platform resource pooling method and system
CN117215989B (en)Heterogeneous acceleration device, heterogeneous acceleration system, heterogeneous acceleration method, heterogeneous acceleration device and storage medium
US8090893B2 (en)Input output control apparatus with a plurality of ports and single protocol processing circuit
WO2024131147A1 (en)Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium
CN110098989A (en)A kind of multichannel CAN analogue system and test method based on CANFD bus
CN109995679A (en) NoC system based on task-driven chip-level multi-heterogeneous communication cores
CN119556974A (en) A serial high-speed interface packaging method and system based on FPGA

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20170118

Termination date:20200225

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp