CN110401846B - Data access method, device, system, equipment and medium based on video network - Google Patents

Data access method, device, system, equipment and medium based on video network Download PDF

Info

Publication number
CN110401846B
CN110401846B CN201910642548.9A CN201910642548A CN110401846B CN 110401846 B CN110401846 B CN 110401846B CN 201910642548 A CN201910642548 A CN 201910642548A CN 110401846 B CN110401846 B CN 110401846B
Authority
CN
China
Prior art keywords
iscsi
data
packet header
protocol packet
request
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
Application number
CN201910642548.9A
Other languages
Chinese (zh)
Other versions
CN110401846A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910642548.9A priority Critical patent/CN110401846B/en
Publication of CN110401846A publication Critical patent/CN110401846A/en
Application granted granted Critical
Publication of CN110401846B publication Critical patent/CN110401846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Abstract

The embodiment of the invention provides a method, a device and a system for data access based on a video network, electronic equipment and a readable storage medium, and relates to the technical field of video networks. The method comprises the following steps: receiving a data reading request sent by an ISCSI client in a video network, deleting a video network protocol packet header in the data reading request, adding an internet protocol packet header and an ISCSI protocol packet header, sending the internet protocol packet header and the ISCSI protocol packet header to an ISCSI target end, receiving ISCSI data from the ISCSI target end, deleting the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, adding a video network protocol packet header, and sending the video network protocol packet header to the ISCSI client. By adopting the scheme of the invention, the data on the physical hard disk in the storage array is read or the data is written into the physical hard disk in the storage array through the terminal which is provided with the ISCSI client side in the video network or the equipment which supports the ISCSI protocol, so that the application range of the storage service related to the video network is expanded, the ISCSI related equipment can be applied to the video network, and the expansion of the application range of the video network is facilitated.

Description

Data access method, device, system, equipment and medium based on video network
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a readable storage medium for data access based on video networking.
Background
The video network is a real-time switching platform, is a higher-level form of the internet, faces to potential huge video flow on the network, adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, directly bears an IP data packet, does not need format conversion in the whole network range of user data, and can realize the real-time transmission of the whole network high-definition video which can not be realized by the internet at present.
Therefore, the video network pushes a plurality of internet applications to high-definition video and unification, the high-definition faces to each other, finally, the world has no distance, and the distance between people in the world is only one plane.
At present, ISCSI equipment in the internet cannot be used in the video networking, data interaction with a storage array of an SCSI protocol cannot be carried out according to transmission characteristics of the video networking, the range of storage services related to the video networking is limited, and the application of the ISCSI equipment in the video networking is also limited.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, a system, an electronic device, and a readable storage medium for data access based on a video network, which solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a method for data access based on a video network, where the method is applied to an ISCSI proxy module, and the method includes:
receiving a read data request sent by an ISCSI client in the video network, wherein the read data request is a request for reading data in an ISCSI target end;
deleting a video networking protocol packet header in the data reading request, and adding an Internet protocol packet header and an ISCSI protocol packet header;
sending a data reading request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
receiving ISCSI data from the ISCSI target end, wherein the ISCSI data are data which are sent by a storage array managed by the ISCSI target end and carry an Internet protocol packet header and an ISCSI protocol packet header;
deleting an internet protocol packet header and an ISCSI protocol packet header in the ISCSI data, and adding a video networking protocol packet header;
and sending the ISCSI data added with the video networking protocol packet header to an ISCSI client.
Optionally, the method further comprises:
receiving a write data request and required write data sent by an ISCSI client in the video network, wherein the write data request is a request for writing data to an ISCSI target end;
deleting the write data request and the video networking protocol packet header in the data required to be written, and adding an internet protocol packet header and an ISCSI protocol packet header;
sending a write-in data request and required write-in data after adding an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
receiving a response instruction from the ISCSI target end, wherein the response instruction is an instruction which is sent after a storage array managed by the ISCSI target end responds to the write data request and the required write data and writes the required write data into the storage array, and the instruction carries an Internet protocol packet header and an ISCSI protocol packet header;
deleting the internet protocol packet header and the ISCSI protocol packet header in the response instruction, and adding a video networking protocol packet header;
and sending the response instruction added with the video networking protocol header to the ISCSI client.
Optionally, before receiving a read data request sent from an ISCSI client in the video network, the method further includes:
acquiring a logic unit number of a storage array managed by the ISCSI target end, and adding a video networking protocol packet header;
and sending the logical unit number to the ISCSI client so that the ISCSI client reads data on a target physical hard disk in the storage array, wherein the logical unit number is the logical unit number which is determined by the ISCSI client and corresponds to the sequence number of the target physical hard disk in the storage array.
Optionally, before acquiring the logical unit number of the storage array managed by the ISCSI target and adding the video networking protocol header, the method further includes:
receiving a logic unit number request sent by an ISCSI client in a video network, wherein the logic unit number request is a request for acquiring a logic unit number of a storage array managed by an ISCSI target end;
deleting the video networking protocol packet header in the logic unit number request, and adding an Internet protocol packet header and an ISCSI protocol packet header;
sending a logic unit number request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
receiving a logic unit number data packet from the ISCSI target end, wherein the logic unit number data packet is a data packet carrying an Internet protocol packet header and an ISCSI protocol packet header;
and extracting data in the logical unit number data packet to obtain the logical unit number of the storage array managed by the ISCSI target end.
The embodiment of the invention also provides a device for data access based on the video network, which is applied to the ISCSI proxy module and comprises:
a reading request receiving module, configured to receive a reading data request sent by an ISCSI client in a video network, where the reading data request is a request for reading data in an ISCSI target end;
a first deleting and adding packet header module, configured to delete the video networking protocol packet header in the data reading request, and add an internet protocol packet header and an ISCSI protocol packet header;
the first sending module is used for sending a data reading request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
a data receiving module, configured to receive ISCSI data from the ISCSI target end, where the ISCSI data is data carrying an internet protocol packet header and an ISCSI protocol packet header and sent by a storage array managed by the ISCSI target end;
a second deleting and adding packet header module, configured to delete the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, and add the video networking protocol packet header;
and the second sending module is used for sending the ISCSI data added with the video networking protocol packet header to the ISCSI client.
Optionally, the apparatus further comprises:
a write request data receiving module, configured to receive a write data request and data to be written from an ISCSI client in a video network, where the write data request is a request for writing data to an ISCSI target;
a third deleting and adding packet header module, configured to delete the write data request and the video networking protocol packet header in the data to be written, and add an internet protocol packet header and an ISCSI protocol packet header;
a third sending module, configured to send the write data request and the data to be written to the ISCSI target end after the internet protocol packet header and the ISCSI protocol packet header are added;
a response instruction receiving module, configured to receive a response instruction from the ISCSI target end, where the response instruction is an instruction that is issued after a storage array managed by the ISCSI target end responds to the write data request and the data to be written, and writes the data to be written into the ISCSI target end, and carries an internet protocol packet header and an ISCSI protocol packet header;
a fourth deleting and adding packet header module, configured to delete the internet protocol packet header and the ISCSI protocol packet header in the response instruction, and add the video networking protocol packet header;
and the fourth sending module is used for sending the response instruction added with the video networking protocol header to the ISCSI client.
Optionally, the apparatus further comprises:
an acquiring unit number module, configured to acquire a logical unit number of a storage array managed by the ISCSI target end, and add a video networking protocol packet header;
a sending unit number module, configured to send the logical unit number to the ISCSI client, so that the ISCSI client reads data on a target physical hard disk in the storage array, where the logical unit number is a logical unit number that the ISCSI client determines in the storage array and corresponds to the sequence number of the target physical hard disk.
Optionally, the apparatus further comprises:
a receiving request unit number module, configured to receive a logic unit number request sent by an ISCSI client in a video network, where the logic unit number request is a request for acquiring a logic unit number of a storage array managed by an ISCSI target end;
a fifth deleting and adding packet header module, configured to delete the video networking protocol packet header in the logic unit number request, and add the internet protocol packet header and the ISCSI protocol packet header;
a fifth sending module, configured to send the logic unit number request after adding the internet protocol packet header and the ISCSI protocol packet header to the ISCSI target end;
a data packet receiving module, configured to receive a logic unit number data packet from the ISCSI target end, where the logic unit number data packet is a data packet carrying an internet protocol packet header and an ISCSI protocol packet header;
and the data extracting module is used for extracting data in the logical unit number data packet to obtain the logical unit number of the storage array managed by the ISCSI target end.
The embodiment of the invention also provides a system for data access based on the video network, which is characterized by comprising the following components: the video network terminal comprises an ISCSI client, and the video network server comprises: a video networking network card, an internet network card, and an ISCSI proxy module for performing any of the above methods.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to the present invention.
An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the electronic device implements the steps in the above-described method of the present invention.
The method for accessing data based on the video network receives a data reading request sent by an ISCSI client in the video network, deletes a video network protocol packet header in the data reading request, adds an Internet protocol packet header and an ISCSI protocol packet header, then sends the data reading request to an ISCSI target end, receives ISCSI data from the ISCSI target end, deletes the Internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, adds the video network protocol packet header, and sends the ISCSI data to the ISCSI client. By adopting the scheme of the invention, a user can obtain data on a physical hard disk in a storage array based on an SCSI protocol through a terminal which is arbitrarily provided with an ISCSI client in the video networking or equipment supporting the ISCSI protocol, so that the application range of storage services related to the video networking is expanded, the ISCSI related equipment can be applied to the video networking, and the expansion of the application range of the video networking is facilitated.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flow chart of a method of video networking-based data access according to an embodiment of the present invention;
FIG. 6 is a flow chart of steps in a write data case of a method of video-networking based data access according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a system for video-networking based data access according to an embodiment of the present invention;
fig. 8 is a block diagram of an apparatus for data access based on a video network according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video networking, one of the core concepts of the embodiment of the invention is provided, and the ISCSI protocol in the internet is converted into the video networking protocol according to the protocol of the video networking, so that the ISCSI related equipment can be applied to the video networking and performs data interaction with the storage array of the SCSI protocol.
The inventor finds that the ISCSI-related devices cannot be applied to the video networking at present because the ISCSI-related devices are based on the ISCSI protocol for communication connection and data interaction, and the devices do not support the video networking protocol, so that the ISCSI-related devices cannot perform data interaction with a physical hard disk in a storage array based on the SCSI protocol in the video networking, which not only limits the range of storage services related to the video networking, but also limits the application of the ISCSI-related devices in the video networking.
In order to solve the above problems, the inventors have conducted extensive research and creatively provided a method for interfacing and converting an ISCSI protocol and a video networking protocol, where the method is based on an ISCSI proxy module, and the ISCSI proxy module can be simply and conveniently installed on a video networking server, so that devices in the video networking or ISCSI-related devices in the video networking can interact with physical hard disks in a storage array based on an SCSI protocol. The invention is explained and illustrated in detail below.
Fig. 5 is a flowchart illustrating a method for data access based on a video network, which is applied to an ISCSI proxy module, according to an embodiment of the present invention, and the method for data access based on a video network includes the following steps:
step 101: and receiving a read data request sent by an ISCSI client in the video network, wherein the read data request is a request for reading data in an ISCSI target end.
In the embodiment of the invention, ISCSI (Internet small computer system interface) is a standard for data block transmission on TCP/IP. ISCSI enables the SCSI protocol to be run over internet IP networks, enabling fast data access backup operations over, for example, high-speed gigabit ethernet. ISCSI inherits two traditional technologies: SCSI and TCP/IP protocol, which lays a solid foundation for the development of ISCSI. The ISCSI-based storage system can realize the SAN storage function only by little investment and can even be realized by directly utilizing the existing TCP/IP network. Compared with the prior network storage technology, the method solves the problems of openness, capacity, transmission speed, compatibility, safety and the like.
When the device in the video network or the ISCSI related device in the video network needs to acquire data on the physical hard disk in the storage array based on the SCSI protocol, a read data request needs to be sent to the ISCSI proxy module, and the ISCSI proxy module is installed on the video network server and receives the read data request, where the read data request is a request for reading data in the ISCSI target end.
It should be noted that, when the devices in the video network need to perform data interaction with the physical hard disk in the storage array based on the SCSI protocol, it is only necessary to install an ISCSI client.
For example: terminal a in the video network installs an ISCSI client, which sends a read data request to the video network server in the format: the video networking Header/SCSI Commands, wherein the video networking Header refers to a video networking protocol packet Header; the SCSI Commands refer to SCSI Commands, which are Commands for reading data, and the ISCSI proxy module of the video network server receives a read data request in this format.
Step 102: and deleting the video networking protocol header in the data reading request, and adding the Internet protocol header and the ISCSI protocol header.
Step 103: and sending the data reading request added with the internet protocol packet header and the ISCSI protocol packet header to an ISCSI target end.
In the embodiment of the invention, after receiving a data reading request, an ISCSI agent module of a video network server deletes a video network protocol packet header in the data reading request, only retains an SCSI instruction in the data reading request, and adds the Internet protocol packet header and the ISCSI protocol packet header to the SCSI instruction, so that the data reading request can be transmitted in the Internet. And finally, sending the read data request to an ISCSI target end, wherein the ISCSI target end refers to a service end for managing a storage array, the storage array is generally formed by combining a plurality of physical hard disks, and control and data interaction are realized among the plurality of physical hard disks and between the ISCSI target end and the plurality of physical hard disks based on an SCSI protocol and an SCSI instruction set.
For example: after the ISCSI agent module receives the data reading request, deleting a video networking protocol packet header: video networking Header refers to the SCSI command: SCSI Commands, and then adds an internet protocol packet header and an ISCSI protocol packet header to the SCSI command, where the format of the read data request is: TCP Header/IP Header/ISCSI Header/SCSI Commands; wherein, TCP Header/IP Header refers to the internet protocol Header, ISCSI Header refers to the ISCSI protocol Header, so that the read data request can be transmitted in the internet. The ISCSI agent module in the video network server formats the request as: the read data request of TCP Header/IP Header/ISCSI Header/SCSI Commands is sent to the ISCSI target end.
Step 104: and receiving ISCSI data from an ISCSI target end, wherein the ISCSI data are data which are sent by a storage array managed by the ISCSI target end and carry an Internet protocol packet header and an ISCSI protocol packet header.
In the embodiment of the invention, after receiving a data reading request, the ISCSI target end removes an internet protocol packet header and an ISCSI protocol packet header to obtain an SCSI instruction, reads required data from a corresponding physical hard disk in a storage array according to the SCSI instruction, then adds the internet protocol packet header and the ISCSI protocol packet header to the data, and sends the data to an ISCSI proxy module in a video network server.
For example: the format of the request received by the ISCSI target end is as follows: the data reading request of TCP Header/IP Header/ISCSI Header/SCSI Commands removes the Internet protocol packet Header and the ISCSI protocol packet Header to obtain an SCSI command: and the SCSI Commands reads the required data from the corresponding physical hard disk in the storage array according to the SCSI Commands: data, add the internet protocol header and ISCSI protocol header to the Data, at this time, the Data format is: TCP Header/IP Header/ISCSI Header/SCSI Data, and sends the Data to the ISCSI agent module in the video network server.
Step 105: and deleting the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, and adding the video networking protocol packet header.
Step 106: and sending the ISCSI data added with the video networking protocol packet header to an ISCSI client.
In the embodiment of the invention, after the ISCSI agent module in the video networking server receives the required data, the Internet protocol packet header and the ISCSI protocol packet header in the ISCSI data are deleted, and the video networking protocol packet header is added on the ISCSI data, so that the required data can be transmitted in the video networking. And finally, sending the required data to an ISCSI client initiating a data reading request.
For example: the ISCSI agent module in the video network server receives the data with the format: the required Data of TCP Header/IP Header/ISCSI Header/SCSI Data, delete Internet protocol packet Header and ISCSI protocol packet Header in ISCSI Data, keep the required Data: SCSI Data, where a video networking protocol header is added, and at this time, the format of the required Data is: video networking Header/SCSI Data. And finally, sending the required data to a terminal A in the video network where the ISCSI client initiating the data reading request is located. And after receiving the required data, the terminal A deletes the video networking protocol header to obtain the required data.
Therefore, any device in the video network or the ISCSI related device can read the data on the physical hard disk in the storage array based on the SCSI protocol.
Optionally, before the ISCSI client sends the request in the video network, the method for data access based on the video network further includes:
step S1: and receiving a logic unit number request sent by an ISCSI client in the video network, wherein the logic unit number request is a request for acquiring the logic unit number of the storage array managed by the ISCSI target.
In the embodiment of the present invention, because there are multiple physical hard disks in the storage array managed by the ISCSI target, in order to distinguish each physical hard disk, each physical hard disk corresponds to a unique logical unit number, for example: the storage array comprises 10 physical hard disks, and each physical hard disk corresponds to a unique logical unit number: 001. 002 … up to 010. These logical unit numbers are used by the ISCSI target, so that the ISCSI target can clearly distinguish the 10 physical hard disks.
When an ISCSI client in a video network needs to read data on a physical hard disk in a storage array, it needs to determine which physical hard disk data is read first, so the ISCSI client in the video network needs to obtain a logical unit number of the storage array, and the ISCSI client in the video network sends a logical unit number request to an ISCSI proxy module to request to obtain the logical unit number of the storage array. Receiving a transmission from an ISCSI client in a video networking
For example: the ISCSI agent module in the video network server receives the data with the format: a logic unit number request of a video networking Header/SCSI Commands, wherein the video networking Header refers to a video networking protocol packet Header; SCSI Commands refers to SCSI instructions, which are instructions that get logical unit numbers.
Step S2: deleting the video networking protocol packet header in the logic unit number request, and adding an Internet protocol packet header and an ISCSI protocol packet header;
step S3: sending a logic unit number request added with an internet protocol packet header and an ISCSI protocol packet header to an ISCSI target end;
step S4: receiving a logic unit number data packet from an ISCSI target end, wherein the logic unit number data packet is a data packet carrying an Internet protocol packet header and an ISCSI protocol packet header;
step S5: and extracting data in the logical unit number data packet to obtain the logical unit number of the storage array managed by the ISCSI target end.
Step S6: acquiring a logic unit number of a storage array managed by an ISCSI target end, and adding a video networking protocol packet header;
step S7: and sending the logical unit number to the ISCSI client so that the ISCSI client can read the data on the target physical hard disk in the storage array, wherein the logical unit number is the logical unit number corresponding to the serial number of the target physical hard disk in the storage array determined by the ISCSI client.
In the embodiment of the invention, after the ISCSI agent module receives a logic unit number request, according to a process similar to the process of the step 102-106, firstly, a video networking protocol packet header in the logic unit number request is deleted, an Internet protocol packet header and an ISCSI protocol packet header are added and sent to an ISCSI target end, after the ISCSI target end receives the logic unit number request, the Internet protocol packet header and the ISCSI protocol packet header are removed to obtain an SCSI instruction, the logic unit number of a managed storage array of the ISCSI agent module is packaged into a logic unit number data packet according to the SCSI instruction and sent to the ISCSI agent module, and of course, the Internet protocol packet header and the ISCSI protocol packet header are added to the logic unit number data packet before sending.
After receiving the logical unit number data packet, the ISCSI agent module deletes the Internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, extracts the data in the logical unit number data packet, obtains the logical unit number of the storage array managed by the ISCSI target end, adds the video networking protocol packet header on the logical unit number, and sends the logical unit number to the ISCSI client side which initiates the logical unit number request.
After the ISCSI client obtains the logical unit number, the read data request sent to the storage array includes the logical unit number to determine the target physical hard disk for which data needs to be read.
Optionally, referring to fig. 6, which is a flowchart illustrating steps in a data writing situation in a data access method based on the internet of view according to an embodiment of the present invention, another situation may also occur in practical applications, where an ISCSI client needs to write data to a storage array, and the data writing method includes:
step 201: and receiving a write data request and required write data sent by an ISCSI client in the video network, wherein the write data request is a request for writing data to an ISCSI target end.
In the embodiment of the invention, when the ISCSI client needs to write data into the storage array, a write data request and the required write data are firstly sent to the ISCSI agent module, wherein the write data request is a request for writing data into the ISCSI target end.
For example: the terminal A in the video network installs ISCSI client, and sends write data request and required write data to ISCSI agent module, the format of the request is: the video networking Header/SCSI Commands & Data, wherein the video networking Header refers to a video networking protocol packet Header; the SCSI Commands & Data refer to SCSI Commands and Data to be written, which are Commands for writing Data, and the write Data request also includes a logical unit number.
Step 202: deleting the data writing request and the video networking protocol packet header in the data to be written, and adding an Internet protocol packet header and an ISCSI protocol packet header.
Step 203: and sending the write data request and the required write data after the internet protocol packet header and the ISCSI protocol packet header are added to the ISCSI target end.
In the embodiment of the invention, after receiving a write data request and data to be written, an ISCSI agent module of a video network server deletes a video network protocol packet header in the write data request and the data to be written, only retains an SCSI instruction and data to be written in, and adds the Internet protocol packet header and the ISCSI protocol packet header to the SCSI instruction and the data to be written so that the write data request and the data to be written can be transmitted in the Internet. And finally, sending the write data request and the required write data to the ISCSI target end.
For example: after the ISCSI agent module receives the data reading request, deleting a video networking protocol packet header: video networking Header refers to, holding SCSI commands and required write data: SCSI Commands & Data, and then add an internet protocol packet header and an ISCSI protocol packet header, where the format of the write Data request and the required write Data is: TCP Header/IP Header/ISCSI Header/SCSI Commands & Data; the TCP Header/IP Header refers to an internet protocol Header, and the ISCSI Header refers to an ISCSI protocol Header, so that the write data request and the required write data can be transmitted in the internet. The ISCSI proxy module in the video networking server will format as: the write Data request and the required write Data of the TCP Header/IP Header/ISCSI Header/SCSI Commands & Data are sent to the ISCSI target end.
Step 204: and receiving a response instruction from the ISCSI target end, wherein the response instruction is an instruction which is sent after the storage array managed by the ISCSI target end responds to the write data request and the required write data and writes the required write data into the storage array, and the instruction carries an Internet protocol packet header and an ISCSI protocol packet header.
In the embodiment of the invention, after receiving a write data request and data to be written, an ISCSI target end removes an internet protocol packet header and an ISCSI protocol packet header to obtain an SCSI command and data to be written, and writes the data to be written into a corresponding physical hard disk in a storage array according to the SCSI command. Of course, before sending the response command, the internet protocol packet header and the ISCSI protocol packet header are added to the response command, and the response command is sent to the ISCSI proxy module in the video network server.
For example: the format of the request received by the ISCSI target end is as follows: the Data writing request and the Data required to be written of the TCP Header/IP Header/ISCSI Header/SCSI Commands & Data are removed, an Internet protocol packet Header and an ISCSI protocol packet Header are removed, and an SCSI command and the Data required to be written are obtained: according to the SCSI Commands and Data, writing Data to be written into a corresponding physical hard disk in a storage array according to the SCSI Commands, then generating a response instruction, and adding an internet protocol packet header and an ISCSI protocol packet header to the response instruction, wherein the format of the response instruction is as follows: TCP Header/IP Header/ISCSI Header/SCSI Commands, and sends the response command to the ISCSI agent module in the video network server.
Step 205: and deleting the internet protocol packet header and the ISCSI protocol packet header in the response instruction, and adding the video networking protocol packet header.
Step 206: and sending the response instruction added with the video networking protocol header to the ISCSI client.
In the embodiment of the invention, after the ISCSI agent module in the video networking server receives the response instruction, the Internet protocol packet header and the ISCSI protocol packet header in the response instruction are deleted, and the video networking protocol packet header is added on the response instruction, so that the response instruction can be transmitted in the video networking. And finally, sending the response instruction to the ISCSI client initiating the write data request.
For example: the ISCSI agent module in the video network server receives the data with the format: the response instruction of TCP Header/IP Header/ISCSI Header/SCSI Commands deletes the Internet protocol packet Header and the ISCSI protocol packet Header in the response instruction, and reserves the response instruction: SCSI Commands, add video networking protocol header to them, and at this time, the format of the response command is: video networking Header/SCSI Commands. And finally, sending the response instruction to a terminal A in the video network where the ISCSI client initiating the data writing request is located. And after receiving the response instruction, the terminal A deletes the head of the video networking protocol packet to obtain the content of the response instruction, knows whether the data is written successfully or not, and can write the data again if the data is not written successfully.
Thus, data can be written into the physical hard disk in the storage array based on the SCSI protocol by any equipment in the video network or ISCSI related equipment.
In summary, the scheme of the present invention realizes data interaction between a device based on the ISCSI protocol and a physical hard disk in a storage array based on the SCSI protocol in the video networking, and the ISCSI proxy module according to the embodiment of the present invention can be installed on any intelligent device, and has high universal compatibility.
Fig. 7 is a schematic diagram of a system for data access based on internet of vision according to an embodiment of the present invention, which includes an ISCSI device, an internet of vision server, an ISCSI target, and a storage array, wherein the ISCSI proxy module is installed on the internet of vision server.
ISCSI equipment 3# sends a logic unit number request to an ISCSI agent module in the video networking server: the ISCSI agent module processes the request as follows: TCP Header/IP Header/ISCSI Header/SCSI Commands, and then sending the TCP Header/IP Header/ISCSI Commands to an ISCSI target end, after the ISCSI target end receives a logic unit number request, removing an Internet protocol packet Header and an ISCSI protocol packet Header to obtain an SCSI instruction, and according to the SCSI instruction, the logic unit number of the managed storage array of the SCSI instruction is: 001. 002 … 010 is packed into a logic unit number data packet and sent to the ISCSI proxy module, after the ISCSI proxy module receives the logic unit number data packet, the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data are deleted, the data in the logic unit number data packet is extracted, and the logic unit number of the storage array managed by the ISCSI target end is obtained: 001. 002 … 010, after which adds an internet protocol packet header thereon, and adds the logical element number: 001. 002 … 010 sends to the 3# that initiates the logical unit number request.
And 3# sending a write-in Data request and required write-in Data to the ISCSI agent module, wherein the ISCSI agent module receives the read Data request and then processes the read Data request to obtain the write-in Data request and the required write-in Data in the following formats: TCP Header/IP Header/ISCSI Header/SCSI Commands & Data; and sent to the ISCSI target.
The format of the request received by the ISCSI target end is as follows: the Data writing request and the Data required to be written of the TCP Header/IP Header/ISCSI Header/SCSI Commands & Data are removed, an Internet protocol packet Header and an ISCSI protocol packet Header are removed, and an SCSI command and the Data required to be written are obtained: according to the SCSI Commands and Data, the Data required to be written is successfully written into the corresponding physical hard disk in the storage array, and then a response command is generated: TCP Header/IP Header/ISCSI Header/SCSI Commands, and sends the response command to the ISCSI agent module in the video network server.
The ISCSI agent module in the video network server receives the data with the format: the response instruction format of the TCP Header/IP Header/ISCSI Header/SCSI Commands after processing is as follows: video networking Header/SCSI Commands. The response command is sent to # 3 where the write data request is initiated. And 3# deletes the packet header of the video networking protocol after receiving the response instruction to obtain the content of the response instruction and know that the data is successfully written.
Referring to fig. 8, a block diagram of an apparatus for data access based on video network according to an embodiment of the present invention is shown, the apparatus is applied to an ISCSI proxy module, and the apparatus for data access based on video network includes:
a read request receiving module 310, configured to receive a read data request sent by an ISCSI client in the internet of view, where the read data request is a request for reading data in an ISCSI target end;
a first delete add packet header module 320, configured to delete the video networking protocol packet header in the data reading request, and add the internet protocol packet header and the ISCSI protocol packet header;
a first sending module 330, configured to send the read data request after adding the internet protocol packet header and the ISCSI protocol packet header to an ISCSI target end;
a data receiving module 340, configured to receive ISCSI data from an ISCSI target end, where the ISCSI data is data carrying an internet protocol packet header and an ISCSI protocol packet header and sent by a storage array managed by the ISCSI target end;
a second delete add packet header module 350, configured to delete the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, and add the video networking protocol packet header;
the second sending module 360 is configured to send the ISCSI data to which the video networking protocol header is added to the ISCSI client.
Optionally, the apparatus for data access based on video network further comprises:
a write request data receiving module, configured to receive a write data request and data to be written from an ISCSI client in a video network, where the write data request is a request for writing data to an ISCSI target;
a third deleting and adding packet header module, configured to delete the data writing request and a video networking protocol packet header in the data to be written, and add an internet protocol packet header and an ISCSI protocol packet header;
the third sending module is used for sending the write-in data request and the required write-in data after the internet protocol packet header and the ISCSI protocol packet header are added to the ISCSI target end;
the response instruction receiving module is used for receiving a response instruction from the ISCSI target end, wherein the response instruction is an instruction which is sent after the storage array managed by the ISCSI target end responds to the write-in data request and the required write-in data and writes the required write-in data into the storage array, and the instruction carries an Internet protocol packet header and an ISCSI protocol packet header;
the fourth deleting and adding packet header module is used for deleting the internet protocol packet header and the ISCSI protocol packet header in the response instruction and adding the video networking protocol packet header;
and the fourth sending module is used for sending the response instruction added with the video networking protocol header to the ISCSI client.
Optionally, the apparatus for data access based on video network further comprises:
the acquisition unit number module is used for acquiring the logic unit number of the storage array managed by the ISCSI target end and adding a video networking protocol packet header;
and the sending unit number module is used for sending the logic unit number to the ISCSI client so that the ISCSI client can read the data on the target physical hard disk in the storage array, and the logic unit number is the logic unit number corresponding to the serial number of the target physical hard disk in the storage array determined by the ISCSI client.
Optionally, the apparatus for data access based on video network further comprises:
a request receiving unit number module, configured to receive a logic unit number request sent by an ISCSI client in a video network, where the logic unit number request is a request for obtaining a logic unit number of a storage array managed by an ISCSI target end;
a fifth deleting and adding packet header module, configured to delete the video networking protocol packet header in the logic unit number request, and add the internet protocol packet header and the ISCSI protocol packet header;
a fifth sending module, configured to send the logic unit number request after adding the internet protocol packet header and the ISCSI protocol packet header to the ISCSI target end;
the receiving data packet module is used for receiving a logic unit number data packet from an ISCSI target end, wherein the logic unit number data packet is a data packet carrying an Internet protocol packet header and an ISCSI protocol packet header;
and the data extracting module is used for extracting data in the logical unit number data packet and acquiring the logical unit number of the storage array managed by the ISCSI target end.
Through the embodiments, the invention provides a method, a device, a system, an electronic device and a readable storage medium for data access based on a video network, which receives a logical unit number request sent by an ISCSI client in the video network, obtains the logical unit number of a physical hard disk in a storage array managed by an ISCSI target end, sends a data reading request to the ISCSI target end, or writing a data request and data to be written, deleting a corresponding video networking protocol packet header, adding an internet protocol packet header and an ISCSI protocol packet header, then sending a data reading request or a data writing request and data to be written to an ISCSI target end, executing a corresponding instruction by the ISCSI target end according to the request, sending ISCSI data or a response instruction to the ISCSI agent module, deleting the corresponding internet protocol packet header and the ISCSI protocol packet header by the ISCSI agent module, adding the video networking protocol packet header, and sending the ISCSI data or the response instruction to the ISCSI client. By adopting the scheme of the invention, a user can read data on a physical hard disk in a storage array based on an SCSI protocol or write data into the physical hard disk in the storage array through a terminal which is arbitrarily provided with an ISCSI client in the video network or a device supporting the ISCSI protocol, so that the application range of storage services related to the video network is expanded, the ISCSI related devices can be applied to the video network, and the expansion of the application range of the video network is facilitated.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for data access based on video network, wherein the method is applied to an ISCSI proxy module, the ISCSI proxy module is installed on a video network server, and the method comprises:
receiving a read data request sent by an ISCSI client in the video network, wherein the read data request is a request for reading data in an ISCSI target end;
deleting a video networking protocol packet header in the data reading request, and adding an Internet protocol packet header and an ISCSI protocol packet header;
sending a data reading request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end; after the ISCSI target end receives the data reading request, removing an Internet protocol packet header and an ISCSI protocol packet header to obtain an SCSI instruction, reading SCSI data from a corresponding physical hard disk in a storage array according to the SCSI instruction, and then adding the Internet protocol packet header and the ISCSI protocol packet header to the SCSI data;
receiving ISCSI data from the ISCSI target end, wherein the ISCSI data are data which are sent by a storage array managed by the ISCSI target end and carry an Internet protocol packet header and an ISCSI protocol packet header;
deleting an internet protocol packet header and an ISCSI protocol packet header in the ISCSI data, and adding a video networking protocol packet header;
and sending the ISCSI data added with the video networking protocol packet header to an ISCSI client.
2. The method of claim 1, further comprising:
receiving a write data request and required write data sent by an ISCSI client in the video network, wherein the write data request is a request for writing data to an ISCSI target end;
deleting the write data request and the video networking protocol packet header in the data required to be written, and adding an internet protocol packet header and an ISCSI protocol packet header;
sending a write-in data request and required write-in data after adding an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
receiving a response instruction from the ISCSI target end, wherein the response instruction is an instruction which is sent after a storage array managed by the ISCSI target end responds to the write data request and the required write data and writes the required write data into the storage array, and the instruction carries an Internet protocol packet header and an ISCSI protocol packet header;
deleting the internet protocol packet header and the ISCSI protocol packet header in the response instruction, and adding a video networking protocol packet header;
and sending the response instruction added with the video networking protocol header to the ISCSI client.
3. The method of claim 1, wherein prior to receiving a read data request from an ISCSI client in a video network, the method further comprises:
acquiring a logic unit number of a storage array managed by the ISCSI target end, and adding a video networking protocol packet header;
and sending the logical unit number to the ISCSI client so that the ISCSI client reads data on a target physical hard disk in the storage array, wherein the logical unit number is the logical unit number which is determined by the ISCSI client and corresponds to the sequence number of the target physical hard disk in the storage array.
4. The method of claim 3, wherein before obtaining the logical unit number of the storage array managed by the ISCSI target and adding an internet protocol header, the method further comprises:
receiving a logic unit number request sent by an ISCSI client in a video network, wherein the logic unit number request is a request for acquiring a logic unit number of a storage array managed by an ISCSI target end;
deleting the video networking protocol packet header in the logic unit number request, and adding an Internet protocol packet header and an ISCSI protocol packet header;
sending a logic unit number request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end;
receiving a logic unit number data packet from the ISCSI target end, wherein the logic unit number data packet is a data packet carrying an Internet protocol packet header and an ISCSI protocol packet header;
and extracting data in the logical unit number data packet to obtain the logical unit number of the storage array managed by the ISCSI target end.
5. An apparatus for data access based on video network, wherein the apparatus is applied to an ISCSI proxy module, the ISCSI proxy module is installed on a video network server, the apparatus comprises:
a reading request receiving module, configured to receive a reading data request sent by an ISCSI client in a video network, where the reading data request is a request for reading data in an ISCSI target end;
a first deleting and adding packet header module, configured to delete the video networking protocol packet header in the data reading request, and add an internet protocol packet header and an ISCSI protocol packet header;
the first sending module is used for sending a data reading request added with an internet protocol packet header and an ISCSI protocol packet header to the ISCSI target end; after the ISCSI target end receives the data reading request, removing an Internet protocol packet header and an ISCSI protocol packet header to obtain an SCSI instruction, reading SCSI data from a corresponding physical hard disk in a storage array according to the SCSI instruction, and then adding the Internet protocol packet header and the ISCSI protocol packet header to the SCSI data;
a data receiving module, configured to receive ISCSI data from the ISCSI target end, where the ISCSI data is data carrying an internet protocol packet header and an ISCSI protocol packet header and sent by a storage array managed by the ISCSI target end;
a second deleting and adding packet header module, configured to delete the internet protocol packet header and the ISCSI protocol packet header in the ISCSI data, and add the video networking protocol packet header;
and the second sending module is used for sending the ISCSI data added with the video networking protocol packet header to the ISCSI client.
6. The apparatus of claim 5, further comprising:
a write request data receiving module, configured to receive a write data request and data to be written from an ISCSI client in a video network, where the write data request is a request for writing data to an ISCSI target;
a third deleting and adding packet header module, configured to delete the write data request and the video networking protocol packet header in the data to be written, and add an internet protocol packet header and an ISCSI protocol packet header;
a third sending module, configured to send the write data request and the data to be written to the ISCSI target end after the internet protocol packet header and the ISCSI protocol packet header are added;
a response instruction receiving module, configured to receive a response instruction from the ISCSI target end, where the response instruction is an instruction that is issued after a storage array managed by the ISCSI target end responds to the write data request and the data to be written, and writes the data to be written into the ISCSI target end, and carries an internet protocol packet header and an ISCSI protocol packet header;
a fourth deleting and adding packet header module, configured to delete the internet protocol packet header and the ISCSI protocol packet header in the response instruction, and add the video networking protocol packet header;
and the fourth sending module is used for sending the response instruction added with the video networking protocol header to the ISCSI client.
7. The apparatus of claim 5, further comprising:
an acquiring unit number module, configured to acquire a logical unit number of a storage array managed by the ISCSI target end, and add a video networking protocol packet header;
a sending unit number module, configured to send the logical unit number to the ISCSI client, so that the ISCSI client reads data on a target physical hard disk in the storage array, where the logical unit number is a logical unit number that the ISCSI client determines in the storage array and corresponds to the sequence number of the target physical hard disk.
8. A system for video-networking based data access, the system comprising: the video network terminal comprises an ISCSI client, and the video network server comprises: a video networking card, an internet networking card, and an ISCSI proxy module for performing the method of any of claims 1-4.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executed implements the steps of the method according to any of claims 1-4.
CN201910642548.9A 2019-07-16 2019-07-16 Data access method, device, system, equipment and medium based on video network Active CN110401846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642548.9A CN110401846B (en) 2019-07-16 2019-07-16 Data access method, device, system, equipment and medium based on video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910642548.9A CN110401846B (en) 2019-07-16 2019-07-16 Data access method, device, system, equipment and medium based on video network

Publications (2)

Publication Number Publication Date
CN110401846A CN110401846A (en) 2019-11-01
CN110401846B true CN110401846B (en) 2022-04-12

Family

ID=68325691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910642548.9A Active CN110401846B (en) 2019-07-16 2019-07-16 Data access method, device, system, equipment and medium based on video network

Country Status (1)

Country Link
CN (1) CN110401846B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131163A (en) * 2019-11-26 2020-05-08 视联动力信息技术股份有限公司 Data processing method and device based on video network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161335A (en) * 2015-03-25 2016-11-23 北京视联动力国际信息技术有限公司 A kind for the treatment of method and apparatus of network packet
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN107959665A (en) * 2016-10-18 2018-04-24 北京视联动力国际信息技术有限公司 A kind of communication means and communication system
CN108418778A (en) * 2017-02-09 2018-08-17 北京视联动力国际信息技术有限公司 A kind of internet and method, apparatus and interactive system regarding connected network communication
CN109151610A (en) * 2018-09-07 2019-01-04 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus receiving web camera picture
CN109495794A (en) * 2018-10-19 2019-03-19 视联动力信息技术股份有限公司 A kind of view networked terminals control method and system
CN109743284A (en) * 2018-11-27 2019-05-10 视联动力信息技术股份有限公司 A kind of method for processing video frequency and system based on view networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9888064B2 (en) * 2015-02-11 2018-02-06 International Business Machines Corporation Load-balancing input/output requests in clustered storage systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161335A (en) * 2015-03-25 2016-11-23 北京视联动力国际信息技术有限公司 A kind for the treatment of method and apparatus of network packet
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN107959665A (en) * 2016-10-18 2018-04-24 北京视联动力国际信息技术有限公司 A kind of communication means and communication system
CN108418778A (en) * 2017-02-09 2018-08-17 北京视联动力国际信息技术有限公司 A kind of internet and method, apparatus and interactive system regarding connected network communication
CN109151610A (en) * 2018-09-07 2019-01-04 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus receiving web camera picture
CN109495794A (en) * 2018-10-19 2019-03-19 视联动力信息技术股份有限公司 A kind of view networked terminals control method and system
CN109743284A (en) * 2018-11-27 2019-05-10 视联动力信息技术股份有限公司 A kind of method for processing video frequency and system based on view networking

