CN111049942A - Address data processing method, device, device and storage medium of video network terminal - Google Patents
Address data processing method, device, device and storage medium of video network terminal Download PDFInfo
- Publication number
- CN111049942A CN111049942A CN201911206135.2A CN201911206135A CN111049942A CN 111049942 A CN111049942 A CN 111049942A CN 201911206135 A CN201911206135 A CN 201911206135A CN 111049942 A CN111049942 A CN 111049942A
- Authority
- CN
- China
- Prior art keywords
- address data
- original
- configuration file
- mac address
- card configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 54
- 238000012986 modification Methods 0.000 claims abstract description 10
- 230000004048 modification Effects 0.000 claims abstract description 10
- 230000006855 networking Effects 0.000 claims description 46
- 238000012545 processing Methods 0.000 claims description 25
- 230000000694 effects Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 14
- 230000015654 memory Effects 0.000 description 9
- 238000013502 data validation Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000011144 upstream manufacturing Methods 0.000 description 4
- 238000010200 validation analysis Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 239000005441 aurora Substances 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000002155 anti-virotic effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses an address data processing method, device, equipment and storage medium of a video network terminal, wherein the method is applied to the video network terminal, and comprises the following steps: when the fact that the video network terminal is accessed to a data acquisition device is detected, original IP address data and MAC address data which are acquired by the data acquisition device and correspond to the video network terminal are acquired through a first preset application on the video network terminal; locally storing the original IP address data and the MAC address data through the first preset application; and writing the original IP address data and the MAC address data which are locally stored into the system attribute parameters of the video network terminal through the first preset application. According to the method and the device, the original IP address data and the MAC address data can be directly read from the system attribute parameters without manual modification and addition, and the user experience is optimized.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing address data of a video networking terminal.
Background
The video network terminal refers to a device dedicated to video network, and has various types, such as a set top box, a switch, a router, a storage device, an aurora device dedicated to high-definition video transmission, and the like. Due to the characteristics of the video network, the video network terminal equipment must uniformly manage the IP address and the MAC address of the terminal in production. For example, with the difference of the video network accessed by the video network terminal or the difference of the video network services involved, the IP address and the MAC address of the video network terminal need to be modified, so that the video network terminal can join the video network through the modified IP address and MAC address, thereby realizing the unified management of the video network terminal. The IP address is an address used in the internet corresponding to the terminal, and the MAC address may refer to an address of the terminal in the internet of view, and may be used to uniquely identify the terminal in the internet of view.
In practice, after modifying the IP address and the MAC address of the video network terminal for many times, the user often needs to restore the video network terminal to factory settings to put the terminal into use again after initializing the terminal, but after restoring the factory settings, the user needs to manually add the original IP address and MAC address through a setting interface. Taking a video network terminal as an aurora device, a router or a switch, etc. as an example, the above devices do not have their own display interfaces, so when a user manually adds an original IP address and an original MAC address after factory setting is restored, manual addition and setting need to be performed on a display screen connected with the terminal through a remote controller, which is likely to cause inconsistency between the manually added IP address and the manually added MAC address and an address when leaving a factory in practice, and is very inconvenient in an operation process.
Therefore, there is a problem in the prior art that the processing of the IP address and the MAC address of the terminal of the video network is not sufficiently optimized.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide an address data processing method, apparatus, device and storage medium for a terminal of a video network that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present application provides a method for processing address data of a video network terminal, where the method is applied to the video network terminal, and the method includes:
when the fact that the video network terminal is accessed to a data acquisition device is detected, original IP address data and MAC address data which are acquired by the data acquisition device and correspond to the video network terminal are acquired through a first preset application on the video network terminal;
locally storing the original IP address data and the MAC address data through the first preset application;
and writing the original IP address data and the MAC address data which are locally stored into the system attribute parameters of the video network terminal through the first preset application.
Optionally, after the locally stored original IP address data and MAC address data are written into the system attribute parameters of the video network terminal, the method further includes a step of generating an original network card configuration file, where the step of generating an original network card configuration file includes:
when detecting that a second preset application on the video networking terminal is started, reading the original IP address data and the MAC address data from the system attribute parameters through the second preset application;
creating a network card configuration file;
and writing the read IP address data and the original MAC address data into the network card configuration file to obtain an original network card configuration file.
Optionally, the method further comprises:
when detecting that a third preset application on the video networking terminal is started, acquiring the original network card configuration file through the third preset application;
based on the original network card configuration file, restarting the video networking terminal through the third preset application so as to enable the original IP address data and the MAC address data in the original network card configuration file to be effective.
Optionally, after the video networking terminal is restarted by the third preset application to validate the original IP address data and the MAC address data in the original network card configuration file, the method further includes:
updating the original IP address data and the MAC address data in the original network card configuration file according to the modification of the original IP address data and the MAC address data in the original network card configuration file by a user;
and restarting the video network terminal through the third preset application based on the updated original network card configuration file so as to enable the updated IP address data and MAC address data to take effect.
Optionally, after the updated IP address data and MAC address data are validated according to the updated original network card configuration file, the method further includes:
when the operation of restoring factory settings by a user is detected, the updated original network card configuration file is cleared;
and executing the step of generating the original network card configuration file.
Optionally, before restarting the video networking terminal through the third preset application based on the original network card configuration file to validate the original IP address data and the MAC address data, the method further includes:
determining whether the original IP address data and the MAC address data in the original network card configuration file are legal or not;
when the original IP address data and the MAC address data in the original network card configuration file are determined to be illegal, replacing the original IP address data and the MAC address data with default IP address data and default MAC address data, and restarting the video network terminal through the third preset application so as to enable the default IP address data and the default MAC address data to take effect;
based on the original network card configuration file, restarting the video networking terminal through the third preset application so as to enable the original IP address data and the MAC address data in the original network card configuration file to take effect, wherein the method comprises the following steps:
and when the original IP address data and the MAC address data in the original network card configuration file are determined to be legal, restarting the video network terminal through the third preset application based on the original network card configuration file so as to enable the original IP address data and the MAC address data to take effect.
In a second aspect, an embodiment of the present application provides an address data processing apparatus for a video network terminal, where the apparatus is applied to the video network terminal, and the apparatus includes:
the system comprises an address data acquisition module, a data acquisition module and a data processing module, wherein the address data acquisition module is used for acquiring original IP address data and MAC address data which are acquired by the data acquisition device and correspond to a video network terminal through a first preset application on the video network terminal when the video network terminal is detected to be accessed to the data acquisition device;
the address data local storage module is used for locally storing the original IP address data and the MAC address data through the first preset application;
and the address data writing module is used for writing the locally stored original IP address data and the MAC address data into the system attribute parameters of the video network terminal through the first preset application.
Optionally, the apparatus further includes an original network card configuration file generating module, where the original network card configuration file generating module includes:
the address data reading unit is used for reading the original IP address data and the MAC address data from the system attribute parameters through a second preset application when the second preset application on the video network terminal is detected to be started;
the configuration file creating unit is used for creating a network card configuration file;
and the original configuration file generating unit is used for writing the read IP address data and the original MAC address data into the network card configuration file to obtain an original network card configuration file.
Optionally, the apparatus further comprises:
the network card configuration file acquisition module is used for acquiring the original network card configuration file through a third preset application when the third preset application on the video network terminal is detected to be started;
and the address data validation module is used for restarting the video network terminal through the third preset application based on the original network card configuration file so as to enable the original IP address data and the MAC address data in the original network card configuration file to be validated.
Optionally, the apparatus further comprises:
the address data updating module is used for updating the original IP address data and the MAC address data in the original network card configuration file according to the modification of the original IP address data and the MAC address data in the original network card configuration file by a user;
the address data validation module is further configured to restart the video networking terminal through the third preset application based on the updated original network card configuration file, so that the updated IP address data and MAC address data are validated.
Optionally, the apparatus further comprises:
the configuration file clearing module is used for clearing the updated original network card configuration file when the operation of restoring factory settings by a user is detected;
and the configuration file control module is used for starting the original network card configuration file generation module so as to enable the original network card configuration file generation module to generate an original network card configuration file.
Optionally, the apparatus further comprises:
the data validity determining module is used for determining whether the original IP address data and the MAC address data in the original network card configuration file are legal or not;
the default validation module is used for replacing the original IP address data and the MAC address data with default IP address data and default MAC address data when the original IP address data and the MAC address data in the original network card configuration file are determined to be illegal, and restarting the video network terminal through the third preset application so as to enable the default IP address data and the default MAC address data to be valid;
the address data validation module is specifically configured to restart the video network terminal through the third preset application based on the original network card configuration file when it is determined that the original IP address data and the MAC address data in the original network card configuration file are legal, so that the original IP address data and the MAC address data are validated.
In a third aspect, an embodiment of the present application provides an electronic device, including:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform a method of address data processing for a video networking terminal as provided by the first aspect of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for causing a processor to execute the address data processing method of the video networking terminal as provided in the first aspect of the present application.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when the connection of the data acquisition equipment is detected, the original IP address data and the MAC address data corresponding to the video network terminal acquired by the data acquisition equipment can be acquired through the first preset application, so that the original IP address data and the MAC address data are locally stored, and then the locally stored original IP address data and the locally stored MAC address data are written into the system attribute parameters of the video network terminal. Because the system attribute parameters of the video networking terminal cannot be lost along with factory settings restoration, when original IP address data and MAC address data used initially are modified or restored later, the original IP address data and the MAC address data can be directly read from the system attribute parameters without manual modification and addition, and user experience is optimized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
fig. 5 is a flowchart illustrating steps of a method for processing address data of a terminal in a video network according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an address data processing method of a video network terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an address data processing apparatus of a video network terminal according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: 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 system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the 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 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 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 gateway:
as shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved Label Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video network, various video network terminals including a memory, a switch and various set top boxes are developed in the video network, the video network terminal in the embodiment of the application is the set top box, and the set top box is mainly used for carrying out high-definition video conferences in the video network. The video network terminal can be externally connected with the display, and then the IP address and the MAC address of the video network terminal are set through the remote controller.
Since the video network is a safe and controllable network, all terminal devices in the video network need to be managed in a unified manner to ensure the safety and high controllability of the video network, and in practice, the MAC address and the IP address of the video network terminal can be modified appropriately according to different video network services or according to different video network autonomous clouds.
Based on this, in order to optimize the processing mechanism of the MAC address and the IP address of the video networking terminal, improve the management efficiency, and optimize the user experience, the inventor of the present application proposes an address data processing method of the video networking terminal. Specifically, referring to fig. 5, a flowchart illustrating steps of a method for processing address data of a video network terminal according to an embodiment of the present invention is shown, where the method may be applied to the video network terminal, and specifically may include the following steps:
step S501, when detecting that the video network terminal is accessed to the data acquisition equipment, acquiring original IP address data and MAC address data which are acquired by the data acquisition equipment and correspond to the video network terminal through a first preset application on the video network terminal.
In the embodiment of the application, the original IP address data and the MAC address data which are acquired by the data acquisition equipment and correspond to the video network terminal can be acquired when the video network terminal leaves a factory. The first preset application may be a factory test program configured on the video network terminal when the video network terminal is produced, and may be used for a program test when the video network terminal leaves a factory. The original IP address data and the MAC address data refer to the IP address and the MAC address which are distributed and can be used for the initial network access of the video network terminal when the video network terminal is produced.
In practice, when the video network terminal leaves a factory, the first preset application can be started, and when the video network terminal is detected to be connected with the data acquisition device, the data communication between the first preset application and the data acquisition device can be established. In specific implementation, a two-dimensional code label comprising original IP address data and MAC address data can be configured on the video network terminal, so that the data acquisition device can acquire the original IP address data and the MAC address data by scanning the two-dimensional code label, and then the first preset application can acquire the original IP address data and the MAC address data scanned by the data acquisition device.
In this embodiment of the application, the data acquisition device may be, but is not limited to, a scan gun, and the scan gun may be connected to the video networking terminal through a USB (Universal Serial Bus) interface or the like.
Step S502, the original IP address data and the MAC address data are stored locally through the first preset application.
In practice, after the original IP address data and the MAC address data are obtained by the first preset application, the original IP address data and the MAC address data can still be stored in the storage device in the video network terminal by the first preset application for the convenience of reading and using in the future. Specifically, the first preset application may store the original IP address data and the MAC address data in a Flash (Flash memory) in the video network terminal.
Flash is a storage medium of embedded equipment, is commonly called as Flash memory, has the characteristic of no loss of stored data when power is off, and can realize permanent storage of original IP address data and MAC address data. Therefore, when the original IP address data and the MAC address data need to be used later, the original IP address data and the MAC address data can be read from Flash through the first preset application.
Step S503, writing the locally stored original IP address data and the locally stored MAC address data into the system attribute parameters of the video network terminal through the first preset application.
In this embodiment of the present application, when it is detected that the first preset application exits, the original IP address data and the MAC address data may be written into the system attribute parameter through the first preset application. The system attribute parameters refer to system configuration information describing an operating system, a model, a type and a related program of the video network terminal.
Specifically, the first preset application can test the program on the video network terminal when the video network terminal leaves the factory, and the first preset application automatically exits after the test is completed. Therefore, when the first preset application completes the test of the program on the video network terminal, the first preset application is continuously adopted to write the original IP address data and the MAC address data into the system attribute parameters of the video network terminal, and then the first preset application automatically exits.
Because the original IP address data and the MAC address data are written into the system attribute parameters of the video network terminal, the original IP address data and the MAC address data can be read by various application programs through the system attribute parameters, and the readability of the original IP address data and the readability of the MAC address data can be improved. And because the system attribute parameters are not lost due to operations such as factory setting restoration, the original IP address data and the MAC address data can be directly read from the system attribute parameters when the original IP address data and the MAC address data used initially are restored in the user using process after the video networking terminal leaves the factory, manual modification and addition by the user are not needed, and the user experience is optimized.
With reference to the foregoing embodiment, in an optional example, in order to facilitate the use of the video network terminal after leaving the factory, after step S503, the method may further include a step of generating an original network card configuration file, where the original network card configuration file may facilitate the video network terminal to join the video network through the original IP address data and the MAC address data. Specifically, the step of generating the original network card configuration file may specifically include the following steps:
step S504, when detecting that a second preset application on the video networking terminal is opened, reading the original IP address data and the MAC address data from the system attribute parameter through the second preset application.
In this optional embodiment, the second preset application may be a V2V program service running in the terminal of the video network, and the V2V program service may be used for performing audio/video services and the like in the video network, for example, a user may perform an audio/video call or browse high-definition videos through the V2V program service. Specifically, the second preset application may be installed in the video network terminal when the second preset application leaves the factory, or may be installed by a user after leaving the factory.
In practice, after the video network terminal leaves the factory, when the video network terminal is used by a user for the first time, the user needs to start the video network terminal, so that the video network terminal can complete system initialization and join the video network. In this optional embodiment, when the second preset application is started, the second preset application is indicated to be used by the video network terminal, and then the original IP address data and the MAC address data may be read from the system attribute parameters by using the second preset application.
Step S505, a network card configuration file is created.
Step S506, writing the read IP address data and the original MAC address data into the network card configuration file to obtain an original network card configuration file.
The network card configuration file may be a configuration file of network connection of the pointer to the video network terminal, may configure network parameters for the video network terminal to surf the internet, and specifically, may also be created by a second preset application. After the IP address data and the original MAC address data are read, the IP address data and the original MAC address data can be written into the network card configuration file through a second preset application, and then the original network card configuration file is obtained. The original network card configuration file may completely include the network parameters configured for the internet access of the video network terminal.
Accordingly, in an optional example, after obtaining the original network card configuration file, the method may further include the following steps:
step S507, when it is detected that a third preset application on the video network terminal is started, acquiring the original network card configuration file through the third preset application.
The third preset application may be a network card program service installed on the video network terminal when the third preset application leaves a factory, and the network card program service may be used to execute a task of adding the video network terminal to the video network. Specifically, after the original network card configuration file is generated by the second preset application, the third preset application may be started, and when the third preset application is started, the third preset application may automatically acquire the generated original network card configuration file.
Step S508, based on the original network card configuration file, restarting the video networking terminal through the third preset application, so that the original IP address data and the MAC address data in the original network card configuration file take effect.
In practice, since the original network card configuration file includes the network parameters to be configured for the internet access of the video network terminal, when the third preset application obtains the original network card configuration file, the original network card configuration file can be validated, so that the original IP address data and the MAC address data become valid, and then the original IP address data and the MAC address data which become valid can be added into the video network.
Specifically, when the original network card configuration file is obtained, the third preset application may implement the validation of the original network card configuration file by restarting the video network terminal. Namely, the third preset application automatically controls the restart of the video network terminal, and after the video network terminal is restarted, the original network card configuration file can take effect. After the validation, when the terminal of the video network joins the video network, the original IP address and the original MAC address are used.
According to the technical scheme, when the video network terminal is used for accessing the network for the first time, the user can directly start the second preset application, and the original IP address data and the MAC address data in the system attribute parameters are read through the second preset application, so that the original network card configuration file is generated. Furthermore, the third preset application can be directly started, the original network card configuration file is obtained through the third preset application, the original network card configuration file is enabled to take effect by restarting the video network terminal, and then the video network terminal can be enabled to be added into the video network through the enabled original IP address data and the enabled MAC address data. In the whole process, the user does not need to manually input the original IP address data and the MAC address data, so that the user experience is optimized.
Accordingly, in order to ensure that the IP address data and the MAC address data with correct format are used when the network access is added to the video network through the original network card configuration file, so as to improve the success rate and efficiency of network access, before step S508, the method may further include the following steps:
step S5081, determining whether the original IP address data and the MAC address data in the original network card configuration file are valid.
In the embodiment of the present application, legal means that the original IP address data and the MAC address data are IP addresses and MAC addresses with correct formats. In practice, if illegal characters are included in the IP address data and the MAC address data, it can be determined that they are illegal. For example, if the IP address is in the correct format of 222.209.18.130, if the IP address is aaa.cc.c.d or 21 x. 209.18.130, the data is illegal.
In specific implementation, if the original IP address data and the MAC address data are legal, step S508 may be executed, that is, the video network terminal is restarted to take effect on the original network card configuration file, so that the original IP address data and the MAC address data take effect. If the original IP address data and the MAC address data are not legitimate, the process may proceed to step S5082.
Step S5082, replacing the original IP address data and the MAC address data in the original network card configuration file with default IP address data and default MAC address data, respectively, and restarting the video network terminal through the third preset application, so that the default IP address data and the default MAC address data become valid.
In practice, when the original IP address data and the MAC address data are illegal, the original IP address data and the MAC address data in the original network card configuration file may be replaced with default IP address data and default MAC address data, respectively, in order to not affect the network access of the terminal of the video network. And then, the default IP address data and the default MAC address data can take effect by restarting the video network terminal, and the video network terminal can adopt the default IP address data and the default MAC address data to join the video network.
Accordingly, in order to conveniently modify the IP address data and the MAC address data during the using process of the terminal of the internet of view, in an optional example, after the original IP address data and the MAC address data are validated, the following steps may be further included:
step S509, updating the original IP address data and the MAC address data in the original network card configuration file according to the modification of the original IP address data and the MAC address data in the original network card configuration file by the user.
In practice, in the use process of the video network terminal, the IP address data and the MAC address data in the original network card configuration file are modified due to the requirement of the video network for unified management of the IP address and the MAC address of each video network terminal. Specifically, the user may open the network card configuration file, and modify the original IP address data and the MAC address data therein to obtain the modified IP address data and MAC address data. Thus, updating the original network card configuration file may refer to that the video network terminal restores the modified IP address data and MAC address data to the original network card configuration file, so that the original network card configuration file includes the modified IP address data and MAC address data.
Step S510, based on the updated original network card configuration file, restarting the video networking terminal through the third preset application, so that the updated IP address data and MAC address data take effect.
After the original network card configuration file is updated, that is, after the original network card configuration file is restored, the third preset application can automatically restart the video network terminal, so that the updated original network card configuration file is enabled to take effect, and further, the updated IP address data and the updated MAC address data are enabled to take effect. The video network terminal can access the network by adopting the updated IP address data and the MAC address data.
Accordingly, in an optional example, after the updated IP address data and MAC address data are validated according to the updated original network card configuration file, the method may further include the following steps:
step S511, when the operation of restoring the factory settings performed by the user is detected, the updated original network card configuration file is cleared.
Step S512, executing the step of generating the original network card configuration file.
In practice, restoring factory settings refers to restoring applications, configuration files, and the like on the video network terminal to a factory state. When the operation of restoring factory settings by the user is detected, the video networking terminal can clear the updated original network card configuration file. After the updated original network card configuration file is cleared, the original network card configuration file does not exist in the video network terminal, and in order to facilitate normal network access of the video network terminal after factory settings are restored, the video network terminal may execute the step of generating the original network card configuration file, that is, execute the processes described in the above step S504 to step S506 to regenerate the original network card configuration file.
When the technical scheme is adopted, after the factory setting is restored, the video network terminal can read the original IP address data and the MAC address data in the system attribute parameters and generate an original network card configuration file. Therefore, the user does not need to manually set the original IP address data and the MAC address data, and the user experience is optimized.
Referring to fig. 6, a flowchart of an address data processing apparatus of a video network terminal in a specific example is shown, in fig. 6, a factory test program service is a first preset reference referred to in the embodiments of the present application, a V2V program service is a second preset application, and a network card service is a third preset application. The three services can all run on the video networking terminal. As shown in fig. 6, the following process may be completely included:
firstly, when the video network terminal leaves the factory, the video network terminal is started, the plant test program service is started and operated, and the plant test program service acquires IP address data and MAC address data through scanning a label attached to the video network terminal.
And when the plant test program exits, writing the IP address data and the MAC address data into the flash, and writing the IP address data and the MAC address data into the system attribute of the video network terminal.
And then, the factory testing program can be unloaded, and the video network terminal leaves the factory.
When the video network terminal is started for the first time after leaving the factory, because the network card configuration file does not exist, the v2v program service creates a network card configuration file, and writes the IP address data and the MAC address data into the network card configuration file by reading the IP address data and the MAC address data in the system attribute, at this time, an original network card configuration file is generated, the IP address data and the MAC address data can be modified by the network card service through the original network card configuration file, and the network card service becomes effective after being restarted without manual setting and adding of a user.
When the video network terminal joins the video network, the network card service can be started, at the moment, the network card service can judge whether an original network card configuration file exists, if so, the network card service continuously judges whether IP address data and MAC address data in the original network card configuration file are legal, and if not, default values (default IP address data and default MAC address data) are used for taking effect; if the data is legal, the IP address data and the MAC address data can be directly validated.
Of course, if the network card service determines that the original network card configuration file does not exist, in practice, the V2V program service may be started to create the network card configuration file.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of an address data processing apparatus of a video network terminal according to an embodiment of the present invention is shown, where the apparatus may be applied to the video network terminal, and the apparatus may specifically include the following modules:
the address data acquisition module 701 may be configured to, when it is detected that the video network terminal accesses a data acquisition device, acquire, through a first preset application on the video network terminal, original IP address data and MAC address data, which are acquired by the data acquisition device and correspond to the video network terminal;
an address data local storage module 702, configured to locally store the original IP address data and the MAC address data through the first preset application;
the address data writing module 703 may be configured to write the locally stored original IP address data and the locally stored MAC address data into the system attribute parameters of the video network terminal through the first preset application.
In practice, the address data obtaining module 701, the address data local storage module 702, and the address data writing module 703 may all run on the first predetermined application.
Optionally, in an example, the apparatus may further include an original network card configuration file generating module, where the original network card configuration file generating module may be run on a second preset application of the video network terminal, and may be configured to generate an original network card configuration file, and specifically may include the following units:
the address data reading unit is used for reading the original IP address data and the MAC address data from the system attribute parameters through a second preset application when the second preset application on the video network terminal is detected to be started;
the configuration file creating unit is used for creating a network card configuration file;
and the original configuration file generating unit is used for writing the read IP address data and the original MAC address data into the network card configuration file to obtain an original network card configuration file.
Optionally, in an example, the apparatus may further include the following modules:
the network card configuration file acquisition module is used for acquiring the original network card configuration file through a third preset application when the third preset application on the video network terminal is detected to be started;
and the address data validation module is used for restarting the video network terminal through the third preset application based on the original network card configuration file so as to enable the original IP address data and the MAC address data in the original network card configuration file to be validated.
In practice, both the network card configuration file obtaining module and the address data validation module may be operated in the third predetermined application.
Optionally, the apparatus may further include the following modules:
the address data updating module is used for updating the original IP address data and the MAC address data in the original network card configuration file according to the modification of the original IP address data and the MAC address data in the original network card configuration file by a user;
the address data validation module is further configured to restart the video networking terminal through the third preset application based on the updated original network card configuration file, so that the updated IP address data and MAC address data are validated.
Optionally, the apparatus may further include the following modules:
the configuration file clearing module is used for clearing the updated original network card configuration file when the operation of restoring factory settings by a user is detected;
and the configuration file control module is used for starting the original network card configuration file generation module so as to enable the original network card configuration file generation module to generate an original network card configuration file.
Optionally, the apparatus may further include the following modules: :
the data validity determining module is used for determining whether the original IP address data and the MAC address data in the original network card configuration file are legal or not;
the default validation module is used for replacing the original IP address data and the MAC address data with default IP address data and default MAC address data when the original IP address data and the MAC address data in the original network card configuration file are determined to be illegal, and restarting the video network terminal through the third preset application so as to enable the default IP address data and the default MAC address data to be valid;
the address data validation module is specifically configured to restart the video network terminal through the third preset application based on the original network card configuration file when it is determined that the original IP address data and the MAC address data in the original network card configuration file are legal, so that the original IP address data and the MAC address data are validated.
Specifically, the data validity determining module and the default validating module may be run on a third preset application.
An embodiment of the present application further provides an electronic device, which may specifically include: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the address data processing method of the video networking terminal.
The embodiment of the application also provides a computer readable storage medium, and a stored computer program enables a processor to execute the address data processing method of the video network terminal.
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 terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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 preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The address data processing method, device, equipment and storage medium of the video network terminal provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understand the method and the core idea of the 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 (10)
1. An address data processing method of a video network terminal is applied to the video network terminal, and the method comprises the following steps:
when the fact that the video network terminal is accessed to a data acquisition device is detected, original IP address data and MAC address data which are acquired by the data acquisition device and correspond to the video network terminal are acquired through a first preset application on the video network terminal;
locally storing the original IP address data and the MAC address data through the first preset application;
and writing the original IP address data and the MAC address data which are locally stored into the system attribute parameters of the video network terminal through the first preset application.
2. The method of claim 1, wherein after writing the locally stored original IP address data and MAC address data to system attribute parameters of the video networking terminal, the method further comprises the step of generating an original network card configuration file, the step of generating an original network card configuration file comprising:
when detecting that a second preset application on the video networking terminal is started, reading the original IP address data and the MAC address data from the system attribute parameters through the second preset application;
creating a network card configuration file;
and writing the read original IP address data and the read MAC address data into the network card configuration file to obtain an original network card configuration file.
3. The method of claim 2, further comprising:
when detecting that a third preset application on the video networking terminal is started, acquiring the original network card configuration file through the third preset application;
based on the original network card configuration file, restarting the video networking terminal through the third preset application so as to enable the original IP address data and the MAC address data in the original network card configuration file to be effective.
4. A method according to claim 2 or 3, characterized in that: after restarting the video networking terminal through the third preset application to validate the original IP address data and the MAC address data in the original network card configuration file, the method further comprises:
updating the original IP address data and the MAC address data in the original network card configuration file according to the modification of the original IP address data and the MAC address data in the original network card configuration file by a user;
and restarting the video network terminal through the third preset application based on the updated original network card configuration file so as to enable the updated IP address data and MAC address data to take effect.
5. The method of claim 4, wherein: after the updated IP address data and MAC address data are validated according to the updated original network card configuration file, the method further includes:
when the operation of restoring factory settings by a user is detected, the updated original network card configuration file is cleared;
and executing the step of generating the original network card configuration file.
6. The method of claim 3, wherein: before restarting the video networking terminal through the third preset application based on the original network card configuration file to enable the original IP address data and the MAC address data to be effective, the method further comprises:
determining whether the original IP address data and the MAC address data in the original network card configuration file are legal or not;
when the original IP address data and the MAC address data in the original network card configuration file are determined to be illegal, replacing the original IP address data and the MAC address data with default IP address data and default MAC address data, and restarting the video network terminal through the third preset application so as to enable the default IP address data and the default MAC address data to take effect;
based on the original network card configuration file, restarting the video networking terminal through the third preset application so as to enable the original IP address data and the MAC address data in the original network card configuration file to take effect, wherein the method comprises the following steps:
and when the original IP address data and the MAC address data in the original network card configuration file are determined to be legal, restarting the video network terminal through the third preset application based on the original network card configuration file so as to enable the original IP address data and the MAC address data to take effect.
7. An address data processing device of a video network terminal, wherein the device is applied to the video network terminal, and the device comprises:
the system comprises an address data acquisition module, a data acquisition module and a data processing module, wherein the address data acquisition module is used for acquiring original IP address data and MAC address data which are acquired by the data acquisition device and correspond to a video network terminal through a first preset application on the video network terminal when the video network terminal is detected to be accessed to the data acquisition device;
the address data local storage module is used for locally storing the original IP address data and the MAC address data through the first preset application;
and the address data writing module is used for writing the locally stored original IP address data and the MAC address data into the system attribute parameters of the video network terminal through the first preset application.
8. The apparatus of claim 7, further comprising an original network card configuration file generating module, wherein the original network card configuration file generating module comprises:
the address data reading unit is used for reading the original IP address data and the MAC address data from the system attribute parameters through a second preset application when the second preset application on the video network terminal is detected to be started;
the configuration file creating unit is used for creating a network card configuration file;
and the original configuration file generating unit is used for writing the read IP address data and the original MAC address data into the network card configuration file to obtain an original network card configuration file.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of one or more of claims 1-6.
10. A computer-readable storage medium, characterized in that it stores a computer program that causes a processor to perform the method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911206135.2A CN111049942B (en) | 2019-11-29 | 2019-11-29 | Address data processing method, device, equipment and storage medium of video network terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911206135.2A CN111049942B (en) | 2019-11-29 | 2019-11-29 | Address data processing method, device, equipment and storage medium of video network terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111049942A true CN111049942A (en) | 2020-04-21 |
| CN111049942B CN111049942B (en) | 2022-12-23 |
Family
ID=70234180
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911206135.2A Active CN111049942B (en) | 2019-11-29 | 2019-11-29 | Address data processing method, device, equipment and storage medium of video network terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111049942B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112286949A (en) * | 2020-11-20 | 2021-01-29 | 深圳市和讯华谷信息技术有限公司 | Application list updating method and device, computer equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030069993A1 (en) * | 2001-09-05 | 2003-04-10 | Sumsung Electronics Co., Ltd. | Apparatus and method for allocating IP addresses to network interface card |
| CN108632075A (en) * | 2017-08-31 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of programming method and apparatus regarding networked terminals |
| CN110471676A (en) * | 2019-08-22 | 2019-11-19 | 深圳市讯盾科技有限公司 | MAC Address method for burn-recording and system |
-
2019
- 2019-11-29 CN CN201911206135.2A patent/CN111049942B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030069993A1 (en) * | 2001-09-05 | 2003-04-10 | Sumsung Electronics Co., Ltd. | Apparatus and method for allocating IP addresses to network interface card |
| CN108632075A (en) * | 2017-08-31 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of programming method and apparatus regarding networked terminals |
| CN110471676A (en) * | 2019-08-22 | 2019-11-19 | 深圳市讯盾科技有限公司 | MAC Address method for burn-recording and system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112286949A (en) * | 2020-11-20 | 2021-01-29 | 深圳市和讯华谷信息技术有限公司 | Application list updating method and device, computer equipment and storage medium |
| CN112286949B (en) * | 2020-11-20 | 2024-05-17 | 深圳市和讯华谷信息技术有限公司 | Application list updating method and device, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111049942B (en) | 2022-12-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110647698B (en) | Page loading method and device, electronic equipment and readable storage medium | |
| CN108881814B (en) | Method and device for communication between video network terminal and network camera and interaction system | |
| CN111193788A (en) | Audio and video stream load balancing method and device | |
| CN110489042B (en) | Method and system for simulating dragging based on video network | |
| CN110475102B (en) | Monitoring data processing method and system based on video network | |
| CN108965224B (en) | Video-on-demand method and device | |
| CN108880851B (en) | Configuration updating method and interaction system | |
| CN109547728B (en) | Recorded broadcast source conference entering and conference recorded broadcast method and system | |
| CN109788247B (en) | Method and device for identifying monitoring instruction | |
| CN108966018B (en) | Video broadcasting method, device, electronic equipment and storage medium based on view networking | |
| CN108632075B (en) | Method and device for programming video network terminal | |
| CN110460469B (en) | System upgrading method and device and storage medium | |
| CN109151061B (en) | Data storage method and device | |
| CN108989850B (en) | Video playing control method and control system | |
| CN110636132A (en) | Data synchronization method, client, electronic device and computer-readable storage medium | |
| CN110636044B (en) | Network access method, system and device for virtual terminal and storage medium | |
| CN110795008B (en) | Picture transmission method and device and computer readable storage medium | |
| CN110022500B (en) | A kind of packet loss processing method and device | |
| CN109698953B (en) | State detection method and system for video network monitoring equipment | |
| CN111049942A (en) | Address data processing method, device, device and storage medium of video network terminal | |
| CN110730086B (en) | Method and device for outputting log information | |
| CN110166840B (en) | Service processing method, system and device | |
| CN110719429A (en) | High-speed shooting instrument processing method and device based on video network | |
| CN110493555B (en) | Request processing method, user terminal, core server, device and storage medium | |
| CN110290106B (en) | Display system |
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 | ||
| CP03 | Change of name, title or address |
Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013 Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |