CN110943970B - Data request method and device - Google Patents

Data request method and device Download PDF

Info

Publication number
CN110943970B
CN110943970B CN201910955713.6A CN201910955713A CN110943970B CN 110943970 B CN110943970 B CN 110943970B CN 201910955713 A CN201910955713 A CN 201910955713A CN 110943970 B CN110943970 B CN 110943970B
Authority
CN
China
Prior art keywords
page data
information
data
page
terminal equipment
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
CN201910955713.6A
Other languages
Chinese (zh)
Other versions
CN110943970A (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 CN201910955713.6A priority Critical patent/CN110943970B/en
Publication of CN110943970A publication Critical patent/CN110943970A/en
Application granted granted Critical
Publication of CN110943970B publication Critical patent/CN110943970B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/613Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast

Abstract

The embodiment of the invention provides a data request method and a data request device, which are applied to terminal equipment, wherein the terminal equipment is in communication connection with a video network server, and the method comprises the following steps: the terminal equipment acquires a page switching instruction; the terminal equipment responds to the page switching instruction and sends a page data acquisition request to the video network server; the page data acquisition request comprises identification information; the terminal equipment receives target page data returned by the video network server based on the identification information; and the terminal equipment displays the target page data. According to the embodiment of the invention, the list data is subjected to paging processing, so that a user can select corresponding video data information according to actual needs without acquiring data information in the whole list. The problem that page blocking is easily caused by requesting data from a video network server at one time is solved.

Description

Data request method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a data request method and a data request apparatus.
Background
The video networking is an important milestone of network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
With the increase of users of the video network, the users can display data through lists when publishing live videos, watching the live videos published by other users and carrying out video on demand. However, when watching live broadcast or on-demand broadcast, if all data is requested to the video network server at one time, the page is bound to be blocked, which brings inconvenience to the user.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data request method and a corresponding data request apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data request method, which is applied to a terminal device, wherein the terminal device is in communication connection with a video network server, and the method includes:
the terminal equipment acquires a page switching instruction;
the terminal equipment responds to the page switching instruction and sends a page data acquisition request to the video network server; the page data acquisition request comprises identification information;
the terminal equipment receives target page data returned by the video network server based on the identification information;
and the terminal equipment displays the target page data.
Optionally, the page switching instruction includes page information and data quantity information, and the sending, by the terminal device, a page data acquisition request to the video network server in response to the page switching instruction includes:
the terminal equipment determines initial page data information by adopting the page number information;
the terminal equipment determines target page data information by adopting the initial page data information and the data quantity information;
and the terminal equipment generates a page data acquisition request by adopting the target page data information and sends the page data acquisition request to the video network server.
Optionally, the terminal device has a playlist, and the determining, by the terminal device, the start page data information using the page number information includes:
the terminal equipment adopts the page number information to determine initial page data information from the play list;
the terminal equipment adopts the starting page data information and the data quantity information to determine target page data information, and the method comprises the following steps:
and the terminal equipment selects target page data information from the play list by adopting the initial page data information and the quantity information.
Optionally, the displaying, by the terminal device, the target page data includes:
the terminal equipment judges whether the target page data is received or not;
and if the target page data is received, the terminal equipment displays the target page data.
The invention also discloses a data request device, which is applied to terminal equipment, wherein the terminal equipment is in communication connection with the video networking server, and the device comprises:
the page switching instruction acquisition module is used for acquiring a page switching instruction by the terminal equipment;
a page data acquisition request sending module, configured to send a page data acquisition request to the video network server by the terminal device in response to the page switching instruction; the page data acquisition request comprises identification information;
the target page data receiving module is used for the terminal equipment to receive the target page data returned by the video network server based on the identification information;
and the display module is used for displaying the target page data by the terminal equipment.
Optionally, the page switching instruction includes page number information and data quantity information, and the page data obtaining request sending module includes:
the starting page data information determining submodule is used for determining starting page data information by the terminal equipment by adopting the page number information;
the target page data information determining submodule is used for determining target page data information by the terminal equipment by adopting the initial page data information and the data quantity information;
and the page data acquisition request sending submodule is used for generating a page data acquisition request by the terminal equipment by adopting the target page data information and sending the page data acquisition request to the video network server.
Optionally, the terminal device has a playlist, and the starting page data information determining sub-module includes:
a starting page data information determining unit, configured to determine starting page data information from the playlist by using the page number information by the terminal device;
the target page data information determining submodule comprises:
and the target page data information selection unit is used for selecting the target page data information from the play list by the terminal equipment by adopting the initial page data information and the data quantity information.
Optionally, the display module comprises:
the judging submodule is used for judging whether the terminal equipment receives the target page data or not;
and the page data display submodule is used for displaying the target page data if the target page data is received.
The invention also discloses a 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 one or more data request methods as described in any one of the above.
The invention also discloses a computer readable storage medium storing a computer program for causing a processor to execute the data request method as described in any one of the above.
The embodiment of the invention has the following advantages:
according to the embodiment of the invention, the list data is subjected to paging processing, so that a user can select partial video data according to actual needs without acquiring data in the whole list. The problem that page blocking is easily caused by requesting all data from a video network server at one time is solved.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a data request method of the present invention;
FIG. 2 is a schematic diagram of a data request method of the present invention;
FIG. 3 is a block diagram of an embodiment of a data request device of the present invention;
FIG. 4 is a networking schematic of a video network of the present invention;
FIG. 5 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 6 is a schematic diagram of a hardware architecture of an access switch of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to 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 embodiment of the invention provides a core that in the video data request process of a video network, a terminal device obtains quantitative video data information from a large amount of video data information in a paging request mode so as to avoid page blocking caused by obtaining a large amount of data information at one time.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data request method according to the present invention is shown, where the method may be applied to a video networking terminal device, and specifically may include the following steps:
step 101, the terminal equipment acquires a page switching instruction;
in practical applications, the page switching instruction may be triggered by a remote controller of the terminal device of the video network, for example, by clicking an up-down page button of the remote controller, a switching instruction for switching an upper page or a lower page is sent to the terminal device. Or a page selection button on the remote controller is clicked to send a switching instruction for switching from the current page to the specific page to the terminal equipment.
102, the terminal equipment responds to the page switching instruction and sends a page data acquisition request to the video network server; the page data acquisition request comprises identification information;
when the terminal device receives a page switching instruction sent by the remote controller, a page data acquisition request may be generated based on the page switching instruction, where the page data acquisition request includes identification information of page data to be requested, and the identification information is used to identify a page where the page data to be requested is located and video data information included in the page.
In the embodiment of the present invention, the page switch instruction may include page number information and data amount information, and step 102 may include the following sub-steps:
s11, the terminal equipment determines initial page data information by adopting the page number information;
in a specific implementation, when a user clicks a lower page button of a remote controller, the Android layer may identify a page number in an intrager int type format, such as "pageIndex =1, pageIndex =2", which may be used to identify a first page and a second page, respectively. By analogy, page number identification can be carried out on other pages.
When the terminal equipment receives a page switching instruction sent by a user through a remote controller, video data information with corresponding page number information can be found through page number information contained in the page switching instruction, and corresponding initial page data information is positioned. Specifically, different number information may be assigned to video data information having the same page number information to distinguish and arrange the different video data information.
In this embodiment of the present invention, the terminal device of the video network has a playlist, and the determining, by the terminal device, the start page data information using the page number information may include:
and the terminal equipment determines initial page data information from the play list by adopting the page number information.
S12, the terminal equipment determines target page data information by adopting the initial page data information and the data quantity information;
after the initial page data information is determined, the amount of the video data information needing to be returned can be set according to actual needs, and the corresponding amount of the video data information is read according to the sequence of the number information from the initial page data information; thereby determining target page data information.
The amount of the video data information returned by each request can be set according to actual requirements, and the amount is not particularly limited in the application.
And S13, the terminal equipment generates a page data acquisition request by adopting the target page data information and sends the page data acquisition request to the video network server.
After determining the target page data information requested by the user, the terminal device of the video network may generate a page data acquisition request by using the target page data information, and send the page data acquisition request to the video network server. The page data obtaining request carries target page data information, which may specifically include page number information and data quantity information, and may also include number information of each piece of video data information. The video network server can return corresponding page data based on the page data acquisition request.
In a specific implementation, the identified pageIndex may be sent to C + + through the JNI protocol, so that C + + may send the pageIndex to the video networking server in the form of code through the video networking protocol.
Wherein, C + + is a computer programming language, JNI protocol is used to communicate JAVA code and external native code (C/C + +), so that the external C/C + + code can also call JAVA code.
103, the terminal equipment receives target page data returned by the video network server based on the identification information;
the video network server analyzes the identification information, can extract page number information, data quantity information and number information of the video data information contained in the identification information, and accordingly returns target page data to the video network terminal device based on the content obtained through analysis.
In the embodiment of the invention, the target page data returned by the video network server to the video network terminal equipment can be monitoring video data. For example, the video network server may return corresponding monitoring data to the terminal device in the form of a code through the video network protocol according to a preset data return number (for example, 10 pieces). Specifically, the form of the video data during transmission may be as follows:
{“sumItemSize”:200,
<xnotran> "guLaList": [ { "id":0, "state":1, "fromId":1, "monitorNum":1172, "camId":122, "msg _ no":122, "name": " " }, { "id":1, "state":1, "fromId":1, "monitorNum":18362, "camId":62, "msg _ no":62, "name": " , " }, { "id":2, "state":1, "fromId":1, "monitorNum":18491, "camId":27, "msg _ no":27, "name": " " }, { "id":3, "state":1, "fromId":1, "monitorNum":18491, "camId":28, "msg _ no":28, "name": " 1" }, { "id":4, "state":1, "fromId":1, "monitorNum":18491, "camId":31, "msg _ no":31, "name": " " }, { "id":9, "state":1, "fromId":0, "monitorNum":6140, "camId":134, "msg _ no":134, "name": "033 " } ] </xnotran>
And (3) encoding format: UTF-8
And 104, the terminal equipment displays the target page data.
And after receiving the target page data, the terminal equipment can display the target page data.
In an embodiment of the present invention, step 104 may include the following sub-steps:
s21, the terminal equipment judges whether the target page data are received or not;
after sending out a page data acquisition request, the terminal device judges whether target page data returned by the video network server is received within a certain period of time, so as to determine subsequent operation.
And S22, if the target page data is received, the terminal equipment displays the target page data.
If the terminal equipment of the video network receives the target page data, a data display instruction can be generated according to the target page data.
Specifically, the video network server transmits the target page data to the terminal device in a form that can be identified by C + +, the C + + code carrying the target page data negotiates with the operating system to receive a successful instruction (for example, 205), and when the C + + code carries the instruction 205, the C + + code indicates that the receiving is successful, and at this time, the terminal device presents the acquired target page data.
As shown in fig. 2, a schematic diagram of a data request method of the present invention is shown.
Take the example of pressing the up/down page by the remote control.
When the remote controller presses the top/bottom page, a page switching instruction is sent to the terminal device of the video network, where the page switching instruction includes page number information (for example, the Android string "pageIndex =. And converting the page information in the code form into a form which can be called by the C + + language through a JNI protocol. Therefore, the page number information can be transmitted to the video network server by the C + + language through the video network protocol. After the page information is received by the video network server, the page information can be analyzed, target page data in the C + + language form is returned to the terminal equipment according to the analysis result and the preset return quantity, the target page data in the code form is read by the terminal equipment, converted into a form readable by a user and displayed to the user.
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. 3, a block diagram of a data request apparatus according to an embodiment of the present invention is shown, where the apparatus may be applied to a video networking terminal device, and specifically may include the following modules:
a page switching instruction obtaining module 301, configured to obtain a page switching instruction by the terminal device;
a page data obtaining request sending module 302, configured to send a page data obtaining request to the video network server by the terminal device in response to the page switching instruction; the page data acquisition request comprises identification information;
a target page data receiving module 303, configured to receive, by the terminal device, target page data returned by the video network server based on the identification information;
a display module 304, configured to display the target page data by the terminal device.
Optionally, the page switching instruction includes page number information and data quantity information, and the page data obtaining request sending module includes:
the initial page data information determining submodule is used for determining initial page data information by the terminal equipment by adopting the page number information;
the target page data information determining submodule is used for determining target page data information by the terminal equipment by adopting the initial page data information and the data quantity information;
and the page data acquisition request sending submodule is used for generating a page data acquisition request by the terminal equipment by adopting the target page data information and sending the page data acquisition request to the video network server.
Optionally, the terminal device has a playlist, and the starting page data information determining sub-module includes:
a starting page data information determining unit, configured to determine starting page data information from the playlist by using the page number information by the terminal device;
the target page data information determining submodule comprises:
and the target page data information selection unit is used for selecting the target page data information from the play list by the terminal equipment by adopting the initial page data information and the data quantity information.
Optionally, the display module includes:
the judging submodule is used for judging whether the terminal equipment receives the target page data or not;
and the page data display sub-module is used for displaying the target page data by the terminal equipment if the target page data is received.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The video networking is an important milestone of network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of Internet applications to high-definition video, and high definition is face-to-face.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services 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 innovations in video networking have improved the traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the video networking technology adopts Packet Switching to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet 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 network is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the large-scale high-definition video real-time transmission of the whole network which can not be realized by the current 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 eradicates the network security problem disturbing the Internet from the structure by the modes of independent admission control of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, stops 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, but also connected with a single user, a private network user or the sum of one network. 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. 4, the view network is divided into two parts, 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 central control function in the metropolitan area network and can control the node switch and the node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure controlled by a hierarchical centralized way, and the network controlled by the node server and the metropolitan area server can be in various structures such as a tree, a star, a ring and the like.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 5, the network interface module 401, the switching engine module 402, the CPU module 403, and the disk array module 404 are mainly included;
the packets from the network interface module 401, the cpu module 403, and the disk array module 404 all enter the switching engine module 402; the switching engine module 402 performs an operation of looking up the address table 405 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 406 based on the packet's steering information; if the queue of the packet buffer 406 is nearly full, it is discarded; the switching engine module 402 polls all packet buffer queues and forwards 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 404 mainly implements control over the hard disk, including initialization, reading, and writing operations on the hard disk; the CPU module 403 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 405 (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 404.
The access switch:
as shown in fig. 6, the network interface module (downlink network interface module 501, uplink network interface module 502), switching engine module 503 and CPU module 504 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 501 enters the packet detection module 505; the packet detection module 505 detects whether the Destination Address (DA), the Source Address (SA), the packet type and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 503, otherwise, discards the stream identifier; the packet (downlink data) coming from the uplink network interface module 502 enters the switching engine module 503; the incoming data packet of the CPU module 504 enters the switching engine module 503; the switching engine module 503 performs an operation of looking up the address table 506 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 503 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 507 in combination with the stream-id; if the queue of the packet buffer 507 is nearly full, discard; if the packet entering the switching engine module 503 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 507 according to the guiding information of the packet; if the queue of the packet buffer 507 is nearly full, it is discarded.
The switching engine module 503 polls all packet buffer queues, which in this embodiment of the invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 408 is configured by the CPU module 404 to generate tokens for packet buffer queues going to the upstream network interface from all downstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 504 is mainly responsible for protocol processing with the node server, configuration of the address table 506, and configuration of the code rate control module 508.
Ethernet co-rotating gateway
As shown in fig. 7, the apparatus mainly includes a network interface module (a downlink network interface module 601, an uplink network interface module 602), a switching engine module 603, a CPU module 604, a packet detection module 605, a rate control module 608, an address table 606, a packet buffer 607, a MAC adding module 609, and a MAC deleting module 610.
Wherein, the data packet coming from the downlink network interface module 601 enters the packet detection module 605; the packet detection module 605 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC DA, MAC SA, length or frame type (2 byte) is subtracted by the MAC deletion module 610 and enters the corresponding receiving buffer, otherwise it is discarded;
the downlink network interface module 601 detects the sending buffer of the port, and if there is a packet, the downlink network interface module learns the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Vission 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 the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to the types of different datagrams, 64 bytes if it is a packet of various protocols, 32+1024=1056 bytes if it is a packet of unicast data, and certainly not limited to the above 2 types;
the CRC consists of 4 bytes and its calculation method follows 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 0x0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are all passively executed, which is different from label allocation of MPLS, which is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), source Address (SA), reserved byte (Reserved), tag, payload (PDU), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
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 so forth) 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 "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The data request method and the data request device provided by the present invention are introduced in detail, and the principle and the implementation of the present invention are explained in detail by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A data request method is applied to a terminal device, wherein the terminal device is in communication connection with a video networking server, and the method comprises the following steps:
the terminal equipment acquires a page switching instruction;
the terminal equipment responds to the page switching instruction and sends a page data acquisition request to the video network server; the page data acquisition request comprises identification information; the identification information is used for identifying a page where page data to be requested is located and video data information contained in the page, and the page number information, the data quantity information and the number information of the video data information contained in the identification information;
the terminal equipment receives target page data returned by the video network server based on the identification information; the target page data is monitoring video data; the target page data is determined video data after the terminal device performs paging processing on the list data;
and the terminal equipment displays the target page data.
2. The method according to claim 1, wherein the page switching instruction includes page number information and data quantity information, and the terminal device sends a page data obtaining request to the video network server in response to the page switching instruction, including:
the terminal equipment determines initial page data information by adopting the page number information;
the terminal equipment determines target page data information by adopting the starting page data information and the data quantity information;
and the terminal equipment generates a page data acquisition request by adopting the target page data information and sends the page data acquisition request to the video network server.
3. The method of claim 2, wherein the terminal device has a playlist, and wherein the terminal device determines the start page data information using the page number information, comprising:
the terminal equipment determines initial page data information from the play list by adopting the page number information;
the terminal equipment adopts the starting page data information and the data quantity information to determine target page data information, and the method comprises the following steps:
and the terminal equipment selects target page data information from the play list by adopting the initial page data information and the data quantity information.
4. The method of claim 1, wherein the terminal device displaying the target page data comprises:
the terminal equipment judges whether the target page data is received or not;
and if the target page data is received, the terminal equipment displays the target page data.
5. A data request device is applied to a terminal device, wherein the terminal device is in communication connection with a video networking server, and the device comprises:
the page switching instruction acquisition module is used for acquiring a page switching instruction by the terminal equipment;
a page data acquisition request sending module, configured to send a page data acquisition request to the video network server by the terminal device in response to the page switching instruction; the page data acquisition request comprises identification information; the identification information is used for identifying a page where page data to be requested is located and video data information contained in the page, and the page number information, the data quantity information and the number information of the video data information contained in the identification information;
the target page data receiving module is used for the terminal equipment to receive the target page data returned by the video network server based on the identification information; the target page data is monitoring video data; the target page data is video data determined after the terminal device performs paging processing on the list data;
and the display module is used for displaying the target page data by the terminal equipment.
6. The apparatus of claim 5, wherein the page switch command includes page number information and data amount information, and the page data obtaining request sending module includes:
the initial page data information determining submodule is used for determining initial page data information by the terminal equipment by adopting the page number information;
the target page data information determining submodule is used for determining target page data information by the terminal equipment by adopting the initial page data information and the data quantity information;
and the page data acquisition request sending submodule is used for generating a page data acquisition request by the terminal equipment by adopting the target page data information and sending the page data acquisition request to the video network server.
7. The apparatus of claim 6, wherein the terminal device has a playlist, and the start page data information determining sub-module includes:
a starting page data information determining unit, configured to determine starting page data information from the playlist by using the page number information by the terminal device;
the target page data information determining submodule comprises:
and the target page data information selecting unit is used for selecting the target page data information from the play list by the terminal equipment by adopting the initial page data information and the data quantity information.
8. The apparatus of claim 5, wherein the display module comprises:
the judging submodule is used for judging whether the terminal equipment receives the target page data or not;
and the page data display submodule is used for displaying the target page data by the terminal equipment if the target page data is received.
9. An apparatus, 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 data request method of one or more of claims 1-4.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the data requesting method according to any one of claims 1 to 4.
CN201910955713.6A 2019-10-09 2019-10-09 Data request method and device Active CN110943970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910955713.6A CN110943970B (en) 2019-10-09 2019-10-09 Data request method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910955713.6A CN110943970B (en) 2019-10-09 2019-10-09 Data request method and device

Publications (2)

Publication Number Publication Date
CN110943970A CN110943970A (en) 2020-03-31
CN110943970B true CN110943970B (en) 2022-12-20

Family

ID=69906061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910955713.6A Active CN110943970B (en) 2019-10-09 2019-10-09 Data request method and device

Country Status (1)

Country Link
CN (1) CN110943970B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202676A (en) * 2014-09-12 2014-12-10 北京赛科世纪数码科技有限公司 Channel switching method and system
CN104539436A (en) * 2014-12-22 2015-04-22 杭州施强网络科技有限公司 Lesson content real-time live broadcasting method and system
CN105740330A (en) * 2016-01-22 2016-07-06 腾讯科技(深圳)有限公司 Data paging display method and apparatus
US9934202B1 (en) * 2015-03-30 2018-04-03 EMC IP Holding Company LLC Managing paginated data
CN108153847A (en) * 2017-12-20 2018-06-12 北京奇艺世纪科技有限公司 A kind of list paging method, device and electronic equipment
CN108848244A (en) * 2018-04-02 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of Pagination Display

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3697108B2 (en) * 1999-05-14 2005-09-21 インターナショナル・ビジネス・マシーンズ・コーポレーション Hyper document control method, hyper document control device, and storage medium storing hyper document control program
CN106055612B (en) * 2016-05-25 2019-12-17 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment
CN108965224B (en) * 2017-12-13 2020-08-28 视联动力信息技术股份有限公司 Video-on-demand method and device
CN109788247B (en) * 2018-12-25 2020-10-13 视联动力信息技术股份有限公司 Method and device for identifying monitoring instruction
CN110045893A (en) * 2019-03-08 2019-07-23 视联动力信息技术股份有限公司 Querying method and device is broadcast live

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202676A (en) * 2014-09-12 2014-12-10 北京赛科世纪数码科技有限公司 Channel switching method and system
CN104539436A (en) * 2014-12-22 2015-04-22 杭州施强网络科技有限公司 Lesson content real-time live broadcasting method and system
US9934202B1 (en) * 2015-03-30 2018-04-03 EMC IP Holding Company LLC Managing paginated data
CN105740330A (en) * 2016-01-22 2016-07-06 腾讯科技(深圳)有限公司 Data paging display method and apparatus
CN108153847A (en) * 2017-12-20 2018-06-12 北京奇艺世纪科技有限公司 A kind of list paging method, device and electronic equipment
CN108848244A (en) * 2018-04-02 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of Pagination Display

Also Published As

Publication number Publication date
CN110943970A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN108632525B (en) Method and system for processing service
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109167960B (en) Method and system for processing video stream data
CN109474715B (en) Resource configuration method and device based on video network
CN110602266B (en) Domain name resolution method and system
CN110719258B (en) Server access method and system
CN110769310B (en) Video processing method and device based on video network
CN110475131B (en) Terminal connection method, server and terminal
CN110557612B (en) Control method of monitoring equipment and video networking system
CN110113564B (en) Data acquisition method and video networking system
CN109768986B (en) Method and device for responding to video network service request signaling
CN109802952B (en) Monitoring data synchronization method and device
CN110839142B (en) Monitoring directory sharing method and device
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110493149B (en) Message processing method and device
CN110086773B (en) Audio and video data processing method and system
CN110134892B (en) Loading method and system of monitoring resource list
CN108881148B (en) Data acquisition method and device
CN110324578B (en) Monitoring video processing method, device and storage medium
CN110149306B (en) Media data processing method and device
CN109714641B (en) Data processing method and device based on video network
CN109194896B (en) Calling method and system for video networking terminal
CN110418169B (en) Monitoring data carousel method and device
CN109450995B (en) Method and system for acquiring server data
CN110943970B (en) Data request method and device

Legal Events

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