CN111800308B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN111800308B
CN111800308B CN202010438334.2A CN202010438334A CN111800308B CN 111800308 B CN111800308 B CN 111800308B CN 202010438334 A CN202010438334 A CN 202010438334A CN 111800308 B CN111800308 B CN 111800308B
Authority
CN
China
Prior art keywords
port
target
state information
bitmap data
generating
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
CN202010438334.2A
Other languages
Chinese (zh)
Other versions
CN111800308A (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 CN202010438334.2A priority Critical patent/CN111800308B/en
Publication of CN111800308A publication Critical patent/CN111800308A/en
Application granted granted Critical
Publication of CN111800308B publication Critical patent/CN111800308B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Landscapes

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

Abstract

The embodiment of the invention provides a data processing method and device, wherein the method comprises the following steps: responding to user operation, generating a first state acquisition request for routing equipment in the video network, and sending the first state acquisition request to a network management server; receiving bitmap data returned by the network management server aiming at the first state acquisition request; generating port state information for the routing equipment according to the bitmap data; and visualizing the port state information. The embodiment of the invention realizes that the port state information of the routing equipment in the video network is transmitted by adopting the bitmap data, reduces the transmission quantity of the data, improves the transmission speed, can visualize the bitmap data and improves the readability of the data.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for data processing.
Background
In the prior art, for the control of a routing device, a method is generally adopted that all interfaces of the routing device are scanned, and then the interfaces in an occupied or idle state are judged and found for control.
However, the number of interfaces of the routing device is large, and the method can generate a large amount of data when scanning and judging a plurality of interfaces, so that the data transmission quantity is large and the transmission speed is slow in the process of remote communication.
Disclosure of Invention
In view of the above, a method and apparatus for data processing is proposed to overcome or at least partially solve the above problems, comprising:
a method of data processing, the method comprising:
responding to user operation, generating a first state acquisition request for routing equipment in the video network, and sending the first state acquisition request to a network management server;
receiving bitmap data returned by the network management server aiming at the first state acquisition request;
generating port state information for the routing equipment according to the bitmap data;
and visualizing the port state information.
Optionally, the generating port state information for the routing device according to the bitmap data includes:
determining a target port sequence number for the routing equipment by adopting the bitmap data;
and setting the port state information corresponding to the target port serial number as an occupied state.
Optionally, the determining, using the bitmap data, a destination port number for the routing device includes:
Determining a bit sequence number of a target bit for each character in the bitmap data; wherein the target bit is a bit in a non-null state;
generating a target array by adopting the bit sequence number;
and generating a target port serial number aiming at the routing equipment by adopting the target array.
Optionally, the generating the target array by using the bit sequence number includes:
acquiring high-low weight information;
generating an intermediate numerical value by adopting the bit sequence number;
and combining the intermediate numerical value and the high-low weight information to generate a target array.
Optionally, the port state information is port state information for a vlan port in the routing device.
An apparatus for data processing, the apparatus comprising:
the first state acquisition request generation module is used for responding to user operation, generating a first state acquisition request aiming at the routing equipment in the video network and sending the first state acquisition request to the network management server;
the bitmap data receiving module is used for receiving bitmap data returned by the network management server aiming at the first state acquisition request;
a port state information generating module, configured to generate port state information for the routing device according to the bitmap data;
And the visualization module is used for visualizing the port state information.
Optionally, the port state information generating module includes:
a target port serial number determining sub-module, configured to determine a target port serial number for the routing device using the bitmap data;
and the port state information generation sub-module is used for setting the port state information corresponding to the target port serial number into an occupied state.
Optionally, the target port serial number determining submodule includes:
a bit sequence number determining unit configured to determine a bit sequence number of a target bit for each character in the bitmap data; wherein the target bit is a bit in a non-null state;
a target array generating unit, configured to generate a target array by using the bit sequence number;
and the target port serial number determining unit is used for generating a target port serial number aiming at the routing equipment by adopting the target array.
Optionally, the target array generating unit includes:
the weight information acquisition subunit is used for acquiring high-low weight information;
an intermediate value generating subunit, configured to generate an intermediate value by using the bit sequence number;
And the target array generation subunit is used for combining the intermediate numerical value and the high-low weight information to generate a target array.
Optionally, the port state information is port state information for a vlan port in the routing device.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the first state acquisition request for the routing equipment in the video network is generated by responding to the user operation and is sent to the network management server, then the bitmap data returned by the network management server for the first state acquisition request is received, further, the port state information for the routing equipment is generated according to the bitmap data, and the port state information is visualized, so that the port state information of the routing equipment in the video network is transmitted by adopting the bitmap data, the transmission quantity of the data is reduced, the transmission speed is improved, the bitmap data can be visualized, and the readability of the data is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of a networking of a video network according to an embodiment of the present invention;
fig. 2 is a schematic hardware structure of a node server according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure of an access switch according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure of an ethernet corotation gateway according to an embodiment of the present invention;
FIG. 5 is a flow chart of steps of a method for data processing according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a data processing flow according to an embodiment of the present invention;
FIG. 7 is a flow chart of steps of another method for data processing according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an example of data processing according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The video networking is an important milestone for network development, is a real-time network, can realize real-time transmission of high-definition videos, and pushes numerous internet applications to high-definition videos, and the high definition faces.
The video networking adopts a real-time high-definition video exchange technology, and can integrate all required services such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delay television, network teaching, live broadcast, VOD on demand, television mail, personal record (PVR), intranet (self-processing) channel, intelligent video playing control, information release and other tens of services into one system platform, and realize high-definition quality video playing through television or computer.
For a better understanding of embodiments of the present invention, the following description of the video networking is presented to one skilled in the art:
the partial techniques applied by the video networking are as follows:
network technology (Network Technology)
The network technology innovation of the internet of vision improves on the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (Circuit Switching), the technology of video networking employs Packet Switching to meet Streaming requirements. The video networking technology has the flexibility, simplicity and low price of packet switching, and simultaneously has the quality and the safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Exchange technology (Switching Technology)
The video network adopts the two advantages of the asynchronization and the packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has full-network end-to-end seamless connection, and is directly connected with the user terminal to directly bear the IP data packet. The user data does not need any format conversion in the whole network. The video networking is a higher-level form of Ethernet, is a real-time exchange platform, can realize real-time transmission of full-network large-scale high-definition video which cannot be realized by the current Internet, and pushes numerous 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 server in the traditional sense, the streaming media transmission is based on connection-oriented basis, the data processing capability is irrelevant to the flow and the 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 hundred times than that of a traditional server.
Accumulator technology (Storage Technology)
The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system for adapting to the ultra-large capacity and ultra-large flow media content, the program information in the server instruction is mapped to a specific hard disk space, the media content does not pass through the server any more, the media content is instantly and directly delivered to a user terminal, and the waiting time of the user is generally less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical motion of magnetic head seek of the hard disk, the resource consumption only accounts for 20% of the IP Internet of the same grade, but the concurrent flow which is 3 times greater 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 networking thoroughly structurally solves the network security problem puzzling the Internet by means of independent permission of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs or firewalls, eliminates attacks of hackers and viruses, and provides a structural carefree security network for users.
Service innovation technology (Service Innovation Technology)
The unified video platform fuses services with transmissions, whether a single user, private network users or a network aggregate, but automatically connects at a time. The user terminal, the set top box or the PC is directly connected to the unified video platform, so that various multimedia video services are obtained. The unified video platform adopts a menu type table allocation mode to replace the traditional complex application programming, and can realize complex application by using very few codes, thereby realizing 'infinite' new business innovation.
Networking of the video networking is as follows:
the video networking is a centrally controlled network structure, which may be of the tree network, star network, ring network, etc., but on the basis of this there is a need for a centralized control node in the network to control the whole network.
As shown in fig. 1, the view network is divided into an access network and a metropolitan area network.
The devices of the access network part can be mainly divided into 3 classes: node server, access switch, terminal (including various set-top boxes, code boards, memories, etc.). The node server is connected with an access switch, which can be connected with a plurality of terminals and can be connected with an Ethernet.
The node server is a node with a centralized control function in the access network, and can control the access switch and the terminal. The node server may be directly connected to the access switch or may be directly connected to the terminal.
Similarly, devices of the metropolitan area network portion can also be classified into 3 categories: metropolitan area server, node switch, 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 the node server of the access network part, namely the node server belongs to the access network part and also belongs to the metropolitan area network part.
The metropolitan area server is a node with centralized control function in the metropolitan area network, and can control a node switch and a node server. The metropolitan area server may be directly connected to the node switch or directly connected to the node server.
Thus, the whole video network is a hierarchical centralized control network structure, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star, ring and the like.
The access network part can be vividly called as a unified video platform (part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform can be interconnected and intercommunicated through metropolitan area and wide area video networking.
1. View networking device classification
1.1 devices in the visual network according to the embodiment of the present invention may be mainly classified into 3 types: a server, a switch (including an ethernet corotation gateway), and a terminal (including various set-top boxes, a code board, a memory, etc.). The view networking can be divided into metropolitan area networks (or national networks, global networks, etc.) and access networks as a whole.
1.2 devices in the access network part can be mainly classified into 3 classes: node server, access switch (including Ethernet corotation gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
the node server:
as shown in fig. 2, the device mainly comprises a network interface module 201, a switching engine module 202, a CPU module 203 and a disk array module 204;
Wherein, 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 packet guiding information; and stores the packet into a corresponding queue of the packet buffer 206 according to the packet's guiding information; discarding if the queue of the packet buffer 206 is nearly full; the switch engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly controls the hard disk, including initializing, reading and writing operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with access switches and terminals (not shown), configuration of the address table 205 (including a downstream protocol packet address table, an upstream protocol packet address table, and a data packet address table), and configuration of the disk array module 204.
Access switch:
as shown in fig. 3, mainly includes a network interface module (a downstream network interface module 301, an upstream network interface module 302), a switching engine module 303, and a CPU module 304;
wherein, the packet (uplink data) coming in from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), source Address (SA), packet type, and packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id), and enters the switching engine module 303, otherwise, discards the packet; the packets (downstream data) coming in from the upstream network interface module 302 enter the switching engine module 303; the data packet coming in from the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up an address table 306 on an incoming packet, thereby obtaining packet guiding information; if a packet entering the switching engine module 303 is sent 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 a stream identifier (stream-id); discarding if the queue of the packet buffer 307 is nearly full; if the packet entering the switching engine module 303 is not sent from the downlink network interface to the uplink network interface, storing the data packet 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 switch engine module 303 polls all packet buffer queues, in two cases in the embodiment of the present invention:
if the queue is sent from the downlink network interface to the uplink network interface, the following conditions are satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not addressed by the downstream network interface to the upstream network interface, the following condition is satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface 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 rate control module 308.
Ethernet corotation gateway
As shown in fig. 4, the device mainly includes a network interface module (a downstream network interface module 401 and an upstream 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 in from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, ethernet MAC SA, ethernet length or frame type, video network destination address DA, video network source address SA, video network packet type and packet length of the data 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) are subtracted by the MAC delete module 410 and enter the corresponding receive buffer, otherwise discarded;
the downlink network interface module 401 detects the sending buffer of the port, if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet's internet of view, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet cooperative gateway, and the ethernet length or frame type, and sends.
The function of the other modules in the ethernet corotation gateway is similar to that of the access switch.
And (3) 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/audio encoding/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 classes: node server, node switch, 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. View networking data 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 data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), 256 possibilities are at most provided, the second byte to the sixth byte are metropolitan area network addresses, and the seventh and eighth bytes are access network addresses;
the Source Address (SA) is also composed of 8 bytes (bytes), defined identically to the Destination Address (DA);
the reserved bytes consist of 2 bytes;
the payload portion has different lengths according to the types of the different datagrams, and is 64 bytes if it is various protocol packets, and 32+1024=1056 bytes if it is a unicast packet, and is of course not limited to the above 2 types;
The CRC consists of 4 bytes and its calculation method follows the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of the metropolitan area network is a pattern, there may be 2 or even more than 2 connections between two devices, i.e. there may be more than 2 connections between node switches and node servers, node switches and node switches, node switches and node servers. However, the metropolitan area network address of the metropolitan area network device is unique, and in order to accurately describe the connection relationship between metropolitan area network devices, parameters are introduced in the embodiment of the present invention: a tag to uniquely describe a metropolitan area network device.
The definition of label in this specification is similar to that of MPLS (Multi-Protocol Label Switch, multiprotocol label switching), and assuming that there are two connections between device a and device B, there are 2 labels for packets from device a to device B and 2 labels for packets from device B to device a. The label is split into label and label out, and assuming that the label (in label) of the packet entering the device a is 0x0000, the label (out label) of the packet when leaving the device a may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, that is, the address allocation and label allocation of the metropolitan area network are all led by the metropolitan area server, the node switch and the node server are all passively executed, which is different from the label allocation of the MPLS, which is the result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metropolitan area network mainly includes the following parts:
DA SA Reserved label (Label) Payload CRC
I.e. Destination Address (DA), source Address (SA), reserved bytes (Reserved), labels, payload (PDU), CRC. Wherein the format of the tag may be defined with reference to the following: the tag is 32 bits, with the high 16bit reservation, with only the low 16bit, and its position is between the reserved bytes and payload of the packet.
Referring to fig. 5, a flowchart illustrating steps of a method for data processing according to an embodiment of the present invention may specifically include the following steps:
step 501, responding to user operation, generating a first state acquisition request for routing equipment in the video network, and sending the first state acquisition request to a network management server;
the first state obtaining request may be generated by the terminal device, and is used for obtaining a request of port state information of the routing device in the internet of view, for example, the PC side may generate and send an obtaining request of port state information of the routing device in the internet of view.
As an example, the network management server may be a network management server of the internet of view, which may have a network management private protocol snmp, for example, the network management server of the internet of view may be a snmp protocol module, may have a network management protocol modified with a public snmp protocol (simple network management protocol) (i.e., a network management private protocol snmp), and the network management private protocol snmp may include functions such as get acquisition, set setting, walk acquisition list, etc.
In the process of controlling the routing equipment in the video network, a user can operate through a PC end, generate an acquisition request of port state information for the routing equipment in the video network, and send the acquisition request to a video network management server so as to send the acquisition request to the routing equipment in the video network by adopting the video network management server.
In practical application, when a user performs port allocation for an established communication tunnel through a PC end, the user needs to acquire the port occupation condition of the user from a remote device (i.e. a routing device in the internet of view), and the user can send a request through the PC end to acquire port information of the remote device.
In an example, a request to obtain port information may be sent by the PC on the internet side for a third party route (i.e. a routing device located in the internet of view) for port allocation, then the request may be sent by the IP server to a snmp protocol module (i.e. a network management server), and the request may be sent by a transparent sdk (an internet of view transmission module) to the third party route located in the internet of view via the internet of view server.
Step 502, receiving bitmap data returned by the network management server for the first state acquisition request;
The bitmap data may be obtained by the routing device for the data returned by the first state acquisition request, and the network management server may send the bitmap data to the terminal device (such as a PC end).
The network management server of the internet of view can receive data (such as bitmap data) returned by the routing device for the first state acquisition request, and can send the bitmap data to the PC end, for example, the network management server of the internet of view can acquire the bitmap data from the remote device by adopting the get acquisition function of the network management private protocol snmp, such as 00:00:01: 01 ….
Step 503, generating port state information for the routing device according to the bitmap data;
the port state information may be port state information for a vlan port in the routing device.
After the bitmap data is received, the bitmap data can be analyzed through the terminal equipment (such as a PC end), so that port state information aiming at vlan ports in the routing equipment can be obtained.
And step 504, visualizing the port state information.
After the port state information is obtained, the port state information can be visualized, and then a number which can be identified by a user can be obtained, so that the user can obtain the port state information of the vlan port in the routing equipment.
For example, the display may be performed through a page of the terminal device (such as a PC end), so that a user may learn that one or more ports in the routing device are occupied.
The invention is illustrated below in connection with fig. 6:
the remote device (i.e. the routing device) located in the internet of view may have data stored in a bitmap manner, where the data may include information about the occupation of the ports in the remote device, and the remote device may send the data to the internet of view server through the transparent transmission sdk (the internet of view transmission module) in the internet of view, and then the internet of view server may send the data to the snmp protocol module (i.e. the network management server) through the transparent transmission sdk in the internet of view, and may further send the data to the PC, and may parse the data stored in the bitmap manner by adopting java, so as to obtain a number that may be identified by the user, so as to perform visualization.
In the embodiment of the invention, the first state acquisition request for the routing equipment in the video network is generated by responding to the user operation and is sent to the network management server, then the bitmap data returned by the network management server for the first state acquisition request is received, further, the port state information for the routing equipment is generated according to the bitmap data, and the port state information is visualized, so that the port state information of the routing equipment in the video network is transmitted by adopting the bitmap data, the transmission quantity of the data is reduced, the transmission speed is improved, the bitmap data can be visualized, and the readability of the data is improved.
Referring to fig. 7, a flowchart illustrating steps of another method for data processing according to an embodiment of the present invention may specifically include the following steps:
step 701, responding to user operation, generating a first state acquisition request for routing equipment in the video network, and sending the first state acquisition request to a network management server;
in the process of controlling the routing equipment in the video network, a user can operate through a PC end, generate an acquisition request of port state information for the routing equipment in the video network, and send the acquisition request to a video network management server so as to send the acquisition request to the routing equipment in the video network by adopting the video network management server.
Step 702, receiving bitmap data returned by the network management server for the first state acquisition request;
the network management server of the internet of view can receive data (such as bitmap data) returned by the routing device for the first state acquisition request, and can send the bitmap data to the PC end, for example, the network management server of the internet of view can acquire the bitmap data from the remote device by adopting the get acquisition function of the network management private protocol snmp.
In an example, bitmap data, such as 00:00:11 …, may be obtained from a third party router (such as a third party customized private router device) located in the internet of view, where each byte may be composed of 8 binary bits, and 512 bytes of data in the bitmap data may correspond to 4096 vlan port data of the router device.
Step 703, determining a target port serial number for the routing device by using the bitmap data;
the port number may be a number of a vlan port in the routing device, and the target port number may be a port number set for a vlan port state in the routing device, for example, a port number set in which a vlan port state in the routing device is an occupied state.
After the bitmap data is received, the bitmap data can be analyzed through the terminal equipment (such as a PC end), so that a port sequence number set aiming at a vlan port state in the routing equipment can be obtained and used as a target port sequence number aiming at the routing equipment.
In an embodiment of the present invention, step 703 may include the following sub-steps:
a substep 11 of determining, for each character in the bitmap data, a bit sequence number of a target bit; wherein the target bit is a bit in a non-null state;
wherein the bit may be a bit of a character in the bitmap data, the bit may represent that the corresponding element state is present or absent, for example, a value of the bit is represented by 0 or 1; the target bit may be a bit in a non-null state.
After receiving the bitmap data, characters in the bitmap data may be traversed, and for each character, a bit sequence number of a bit in a non-null state may be determined, and thus may be used as a bit sequence number of a target bit.
For example, for one character 00:00:11 of bitmap data, where 0 may represent an idle state, 1 may represent a non-idle state, and in order to obtain port information that a vlan port state in a routing device is an occupied state, a bit in the non-idle state may be used as a target bit, that is, 1 in 00:00:11 is used as a target bit.
In the process of traversing characters, when traversing to ':', the next digit can be continuously traversed, and the bit sequence number i of the first 1 bit (target bit) can be specifically represented in the following way for one character 00:00:11 of bitmap data:
i=6, indicating that the count from 0 (":" also counts), bit 1 is traversed to bit 7.
A sub-step 12 of generating a target array by adopting the bit sequence number;
the target array may be an array for target bits, and may be used for performing bit and operation and binary conversion.
After determining the bit sequence number of the target bit, the bit sequence number may be used to generate a target array for the target bit for subsequent bit and operation and binary conversion.
In an embodiment of the present invention, the sub-step 12 may comprise the following sub-steps:
a substep 121, obtaining high-low weight information;
the high-low weight information may be a high-low weight for an array, for example, a byte array occupying four bytes, and may be set to 8, 4,2, and 1 from high to low, i.e., the weight of the highest bit may be 2=8, and then may be 2=4, 2=2, and 2=1 in sequence.
In practical application, the character can be converted into a four-bit array aiming at one acquired character data, and the four-bit array can be divided into high and low bits, so that the high and low bit weight information aiming at the four-bit array can be obtained.
A sub-step 122 of generating an intermediate value by using the bit sequence number;
wherein intermediate values may be used for bit and operation and binary conversion.
After determining the bit sequence number of the target bit, the bit sequence number may be used to generate an intermediate value for performing bit and operation and binary conversion, for example, the intermediate value c may be obtained according to the bit sequence number i, and specifically may be generated as follows:
Char c=hex.charAt(i);
Wherein hex is the acquired bitmap data 00:00:11, and the intermediate value c=1 can be obtained according to the bit sequence number i=6.
And step 123, combining the intermediate numerical value and the high-low weight information to generate a target array.
After the high-low weight information and the intermediate value for the array are acquired, the intermediate value and the high-low weight information can be combined to generate a target array for subsequent bit and operation and binary conversion.
And step 13, generating a target port serial number for the routing equipment by adopting the target array.
After the target array is generated, bit and operation and binary conversion can be performed by using the target array, so that a port sequence number set aiming at a vlan port state in the routing device can be obtained, for example, the port sequence number set can be used as a target port sequence number aiming at the routing device, for example, the port sequence number set can be subjected to operation (bit and operation), the binary conversion is performed into 16 binary, then the 16 binary is converted into 10 binary, and further, a numerical value which can be recognized by a user can be obtained.
In an example, for a target array, according to the high-low weight information (e.g., 8, 4, 2, 1 from high to low) of the array, any four binary numbers can be converted into corresponding decimal values through binary conversion, and when traversing from high to low to each bit with value of 1, the values which can be identified by the user can be obtained.
In yet another example, as shown in fig. 8, for one byte 00:00:11 in the acquired bitmap data, each number in the byte may be traversed, where j=4 (the current number of numbers) may be recorded when traversing to the first bit of 1, that is, when traversing to the first bit of 1, 4 numbers have been traversed, and the int value of the bitmap data may be converted into a byte array, and the bit position and the binary conversion may be performed, and specifically, the binary conversion calculation may be performed in the following manner:
int kk=(c&0×8)>>3;
int kk1=(c&0×4)>>2;
int kk2=(c&0×2)>>1;
int kk3=(c&0×1);
when the kk value is 1, the calculation formula may be j×4+1; when the kk1 value is 1, the calculation formula can be corresponding to j+4+2; when the kk2 value is 1, the calculation formula can be j×4+3; when the kk3 value is 1, the calculation formula may be j×4+4.
For example, for 00:00:11, through binary conversion calculation, when c=1, j=4, kk:0, kk1:0, kk2:0, kk3:1 can be calculated, and then when kk3=1, a corresponding calculation formula j+4 can be adopted to obtain that the first element value of the port sequence number set (i.e. the target port sequence number) is 20, which indicates that the number 20 vlan port is in an occupied state.
As an example, in parsing bitmap data, a new set may be created for bitmap data of 512 bytes, the new set may be 4096 in size, and an initial subscript of the new set may be set to y=0, which may be specifically expressed as follows:
if(kk3==1);
uu[y++]=kk3*j*4+4;
uu:{20,0,0,0,0,0,0,0,0,0,+4086more},y=1,kk3=1
Wherein uu is a new set, y is a subscript recorded when a port occupies, and each time a port in an occupied state is traversed, the subscript y can be added with 1, for example, a number 20 vlan port is calculated to be in an occupied state through binary conversion, that is, the first element value of the new set is 20, the subscript y of the new set can be added with 1, that is, y=1, and 20 is stored in the new set, so that after traversing 512 characters of bitmap data, a new set (that is, a target port number) of a port sequence number of the vlan port in an occupied state can be obtained.
Step 704, setting the port state information corresponding to the target port serial number as an occupied state;
after determining the target port serial number, the port state information corresponding to the target port serial number may be set to an occupied state, so as to visualize the port in the occupied state in the routing device.
For example, when the port serial number set (i.e., the target port serial number) has a value of 10, 20, 30, the port state information corresponding to the value of 10, 20, 30 may be set to an occupied state, so as to visualize the port in the occupied state in the routing device, so that the user can learn that the port 10, 20, 30 in the routing device is in the occupied state.
Step 705, visualizing the port status information.
After the port state information is obtained, the port state information can be visualized, and then a number which can be identified by a user can be obtained, so that the user can obtain the port state information of the vlan port in the routing equipment.
In the embodiment of the invention, the first state acquisition request for the routing equipment in the video network is generated by responding to the user operation and is sent to the network management server, then the bitmap data returned by the network management server for the first state acquisition request is received, the target port serial number for the routing equipment is determined by adopting the bitmap data, the port state information corresponding to the target port serial number is set as the occupied state, and the port state information is visualized, so that the port state information of the routing equipment in the video network is transmitted by adopting the bitmap data, the data transmission quantity is reduced, the transmission speed is improved, the bitmap data can be visualized, and the user can acquire the port information of the occupied state in the routing equipment conveniently.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 9, a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention may specifically include the following modules:
the first state acquisition request generating module 901 is configured to generate a first state acquisition request for a routing device located in the internet of view in response to a user operation, and send the first state acquisition request to a network management server;
a bitmap data receiving module 902, configured to receive bitmap data returned by the network management server for the first status acquisition request;
a port state information generating module 903, configured to generate port state information for the routing device according to the bitmap data;
and a visualization module 904, configured to visualize the port status information.
In an embodiment of the present invention, the port status information generation module 903 includes:
a target port serial number determining sub-module, configured to determine a target port serial number for the routing device using the bitmap data;
and the port state information generation sub-module is used for setting the port state information corresponding to the target port serial number into an occupied state.
In an embodiment of the present invention, the target port number determining submodule includes:
A bit sequence number determining unit configured to determine a bit sequence number of a target bit for each character in the bitmap data; wherein the target bit is a bit in a non-null state;
a target array generating unit, configured to generate a target array by using the bit sequence number;
and the target port serial number determining unit is used for generating a target port serial number aiming at the routing equipment by adopting the target array.
In an embodiment of the present invention, the target array generating unit includes:
the weight information acquisition subunit is used for acquiring high-low weight information;
an intermediate value generating subunit, configured to generate an intermediate value by using the bit sequence number;
and the target array generation subunit is used for combining the intermediate numerical value and the high-low weight information to generate a target array.
In an embodiment of the present invention, the port state information is port state information for a vlan port in the routing device.
In the embodiment of the invention, the first state acquisition request for the routing equipment in the video network is generated by responding to the user operation and is sent to the network management server, then the bitmap data returned by the network management server for the first state acquisition request is received, further, the port state information for the routing equipment is generated according to the bitmap data, and the port state information is visualized, so that the port state information of the routing equipment in the video network is transmitted by adopting the bitmap data, the transmission quantity of the data is reduced, the transmission speed is improved, the bitmap data can be visualized, and the readability of the data is improved.
An embodiment of the present invention also provides an electronic device that may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program implementing the steps of the method of data processing as described above when executed by the processor.
An embodiment of the present invention also 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 embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that 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 invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that 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. Moreover, 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has outlined rather broadly the more detailed description of a method and apparatus for data processing that uses specific examples to illustrate the principles and embodiments of the present invention, the description of the examples above being provided only to facilitate an understanding of the method and core concepts of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (6)

1. A method of data processing, the method comprising:
responding to user operation, generating a first state acquisition request for routing equipment in the video network, and sending the first state acquisition request to a network management server;
receiving bitmap data returned by the network management server aiming at the first state acquisition request;
generating port state information for the routing equipment according to the bitmap data;
visualizing the port state information;
wherein the generating port state information for the routing device according to the bitmap data includes:
determining a target port sequence number for the routing equipment by adopting the bitmap data;
Setting the port state information corresponding to the target port serial number as an occupied state;
wherein the determining, using the bitmap data, a destination port number for the routing device includes:
determining a bit sequence number of a target bit for each character in the bitmap data; wherein the target bit is a bit in a non-null state;
generating a target array by adopting the bit sequence number;
and generating a target port serial number aiming at the routing equipment by adopting the target array.
2. The method of claim 1, wherein generating the destination array using the bit sequence number comprises:
acquiring high-low weight information;
generating an intermediate numerical value by adopting the bit sequence number;
and combining the intermediate numerical value and the high-low weight information to generate a target array.
3. The method according to claim 1 or 2, wherein the port state information is port state information for a vlan port in the routing device.
4. An apparatus for data processing, the apparatus comprising:
the first state acquisition request generation module is used for responding to user operation, generating a first state acquisition request aiming at the routing equipment in the video network and sending the first state acquisition request to the network management server;
The bitmap data receiving module is used for receiving bitmap data returned by the network management server aiming at the first state acquisition request;
a port state information generating module, configured to generate port state information for the routing device according to the bitmap data;
the visualization module is used for visualizing the port state information;
wherein, the port state information generating module includes:
a target port serial number determining sub-module, configured to determine a target port serial number for the routing device using the bitmap data;
the port state information generation sub-module is used for setting the port state information corresponding to the target port serial number into an occupied state;
wherein, the target port serial number determining submodule includes:
a bit sequence number determining unit configured to determine a bit sequence number of a target bit for each character in the bitmap data; wherein the target bit is a bit in a non-null state;
a target array generating unit, configured to generate a target array by using the bit sequence number;
and the target port serial number determining unit is used for generating a target port serial number aiming at the routing equipment by adopting the target array.
5. The apparatus of claim 4, wherein the target array generation unit comprises:
the weight information acquisition subunit is used for acquiring high-low weight information;
an intermediate value generating subunit, configured to generate an intermediate value by using the bit sequence number;
and the target array generation subunit is used for combining the intermediate numerical value and the high-low weight information to generate a target array.
6. The apparatus according to claim 4 or 5, wherein the port state information is port state information for a vlan port in the routing device.
CN202010438334.2A 2020-05-21 2020-05-21 Data processing method and device Active CN111800308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010438334.2A CN111800308B (en) 2020-05-21 2020-05-21 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010438334.2A CN111800308B (en) 2020-05-21 2020-05-21 Data processing method and device

Publications (2)

Publication Number Publication Date
CN111800308A CN111800308A (en) 2020-10-20
CN111800308B true CN111800308B (en) 2023-06-13

Family

ID=72806185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010438334.2A Active CN111800308B (en) 2020-05-21 2020-05-21 Data processing method and device

Country Status (1)

Country Link
CN (1) CN111800308B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286826A (en) * 2018-08-31 2019-01-29 视联动力信息技术股份有限公司 Information display method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377634B (en) * 2010-08-06 2014-02-05 北京乾唐视联网络科技有限公司 Networking method and system for access network equipment
CN107395496B (en) * 2017-06-16 2020-12-15 腾讯科技(深圳)有限公司 Data forwarding method and device, gateway equipment and storage medium
CN109257629A (en) * 2018-09-30 2019-01-22 视联动力信息技术股份有限公司 A kind of data transmission system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286826A (en) * 2018-08-31 2019-01-29 视联动力信息技术股份有限公司 Information display method and device

Also Published As

Publication number Publication date
CN111800308A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN109617956B (en) Data processing method and device
CN109309806B (en) Video conference management method and system
CN110022295B (en) Data transmission method and video networking system
CN109818960B (en) Data processing method and device
CN110557319B (en) Message processing method and device based on video network
CN110266577B (en) Tunnel establishment method and video networking system
CN109768986B (en) Method and device for responding to video network service request signaling
CN109768957B (en) Method and system for processing monitoring data
CN109005378B (en) Video conference processing method and system
CN110677617A (en) Data processing method and device
CN110493149B (en) Message processing method and device
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110289974B (en) Data stream processing method, system and device and storage medium
CN109963107B (en) Audio and video data display method and system
CN110087147B (en) Audio and video stream transmission method and device
CN110134892B (en) Loading method and system of monitoring resource list
CN109862439B (en) Data processing method and device
CN110677315A (en) Method and system for monitoring state
CN110557411A (en) video stream processing method and device based on video network
CN111526323B (en) Panoramic video processing method and device
CN111614714B (en) Data processing method and device of service system
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110557594B (en) Video call processing method and device and storage medium
CN110557669B (en) Video data display method and device
CN110445701B (en) Business object processing method and device and storage medium

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