CN110087102A - Method for inquiring status, device and storage medium - Google Patents
Method for inquiring status, device and storage medium Download PDFInfo
- Publication number
- CN110087102A CN110087102A CN201910319048.1A CN201910319048A CN110087102A CN 110087102 A CN110087102 A CN 110087102A CN 201910319048 A CN201910319048 A CN 201910319048A CN 110087102 A CN110087102 A CN 110087102A
- Authority
- CN
- China
- Prior art keywords
- status
- internet
- server
- protocol
- checked
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method for inquiring status, device and storage mediums.Wherein method includes: the status query request packet that internet terminal generates internet protocol-based, is sent to association and turns server, status query request packet carries end message to be checked;Association turns server and the status query request packet of internet protocol-based is converted to the status query request packet based on view networking protocol, is sent to view networked server;Association turns server and receives the status inquiry response bag based on view networking protocol that view networked server returns, and status inquiry response bag carries the status information of the corresponding view networked terminals of end message to be checked;Association turns the status inquiry response bag that server will be converted to internet protocol-based based on the status inquiry response bag depending on networking protocol, is back to internet terminal;Status inquiry response bag of the internet terminal according to internet protocol-based, the status information of output view networked terminals.The present invention can promote user experience.
Description
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of method for inquiring status, device and storage medium.
Background technique
With the fast development of the network technology, the communication such as video conference, video teaching, videophone, net cast with
The life at family, work, study etc. are widely available.
When user wants to carry out video traffic, for example dials visual telephone, watching video live streaming, sets up video conference
Deng, it is understood that there may be the not online situation of target user, and active user can not learn the whether online state of target user, because
This may not cause video traffic to fail online due to target user, reduce user experience.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of method for inquiring status, device and the storage medium to solve the above problems.
In a first aspect, the method is applied in view networking the embodiment of the invention discloses a kind of method for inquiring status,
Described includes internet terminal in internet depending on including that association turns server, view networked server and view networked terminals in networking,
The described method includes:
The internet terminal generates the status query request packet of internet protocol-based, and described will be based on internet protocol
The status query request packet of view is sent to the association and turns server;The status query request packet carries end message to be checked;
The association turns server and is converted to the status query request packet of the internet protocol-based based on view networking association
The status query request packet of view, and the status query request packet based on depending on networking protocol is sent to the view the Internet services
Device;
The association turns server and receives the status inquiry response based on view networking protocol that the view networked server returns
Packet;The status inquiry response bag carries the status information of the corresponding view networked terminals of the end message to be checked;
The association turns server and is converted to the status inquiry response bag based on depending on networking protocol based on internet protocol
The status inquiry response bag of view, and the status inquiry response bag of the internet protocol-based is back to the internet end
End;
Status inquiry response bag of the internet terminal according to the internet protocol-based exports the view networking eventually
The status information at end.
Optionally, the internet terminal generates the step of status query request packet of internet protocol-based, comprising: institute
The end message to be checked that internet terminal obtains String format by Java layers is stated, and by the to be checked of the String format
Ask the end message to be checked that end message is converted into JSON format;The internet terminal calls first by described Java layers
JNI method is by the terminal information transfer to be checked of the JSON format to local layer;The internet terminal passes through the local
Layer encapsulation obtains the status query request packet of the internet protocol-based, and the end message to be checked is added to the base
In the status query request packet of Internet protocol.
Optionally, status inquiry response bag of the internet terminal according to the internet protocol-based, described in output
Depending on networked terminals status information the step of, comprising: the internet terminal is received by local layer and described is based on internet protocol
The status inquiry response bag of view, and the view networked terminals are extracted from the status inquiry response bag of the internet protocol-based
Status information;The internet terminal calls the 2nd JNI method by the state of the view networked terminals by the local layer
Information is transmitted to Java layers;The internet terminal exports the view by the Java layers of calling status display interface and networks eventually
The status information at end.
Optionally, the method also includes: the internet terminal generates the contact data packet of internet protocol-based,
And the contact data packet of the internet protocol-based is sent to the association and turns server;The contact data packet carries
The corresponding contact information of the internet terminal;The association turns server for the contact data of the internet protocol-based
Packet is converted to the contact data packet based on view networking protocol, and the contact data packet based on view networking protocol is sent
To the view networked server, so that the view networked server saves the corresponding contact information of the internet terminal.
Optionally, turn server and be converted to the status query request packet of the internet protocol-based to be based in the association
The view is sent to depending on the status query request packet of networking protocol, and by the status query request packet based on depending on networking protocol
After the step of networked server, the method also includes: the view networked server is from described based on the shape for regarding networking protocol
The end message to be checked is extracted in state inquiry request packet, and is inquired in the corresponding contact information of the internet terminal and be
It is no that there are the end messages to be checked;It is described depending on networked server in the presence of inquiring, obtain the terminal to be checked letter
The status information of corresponding view networked terminals is ceased, and generates the status inquiry response bag based on view networking protocol, is back to
The association turns server.
Second aspect, the embodiment of the invention discloses a kind of status inquiry device, described device is applied in view networking,
It is described depending on networking in include association turn server, view networked server and view networked terminals, in internet include internet terminal;
The internet terminal includes:
First generation module, for generating the status query request packet of internet protocol-based;The status query request
Packet carries end message to be checked;
First sending module turns clothes for the status query request packet of the internet protocol-based to be sent to the association
Business device;
The association turns server and includes:
First conversion module, for being converted to the status query request packet of the internet protocol-based based on view networking
The status query request packet of agreement, and the status query request packet based on depending on networking protocol is sent to the view networking clothes
Business device;
Receiving module, the status inquiry response based on view networking protocol returned for receiving the view networked server
Packet;The status inquiry response bag carries the status information of the corresponding view networked terminals of the end message to be checked;
Second conversion module, for being converted to the status inquiry response bag based on depending on networking protocol based on internet
The status inquiry response bag of agreement, and the status inquiry response bag of the internet protocol-based is back to the internet end
End;
The internet terminal further include:
Output module exports the view networking eventually for the status inquiry response bag according to the internet protocol-based
The status information at end.
Optionally, first generation module includes: format conversion unit, for passing through Java layers of acquisition String format
End message to be checked, and the end message to be checked of the String format is converted into the terminal to be checked of JSON format
Information;First transmission unit, for by described Java layers the first JNI method of calling by the terminal to be checked of the JSON format
Information is transmitted to local layer;Information encapsulation unit obtains the internet protocol-based for encapsulating by the local layer
The end message to be checked is added to the status query request packet of the internet protocol-based by status query request packet.
Optionally, the output module includes: information extraction unit, described based on internet for being received by local layer
The status inquiry response bag of agreement, and the view networking is extracted eventually from the status inquiry response bag of the internet protocol-based
The status information at end;Second transmission book list member, for calling the 2nd JNI method by the view networked terminals by the local layer
Status information be transmitted to Java layers;Information output unit, for exporting institute by the Java layers of calling status display interface
State the status information of view networked terminals.
Optionally, the internet terminal further include: the second generation module, for generating the connection of internet protocol-based
Personal data packet;The contact data packet carries the corresponding contact information of the internet terminal;Second sending module, is used for
The contact data packet of the internet protocol-based is sent to the association and turns server;The association turns server further include:
Third conversion module, for the contact data packet of the internet protocol-based to be converted to the connection based on view networking protocol
Personal data packet, and the contact data packet based on depending on networking protocol is sent to the view networked server, so as to described
The corresponding contact information of the internet terminal is saved depending on networked server.
Optionally, described depending on networked server includes: enquiry module, for looking into from the state based on depending on networking protocol
It askes in request packet and extracts the end message to be checked, and inquire in the corresponding contact information of the internet terminal and whether deposit
In the end message to be checked;Return module, for it is corresponding to obtain the end message to be checked in the presence of inquiring
Depending on the status information of networked terminals, and the status inquiry response bag based on view networking protocol is generated, is back to the association and turns
Server.
The third aspect, the embodiment of the invention discloses a kind of status inquiry devices characterized by comprising one or more
A processor;With the one or more machine readable medias for being stored thereon with instruction, held when by one or more of processors
When row, so that described device executes as above described in any item method for inquiring status.
Fourth aspect, the embodiment of the invention discloses a kind of computer readable storage mediums, which is characterized in that it was stored
Computer program makes processor execute as above described in any item method for inquiring status.
In the embodiment of the present invention, internet terminal generates the status query request packet of internet protocol-based, and will be described
The status query request packet of internet protocol-based is sent to association and turns server, and status query request packet carries terminal letter to be checked
Breath;Association turns server and is converted to the status query request packet of the internet protocol-based to look into based on the state depending on networking protocol
Request packet is ask, and the status query request packet based on depending on networking protocol is sent to view networked server;Association turns server
Receive the status inquiry response bag based on view networking protocol that view networked server returns, status inquiry response bag carry it is described to
Inquire the status information of the corresponding view networked terminals of end message;Association turns server and looks into the state based on depending on networking protocol
It askes response bag and is converted to the status inquiry response bag of internet protocol-based, and by the status inquiry of the internet protocol-based
Response bag is back to internet terminal;Status inquiry response bag of the internet terminal according to the internet protocol-based, output
The status information of the view networked terminals.It follows that user can obtain from depending on networked server in the embodiment of the present invention
Depending on the status information of networked terminals, therefore can learn whether view networked terminals are online, to avoid due to view networked terminals not
The failure of video traffic caused by online, promotes user experience.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of method for inquiring status of the embodiment of the present invention one;
Fig. 6 is a kind of step flow chart of method for inquiring status of the embodiment of the present invention two;
Fig. 7 is a kind of structural block diagram of status inquiry device of the embodiment of the present invention three.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
First video flow.It is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
(Circuit Switching) meets Streaming demand using Packet Switching depending on networking technology.Depending on skill of networking
Art has flexible, the simple and low price of packet switch, is provided simultaneously with the quality and safety assurance of circuit switching, realizes the whole network friendship
Change the seamless connection of formula virtual circuit and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking
(or national net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine module, are forwarded: 1) end if meeting the following conditions
It is less than that mouth sends caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, packet
Include the operation such as initialization, read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it
Between protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 304 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, may include two kinds of situations:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 308 is configured by CPU module 304, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, the status inquiry scheme of the embodiment of the present invention is proposed, it then follows regard the association of networking
View can obtain the status information of view networked terminals, promote user experience.
The method for inquiring status of the embodiment of the present invention can be applied in view networking.The equipment being related to may include view connection
The equipment in equipment and internet (IP network) in net.It include that association turns server, view networked server and view connection in depending on networking
Network termination includes internet terminal in internet.It, can when internet terminal is wanted with networked terminals progress video traffic is regarded
Turn the status information that server obtains the view networked terminals from depending on networked server to first pass through association.
It is the terminal that business is carried out based on view networking protocol depending on networked terminals, regarding networked terminals can be as based on view networking association
The various set-top boxes (Set Top Box, STB) etc. of view.It is registered to depending on networked terminals normal depending on that can be carried out on networked server
Business, the backsight networked server that succeeds in registration can be view networked terminals distribution terminal number, MAC (Media Access
Control, media access control) address etc..It is logged in depending on networked server depending on networked terminals according to termination number, so as to even
Connect view networked server.It can distinguish each view by termination number, the MAC Address of view networked terminals in depending on networking and network eventually
End.
Association turns server and can be understood as gateway, as associated bridge between internet and view networking, is responsible for internet
Conversion between agreement and view networking protocol.Association, which turns server, can be registered on view networked server in the form of terminal.Association
Turn to may include multiple virtual terminals in server, each virtual terminal is registered to respectively on view networked server, is succeeded in registration
Backsight networked server can be each virtual terminal distribution terminal number, MAC Address etc..Each virtual terminal is according to termination number
It is logged in depending on networked server, to monitor access server connection view networked server.Void can be passed through in depending on networking
Termination number, the MAC Address of quasi- terminal distinguish virtual terminal.
Internet terminal can be the equipment such as PC (PC), mobile phone, tablet computer, or be installed on above equipment
Software program.Internet terminal internet protocol-based carries out business.
Embodiment one
Referring to Fig. 5, a kind of step flow chart of method for inquiring status of the embodiment of the present invention one is shown.
The method for inquiring status of the embodiment of the present invention may comprise steps of:
Step 501, internet terminal generates the status query request packet of internet protocol-based, and will be described based on interconnection
The status query request packet of fidonetFido is sent to the association and turns server;The status query request packet carries terminal letter to be checked
Breath.
Such as video conference, videophone, net cast video traffic can be carried out in depending on networking.Work as internet terminal
When wanting to carry out video traffic with view networked terminals, if internet terminal dials videophone to depending on networked terminals, internet is whole
The live streaming of view networked terminals publication is watched at end, and internet terminal pulls view networked terminals and sets up video conference etc., can first inquire
The status information of target view networked terminals.
In the implementation, user interface can be provided on internet terminal, user can input to be checked on the user interface
End message is ask, end message to be checked may include the information such as termination number, the pet name of view networked terminals to be checked.Input
Associated button (such as " determination " button etc.) can be clicked after end message to be checked, so that triggering internet terminal generates state
Inquiry request.
The system of internet terminal in the embodiment of the present invention can be Android (Android) system.The system of Android
In may include Java framework layer (namely Java layers) and local (Native) ccf layer (namely local layer).Java layers pass through
Java language realizes that local layer is realized by C and C Plus Plus.The Java layers of interaction between local layer can pass through JNI
(Java Native Interface, Java local interface) mechanism is realized.JNI provides several API (Application
Program Interface, application programming interfaces), realize the communication (mainly C and C++) of Java language He other language.
The step of status query request packet of internet terminal generation internet protocol-based may include A1~A3:
A1, internet terminal obtain the end message to be checked of String format by Java layers, and by the String
The end message to be checked of format is converted into the end message to be checked of JSON format.
After user inputs end message to be checked, internet terminal can be formed end message to be checked by Java layers
The end message to be checked of String format, String are string format.
End message to be checked may include the information of multiple view networked terminals, therefore internet terminal can also pass through
The Java layers of end message to be checked that the end message to be checked of String format is converted into JSON format.JSON
(JavaScript Object Notation) is a kind of data interchange format of lightweight.JSON can be by one group of data conversion
For character string.JSON is established in two kinds of structures: set (the A collection of name/value of 1. " name/values " pair
pairs).In different language, it is understood to object (object), is recorded (record), structure (struct), dictionary
(dictionary), Hash table (hash table) has key list (keyed list) or Associate array (associative
array).2. the ordered list (An ordered list of values) of value.In most of language, it is understood to several
Group (array).JSON format can be JSON array formats in the embodiment of the present invention.
A2, internet terminal is by described Java layers the first JNI method of calling by the terminal to be checked of the JSON format
Information is transmitted to local layer.
In the implementation, internet terminal passes through Java layers of the first JNI method call sendVideoUserStatus letter of calling
Number, passes to sendVideoUserStatus function for the end message to be checked of JSON format, namely
SendVideoUserStatus (String userCode), userCode are that the end message to be checked of JSON format is (whole
Hold number), the end message to be checked of JSON format is passed by sendVideoUserStatus (String userCode)
Transport to local layer.
A3, internet terminal encapsulate to obtain the status query request of the internet protocol-based by the local layer
The end message to be checked, is added to the status query request packet of the internet protocol-based by packet.
Internet terminal and association turn internet protocol-based between server, such as TCP (Transmission Control
Protocol, transmission control protocol)/IP (Internet Protocol, the agreement interconnected between network) interacts.Interconnection
Status query request is encapsulated as the status query request packet of internet protocol-based by network termination internet protocol-based, and will be to
Inquiry end message is added to the status query request packet of internet protocol-based.For example, end message to be checked is added to
In the internet packet header of status query request packet, splice with IP address, the port numbers etc. in internet packet header.Internet terminal is logical
It crosses internet the status query request packet of internet protocol-based is sent to association and turn server.
Step 502, association turn server by the status query request packet of the internet protocol-based be converted to based on view connection
The status query request packet of fidonetFido, and the status query request packet based on depending on networking protocol is sent to the view and is networked
Server.
Association turns server and depending on being based on interacting depending on networking protocol between networked server.Association turns server and receives mutually
After the status query request packet for the internet protocol-based that networked terminals are sent, by the status inquiry of the internet protocol-based
Request packet is converted to the status query request packet based on view networking protocol.It can specifically be executed by free virtual terminal therein
The conversion process.
Association turns server and is converted to the status query request packet of the internet protocol-based based on view networking protocol
The step of status query request packet may include: that association turns the status query request that server parses the internet protocol-based
Packet, extracts end message to be checked from the internet packet header of the status query request packet of the internet protocol-based;Association turns
Server encapsulates to obtain the status query request packet based on view networking protocol depending on networking protocol using described, will be described to be checked
Ask the view networking packet header that end message is added to the status query request packet based on view networking protocol.
Association turns server and parses to the status query request packet of internet protocol-based, the state after being decapsulated
Inquiry request data, and end message to be checked is extracted from internet packet header, then using view networking protocol to status inquiry
Request data is packaged, and adds end message to be checked in depending on networking packet header.Depending on that can also include association in networking packet header
Turn termination number, the MAC Address etc. of server (the specially virtual terminal of current processing status inquiry request packet), it can will be to
Inquiry end message is spliced with termination number, MAC Address.
Step 503, association turns the status inquiry based on view networking protocol that server receives the view networked server return
Response bag;The status inquiry response bag carries the status information of the corresponding view networked terminals of the end message to be checked.
After regarding networked terminals registration in regarding networked server, pass through the heartbeat machine in view networking protocol depending on networked terminals
(heartbeat refers to the short connection of socket, sends within one second and is verified) is made to view networked server transmission heartbeat message, depending on connection
Network server can learn whether view networked terminals are online according to heartbeat message.
After receiving the status query request packet based on view networking protocol that association turns server transmission depending on networked server, from
Based on the end message to be checked is extracted in the status query request packet depending on networking protocol, the end message to be checked is obtained
The status information of corresponding view networked terminals.For example, if end message to be checked it is corresponding regard networked terminals state be it is online,
Regard the status information of networked terminals then as 1, if end message to be checked it is corresponding regard networked terminals state be it is online, depending on connection
The status information of network termination is 0.The state for carrying the corresponding view networked terminals of end message to be checked is generated depending on networked server
Information, the status inquiry response bag based on view networking protocol.It will be based on the status inquiry for regarding networking protocol depending on networked server
Response bag is back to association and turns server.
In the implementation, turn server (specially current processing status inquiry response packet according to association depending on networked server
Virtual terminal) configuration downstream communications link, turn server for association is back to based on the status inquiry response bag depending on networking protocol.
In practical applications, networking is regarded as the network with centralized control functions, including main control server and undernet
Equipment, which includes terminal, and one of the core idea depending on networking is, by notifying to exchange by main control server
Equipment is directed to when time downstream communications link of service matches table, and the table for being then based on the configuration carries out the transmission of data packet.
That is, including: depending on the communication means in networking
Main control server configuration is when time downstream communications link of service.
Work as time data packet of service for what source terminal was sent, is sent to target terminal according to the downstream communications link.
In embodiments of the present invention, it includes: notice when the downlink of secondary service is logical that time downstream communications link of service is worked as in configuration
Believe that switching equipment involved in link matches table.
It furthermore, include: the configured table of inquiry according to downstream communications link transmission, switching equipment is received to institute
Data packet is transmitted by corresponding port.
In the concrete realization, service includes unicast communication service and Multicast Communication Service.I.e. either cast communication is still
Unicast communication can realize the communication in view networking using the above-mentioned core idea with table-table.
As previously mentioned, view networking includes access mesh portions, in access net, which is node server, under
The grade network equipment includes access switch and terminal.
For the unicast communication service in access net, the main control server configuration is when time downlink communication chain of service
The step of road, may comprise steps of:
Sub-step S11, the service request protocol package that main control server is initiated according to source terminal are obtained when time downlink of service
Communication link information, downstream communications link information include participating in when time downlink of the main control server of service and access switch
Communication port information.
Sub-step S12, downstream communication ports information of the main control server according to main control server, data packet inside it
The downlink port that setting is oriented to when time data packet of service in address table;And believe according to the downstream communication ports of access switch
Breath, to corresponding access switch sending port configuration order.
Sub-step S13, access switch according in port configuration command data packet addressed table inside it, setting when time
The downlink port that the data packet of service is oriented to.
For the Multicast Communication Service (such as video conference) in access net, main control server is obtained when under time service
The step of row communication link information may include following sub-step:
Sub-step S21, main control server obtain the service request agreement for the application Multicast Communication Service that target terminal is initiated
It wraps, includes the access net address of service type information, service content information and target terminal in service request protocol package.
It wherein, include service number in service content information.
Sub-step S22, main control server according to the service number in preset content-address mapping table, extraction source
The access net address of terminal.
Sub-step S23, main control server obtains the corresponding multicast address of source terminal, and distributes to target terminal;And according to
According to the access net address of service type information, source terminal and target terminal, the communication link information when time multicast services is obtained.
Step 504, association turn server by the status inquiry response bag based on depending on networking protocol be converted to based on interconnect
The status inquiry response bag of fidonetFido, and the status inquiry response bag of the internet protocol-based is back to the internet
Terminal.
It, will after association turns the status inquiry response bag based on view networking protocol that server receives view networked server transmission
The status inquiry response bag of internet protocol-based is converted to based on the status inquiry response bag depending on networking protocol.Can specifically it lead to
It crosses free virtual terminal therein and executes the conversion process.
Association turns the state that server will be converted to internet protocol-based based on the status inquiry response bag depending on networking protocol
The step of inquiry response packet may include: that association turns status inquiry response bag of the server parsing based on view networking protocol, from being based on
Depending on networking protocol status inquiry response bag depending on extracting the corresponding view networked terminals of end message to be checked in networking packet header
Status information;Association turns server and encapsulates to obtain the status inquiry response bag of the internet protocol-based using Internet protocol,
The corresponding status information depending on networked terminals of the end message to be checked is added to the state of the internet protocol-based
The internet packet header of inquiry response packet.
Step 505, status inquiry response bag of the internet terminal according to the internet protocol-based exports the view connection
The status information of network termination.
After internet terminal receives the status inquiry response bag for the internet protocol-based that association turns server return, foundation
The status inquiry response bag of internet protocol-based exports the status information of the corresponding view networked terminals of end message to be checked,
In front end, the h5 page shows the status information of the corresponding view networked terminals of end message to be checked.
Step 505 may include B1~B3:
B1, internet terminal receive the status inquiry response bag of the internet protocol-based by local layer, and from institute
State the status information that the view networked terminals are extracted in the status inquiry response bag of internet protocol-based.
Internet terminal receives the status inquiry response bag of internet protocol-based by local layer, parses to it,
The status information of the corresponding view networked terminals of end message to be checked is extracted from internet packet header.
B2, internet terminal call the 2nd JNI method by the status information of the view networked terminals by the local layer
It is transmitted to Java layers.
In the implementation, internet terminal calls the 2nd JNI method call getVideoUserStatus () by local layer
The corresponding status information depending on networked terminals of end message to be checked is passed to getVideoUserStatus () letter by function
It counts, is the status information for regarding networked terminals in bracket, regard the status information of networked terminals as int type, indicate return value.It is logical
Java layers will be transmitted to depending on the status information of networked terminals by crossing getVideoUserStatus () function.
B3, the state that internet terminal calls status display interface to export the view networked terminals by described Java layers are believed
Breath.
User can obtain the status information of view networked terminals from view networked server in the embodiment of the present invention, therefore can
To learn whether view networked terminals are online, to avoid being promoted due to the not online caused video traffic failure of view networked terminals
User experience.
Embodiment two
Referring to Fig. 6, a kind of step flow chart of method for inquiring status of the embodiment of the present invention two is shown.
The method for inquiring status of the embodiment of the present invention may comprise steps of:
Step 601, internet terminal generates the contact data packet of internet protocol-based, and described will be based on internet
The contact data packet of agreement is sent to the association and turns server;It is corresponding that the contact data packet carries the internet terminal
Contact information.
User can add contact person on internet terminal, and user can input internet end on internet terminal
Corresponding contact information is held, contact information may include the information such as the termination number for regarding networked terminals.Internet terminal is raw
At the contact data packet of internet protocol-based, and the contact data packet of internet protocol-based is sent to association and turns service
Device.
The step of contact data packet of internet terminal generation internet protocol-based may include: that internet terminal is logical
The contact information of Java layers of acquisition String format is crossed, and the contact information of the String format is converted into JSON lattice
The contact information of formula;Internet terminal is by described Java layers the 3rd JNI method of calling by the contact person of the JSON format
Information is transmitted to local layer;Internet terminal encapsulates contact information by the local layer and obtains the internet protocol-based
Contact data packet.
Step 602, association turn server by the contact data packet of the internet protocol-based be converted to based on view networking
The contact data packet of agreement, and the contact data packet based on depending on networking protocol is sent to the view the Internet services
Device, so that the view networked server saves the corresponding contact information of the internet terminal.
Association turns server and the contact data packet of the internet protocol-based is converted to the connection based on view networking protocol
The step of being personal data packet may include: that association turns the contact data packet that server parses the internet protocol-based, from institute
It states in the contact data packet of internet protocol-based and extracts contact information;Association is turned server and is sealed using the view networking protocol
Dress contact information obtains the contact data packet based on view networking protocol.
Association, which turns server, to be sent to the view networked server based on the contact data packet depending on networking protocol, depending on networking
Server parses the contact data packet depending on networking protocol to obtain the corresponding contact information of internet terminal, and saves
The corresponding contact information of internet terminal.
Step 603, internet terminal generates the status query request packet of internet protocol-based, and will be described based on interconnection
The status query request packet of fidonetFido is sent to the association and turns server;The status query request packet carries terminal letter to be checked
Breath.
Step 604, association turn server by the status query request packet of the internet protocol-based be converted to based on view connection
The status query request packet of fidonetFido, and the status query request packet based on depending on networking protocol is sent to the view and is networked
Server.
Step 605, extracted from the status query request packet based on view networking protocol depending on networked server it is described to
End message is inquired, and is inquired in the corresponding contact information of the internet terminal with the presence or absence of the terminal letter to be checked
Breath.
Step 606, depending on networked server in the presence of inquiring, the corresponding view networking of the end message to be checked is obtained
The status information of terminal, and the status inquiry response bag based on view networking protocol is generated, it is back to the association and turns server.
After receiving the status query request packet based on view networking protocol depending on networked server, it is parsed, from base
Extract end message to be checked in the status query request packet depending on networking protocol, and from the previously stored internet terminal pair
Inquiry whether there is end message to be checked in the contact information answered.If it is present can permit internet terminal inquiry
The corresponding state for regarding networked terminals of end message to be checked;If it does not exist, then internet terminal inquiry can be forbidden to be checked
Ask the state of the corresponding view networked terminals of end message.
Therefore, depending on networked server, there are terminal to be checked letters in inquiring the corresponding contact information of internet terminal
When breath, the status information of the corresponding view networked terminals of end message to be checked is obtained, and based on view networking protocol described in generation
Status inquiry response bag turns server for association is back to based on the status inquiry response bag depending on networking protocol.
Step 607, association turns the status inquiry based on view networking protocol that server receives the view networked server return
Response bag;The status inquiry response bag carries the status information of the corresponding view networked terminals of the end message to be checked.
Step 608, association turn server by the status inquiry response bag based on depending on networking protocol be converted to based on interconnect
The status inquiry response bag of fidonetFido, and the status inquiry response bag of the internet protocol-based is back to the internet
Terminal.
Step 609, status inquiry response bag of the internet terminal according to the internet protocol-based exports the view connection
The status information of network termination.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Embodiment three
Referring to Fig. 7, a kind of structural block diagram of status inquiry device of the embodiment of the present invention three is shown.The embodiment of the present invention
Status inquiry device can be applied to view networking in, it is described view networking in include association turn server, regard networked server and
It include internet terminal in internet depending on networked terminals.
The status inquiry device of the embodiment of the present invention may include with lower module:
The internet terminal includes:
First generation module 701, for generating the status query request packet of internet protocol-based;The status inquiry is asked
Packet is asked to carry end message to be checked;
First sending module 702, for the status query request packet of the internet protocol-based to be sent to the association
Turn server;
The association turns server and includes:
First conversion module 703, for being converted to the status query request packet of the internet protocol-based based on view
The status query request packet of networking protocol, and the status query request packet based on depending on networking protocol is sent to the view and is joined
Network server;
Receiving module 704 is rung for receiving the status inquiry based on view networking protocol that the view networked server returns
It should wrap;The status inquiry response bag carries the status information of the corresponding view networked terminals of the end message to be checked;
Second conversion module 705, for being converted to the status inquiry response bag based on depending on networking protocol based on mutual
The status inquiry response bag of networking protocol, and the status inquiry response bag of the internet protocol-based is back to the interconnection
Network termination;
The internet terminal further include:
Output module 706 exports the view networking for the status inquiry response bag according to the internet protocol-based
The status information of terminal.
In a kind of optional embodiment, first generation module includes: format conversion unit, for passing through Java layers
The end message to be checked of String format is obtained, and the end message to be checked of the String format is converted into JSON lattice
The end message to be checked of formula;First transmission unit, for by described Java layers the first JNI method of calling by the JSON lattice
The terminal information transfer to be checked of formula is to local layer;Information encapsulation unit obtains the base for encapsulating by the local layer
In the status query request packet of Internet protocol, the end message to be checked is added to the shape of the internet protocol-based
State inquiry request packet.
In a kind of optional embodiment, the output module includes: information extraction unit, for being received by local layer
The status inquiry response bag of the internet protocol-based, and mentioned from the status inquiry response bag of the internet protocol-based
Take the status information of the view networked terminals;Second transmission book list member, for calling the 2nd JNI method will by the local layer
The status information depending on networked terminals is transmitted to Java layers;Information output unit, for passing through the Java layers of calling state
Display interface exports the status information of the view networked terminals.
In a kind of optional embodiment, the internet terminal further include: the second generation module, for generating based on mutual
The contact data packet of networking protocol;The contact data packet carries the corresponding contact information of the internet terminal;The
Two sending modules turn server for the contact data packet of the internet protocol-based to be sent to the association;The association
Turn server further include: third conversion module is based on for being converted to the contact data packet of the internet protocol-based
Depending on the contact data packet of networking protocol, and the contact data packet based on depending on networking protocol is sent to the view and is networked
Server, so that the view networked server saves the corresponding contact information of the internet terminal.
In a kind of optional embodiment, described depending on networked server includes: enquiry module, for from described based on view connection
The end message to be checked is extracted in the status query request packet of fidonetFido, and inquires the corresponding connection of the internet terminal
It whether there is the end message to be checked in people's information;Return module, for obtaining described to be checked in the presence of inquiring
The status information of the corresponding view networked terminals of end message, and the status inquiry response bag based on view networking protocol is generated,
It is back to the association and turns server.
User can obtain the status information of view networked terminals from view networked server in the embodiment of the present invention, therefore can
To learn whether view networked terminals are online, to avoid being promoted due to the not online caused video traffic failure of view networked terminals
User experience.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
In an embodiment of the present invention, a kind of status inquiry device is additionally provided.The apparatus may include one or more
Processor, and one or more machine readable medias of instruction are stored thereon with, instruct such as application program.When by described one
When a or multiple processors execute, so that described device executes above-mentioned method for inquiring status.
In an embodiment of the present invention, a kind of non-transitorycomputer readable storage medium including instruction is additionally provided,
Memory for example including instruction, above-metioned instruction can be executed by the processor of electronic equipment, to complete above-mentioned status inquiry side
Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic
Band, floppy disk and optical data storage devices etc..
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of method for inquiring status provided by the present invention, device and storage medium, it is described in detail, this
Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to
It facilitates the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.
Claims (12)
1. a kind of method for inquiring status, which is characterized in that the method is applied in view networking, includes association in view networking
Turn server, view networked server and view networked terminals, include internet terminal in internet, which comprises
The internet terminal generates the status query request packet of internet protocol-based, and by the internet protocol-based
Status query request packet is sent to the association and turns server;The status query request packet carries end message to be checked;
The association turns server and is converted to the status query request packet of the internet protocol-based based on view networking protocol
Status query request packet, and the status query request packet based on depending on networking protocol is sent to the view networked server;
The association turns server and receives the status inquiry response bag based on view networking protocol that the view networked server returns;Institute
State the status information that status inquiry response bag carries the corresponding view networked terminals of the end message to be checked;
The association turns server and the status inquiry response bag based on depending on networking protocol is converted to internet protocol-based
Status inquiry response bag, and the status inquiry response bag of the internet protocol-based is back to the internet terminal;
Status inquiry response bag of the internet terminal according to the internet protocol-based exports the view networked terminals
Status information.
2. the method according to claim 1, wherein the internet terminal generates the shape of internet protocol-based
The step of state inquiry request packet, comprising:
The internet terminal obtains the end message to be checked of String format by Java layers, and by the String format
End message to be checked be converted into the end message to be checked of JSON format;
The internet terminal is by described Java layers the first JNI method of calling by the end message to be checked of the JSON format
It is transmitted to local layer;
The internet terminal encapsulates to obtain the status query request packet of the internet protocol-based by the local layer, will
The end message to be checked is added to the status query request packet of the internet protocol-based.
3. the method according to claim 1, wherein the internet terminal is according to the internet protocol-based
Status inquiry response bag, export it is described view networked terminals status information the step of, comprising:
The internet terminal receives the status inquiry response bag of the internet protocol-based by local layer, and from the base
The status information of the view networked terminals is extracted in the status inquiry response bag of Internet protocol;
The internet terminal calls the 2nd JNI method to transmit the status information of the view networked terminals by the local layer
To Java layers;
The status information that the internet terminal calls status display interface to export the view networked terminals by described Java layers.
4. the method according to claim 1, wherein the method also includes:
The internet terminal generates the contact data packet of internet protocol-based, and by the connection of the internet protocol-based
Be personal data packet be sent to it is described association turn server;The contact data packet carries the corresponding contact person of the internet terminal
Information;
The association turns server and the contact data packet of the internet protocol-based is converted to the connection based on view networking protocol
It is personal data packet, and the contact data packet based on depending on networking protocol is sent to the view networked server, with toilet
It states view networked server and saves the corresponding contact information of the internet terminal.
5. according to the method described in claim 4, it is characterized in that, turning server for the internet protocol-based in the association
Status query request packet be converted to the status query request packet based on view networking protocol, and by described based on view networking protocol
Status query request packet was sent to after the step of view networked server, the method also includes:
It is described that the terminal to be checked is extracted from the status query request packet based on depending on networking protocol depending on networked server
Information, and inquire in the corresponding contact information of the internet terminal with the presence or absence of the end message to be checked;
It is described depending on networked server in the presence of inquiring, obtain the shape of the corresponding view networked terminals of the end message to be checked
State information, and the status inquiry response bag based on view networking protocol is generated, it is back to the association and turns server.
6. a kind of status inquiry device, which is characterized in that described device is applied in view networking, includes association in view networking
Turn server, view networked server and view networked terminals, includes internet terminal in internet;
The internet terminal includes:
First generation module, for generating the status query request packet of internet protocol-based;The status query request packet is taken
With end message to be checked;
First sending module turns service for the status query request packet of the internet protocol-based to be sent to the association
Device;
The association turns server and includes:
First conversion module, for being converted to the status query request packet of the internet protocol-based based on view networking protocol
Status query request packet, and the status query request packet based on depending on networking protocol is sent to the view the Internet services
Device;
Receiving module, the status inquiry response bag based on view networking protocol returned for receiving the view networked server;Institute
State the status information that status inquiry response bag carries the corresponding view networked terminals of the end message to be checked;
Second conversion module, for the status inquiry response bag based on depending on networking protocol to be converted to internet protocol-based
Status inquiry response bag, and the status inquiry response bag of the internet protocol-based is back to the internet terminal;
The internet terminal further include:
Output module exports the view networked terminals for the status inquiry response bag according to the internet protocol-based
Status information.
7. device according to claim 6, which is characterized in that first generation module includes:
Format conversion unit, for obtaining the end message to be checked of String format by Java layers, and by the String
The end message to be checked of format is converted into the end message to be checked of JSON format;
First transmission unit, for by described Java layers the first JNI method of calling by the terminal to be checked of the JSON format
Information is transmitted to local layer;
Information encapsulation unit obtains the status query request of the internet protocol-based for encapsulating by the local layer
The end message to be checked, is added to the status query request packet of the internet protocol-based by packet.
8. device according to claim 7, which is characterized in that the output module includes:
Information extraction unit, for receiving the status inquiry response bag of the internet protocol-based by local layer, and from institute
State the status information that the view networked terminals are extracted in the status inquiry response bag of internet protocol-based;
Second transmission book list member, for calling the 2nd JNI method to believe the state of the view networked terminals by the local layer
Breath is transmitted to Java layers;
Information output unit, the state for calling status display interface to export the view networked terminals by described Java layers are believed
Breath.
9. device according to claim 7, which is characterized in that
The internet terminal further include:
Second generation module, for generating the contact data packet of internet protocol-based;The contact data packet carries institute
State the corresponding contact information of internet terminal;
Second sending module turns server for the contact data packet of the internet protocol-based to be sent to the association;
The association turns server further include:
Third conversion module, for being converted to the contact data packet of the internet protocol-based based on view networking protocol
Contact data packet, and the contact data packet based on depending on networking protocol is sent to the view networked server, so as to
The view networked server saves the corresponding contact information of the internet terminal.
10. device according to claim 9, which is characterized in that described to include: depending on networked server
Enquiry module, for extracting the terminal letter to be checked from the status query request packet based on depending on networking protocol
Breath, and inquire in the corresponding contact information of the internet terminal with the presence or absence of the end message to be checked;
Return module, in the presence of inquiring, obtaining the state of the corresponding view networked terminals of the end message to be checked
Information, and the status inquiry response bag based on view networking protocol is generated, it is back to the association and turns server.
11. a kind of status inquiry device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made
It obtains described device and executes such as method for inquiring status described in any one of claim 1 to 5.
12. a kind of computer readable storage medium, which is characterized in that its computer program stored executes processor as weighed
Benefit requires 1 to 5 described in any item method for inquiring status.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910319048.1A CN110087102B (en) | 2019-04-19 | 2019-04-19 | State query method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910319048.1A CN110087102B (en) | 2019-04-19 | 2019-04-19 | State query method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110087102A true CN110087102A (en) | 2019-08-02 |
CN110087102B CN110087102B (en) | 2021-10-08 |
Family
ID=67415813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910319048.1A Active CN110087102B (en) | 2019-04-19 | 2019-04-19 | State query method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110087102B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336796A (en) * | 2019-06-17 | 2019-10-15 | 视联动力信息技术股份有限公司 | A kind of communication means and communication device |
CN110830814A (en) * | 2019-11-08 | 2020-02-21 | 视联动力信息技术股份有限公司 | Method, device, equipment and medium for reporting live broadcast list in video network |
CN111147797A (en) * | 2019-12-30 | 2020-05-12 | 视联动力信息技术股份有限公司 | Terminal state display method and device based on video network |
CN111147440A (en) * | 2019-11-11 | 2020-05-12 | 视联动力信息技术股份有限公司 | State information processing method and device based on video network |
CN111478883A (en) * | 2020-03-06 | 2020-07-31 | 视联动力信息技术股份有限公司 | Terminal detection method and device |
CN111865921A (en) * | 2020-06-18 | 2020-10-30 | 视联动力信息技术股份有限公司 | Data communication method, device, terminal equipment and storage medium |
CN116708926A (en) * | 2023-06-14 | 2023-09-05 | 行为科技(北京)有限公司 | WEB-based plug-in-free video playing method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2953309A1 (en) * | 2013-02-04 | 2015-12-09 | ZTE Corporation | Method, system, and rcs-e server for determining terminal state |
CN106303359A (en) * | 2015-05-14 | 2017-01-04 | 北京视联动力国际信息技术有限公司 | The processing method of a kind of network conversion and equipment |
CN108881961A (en) * | 2017-11-14 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of page starting method and apparatus regarding networked terminals |
-
2019
- 2019-04-19 CN CN201910319048.1A patent/CN110087102B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2953309A1 (en) * | 2013-02-04 | 2015-12-09 | ZTE Corporation | Method, system, and rcs-e server for determining terminal state |
CN106303359A (en) * | 2015-05-14 | 2017-01-04 | 北京视联动力国际信息技术有限公司 | The processing method of a kind of network conversion and equipment |
CN108881961A (en) * | 2017-11-14 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of page starting method and apparatus regarding networked terminals |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336796A (en) * | 2019-06-17 | 2019-10-15 | 视联动力信息技术股份有限公司 | A kind of communication means and communication device |
CN110830814A (en) * | 2019-11-08 | 2020-02-21 | 视联动力信息技术股份有限公司 | Method, device, equipment and medium for reporting live broadcast list in video network |
CN111147440A (en) * | 2019-11-11 | 2020-05-12 | 视联动力信息技术股份有限公司 | State information processing method and device based on video network |
CN111147797A (en) * | 2019-12-30 | 2020-05-12 | 视联动力信息技术股份有限公司 | Terminal state display method and device based on video network |
CN111147797B (en) * | 2019-12-30 | 2022-10-18 | 视联动力信息技术股份有限公司 | Terminal state display method and device based on video network |
CN111478883A (en) * | 2020-03-06 | 2020-07-31 | 视联动力信息技术股份有限公司 | Terminal detection method and device |
CN111865921A (en) * | 2020-06-18 | 2020-10-30 | 视联动力信息技术股份有限公司 | Data communication method, device, terminal equipment and storage medium |
CN111865921B (en) * | 2020-06-18 | 2023-11-24 | 视联动力信息技术股份有限公司 | Data communication method, device, terminal equipment and storage medium |
CN116708926A (en) * | 2023-06-14 | 2023-09-05 | 行为科技(北京)有限公司 | WEB-based plug-in-free video playing method |
Also Published As
Publication number | Publication date |
---|---|
CN110087102B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108418778A (en) | A kind of internet and method, apparatus and interactive system regarding connected network communication | |
CN110087102A (en) | Method for inquiring status, device and storage medium | |
CN108012106B (en) | A kind of method and system regarding networking monitoring source synchronous | |
CN109120962A (en) | The method and apparatus of software terminal connection view networking | |
CN109120946A (en) | The method and apparatus for watching live streaming | |
CN109547417A (en) | Code stream transmission method and device | |
CN108322809A (en) | The method and system that control video file plays under depending on networking under a kind of internet | |
CN109889780A (en) | Method of data synchronization and device | |
CN108810444A (en) | Processing method, conference dispatching end and the association of video conference turn server | |
CN109547163A (en) | A kind of control method and device of message transmission rate | |
CN110166433A (en) | A kind of method and system that video data obtains | |
CN109889779A (en) | A kind for the treatment of method and apparatus of packet out-ordering | |
CN110049341A (en) | Method for processing video frequency and device | |
CN109788369A (en) | Terminal control method and device | |
CN110072115A (en) | Data processing method, device and storage medium | |
CN110035297A (en) | Method for processing video frequency and device | |
CN110138513A (en) | A kind of data transmission method and view networked system | |
CN109347844A (en) | A kind of method and device of equipment access internet | |
CN109640027A (en) | Call method and device | |
CN109873864A (en) | A kind of communication connection method for building up and system based on view networking | |
CN109802952A (en) | Monitoring data synchronous method and device | |
CN109729184A (en) | A kind of method and apparatus of view networking service processing | |
CN108881791B (en) | A kind of conference control method and Conference control device based on view networking | |
CN109889755A (en) | Communication connecting method and device | |
CN110392227A (en) | Data processing method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |