CN106506403A - A kind of fiber channel protocol data method for generation with interaction capabilities - Google Patents

A kind of fiber channel protocol data method for generation with interaction capabilities Download PDF

Info

Publication number
CN106506403A
CN106506403A CN201611027092.8A CN201611027092A CN106506403A CN 106506403 A CN106506403 A CN 106506403A CN 201611027092 A CN201611027092 A CN 201611027092A CN 106506403 A CN106506403 A CN 106506403A
Authority
CN
China
Prior art keywords
data
frame
transmit queue
protocol data
generation
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
CN201611027092.8A
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.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201611027092.8A priority Critical patent/CN106506403A/en
Publication of CN106506403A publication Critical patent/CN106506403A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/56Queue scheduling implementing delay-aware scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • H04L47/6225Fixed service order, e.g. Round Robin
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6295Queue scheduling characterised by scheduling criteria using multiple queues, one for each individual QoS, connection, flow or priority

Abstract

The invention discloses a kind of fiber channel protocol data method for generation with interaction capabilities, is that each sending port arranges transmit queue, and distributes memory space for each transmit queue;A transmit queue is selected, the frame data, primitive, wait condition or time delay required for insertion;The sending method of transmit queue is set;Start after sending, during data in transmit queue are write successively by DDR corresponding buffering areas, the transmission data in DDR are read by FPGA, transmission types are judged according to control word, if condition is to wait for, wait the protocol data for receiving to meet condition after, data below are retransmited;If time delay then awaiting a specified time is retransmited;If protocol data is then assembled according to the frame format of standard and is sent by primitive or frame data.The method has feedback capability, can wait and receive certain certain types of frame, and primitive or mistake retransmit data below, or waits for a period of time and retransmit.

Description

