CN105356983A - Method for improving iSCSI protocol conformance test software iscsisim - Google Patents

Method for improving iSCSI protocol conformance test software iscsisim Download PDF

Info

Publication number
CN105356983A
CN105356983A CN201510615062.8A CN201510615062A CN105356983A CN 105356983 A CN105356983 A CN 105356983A CN 201510615062 A CN201510615062 A CN 201510615062A CN 105356983 A CN105356983 A CN 105356983A
Authority
CN
China
Prior art keywords
iscsisim
protocol
target
pdu message
software
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.)
Granted
Application number
CN201510615062.8A
Other languages
Chinese (zh)
Other versions
CN105356983B (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510615062.8A priority Critical patent/CN105356983B/en
Publication of CN105356983A publication Critical patent/CN105356983A/en
Application granted granted Critical
Publication of CN105356983B publication Critical patent/CN105356983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • H04L1/242Testing correct operation by comparing a transmitted test signal with a locally generated replica
    • H04L1/244Testing correct operation by comparing a transmitted test signal with a locally generated replica test sequence generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention particularly relates to a method for improving iSCSI protocol conformance test software iscsisim. According to the method for improving the iSCSI protocol conformance test software iscsisim, a PDU message comparison module is added for analyzing a received PDU message of a target end and a local PDU message verification file in a key-value manner and comparing whether value values with the same key value are correct, so as to determine whether the PDU message satisfies protocol conformance; and a protocol negotiation result module is further added for storing a protocol option negotiated with the target and specifically supported by the target, and iscsisim selects a test option supported by the target according to the option to carry out a protocol conformance test. According to the method for improving the iSCSI protocol conformance test software iscsisim, the PDU message comparison module is added to verify the conformance of the PDU messages, the target replies a keyword sequence of the PDU message for decoupling, the flexibility of the iscsisim is improved, and the protocol negotiation result global module is added to automatically eliminate test of the options not supported by the target, thereby reducing the manual selection and improving the test efficiency.

Description

A kind of iSCSI testing protocol consistency software iscsisim improves one's methods
Technical field
The present invention relates to iSCSI Protocol conformance testing technology field, particularly the improving one's methods of a kind of iSCSI testing protocol consistency software iscsisim.
Background technology
SCSI(SmallComputerSystemInterface) be for I/O equipment, especially memory device carries out mutual protocol family.SCSI client, i.e. " initiator ", the logical block to server end (i.e. " target ") sends scsi command with request service.The client-server end of SCSI agreement is mapped to specific interconnected systems by " SCSItransport ".Initiator is one end of SCSItransport, and target is the other end.
ISCSI(InternetSmallComputerSystemInterface) agreement uses TCP/IP as SCSItransport.By transmitting scsi data bag on TCP/IP, iSCSI provides a kind of solution of interoperable, which utilizes existing Internet infrastructure and management tool, and breaches distance limit.Different from needing the traditional fiber of client cables, iSCI can run in existing network system.Due to its extensibility and economic benefit, iSCSI has become popular SAN(Storageareanetwork) agreement.ISCSI defines in IETFRFC3720iSCSI, and upgrades in IETFRFC5048iSCSICorrectionsandClarificationsRFC.
Current iSCSI protocol conformance software I scsisim testing process, as shown in Figure 1.The principle that Iscsisim tests mainly is sent by simulation initiator end and tests PDU message and consult PDU message to target end, and after the PDU message receiving the reply of target end, whether verification target holds protocol realization consistent.Current iscsisim test directly by PDU message and local PDU verification file one by one keyword carry out parsing and compare.But the PDU message keyword order that different target replys is variant, need to adjust local PDU message checking file according to PS when testing different target, and protocol negotiation result is not preserved in current iscsisim test, cannot reject according to negotiation result the test item that current target do not support.
For the problems referred to above, the present invention proposes improving one's methods of a kind of iSCSI testing protocol consistency software iscsisim.Be intended to the flexibility increasing iscsisim, realize automatic rejection target and do not support that item is tested, reduce artificial selection, improve testing efficiency.
Summary of the invention
The present invention, in order to make up the defect of prior art, provides a kind of cost low, and the iSCSI testing protocol consistency software iscsisim that efficiency is high improves one's methods.
The present invention is achieved through the following technical solutions:
A kind of iSCSI testing protocol consistency software iscsisim improves one's methods, and it is characterized in that comprising the following steps:
(1) iscsisim software simulation initiator holds and sends negotiation PDU message to target end;
(2) after iscsisim software receives target negotiation packet, by the protocol option that the target that protocol negotiation object module is preserved and target consults specifically supports, the test option that iscsisim selects target to support according to this option carries out testing protocol consistency;
(3) iscsisim software sends test PDU message according to the protocol option simulation initiator consulted to target;
(4), after iscsisim software receipt to PDU message, whether protocol conformance is met by the verification of PDU message comparison module.
In described step (2), after iscsisim and target holds the good protocol fields of initial negotiation, iscsisim preserves the result after consulting by protocol negotiation object module global variable; In described step (4), iscsisim reads local corresponding PDU message checking file according to the protocol fields consulted.
In described step (4), described PDU message comparison module resolves the PDU message of the target end reply received and local PDU message checking file respectively in key-value mode, then whether the value value of more identical key value is correct, to determine whether PDU message meets protocol conformance.
When iSCSI agreement does not support HeaderDigest agreement item, target end is replied PDU message and is not supported HeaderDigest, iscsisim preserves this negotiation result, reject the test case comprising test HeaderDigest test item, send other test cases, iscsisim resolves in key-value mode and receives PDU message and local PDU message checking file, compares the value value that key is identical, judges whether to meet protocol conformance with this.
The invention has the beneficial effects as follows: this iSCSI testing protocol consistency software iscsisim improves one's methods, PDU message consistency desired result and the decoupling zero of target reply PDU message keyword order is achieved by increasing PDU message comparison module, add the flexibility of iscsisim, by increasing protocol negotiation result global module, achieve automatic rejection target and do not support that item is tested, decrease artificial selection, improve testing efficiency.
Accompanying drawing explanation
Accompanying drawing 1 is current iSCSI protocol conformance software I scsisim testing process schematic diagram;
Accompanying drawing 2 is the schematic flow sheet of improving one's methods of iSCSI testing protocol consistency software iscsisim of the present invention.
Embodiment
Accompanying drawing is a kind of specific embodiment of the present invention, and below in conjunction with accompanying drawing, the present invention is described in detail.
This iSCSI testing protocol consistency software iscsisim improves one's methods, and comprises the following steps:
(1) iscsisim software simulation initiator holds and sends negotiation PDU message to target end;
(2) after iscsisim software receives target negotiation packet, by the protocol option that the target that protocol negotiation object module is preserved and target consults specifically supports, the test option that iscsisim selects target to support according to this option carries out testing protocol consistency;
(3) iscsisim software sends test PDU message according to the protocol option simulation initiator consulted to target;
(4), after iscsisim software receipt to PDU message, whether protocol conformance is met by the verification of PDU message comparison module.
In described step (2), after iscsisim and target holds the good protocol fields of initial negotiation, iscsisim preserves the result after consulting by protocol negotiation object module global variable; In described step (4), iscsisim reads local corresponding PDU message checking file according to the protocol fields consulted.
In described step (4), described PDU message comparison module resolves the PDU message of the target end reply received and local PDU message checking file respectively in key-value mode, then whether the value value of more identical key value is correct, to determine whether PDU message meets protocol conformance.
When iSCSI agreement does not support HeaderDigest agreement item, target end is replied PDU message and is not supported HeaderDigest, iscsisim preserves this negotiation result, reject the test case comprising test HeaderDigest test item, send other test cases, iscsisim resolves in key-value mode and receives PDU message and local PDU message checking file, compares the value value that key is identical, judges whether to meet protocol conformance with this.

Claims (4)

1. the improving one's methods of an iSCSI testing protocol consistency software iscsisim, is characterized in that comprising the following steps:
(1) iscsisim software simulation initiator holds and sends negotiation PDU message to target end;
(2) after iscsisim software receives target negotiation packet, by the protocol option that the target that protocol negotiation object module is preserved and target consults specifically supports, the test option that iscsisim selects target to support according to this option carries out testing protocol consistency;
(3) iscsisim software sends test PDU message according to the protocol option simulation initiator consulted to target;
(4), after iscsisim software receipt to PDU message, whether protocol conformance is met by the verification of PDU message comparison module.
2. the improving one's methods of iSCSI testing protocol consistency software iscsisim according to claim 1, it is characterized in that: in described step (2), after iscsisim and target holds the good protocol fields of initial negotiation, iscsisim preserves the result after consulting by protocol negotiation object module global variable; In described step (4), iscsisim reads local corresponding PDU message checking file according to the protocol fields consulted.
3. the improving one's methods of iSCSI testing protocol consistency software iscsisim according to claim 1 and 2, it is characterized in that: in described step (4), described PDU message comparison module resolves the PDU message of the target end reply received and local PDU message checking file respectively in key-value mode, then whether the value value of more identical key value is correct, to determine whether PDU message meets protocol conformance.
4. the improving one's methods of iSCSI testing protocol consistency software iscsisim according to claim 1, it is characterized in that: when iSCSI agreement does not support HeaderDigest agreement item, target end is replied PDU message and is not supported HeaderDigest, iscsisim preserves this negotiation result, reject the test case comprising test HeaderDigest test item, send other test cases, iscsisim resolves in key-value mode and receives PDU message and local PDU message checking file, the value value that relatively key is identical, judge whether to meet protocol conformance with this.
CN201510615062.8A 2015-09-24 2015-09-24 A kind of improved method of iSCSI protocol Conformance Test Software iscsisim Active CN105356983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510615062.8A CN105356983B (en) 2015-09-24 2015-09-24 A kind of improved method of iSCSI protocol Conformance Test Software iscsisim

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510615062.8A CN105356983B (en) 2015-09-24 2015-09-24 A kind of improved method of iSCSI protocol Conformance Test Software iscsisim

Publications (2)

Publication Number Publication Date
CN105356983A true CN105356983A (en) 2016-02-24
CN105356983B CN105356983B (en) 2019-05-14

Family

ID=55332866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510615062.8A Active CN105356983B (en) 2015-09-24 2015-09-24 A kind of improved method of iSCSI protocol Conformance Test Software iscsisim

Country Status (1)

Country Link
CN (1) CN105356983B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872828A (en) * 2017-12-15 2018-04-03 北京泰德东腾通信技术有限公司 EIMTA terminal consistency test method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015745A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable socketed testing tool
CN101714995A (en) * 2009-11-30 2010-05-26 英业达股份有限公司 Method for completely testing iSCSI target and generating report
US20110185089A1 (en) * 2004-03-10 2011-07-28 Uri El Zur Method and System for Supporting Hardware Acceleration for iSCSI Read and Write Operations and iSCSI Chimney
CN103023723A (en) * 2012-12-14 2013-04-03 创新科软件技术(深圳)有限公司 Method for performing iSCSI (internet small computer system interface) multipath test in linux environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015745A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable socketed testing tool
US20110185089A1 (en) * 2004-03-10 2011-07-28 Uri El Zur Method and System for Supporting Hardware Acceleration for iSCSI Read and Write Operations and iSCSI Chimney
CN101714995A (en) * 2009-11-30 2010-05-26 英业达股份有限公司 Method for completely testing iSCSI target and generating report
CN103023723A (en) * 2012-12-14 2013-04-03 创新科软件技术(深圳)有限公司 Method for performing iSCSI (internet small computer system interface) multipath test in linux environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872828A (en) * 2017-12-15 2018-04-03 北京泰德东腾通信技术有限公司 EIMTA terminal consistency test method and apparatus

Also Published As

Publication number Publication date
CN105356983B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN108156240B (en) Method and system for accessing industrial adapter to server
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN102325167A (en) Verifying method for network file transmission
US20180077237A1 (en) Method, apparatus, and system for providing remote terminal assistance to electronic devices using an intermediary server
CN107547309B (en) Automatic testing method and device for security gateway performance
CN105052076B (en) Network element management system and network element management method based on cloud computing
CN110830442A (en) Message processing method, device and gateway
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN104821940A (en) Method and equipment for sending portal redirected address
CN107070752B (en) Testing method and testing system for long connection capacity
CN104243610A (en) Distributed file transmission service method
CN104065508A (en) Application service health examination method, device and system
CN104780215A (en) File transfer system and method thereof
CN112698640B (en) ECU upgrading test system
CN105224442A (en) A kind of multi-client shared-file system performance test methods
CN105356983A (en) Method for improving iSCSI protocol conformance test software iscsisim
CN103220715B (en) A kind of method of report network the performance test results and device
CN104348815A (en) Method and device for verifying verification code
CN111092931B (en) Method and system for rapidly distributing streaming data of online super real-time simulation of power system
WO2021223247A1 (en) Device upgrading method, smart device, and computer readable storage medium
CN104468293A (en) VPN accessing method
CN103024097B (en) The method of detection network address translation server ageing time, Apparatus and system
CN114338477B (en) Communication link monitoring method, device, equipment and storage medium
CN113630298A (en) Intelligent control system, method and device
US9178771B2 (en) Determining the type of a network tier

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant