CN111478880B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN111478880B
CN111478880B CN202010140964.1A CN202010140964A CN111478880B CN 111478880 B CN111478880 B CN 111478880B CN 202010140964 A CN202010140964 A CN 202010140964A CN 111478880 B CN111478880 B CN 111478880B
Authority
CN
China
Prior art keywords
data
data packet
packet
type
file
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
CN202010140964.1A
Other languages
Chinese (zh)
Other versions
CN111478880A (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 CN202010140964.1A priority Critical patent/CN111478880B/en
Publication of CN111478880A publication Critical patent/CN111478880A/en
Application granted granted Critical
Publication of CN111478880B publication Critical patent/CN111478880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for processing data, wherein the method comprises the following steps: acquiring a first data packet and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol; determining a data type corresponding to the first data packet by adopting the first probe agent, and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol; and the second data packet is sent to the second terminal equipment through the second communication network, so that data interaction between the video networking applications is completed by utilizing the video networking, the internet is not required to be relied on during the video networking application interaction, and high-speed and safe data transmission can be performed in the video networking.

Description

Data processing method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for data processing.
Background
The video networking is an important milestone for network development, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the Internet, pushes a plurality of Internet applications to high-definition video, and bears the beauty vision of making the distance between people only have one screen. The structural design of the video network can realize the effects of independent permission of each service and mutual isolation of equipment and user data, and the problem of network security which troubles the internet is solved.
In the prior art, when the application in the video network performs information interaction, the application still needs to rely on the internet to a certain extent, for example, when logging in a client of a network management system, the application needs to be connected to a network management server through an IP network, and for example, when data acquisition and calculation are performed between flow probes and data reporting is performed by the server probe, data is transmitted through the IP network.
However, in this transmission process, since it is necessary to rely on an IP network, transmission in the video network is not possible, and it is difficult to take advantage of the security and high transmission speed of the video network.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for data processing that overcomes or at least partially solves the above problems, comprising:
a data processing method is applied to a first terminal device, wherein a first probe agent is deployed on the first terminal device, and the method comprises the following steps:
a first data packet, and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
determining a data type corresponding to the first data packet by adopting the first probe agent, and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
and sending the second data packet to a second terminal device through a second communication network.
Optionally, the converting the first data packet into a second data packet according to the data type includes:
when the data type is a message type, determining a first data length corresponding to the first data packet;
judging whether the first data length is larger than a preset first length threshold value or not;
if so, fragmenting the first data packet to obtain a plurality of first fragmented data, and encapsulating the plurality of first fragmented data into a plurality of second data packets;
if not, the first data packet is converted into a second data packet.
Optionally, the converting the first data packet into a second data packet according to the data type includes:
when the data type is a file type, acquiring a file storage path from the first data packet;
and acquiring file data corresponding to the file storage path, and converting the file data into a second data packet.
Optionally, the converting the file data into the second data packet includes:
acquiring a second data length corresponding to the file data;
judging whether the second data length is larger than a preset second length threshold value or not;
if so, fragmenting the file data to generate a plurality of second fragment data, and encapsulating the plurality of second fragment data into a plurality of second data packets;
if not, converting the file data into a second data packet.
Optionally, the converting the first data packet into a second data packet according to the data type includes:
and when the data type is a command type, converting the first data packet into a second data packet.
Optionally, the first communication network protocol comprises an internet communication protocol and the second communication network protocol comprises a video networking communication protocol.
Optionally, the converting the first data packet into a second data packet includes:
and analyzing the destination IP address of the first data packet, and converting the destination IP address into an address of the video network to obtain a second data packet.
Optionally, the method further comprises:
receiving a third data packet sent by the second terminal equipment through the first probe agent, wherein the third data packet is a data packet adopting a second communication network protocol;
converting the third data packet into a fourth data packet using the first probe agent; the fourth data packet is a data packet adopting a first communication network protocol;
and sending the fourth data packet to a corresponding application.
Optionally, the sending the fourth data packet to a corresponding application includes:
determining a data type of the fourth data packet;
and sending the fourth data packet to a corresponding application according to the data type.
A data processing device is applied to a first terminal device, the first terminal device is provided with a first probe agent, and the device comprises:
the first data packet acquisition module is used for acquiring a first data packet and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
the second data packet acquisition module is used for determining a data type corresponding to the first data packet by adopting the first probe agent and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
and the second data packet sending module is used for sending the second data packet to second terminal equipment through a second communication network.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a first data packet is obtained and sent to a first probe agent, wherein the first data packet is a data packet adopting a first communication network protocol; the data type corresponding to the first data packet is determined by adopting the first probe agent, the first data packet is converted into a second data packet according to the data type, the second data packet is a data packet adopting a second communication network protocol, the second data packet is sent to the second terminal equipment through the second communication network, the data interaction between the video networking applications is completed by utilizing the video networking, the internet is not required to be relied on when the video networking applications are interacted, and high-speed and safe data transmission can be performed on the video networking.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic networking diagram of a video network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a hardware structure of a node server according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure diagram of an access switch according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating steps of a method for data processing according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal framework according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a data processing sequence according to an embodiment of the present invention;
FIG. 8 is a flow chart of steps in another method of data processing provided by an embodiment of the invention;
fig. 9 is a flow chart of message data processing according to an embodiment of the present invention;
FIG. 10 is a flow chart of steps in another method of data processing provided by an embodiment of the invention;
FIG. 11 is a flowchart of a file data processing method according to an embodiment of the present invention;
FIG. 12 is a flow chart of steps in another method of data processing provided by an embodiment of the invention;
FIG. 13 is a flow chart of command data processing according to an embodiment of the present invention;
fig. 14 is a block diagram of a data processing apparatus 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. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The video networking is an important milestone of 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 is face-to-face.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mails, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like into a system platform, and realizes high-definition quality video broadcast through a television or a computer.
To enable those skilled in the art to better understand the embodiments of the present invention, the following description is given of the internet of view:
some of the techniques applied by the video network are as follows:
network Technology (Network Technology)
Network innovations in video networking have improved the 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 video networking technology adopts Packet Switching 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 exchange of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, and has end-to-end seamless connection of the whole network, direct connection with a user terminal and direct bearing of 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 memory 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 instantly and directly sent to the user terminal, and the user waiting time 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 on the metro network part can 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 central control function in the metropolitan area network and can control the node switch and the 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 a 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.
1. Visio networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, 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 server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the network interface module 201, the switching engine module 202, the CPU module 203, and the disk array module 204 are mainly included;
the packets coming from 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 incoming data packet of the CPU module 304 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 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 307 according to the packet guiding information; 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 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 queued packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, 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 switch 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 DA, MAC SA, length or frame type (2 byte) is subtracted by the MAC deletion module 410 and enters the corresponding receiving buffer, otherwise it is discarded;
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 the types of different datagrams, 64 bytes if it is a packet of various protocols, 32+1024=1056 bytes if it is a packet of unicast data, and certainly 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 packet definition for metropolitan area networks
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 0x0001. 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, which is located between the reserved bytes and the payload of the packet.
Referring to fig. 5, a flowchart illustrating steps of a data processing method according to an embodiment of the present invention is shown, and the method may be applied to a first terminal device, where the first terminal device may be deployed with a first probe agent, and specifically includes the following steps:
step 501, acquiring a first data packet, and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
as an example, the first terminal device may be a computer having a video networking interface.
The first communication network Protocol may include an internet communication Protocol, and the internet communication Protocol may be a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP).
The TCP protocol may be a transport protocol designed to provide a reliable end-to-end byte stream on the internet, and the TCP data transmitted by using the TCP protocol may have a data format as shown in table 1:
Figure BDA0002399072260000111
TABLE 1
The first probe agent may be a network agent program, and may perform data transmission using different communication protocols after acquiring data, for example, may perform data conversion after acquiring data using an internet communication protocol to obtain data using a video networking communication protocol, or may convert data using the video networking communication protocol into data using the internet communication protocol after acquiring data using the video networking communication protocol; in the operation process, the first probe agent can create a virtual terminal, call a video network interface and access the video network by using the virtual terminal.
In a specific implementation, one or more applications may be installed in the first terminal device, and the applications may include application software and systems in the video network, such as a network management system, an operation and maintenance workstation, and the like. Since most hardware devices are designed and developed for the internet, when the application runs in the first terminal device, the first data packet, such as a TCP data packet or a UDP data packet, may be generated by using a transmission control protocol or a user datagram protocol, and the first data packet is communicated with application software in other terminal devices through the TCP data packet or the UDP data packet.
In the operation process of the first terminal device, a first data packet of the application may be acquired, and the first data packet may be sent to the first probe agent.
Step 502, determining a data type corresponding to the first data packet by using the first probe agent, and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
as an example, the data types may include a message type, a command type, and a file type.
The second communication network protocol may be an internet of view communication protocol, and the data transmitted using the internet of view communication protocol may have a data format as shown in table 2:
Figure BDA0002399072260000121
TABLE 2
In practical application, the first data packet may have a data type identifier, and after the first data packet is sent to the first probe agent, the first probe agent may be used to obtain the data type identifier, determine a data type corresponding to the identifier, and convert the first data packet into a data packet using the second communication network protocol according to the data type of the first data packet.
In an embodiment of the present invention, the step of converting the first data packet into the second data packet may include the following sub-steps:
and analyzing the destination IP address of the first data packet, and converting the destination IP address into an address of the video network to obtain a second data packet.
In practical application, the first terminal device may store a corresponding relationship between an IP address and an address of the video network in advance, and the first data packet may include a destination IP address corresponding to the destination terminal device, for example, data corresponding to a "destination terminal number" field in the first data packet.
After the first data packet is obtained, the destination IP address can be analyzed from the first data packet, and the destination IP address in the first data packet is converted into the view networking address by combining the corresponding relationship between the IP address and the view networking address, so as to obtain a second data packet.
Step 503, sending the second data packet to a second terminal device through a second communication network.
As an example, the second terminal device may be a computer having a video networking interface, and the second terminal device may have a second probe agent disposed therein.
The second probe agent may be a network agent program, and may perform transmission through different communication protocols after obtaining the video networking data, for example, an internet communication protocol, and the second probe agent may create a virtual terminal in an operation process, and call a video networking interface, and access the video networking using the virtual terminal.
After converting the first data packet into the second data packet, the first terminal device may send the second data packet to the second terminal device through the second communication network, and the second terminal device may obtain the second data packet through the virtual terminal.
Specifically, after the first probe agent is used for data conversion to obtain the second data packet, the first probe agent may obtain the internet of view address corresponding to the virtual terminal from the second data packet, and send the first data packet to the virtual terminal corresponding to the internet of view address, so as to send the second data packet to the second terminal device.
In an embodiment of the present invention, the method may further include the steps of:
s1, receiving a third data packet sent by the second terminal equipment through the first probe agent, wherein the third data packet is a data packet adopting a second communication network protocol;
in a specific implementation, the second terminal device may send a third data packet using the second communication network protocol to the first terminal device, and the first terminal device may receive the third data packet through the first probe agent.
Specifically, the second terminal device may have one or more applications installed therein, and the second terminal device may obtain a data packet of the application using the first communication network protocol, convert the data packet into a third data packet using the second communication network protocol, and send the third data packet to the first terminal device.
S2, converting the third data packet into a fourth data packet by utilizing the first probe agent; the fourth data packet is a data packet adopting a first communication network protocol;
after receiving the third data packet, since the third data packet adopts the second communication network protocol and the application in the first terminal device mainly adopts the data packet of the first communication network protocol, the first terminal device may convert the third data packet into a fourth data packet adopting the first communication network protocol by using the first probe agent.
And S3, sending the fourth data packet to a corresponding application.
After the conversion, the first terminal device may send the fourth data packet to the corresponding application through the first probe agent.
In an embodiment of the present invention, step S3 may include the following sub-steps:
determining a data type of the fourth data packet; and sending the fourth data packet to a corresponding application according to the data type.
In particular implementations, the data type of the fourth data packet may include a message type, a command type, or a file type. After the first probe agent converts the data, the data type can be determined, and the third data packet is sent to the corresponding application according to the data type of the fourth data packet, so that the application can read the corresponding message and execute the command, or store the file to the address corresponding to the second application client.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present invention, but it should be understood that the embodiments of the present invention are not limited thereto.
As shown in fig. 6, other systems and probe agents (i.e., first probe agents) may be deployed in the host 1 (i.e., first terminal device), and other systems and probe agents (i.e., second probe agents) may also be deployed in the host 2 (i.e., second terminal device). In the invention, a probe agent in a host 1 accesses the video network by establishing a virtual terminal 1, and a probe agent in a host 2 accesses the video network by establishing a virtual terminal 2, so as to reduce the reconstruction of the application and the system and achieve the purpose of data transmission through the video network.
In particular, other systems in host 1 may receive or generate TCP data (i.e., the first packet) and send the TCP data to the probe agent in the same host. After acquiring the TCP data, the probe agent may convert the TCP data into V2V data (i.e., a second data packet) using a video networking communication protocol, and send the V2V data to the host 2 through the virtual terminal 1.
In the host 2, the probe agent acquires V2V data transmitted by the host 1 through the virtual terminal 2, and may convert the V2V data into TCP data and then transmit it to other systems.
As shown in fig. 7, in the data transmission process, other systems in the host 1 may send TCP data to the probe agent in the same host, and after the probe agent receives non-V2V data, it may be determined that the data is from other systems in the host and needs to be transmitted to another host using an internet of view protocol, data processing may be performed to convert the TCP data into V2V data, and send the V2V data to the probe agent in the host 2 through the internet of view.
After the probe agent in the host 2 receives the V2V data, it may determine that the data is from another host (i.e., the host 1) and needs to be sent to other systems in the local computer, and then may convert the V2V data to obtain TCP data, and further send the TCP data to other systems in the host 2.
The method realizes the conversion of TCP data and V2V data, and data transmitted by an IP network can be converted into data transmitted in a video network by using data transmission comprising two communication protocols.
In the embodiment of the invention, a first data packet is obtained and sent to a first probe agent, wherein the first data packet is a data packet adopting a first communication network protocol; the data type corresponding to the first data packet is determined by adopting the first probe agent, the first data packet is converted into the second data packet according to the data type, the second data packet is a data packet adopting a second communication network protocol, and the second data packet is sent to the second terminal equipment through the second communication network, so that the data interaction between the video networking applications is completed by utilizing the video networking, the internet is not required to be relied on when the video networking applications are interacted, and the high-speed and safe data transmission can be carried out on the video networking.
Referring to fig. 8, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, where the method may be applied to a first terminal device, and the first terminal device may be deployed with a first probe agent, and the method specifically includes the following steps:
step 801, acquiring a first data packet, and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
step 802, determining a data type corresponding to the first data packet by using the first probe agent;
step 803, when the data type is a message type, determining a first data length corresponding to the first data packet;
specifically, the first data packet may have a data type identifier, and after the first probe agent obtains the first data packet, the data type identifier may be read. The data packets of different data types may have different ranges of data lengths, and when the data type is identified as a message type, the data length corresponding to the first data packet may be further determined.
As an example, when the internet communication protocol is a TCP protocol, and the data type of the TCP data is a message type, the TCP data may have a data format as shown in the following table:
protocol Destination port Message content
char[8] int char[]
TABLE 3
In practical applications, the TCP data may include a protocol field, a destination port field, and a message content field, where the protocol field may identify a transit protocol used by the first data packet, such as a TCP protocol or a UDP protocol; the destination port field may correspond to a port identification of an application in the terminal device. Before data transmission, port identifiers corresponding to different applications can be preset, and when a data packet is sent to an application, the corresponding application can be determined through a destination port.
Step 804, determining whether the first data length is greater than a preset first length threshold, if so, executing step 805, otherwise, executing step 806;
specifically, in the first data packet adopting the first communication network protocol, the data length may be any length with an indefinite length, while in the transmission of the data packet adopting the second communication network protocol, the data packet has a fixed data length, which may be a first length threshold, for example, the data length of the data packet of each message type is fixed to be 800 bytes.
After determining the first data length, it may be determined whether the first data length is greater than a preset length threshold, if so, step 805 may be performed, and if not, step 806 may be performed.
As an example, data employing a video networking communication protocol (i.e., V2V data) may have a data format as shown in table 4:
protocol Destination port Identification Sequence number of fragments Total number of fragments Message content
char[8] int char[40] int int char[800]
TABLE 4
Step 805, fragmenting the first data packet to obtain a plurality of first fragmented data, and encapsulating the plurality of first fragmented data into a plurality of second data packets; the second data packet is a data packet adopting a second communication network protocol;
when it is determined that the first data length is greater than the preset first length threshold, the first data packet may be fragmented, the data length of the plurality of first fragmented data obtained after fragmentation is made to be the preset length threshold, and the plurality of first fragmented data are encapsulated into a plurality of second data packets.
In an example, when a plurality of first fragment data are encapsulated into a second data packet, a data packet identification field, a fragment sequence number and a fragment total number may be added to the second data packet, so that a plurality of second data packets may be subsequently spliced and restored to original data. The packet identifier field may identify that a plurality of second packets are obtained by fragmenting the same first packet, the fragmentation sequence number may determine an order of a second packet in the plurality of second packets, and the total fragmentation number may determine the total number of the second packets.
Step 806, converting the first data packet into a second data packet; the second data packet is a data packet adopting a second communication network protocol;
when the first data length is determined not to exceed the length threshold value, the data length of the first data packet is determined not to exceed the data length allowed to be transmitted in the video network, and the first data packet can be directly converted into the second data packet without being fragmented.
In an example, when fragmentation processing is not required for the first packet, the total number of fragments may be set to 1.
Step 807, the second data packet is sent to the second terminal device through the second communication network.
After the conversion, the first terminal device may send the second data packet to the second terminal device through the second communication network.
In practical application, the first terminal device may further receive a third data packet, which is sent by the second terminal device and has a data type of a message type. When the data type is the message type, the first terminal device may determine a plurality of third data packets having the same identification field, sequentially combine the plurality of third data packets according to the fragmentation sequence number, and convert the third data packets into a fourth data packet using the first communication network protocol.
After the fourth data packet is obtained, the first terminal device may obtain a port identifier corresponding to the destination port field from the fourth data packet, and send the fourth data packet to an application corresponding to the port identifier, so that after the fourth data packet is received, the corresponding application in the first terminal device may read message content from the fourth data packet.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present invention, but it should be understood that the embodiments of the present invention are not limited thereto.
As shown in fig. 9, when the probe agent receives data whose data type is a message type, if the data is non-V2V information (i.e., a data packet using a first communication network protocol), it may first determine whether the information length exceeds a preset length threshold, and if so, may first fragment the non-V2V information, and then encapsulate the information into V2V format information (i.e., a data packet using a second communication network protocol) for transmission.
When the message received by the probe agent is the V2V information (i.e. a data packet adopting the second communication network protocol), the information fragments with the same identification field can be spliced in sequence to obtain the restored non-V2V information, and the restored non-V2V information is sent to the application corresponding to the destination port.
In the embodiment of the invention, when the data type is the message type, the first data length corresponding to the first data packet is determined, whether the first data length is larger than a preset first length threshold value is judged, if so, the first data packet is fragmented to obtain a plurality of first fragment data, the plurality of first fragment data are packaged into a plurality of second data packets adopting a second communication network protocol, and the second data packets are sent to the second terminal equipment, so that the message forwarding among the video networking applications is completely carried out through the video networking, when the internet data length is larger than the preset threshold value, the data are fragmented, the fragment data are converted into the video networking data, the dependence on the internet when the applications in the video networking send the messages is reduced, and the transmission advantages of the video networking are more effectively exerted.
Referring to fig. 10, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may be applied to a first terminal device, where the first terminal device may be deployed with a first probe agent, and specifically includes the following steps:
1001, acquiring a first data packet, and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
step 1002, determining a data type corresponding to the first data packet by using the first probe agent;
step 1003, when the data type is a file type, acquiring a file storage path from the first data packet;
after determining the data type, when the data type is a file type, a file storage path may be obtained from the first data packet.
Specifically, because the application in the first terminal device and the first probe agent are deployed in the same host, when the application in the first terminal device sends the file data in the first terminal device to other terminal devices, the file data can be directly obtained from the first probe agent by the first terminal device, and the application in the first terminal device does not need to send the complete file data to the first probe agent and then the complete file data is sent to other terminal devices by the first probe agent. Based on this, when the first probe agent receives the first data packet with the data type of the file type, the file storage path can be read from the first data packet.
In an example, when the data type is a file type, the first data packet using the TCP protocol may have the following data format:
native path Destination path
char[256] char[256]
TABLE 5
In an example, the first data packet may only include a destination path to which the file data is to be sent, and a corresponding storage path of the file data in the first terminal device.
Step 1004, obtaining file data corresponding to the file storage path, and converting the file data into a second data packet; the second data packet is a data packet adopting a second communication network protocol;
after obtaining the file storage path, the first probe agent may obtain file data corresponding to the file storage path from the first terminal device, and convert the file data into the second data packet.
As an example, when the data type is a file type, the second data packet using the second transmission protocol may have a data format as shown in table 6:
destination path Identification Sequence number of fragments Total number of fragments File data
char[256] char[40] int int char[700]
TABLE 6
In an embodiment of the present invention, the step of converting the file data into the second data packet may include the following sub-steps:
substep 11, obtaining a second data length corresponding to the file data;
since the data length of the data in the video network can be a fixed length, and the data length of the file data is not fixed, after the file data is obtained, a second data length corresponding to the file data can be obtained.
A substep 12, judging whether the second data length is larger than a preset second length threshold value; if yes, executing substep 13, if not, executing substep 14;
in practical applications, the data length of the file data may be any length with an indefinite length, and when a second communication network protocol is used for the data packet of the message type, the second data packet may have a fixed data length, where the length may be a second length threshold, and the second length threshold may be equal to or different from the first length threshold.
After the second data length is determined, it may be determined whether the second data length is greater than a preset second length threshold, if yes, performing substep 13, and if no, performing substep 14.
Substep 13, fragmenting the file data to generate a plurality of second fragmented data, and encapsulating the plurality of second fragmented data into a plurality of second data packets;
when it is determined that the second data length is greater than the second length threshold, the file data may be fragmented, the data length of the second fragmented data obtained after fragmentation is made to be the preset length threshold, and the second fragmented data is encapsulated into a second data packet.
In an example, when a plurality of second fragment data are encapsulated into a second data packet, a data packet identification field, a fragment sequence number and a fragment total number may be added to the second data packet, so as to splice the plurality of second data packets and restore the second data packets to the original data.
Substep 14, converting said file data into a second data packet.
When the second data length is determined not to exceed the second length threshold, the data length of the file data is determined not to exceed the data length allowed to be transmitted in the video network, and the file data can be directly converted into the second data packet without being fragmented.
Step 1005, sending the second data packet to a second terminal device through a second communication network.
After the conversion, the first terminal device may send the second data packet to the second terminal device through the second communication network.
In practical application, the first terminal device may further receive a third data packet with a file type data type sent by the second terminal device. When the data type is a file type, a plurality of third data packets with the same identification field may be determined, and the plurality of third data packets are sequentially combined according to the fragment sequence number and converted into a fourth data packet containing file data, where the fourth data packet may be a data packet using a first communication network protocol.
After obtaining the fourth data packet, the first terminal device may obtain a destination path from the fourth data packet, and send the fourth data packet to an address storage file data corresponding to the destination path, where the destination path may be a storage path corresponding to a related application in the first terminal device.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present invention, but it should be understood that the embodiments of the present invention are not limited thereto.
As shown in fig. 11, when receiving data whose data type is a file type, if the data is a non-V2V file (i.e., a first data packet including a file storage path), the probe agent may determine that the data is from an application client in the same terminal device, based on this, may read local file data from the terminal device according to a file storage address in the non-V2V file, and determine whether the data length exceeds a preset length threshold, and if the data length exceeds the preset length threshold, may fragment the file data, and then encapsulate the file data into a second data packet in a V2V format to send the second data packet.
If the data received by the probe agent is a V2V file (i.e., a third data packet), the second data packets with the same identification fields may be sequentially spliced to obtain a restored non-V2V file (i.e., a fourth data packet), and the restored non-V2V file is sent to a destination path corresponding to the relevant application in the first terminal device for storage.
In the embodiment of the invention, the file forwarding between the video network applications through the video network is completely realized by acquiring the first data packet of the first communication network protocol adopted by the first application client, sending the first data packet to the first probe agent, determining the data type corresponding to the first data packet by adopting the first probe agent, acquiring the file storage path from the first data packet when the data type is the file type, acquiring the file data corresponding to the file storage path, converting the file data into the second data packet adopting the second communication network protocol, and sending the second data packet to the second terminal equipment through the second communication network, so that the data transmission is carried out without depending on the internet, and the advantage of high-speed safe data transmission of the video network can be fully exerted.
Referring to fig. 12, a flowchart illustrating steps of a data processing method according to an embodiment of the present invention is shown, and the method may be applied to a first terminal device, where the first terminal device may be deployed with a first probe agent, and specifically includes the following steps:
step 1201, acquiring a first data packet, and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
step 1202, determining a data type corresponding to the first data packet by using the first probe agent;
step 1203, when the data type is a command type, converting the first data packet into a second data packet; the second data packet is a data packet adopting a second communication network protocol;
after the data type is determined, when the data type is the command type, the first data packet can be directly converted into a second data packet adopting a second communication network protocol without fragmentation because the data length of the command is smaller than a preset length threshold value.
As an example, the first packet of the command type may have a data format as shown in the following table:
command
char[512]
TABLE 7
Step 1204, sending the second data packet to a second terminal device through a second communication network.
After the conversion, the first terminal device may send the second data packet to the second terminal device through the second communication network.
In practical applications, the first terminal device may further receive a third data packet, which is sent by the second terminal device and has a data type of a command type. After receiving the third data packet with the data type of the command type, the first terminal device may convert the third data packet into a fourth data packet with the first communication network protocol by using the first probe agent, and send the fourth data packet to a corresponding application in the first terminal device, so that the application executes the command in the fourth data packet.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present invention, but it should be understood that the embodiments of the present invention are not limited thereto.
As shown in fig. 13, when the probe agent receives the data with the data type of the command type, if the data is a command (i.e., a first data packet) with a non-V2V format, the probe agent may convert the command with the non-V2V format to obtain a command (i.e., a second data packet) with a V2V format, and send the command to the second terminal device.
When the probe agent receives the command in the V2V format (i.e., the third packet), the command may be converted into a command in a non-V2V format (i.e., the fourth packet), and sent to the corresponding application, so that the application executes the command.
In the embodiment of the invention, the first data packet is obtained and is a data packet adopting a first communication network protocol, the first probe agent is adopted to determine the data type corresponding to the first data packet, when the data type is a command type, the first data packet is converted into a second data packet adopting a second communication network protocol, and the second data packet is sent to the second terminal equipment through the second communication network, so that the command forwarding between the video networking applications is completely carried out through the video networking, the data transmission is carried out without depending on the Internet, and the advantage of high-speed safe data transmission of the video networking can be fully exerted.
Referring to fig. 14, a block diagram of a data processing apparatus according to an embodiment of the present invention is shown, and the data processing apparatus may be applied to a first terminal device, where the first terminal device may be deployed with a first probe agent, and specifically includes the following modules:
a first data packet obtaining module 1401, configured to obtain a first data packet, and send the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
a second data packet obtaining module 1402, configured to determine, by using the first probe agent, a data type corresponding to the first data packet, and convert the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
a second data packet sending module 1403, configured to send the second data packet to the second terminal device through the second communication network.
In an embodiment of the present invention, the second packet obtaining module 1402 includes:
the message type sub-module is used for determining a first data length corresponding to the first data packet when the data type is a message type;
a first length threshold judgment submodule, configured to judge whether the first data length is greater than a preset first length threshold; if yes, calling a first fragment submodule, and if not, calling a first conversion submodule;
the first fragmentation submodule is used for fragmenting the first data packet to obtain a plurality of first fragmentation data, and packaging the plurality of first fragmentation data into a plurality of second data packets;
and the first conversion submodule is used for converting the first data packet into a second data packet.
In another embodiment of the present invention, the second packet obtaining module 1402 includes:
the file type submodule is used for acquiring a file storage path from the first data packet when the data type is the file type;
and the file data acquisition submodule is used for acquiring the file data corresponding to the file storage path and converting the file data into a second data packet.
In another embodiment of the present invention, the file data obtaining sub-module includes:
a second data length obtaining unit, configured to obtain a second data length corresponding to the file data;
a second length threshold judgment unit, configured to judge whether the second data length is greater than a preset second length threshold; if yes, calling a second fragment unit, and if not, calling a second conversion unit;
the second fragmentation unit is used for fragmenting the file data to generate a plurality of second fragmentation data and packaging the plurality of second fragmentation data into a plurality of second data packets;
and the second conversion unit is used for converting the file data into a second data packet.
In another embodiment of the present invention, the second packet obtaining module 1402 includes:
and the message type submodule is used for converting the first data packet into a second data packet when the data type is a command type.
In an embodiment of the invention, the first communication network protocol comprises an internet communication protocol and the second communication network protocol comprises a video networking communication protocol.
In an embodiment of the present invention, the second packet obtaining module 1402 includes:
and the address resolution submodule is used for resolving the destination IP address of the first data packet and converting the destination IP address into an address of the video network to obtain a second data packet.
In an embodiment of the present invention, the apparatus further includes:
a third data packet receiving module, configured to receive, by the first probe agent, a third data packet sent by the second terminal device, where the third data packet is a data packet adopting a second communication network protocol;
a fourth packet obtaining module, configured to convert the third packet into a fourth packet by using the first probe agent; the fourth data packet is a data packet adopting a first communication network protocol;
and the fourth data packet sending module is used for sending the fourth data packet to a corresponding application.
In an embodiment of the present invention, the fourth data packet sending module includes:
a fourth data packet type determining submodule, configured to determine a data type of the fourth data packet;
and the application data sending submodule is used for sending the fourth data packet to a corresponding application according to the data type.
In the embodiment of the invention, the data interaction between the video networking applications is completed by utilizing the video networking by acquiring the first data packet, sending the first data packet to the first probe agent, determining the data type corresponding to the first data packet by adopting the first probe agent, converting the first data packet into the second data packet according to the data type, and sending the second data packet to the second terminal equipment through the second communication network, so that the dependence on the internet is not required during the video networking application interaction, and high-speed and safe data transmission can be performed on the video networking.
An embodiment of the present invention also provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for processing data as described above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method of data processing as above.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
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 apparatus 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.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The method and apparatus for data processing provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in detail herein by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A data processing method is applied to a first terminal device, and the first terminal device is provided with a first probe agent, and the method comprises the following steps:
acquiring a first data packet and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
determining a data type corresponding to the first data packet by adopting the first probe agent, and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
sending the second data packet to a second terminal device through a second communication network;
wherein converting the first data packet into a second data packet according to the data type includes:
when the data type is a file type, acquiring a file storage path from the first data packet;
and acquiring file data corresponding to the file storage path, and converting the file data into a second data packet.
2. The method of claim 1, wherein converting the first packet to a second packet according to the data type further comprises:
when the data type is a message type, determining a first data length corresponding to the first data packet;
judging whether the first data length is larger than a preset first length threshold value or not;
if so, fragmenting the first data packet to obtain a plurality of first fragmented data, and encapsulating the plurality of first fragmented data into a plurality of second data packets;
if not, the first data packet is converted into a second data packet.
3. The method of claim 1, wherein converting the file data into a second data packet comprises:
acquiring a second data length corresponding to the file data;
judging whether the second data length is larger than a preset second length threshold value or not;
if so, fragmenting the file data to generate a plurality of second fragment data, and encapsulating the plurality of second fragment data into a plurality of second data packets;
if not, converting the file data into a second data packet.
4. The method of claim 1, wherein converting the first packet to a second packet according to the data type further comprises:
and when the data type is a command type, converting the first data packet into a second data packet.
5. The method of claim 1, wherein the first communication network protocol comprises an internet communication protocol and the second communication network protocol comprises a video networking communication protocol.
6. The method of claim 5, wherein converting the first packet into the second packet comprises:
and analyzing the destination IP address of the first data packet, and converting the destination IP address into an address of the video network to obtain a second data packet.
7. The method of claim 1, further comprising:
receiving a third data packet sent by the second terminal equipment through the first probe agent, wherein the third data packet is a data packet adopting a second communication network protocol;
converting the third data packet into a fourth data packet using the first probe agent; the fourth data packet is a data packet adopting a first communication network protocol;
and sending the fourth data packet to a corresponding application.
8. The method of claim 7, wherein sending the fourth packet to a corresponding application comprises:
determining a data type of the fourth data packet;
and sending the fourth data packet to a corresponding application according to the data type.
9. An apparatus for data processing, applied to a first terminal device, where a first probe agent is deployed, the apparatus comprising:
the first data packet acquisition module is used for acquiring a first data packet and sending the first data packet to the first probe agent; the first data packet is a data packet adopting a first communication network protocol;
the second data packet acquisition module is used for determining a data type corresponding to the first data packet by adopting the first probe agent and converting the first data packet into a second data packet according to the data type; the second data packet is a data packet adopting a second communication network protocol;
the second data packet sending module is used for sending the second data packet to second terminal equipment through a second communication network;
wherein the second packet obtaining module comprises:
the file type submodule is used for acquiring a file storage path from the first data packet when the data type is the file type;
and the file data acquisition sub-module is used for acquiring the file data corresponding to the file storage path and converting the file data into a second data packet.
CN202010140964.1A 2020-03-03 2020-03-03 Data processing method and device Active CN111478880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010140964.1A CN111478880B (en) 2020-03-03 2020-03-03 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010140964.1A CN111478880B (en) 2020-03-03 2020-03-03 Data processing method and device

Publications (2)

Publication Number Publication Date
CN111478880A CN111478880A (en) 2020-07-31
CN111478880B true CN111478880B (en) 2022-12-23

Family

ID=71747185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010140964.1A Active CN111478880B (en) 2020-03-03 2020-03-03 Data processing method and device

Country Status (1)

Country Link
CN (1) CN111478880B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929362B (en) * 2021-02-04 2023-01-20 广东电网有限责任公司广州供电局 Probe device, front-end message processing method and wireless communication management system
CN114064532B (en) * 2021-11-08 2022-06-17 深圳华云信息系统有限公司 Data processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356529B1 (en) * 1999-08-12 2002-03-12 Converse, Ltd. System and method for rapid wireless application protocol translation
CN103246547A (en) * 2012-02-14 2013-08-14 北京亿阳信通科技有限公司 Remote object calling method and system
CN105991564A (en) * 2015-02-05 2016-10-05 阿里巴巴集团控股有限公司 Message processing method and device
CN109803030A (en) * 2018-12-20 2019-05-24 深圳市任子行科技开发有限公司 A kind of anonymity intermediate proxy server and its communication means

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102360168B1 (en) * 2017-11-01 2022-02-09 현대자동차주식회사 Apparatus and method for converting protocol with type of data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356529B1 (en) * 1999-08-12 2002-03-12 Converse, Ltd. System and method for rapid wireless application protocol translation
CN103246547A (en) * 2012-02-14 2013-08-14 北京亿阳信通科技有限公司 Remote object calling method and system
CN105991564A (en) * 2015-02-05 2016-10-05 阿里巴巴集团控股有限公司 Message processing method and device
CN109803030A (en) * 2018-12-20 2019-05-24 深圳市任子行科技开发有限公司 A kind of anonymity intermediate proxy server and its communication means

Also Published As

Publication number Publication date
CN111478880A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN108880926B (en) Server monitoring method and device
CN108881815B (en) Video data transmission method and device
CN109547163B (en) Method and device for controlling data transmission rate
CN110022295B (en) Data transmission method and video networking system
CN109818960B (en) Data processing method and device
CN111478880B (en) Data processing method and device
CN109714568B (en) Video monitoring data synchronization method and device
CN109347844B (en) Method and device for accessing equipment to Internet
CN110650147A (en) Data acquisition method and system
CN110769297A (en) Audio and video data processing method and system
CN110336710B (en) Terminal testing method, system and device and storage medium
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110493149B (en) Message processing method and device
CN110086773B (en) Audio and video data processing method and system
CN110049009B (en) Identity information acquisition system and method
CN109769012B (en) Web server access method and device
CN109889516B (en) Method and device for establishing session channel
CN111510341A (en) Network testing method and device for video network
CN108881148B (en) Data acquisition method and device
CN110677315A (en) Method and system for monitoring state
CN111478940B (en) Data processing method and device
CN109873969B (en) Method for acquiring video data and video networking system
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110636110B (en) Monitoring data flow adjusting 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