A kind of fiber channel protocol data method for generation with interaction capabilities
Technical field
The present invention relates to optical-fibre channel bus protocol measuring technology, belongs to bus protocol field tests, more particularly to a kind of There is the channel protocol data method for generation of interaction capabilities.
Background technology
Fibre Channel technologies rely on superfast transfer rate (can reach the transfer rate of 10Gbps), and good is anti- The features such as jamming performance, stable transmission quality just in fields such as air communications, mass data storages to extensively application, to optical fiber Channel bus equipment testing requirement is very high.The data for how simulating actual fiber channel unit are optical-fibre channel bus protocols One of key technology of test.All it is one Framed Data of editor or primitive in fiber channel protocol test typically now, by one Fixed sequential loop or single send, and not there is feedback capability, i.e., can not optionally send some frames according to the data for receiving, Especially when the upper-layer protocol for needing to simulate number order-response mode, this simple protocol data is activation mode can not be very The signal intelligence of good simulation actual fiber channel unit.
Content of the invention
In order to solve the above problems, there is provided a kind of fiber channel protocol data method for generation with interaction capabilities, the party Method has feedback capability, can wait and receive certain certain types of frame, and primitive or mistake are retransmited, or during one section of time delay Between retransmit, while to send data according to priority classify, can cycle through a framing can also single send a framing.Adopt The fiber channel protocol data generating function that realizes in this way can simulation actual fiber channel unit very well communication Situation, more accurately carries out test analysis.
To achieve these goals, the present invention is adopted the following technical scheme that:
A kind of fiber channel protocol data method for generation with interaction capabilities, the DDR being connected including FPGA and with FPGA, Comprise the following steps:
Arrange for each sending port and there is the other transmit queue of different priorities, and store for each transmit queue distribution Space;
A transmit queue is selected, the frame data, primitive, wait condition or time delay required for insertion;
The sending method of transmit queue is set;
Start after sending, the data in transmit queue are write successively in the DDR corresponding buffering areas controlled by FPGA, by FPGA reads the transmission data in DDR, judges transmission types according to control word, waits the association for receiving if condition is to wait for After view data meet condition, data below are retransmited;If time delay then awaiting a specified time is retransmited;If primitive Or protocol data is then assembled according to the frame format of standard and is sent by frame data.
Three transmit queues, respectively transmit queue 1, transmit queue 2, transmit queue 3 are set for each sending port, are sent out Send queue 1 highest priority, 3 priority of transmit queue is minimum.
Each transmit queue is stored in the memory space of distribution in units of 4 bytes;After space is full, it is impossible to be inserted into Send data.
Energy inserting error in the frame data, including CRC, Disparity, long frame, short frame.
When insertion receives wait condition, the condition that can be arranged includes:Frame delimiter, content frame, mistake or primitive.
Three conditions of frame delimiter, content frame and mistake can carry out with or logical combination, then carry out with primitive alternative condition Or, forming wait condition.
The frame delimiter includes selecting a kind of SOF or EOF;The content frame includes arranging deviation post, nybble number According to word, four BYTE MASKs;The mistake includes CRC, Disparity, short frame, wrong frame.
The sending method of the transmit queue includes circulation or single.
When being set to cycle through mode, the data in the queue are cycled through, priority is less than the data in this queue Will not send;
When being set to single mode, after complete for the data is activation of the queue, send less than under this transmit queue priority Data in one transmit queue.
In the buffer, the control word of corresponding 4 bytes of the protocol data word of each 4 byte.
Beneficial effects of the present invention:
1. a kind of fiber channel protocol data method for generation with interactive mode, can wait and receive certain certain kinds One group protocol data is just sent when the frame or primitive of type, it is also possible to which time delay is retransmited for a period of time.Simultaneously to sending data by excellent First level classification, can cycle through one group of data can also single one group of data of transmission.
2. the method for the present invention has feedback capability, and this data method for generation can more preferable simulation actual fiber passage Bus apparatus, the communication mode especially with order-response mode upper-layer protocol so that the performance of fibre channel device is surveyed Examination is more accurate.
Description of the drawings
Fig. 1 is that interactive mode protocol data occurs flow chart;
Fig. 2 receives wait condition schematic diagram.
Specific embodiment
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
The present embodiment provides the system that a kind of present invention is implemented, a kind of optical-fibre channel bus protocol test system of multiport System, the DDR being connected including FPGA and with FPGA, the GTX interfaces of FPGA are connected with optic module, and FPGA completes data to be occurred and catch Obtain function.The system has optical-fibre channel bus protocol data generating function, and data capture, protocol analyzing function can be to light Fine channel unit and network carry out test analysis.
There is flow chart, a kind of fiber channel protocol data method for generation with interaction capabilities, bag with reference to the data of Fig. 1 Include following steps:
(1) three transmit queues are set for each sending port, three queues have different transmission priority, send 1 highest priority of queue, 3 priority of transmit queue are minimum.The certain memory space of each queue assignment, in units of 4 bytes. After space is full, it is impossible to be inserted into sending data.
(2) transmit queue is selected, the frame data, primitive, wait condition or time delay required for insertion;And frame number Mistake (CRC, Disparity, long frame, short frame) is can be inserted into according in.
(3), when, insertion receives wait condition, following condition can be set:Frame delimiter (selecting certain SOF, EOF), frame in Hold (deviation post, nybble data word, four BYTE MASKs are set), mistake (CRC, Disparity, short frame, wrong frame) or former Language;Three conditions of frame delimiter, content frame and mistake can carry out with or logical combination, then carry out with primitive alternative condition or, shape Into the condition of wait, referring to Fig. 2.
(4), the sending method of transmit queue is set:Circulation or single.
(5), start after sending, the data in three transmit queues are write DDR successively that controlled by FPGA and is correspondingly buffered Qu Zhong, the protocol data word of each 4 byte correspond to the control word of 4 bytes.Transmission data in DDR are read by FPGA, according to Control word judges transmission types, if condition is to wait for, wait the protocol data for receiving to meet condition after, retransmit behind Data;If time delay then awaiting a specified time is retransmited;If primitive or frame data are then by protocol data according to mark Accurate frame format is assembled and is sent.
(6), if provided as the mode that cycles through, then the data in the queue are cycled through, priority is less than this queue In data will not send;Such as select single mode, then will be complete for the data is activation of the queue after, send be less than this transmit queue Data in the next transmit queue of priority.
Can wait, it is also possible to Time delay is retransmited for a period of time.According to priority classify to sending data simultaneously, can cycle through one group of data can also single Send one group of data.
Receive wait condition and be divided into four groups:Frame delimiter (SOF/EOF), content frame, mistake and primitive, wherein frame are delimited Three conditions of symbol, content frame and mistake can carry out with or logical combination, then carry out waiting bar or, being formed with primitive alternative condition Part.
Although the above-mentioned accompanying drawing that combines is described to the specific embodiment of the present invention, not to present invention protection model The restriction that encloses, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not The various modifications that makes by needing to pay creative work or deformation are still within protection scope of the present invention.

Claims (10)

1. a kind of fiber channel protocol data method for generation with interaction capabilities, the DDR being connected including FPGA and with FPGA, its It is characterized in that, comprises the following steps:
Arrange for each sending port and there is the other transmit queue of different priorities, and empty for each transmit queue distribution storage Between;
A transmit queue is selected, the frame data, primitive, wait condition or time delay required for insertion;
The sending method of transmit queue is set;
Start after sending, the data in transmit queue are write successively in the DDR corresponding buffering areas controlled by FPGA, read by FPGA The transmission data in DDR being taken, transmission types being judged according to control word, the protocol data for receiving is waited if condition is to wait for After meeting condition, data below are retransmited;If time delay then awaiting a specified time is retransmited;If primitive or frame number According to then protocol data being assembled according to the frame format of standard and is sent.
2. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 1, is characterized in that, be per Individual sending port arranges three transmit queues, respectively transmit queue 1, transmit queue 2, transmit queue 3, and transmit queue 1 is preferential Level highest, 3 priority of transmit queue are minimum.
3. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 2, is characterized in that, each Transmit queue is stored in the memory space of distribution in units of 4 bytes;After space is full, it is impossible to be inserted into sending data.
4. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 1, is characterized in that, described Energy inserting error in frame data, including CRC, Disparity, long frame, short frame.
5. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 1, is characterized in that, insert When receiving wait condition, the condition that can be arranged includes:Frame delimiter, content frame, mistake or primitive.
6. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 5, is characterized in that, frame is fixed Three conditions of boundary's symbol, content frame and mistake can carry out with or logical combination, then carry out with primitive alternative condition or, forming wait Condition.
7. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 5, is characterized in that, described Frame delimiter includes selecting a kind of SOF or EOF;The content frame includes arranging deviation post, nybble data word, four bytes Mask;The mistake includes CRC, Disparity, short frame, wrong frame.
8. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 1, is characterized in that, described The sending method of transmit queue includes circulation or single.
9. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 8, is characterized in that, arrange For cycling through during mode, the data in the queue are cycled through, priority will not be sent less than the data in this queue;
When being set to single mode, after complete for the data is activation of the queue, the next one less than this transmit queue priority is sent Data in transmit queue.
10. a kind of fiber channel protocol data method for generation with interaction capabilities as claimed in claim 1, is characterized in that, In relief area, the protocol data word of each 4 byte corresponds to the control word of 4 bytes.
CN201611027092.8A 2016-11-17 2016-11-17 A kind of fiber channel protocol data method for generation with interaction capabilities Pending CN106506403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027092.8A CN106506403A (en) 2016-11-17 2016-11-17 A kind of fiber channel protocol data method for generation with interaction capabilities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027092.8A CN106506403A (en) 2016-11-17 2016-11-17 A kind of fiber channel protocol data method for generation with interaction capabilities

Publications (1)

Publication Number Publication Date
CN106506403A true CN106506403A (en) 2017-03-15

Family

ID=58327473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027092.8A Pending CN106506403A (en) 2016-11-17 2016-11-17 A kind of fiber channel protocol data method for generation with interaction capabilities

Country Status (1)

Country Link
CN (1) CN106506403A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617763A (en) * 2018-12-21 2019-04-12 北京润科通用技术有限公司 A kind of method for testing pressure and device for FC-AE bus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261615A (en) * 2008-04-24 2008-09-10 湖州瑞万思信息技术有限公司 Computer dot-to-dot direct EMS memory communication method and its network card
CN101399715A (en) * 2008-10-15 2009-04-01 北京航空航天大学 Network test platform and test method for optical fiber channel
CN102035673A (en) * 2010-12-02 2011-04-27 北京航空航天大学 Fiber channel-based general automatic test system
US9013999B1 (en) * 2008-01-02 2015-04-21 Marvell International Ltd. Method and apparatus for egress jitter pacer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9013999B1 (en) * 2008-01-02 2015-04-21 Marvell International Ltd. Method and apparatus for egress jitter pacer
CN101261615A (en) * 2008-04-24 2008-09-10 湖州瑞万思信息技术有限公司 Computer dot-to-dot direct EMS memory communication method and its network card
CN101399715A (en) * 2008-10-15 2009-04-01 北京航空航天大学 Network test platform and test method for optical fiber channel
CN102035673A (en) * 2010-12-02 2011-04-27 北京航空航天大学 Fiber channel-based general automatic test system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
冯收: "FC-AE-1553故障仿真装置研制", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
刘倩: "光纤通道(Fiber Channel)协议测试方法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
黄文南: "FC协议测试卡的软件设计与实现", 《电子测量技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617763A (en) * 2018-12-21 2019-04-12 北京润科通用技术有限公司 A kind of method for testing pressure and device for FC-AE bus

Similar Documents

Publication Publication Date Title
CN106612141A (en) Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN101304341B (en) Method for testing TCP network flow playback based on receiving-transmitting balance
CN109743301A (en) A kind of data receiving-transmitting system and method based on Modbus agreement
CN102752674B (en) Capturing circuit and writing control method of 10G EPON (10 Giga Ethernet Passive Optical Network) message
CN110505161A (en) A kind of message processing method and equipment
CN104168162B (en) A kind of software-hardware synergism realizes the traffic generator for interchanger validation test
CN109408424B (en) PCIe interface-based SpaceFibre bus data acquisition method
US8130826B2 (en) Systems and methods for preparing network data for analysis
CN106598889A (en) SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate
CN106817249A (en) The simulation communication demo systems of FC AE 1553 and data transmission method for uplink
CN110290187A (en) Transmission method and device, storage medium, the electronic device of data information
CN102307118A (en) Back plate test method, apparatus thereof and system thereof
CN105450475A (en) FC switch test device
Alessio et al. System-level Specifications of the Timing and Fast Control system for the LHCb Upgrade
CN105471548B (en) A kind of network data Packet analyzing and distribution method
CN106506403A (en) A kind of fiber channel protocol data method for generation with interaction capabilities
US7894492B2 (en) Programmable SONET framing
Loucks et al. Short-packet transfer performance in local area ring networks
CN109557898A (en) A kind of general-purpose system comprehensive verification equipment for various UAV ground control station
CN106892134A (en) The method of testing and device of a kind of virtual instrument
CN107276834A (en) Optical-fibre channel flow analysis recording method and device under a kind of aviation electronics environment
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN210836054U (en) Storage expansion device and storage expansion device system
Qiao et al. Design and implementation of FC-AE fault simulation instrument
CN100454786C (en) Device and method for proceeding simulation to time delay

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315

RJ01 Rejection of invention patent application after publication