CN105356983B - A kind of improved method of iSCSI protocol Conformance Test Software iscsisim - Google Patents
A kind of improved method of iSCSI protocol Conformance Test Software iscsisim Download PDFInfo
- Publication number
- CN105356983B CN105356983B CN201510615062.8A CN201510615062A CN105356983B CN 105356983 B CN105356983 B CN 105356983B CN 201510615062 A CN201510615062 A CN 201510615062A CN 105356983 B CN105356983 B CN 105356983B
- Authority
- CN
- China
- Prior art keywords
- iscsisim
- target
- protocol
- pdu message
- test
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012360 testing method Methods 0.000 claims abstract description 39
- 239000003999 initiator Substances 0.000 claims description 9
- 238000012795 verification Methods 0.000 claims description 5
- 238000009394 selective breeding Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/24—Testing correct operation
- H04L1/242—Testing correct operation by comparing a transmitted test signal with a locally generated replica
- H04L1/244—Testing correct operation by comparing a transmitted test signal with a locally generated replica test sequence generators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol 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 present invention is more particularly directed to the improved methods of iSCSI protocol Conformance Test Software iscsisim a kind of.The improved method of iSCSI protocol Conformance Test Software iscsisim, increase PDU message comparison module, it is responsible for parsing the PDU message at the end target received and local PDU message checking file in a manner of key-value, then whether the value value of more identical key value is correct, to determine whether PDU message meets protocol conformance;Protocol negotiation object module is also added, is responsible for saving the protocol option specifically supported with the target target negotiated, iscsisim carries out testing protocol consistency according to the test option that the option selects target to support.The improved method of iSCSI protocol Conformance Test Software iscsisim, by increasing, PDU message comparison module realizes PDU message consistency desired result and target replys PDU message keyword sequence and decouples, increase the flexibility of iscsisim, by increasing protocol negotiation result global module, realizing automatic rejection target does not support item to test, reduce artificial selection, improves testing efficiency.
Description
Technical field
The present invention relates to iSCSI protocol uniformity test technical field, in particular to a kind of iSCSI protocol uniformity test
The improved method of software iscsisim.
Background technique
SCSI (SmallComputer SystemInterface) be for I/O equipment, especially storage equipment carry out
Interactive protocol family.SCSI client, i.e. " initiator " are sent to the logic unit of server end (i.e. " target ")
Scsi command is to request to service.The client-server end of SCSI protocol is mapped to specific interconnection by " SCSItransport "
System.Initiator is one end of SCSItransport, and target is the other end.
ISCSI (Internet Small Computer SystemInterface) agreement use TCP/IP as
SCSItransport.By transmitting scsi data packet on TCP/IP, iSCSI provides a kind of solution of interoperable,
Existing Internet infrastructure and management tool is utilized in it, and breaches distance limitation.With need client cables
Traditional fiber is different, and iSCI can be run in existing network system.Due to its scalability and economic benefit, iSCSI is
Through becoming popular SAN (Storage areanetwork) agreement.ISCSI is defined in IETF RFC 3720iSCSI, and
It is updated in IETF RFC 5048iSCSICorrections andClarificationsRFC.
Current iSCSI protocol consistency software I scsisim testing process, as shown in Fig. 1.The original of Iscsisim test
Reason mainly sends test PDU message by the simulation end initiator and negotiates PDU message to the end target, and is receiving
After the PDU message that the end target is replied, whether the verification end target protocol realization is consistent.Current iscsisim test directly will
Keyword carries out parsing comparison one by one for PDU message and local PDU verification file.But it is different the PDU message of target reply
Key sequence is variant, needs to adjust local PDU message checking file when testing different target according to actual order, and
Current iscsisim test does not save protocol negotiation as a result, the test that current target is not supported can not be rejected according to negotiation result
?.
In view of the above-mentioned problems, the invention proposes the improvement sides of iSCSI protocol Conformance Test Software iscsisim a kind of
Method.It is intended to increase the flexibility of iscsisim, realizes that automatic rejection target does not support item to test, reduce artificial selection, improve
Testing efficiency.
Summary of the invention
In order to compensate for the shortcomings of the prior art, the present invention provides a kind of iSCSI protocol consistency at low cost, high-efficient
The improved method of test software iscsisim.
The present invention is achieved through the following technical solutions:
A kind of improved method of iSCSI protocol Conformance Test Software iscsisim, it is characterised in that the following steps are included:
(1) iscsisim software, which is simulated the end initiator and sent to the end target, negotiates PDU message;
(2) it after iscsisim software receives target negotiation packet, is saved by protocol negotiation object module and target
The protocol option that the target of negotiation is specifically supported, the test option that iscsisim software selects target to support according to the option
Carry out testing protocol consistency;
(3) iscsisim software simulates initiator according to the protocol option of negotiation and sends test PDU report to target
Text;
(4) after iscsisim software receives PDU message, whether agreement one is met by the verification of PDU message comparison module
Cause property.
In the step (2), after the good protocol fields of the end iscsisim and target initial negotiation, iscsisim passes through agreement
Negotiation result module saves the result after negotiating in global variable;In the step (4), iscsisim is according to the association consulted
It discusses field and reads local corresponding PDU message checking file.
In the step (4), parsing receives the PDU message comparison module respectively in a manner of key-value
The PDU message and local PDU message checking file that the end target is replied, then the value value of more identical key value whether one
It causes, to determine whether PDU message meets protocol conformance.
When iSCSI protocol does not support HeaderDigest agreement item, the end target is replied PDU message and is not supported
HeaderDigest, iscsisim save the negotiation result, reject the test case comprising test HeaderDigest test item,
Other test cases are sent, iscsisim is parsed in a manner of key-value receives PDU message and local PDU message checking text
Part is compared the identical value value of key, is judged whether to meet protocol conformance with this.
The beneficial effects of the present invention are: the improved method of iSCSI protocol Conformance Test Software iscsisim, passes through increasing
Add PDU message comparison module to realize PDU message consistency desired result and target replys PDU message keyword sequence and decouples, increasing
The flexibility for having added iscsisim realizes automatic rejection target and does not support by increasing protocol negotiation result global module
Item test, reduces artificial selection, improves testing efficiency.
Detailed description of the invention
Attached drawing 1 is current iSCSI protocol consistency software I scsisim testing process schematic diagram;
Attached drawing 2 is the improved method flow diagram of iSCSI protocol Conformance Test Software iscsisim of the present invention.
Specific embodiment
Attached drawing is a kind of specific embodiment of the invention, and the present invention is described in detail with reference to the accompanying drawing.
The improved method of iSCSI protocol Conformance Test Software iscsisim, comprising the following steps:
(1) iscsisim software, which is simulated the end initiator and sent to the end target, negotiates PDU message;
(2) it after iscsisim software receives target negotiation packet, is saved by protocol negotiation object module and target
The protocol option that the target of negotiation is specifically supported, the test option that iscsisim software selects target to support according to the option
Carry out testing protocol consistency;
(3) iscsisim software simulates initiator according to the protocol option of negotiation and sends test PDU report to target
Text;
(4) after iscsisim software receives PDU message, whether agreement one is met by the verification of PDU message comparison module
Cause property.
In the step (2), after the good protocol fields of the end iscsisim and target initial negotiation, iscsisim passes through agreement
Negotiation result module saves the result after negotiating in global variable;In the step (4), iscsisim is according to the association consulted
It discusses field and reads local corresponding PDU message checking file.
In the step (4), parsing receives the PDU message comparison module respectively in a manner of key-value
The PDU message and local PDU message checking file that the end target is replied, then the value value of more identical key value whether one
It causes, to determine whether PDU message meets protocol conformance.
When iSCSI protocol does not support HeaderDigest agreement item, the end target is replied PDU message and is not supported
HeaderDigest, iscsisim save the negotiation result, reject the test case comprising test HeaderDigest test item,
Other test cases are sent, iscsisim is parsed in a manner of key-value receives PDU message and local PDU message checking text
Part is compared the identical value value of key, is judged whether to meet protocol conformance with this.
Claims (2)
1. a kind of improved method of iSCSI protocol Conformance Test Software iscsisim, it is characterised in that the following steps are included:
(1) iscsisim software, which is simulated the end initiator and sent to the end target, negotiates PDU message;
(2) it after iscsisim software receives target negotiation packet, is saved by protocol negotiation object module and is negotiated with target
The protocol option specifically supported of target, iscsisim software carries out according to the test option that the option selects target to support
Testing protocol consistency;
When iSCSI protocol does not support HeaderDigest agreement item, the end target is replied PDU message and is not supported
HeaderDigest, iscsisim save the negotiation result, reject the test case comprising test HeaderDigest test item,
Send other test cases;
(3) iscsisim software simulates initiator according to the protocol option of negotiation and sends test PDU message to target;
(4) after iscsisim software receives PDU message, whether protocol conformance is met by the verification of PDU message comparison module;
In the step (4), the PDU message comparison module parses the end target received respectively in a manner of key-value
The PDU message of reply and local PDU message checking file, then whether the value value of more identical key value is consistent, with true
Determine whether PDU message meets protocol conformance.
2. the improved method of iSCSI protocol Conformance Test Software iscsisim according to claim 1, feature exist
In: in the step (2), after the good protocol fields of the end iscsisim and target initial negotiation, iscsisim passes through protocol negotiation
Object module saves the result after negotiating in global variable;In the step (4), iscsisim is according to the agreement word consulted
Section reads local corresponding PDU message checking file.
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 CN105356983A (en) | 2016-02-24 |
CN105356983B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107872828B (en) * | 2017-12-15 | 2021-04-13 | 北京泰德东腾通信技术有限公司 | eIMTA terminal consistency test method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040015745A1 (en) * | 2002-07-22 | 2004-01-22 | Finisar Corporation | Scalable socketed testing tool |
US7921240B2 (en) * | 2004-03-10 | 2011-04-05 | Broadcom Corporation | Method and system for supporting hardware acceleration for iSCSI read and write operations and iSCSI chimney |
-
2015
- 2015-09-24 CN CN201510615062.8A patent/CN105356983B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105356983A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8312147B2 (en) | Many-to-one mapping of host identities | |
CN103179099B (en) | A kind ofly access the uniform authentication method of open website platform and a kind of website platform | |
US8069251B2 (en) | System and/or method for client-driven server load distribution | |
KR20190114023A (en) | Device identifier dependent operation processing of packet based data communication | |
US20130336323A1 (en) | Optimized bi-directional communication in an information centric network | |
CN105635324A (en) | Big file uploading and continuous uploading method and device for browser or server | |
CN104717133A (en) | Distributed message push system and method | |
CN103401946A (en) | HTTP (hyper text transfer protocol) uploading acceleration method and system | |
CN110830442A (en) | Message processing method, device and gateway | |
CN111865984A (en) | Stateless authentication method for micro-service system | |
US20160314115A1 (en) | Cross-platform messaging application | |
MX2022012325A (en) | Enabling communications between applications in a mobile operating system. | |
CN105356983B (en) | A kind of improved method of iSCSI protocol Conformance Test Software iscsisim | |
CN103220347B (en) | CRP cloud exchange method | |
US10417287B2 (en) | Compressing short text messages | |
KR102102605B1 (en) | System for providing vehicle cloud service based on distributed cloud, apparatus and control method thereof using the system | |
US9948694B2 (en) | Addressing application program interface format modifications to ensure client compatibility | |
US20130041979A1 (en) | Methods and devices for transmitting and receiving sequential content in a content centric network | |
CN104751323A (en) | Method for transferring electronic account data and related device and related system | |
WO2014085959A1 (en) | Batch file transmission method and device | |
CN108040041A (en) | A kind of image difference transport protocol design system and method based on business-driven | |
CN104967663A (en) | File transmission method and system, file sending device, and file receiving device | |
WO2017215144A1 (en) | Scheduling method, device and system, and scheduling response method and device | |
CN105635182A (en) | Data compression transmission method and system | |
JP2014026480A (en) | Output comparison method for plural information systems |
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 |