Also Published As

Publication number Publication date
CN110401846A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN110198345B (en) Data request method, system and device and storage medium
CN111193788A (en) Audio and video stream load balancing method and device
CN109617956B (en) Data processing method and device
CN109842519B (en) Method and device for previewing video stream
CN110381030B (en) Method and device for processing synchronization request
CN109819062B (en) Method and device for accessing network by using virtual MAC address
CN110602039A (en) Data acquisition method and system
CN110557319B (en) Message processing method and device based on video network
CN109151061B (en) Data storage method and device
CN110213334B (en) Method and device for transmitting shared file
CN109743284B (en) Video processing method and system based on video network
CN110650147A (en) Data acquisition method and system
CN110493149B (en) Message processing method and device
CN110022500B (en) Packet loss processing method and device
CN109802990B (en) Resource log reading and writing method and device for reducing data redundancy
CN110401846B (en) Data access method, device, system, equipment and medium based on video network
CN109586851B (en) Data transmission method and device based on video network
CN108881148B (en) Data acquisition method and device
CN110677315A (en) Method and system for monitoring state
CN110557411A (en) video stream processing method and device based on video network
CN110536148B (en) Live broadcasting method and equipment based on video networking
CN110166840B (en) Service processing method, system and device
CN110381029B (en) Monitoring resource synchronization method and device
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110475088B (en) User login method and device

Legal Events

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