CN110177023A - A kind of communication connection detection method and device based on view networking - Google Patents

A kind of communication connection detection method and device based on view networking Download PDF

Info

Publication number
CN110177023A
CN110177023A CN201910277482.8A CN201910277482A CN110177023A CN 110177023 A CN110177023 A CN 110177023A CN 201910277482 A CN201910277482 A CN 201910277482A CN 110177023 A CN110177023 A CN 110177023A
Authority
CN
China
Prior art keywords
view
view networking
networking
communication connection
source terminal
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.)
Withdrawn
Application number
CN201910277482.8A
Other languages
Chinese (zh)
Inventor
张志�
赵明
牛永会
许贵波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910277482.8A priority Critical patent/CN110177023A/en
Publication of CN110177023A publication Critical patent/CN110177023A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

This application provides a kind of communication connection detection method and device based on view networking.Pass through the application, it can detecte the connection status of the communication connection between view networking source terminal and view networking target terminal, decide whether to be suitble to according to connection status mutually to send view networking data between view networking source terminal and view networking target terminal, if being not suitable for mutually sending view networking data between view networking source terminal and view networking target terminal, then need to be improved the connection status of the communication connection between view networking source terminal and view networking target terminal, so that the connection status of the communication connection after improving is suitble to mutually send data again after mutually transmission data, it avoids influencing communication quality and avoids reducing user experience.

Description

A kind of communication connection detection method and device based on view networking
Technical field
This application involves view networking technology field, more particularly to it is a kind of based on view networking communication connection detection method and Device.
Background technique
With the development of technology with the enhancing of mobile device functionality, video communication is increasingly becoming the common of the daily communication of people Means.Video communication technology is a kind of technology that video communication is carried out by network, and two people or more people is allowed to carry out using network Video exchange, main application scenarios include more people's video conferences, visual telephone, tele-medicine and online education etc..However, if Phenomena such as occurring data-bag lost in video transmitting procedure, will cause video image Caton causes user experience lower.
Summary of the invention
To solve the above-mentioned problems, present application illustrates a kind of communication connection detection method and device based on view networking.
In a first aspect, being applied to view networking source present application illustrates a kind of communication connection detection method based on view networking Terminal, which comprises
View networking ping request is sent to view networked server, so that the view networked server regards networked terminals to target Forward the view networking ping request;
It detects and is sent in the preset duration regarded after networking ping is requested to described depending on networked server, if connect It receives the target view networked terminals and is networked according to the view networking ping request via the view that the view networked server is sent Ping response;
If not receiving the view networking ping response in the preset duration, it is determined that the view networking source terminal Communication connection between the view networking target terminal disconnects;
If receiving view networking ping response in the preset duration, it is determined that the view networking source terminal and Communication connection between the view networking target terminal is unimpeded.
In an optional implementation, the determination view networking source terminal and the view network target terminal it Between communication connection disconnect after, further includes:
The first prompt information is generated, first prompt information is for prompting the view networking source terminal and the view to network Communication connection between target terminal disconnects;
Show or play first prompt information.
In an optional implementation, the determination view networking source terminal and the view network target terminal it Between communication connection it is unimpeded after, further includes:
The second prompt information is generated, second prompt information is for prompting the view networking source terminal and the view to network Communication connection between target terminal is unimpeded;
Show or play second prompt information.
In an optional implementation, the determination view networking source terminal and the view network target terminal it Between communication connection it is unimpeded after, further includes:
Obtain the parameter information of the communication connection between the view networking source terminal and the view networking target terminal;
Show or play the parameter information.
In an optional implementation, request to the networking ping that regards that networked server is sent is regarded to be multiple;
The parameter information for obtaining the communication connection between the view networking source terminal and the view networking target terminal, Include:
The target view networked terminals received are counted to be requested according to view networking ping via the view networked server The received quantity of the view networking ping response of transmission;
Institute is determined to depending on the quantity and the received quantity requested depending on networking ping that networked server is sent according to described The packet loss of the communication connection between view networking source terminal and the view networking target terminal is stated, and as the parameter information.
In an optional implementation, it is described obtain view networking source terminal and the view network target terminal it Between communication connection parameter information, comprising:
Obtain the sending instant when view networking ping sent to view networked server is requested;
Acquisition receives the target view networked terminals and is sent out according to view networking ping request via the view networked server The time of reception when view networking ping response sent;
Determine that the view networking source terminal and view networking target are whole according to the time of reception and the sending instant Data between end transmit round-trip duration, and as the parameter information.
Second aspect, present application illustrates a kind of communication connection detection devices based on view networking, are applied to view networking source Terminal, described device include:
Sending module, for view networked server send view networking ping request so that the view networked server to Target regards networked terminals and forwards the view networking ping request;
Detection module is sending presetting after the view networking ping is requested depending on networked server to described for detecting In duration, if receive the target view networked terminals according to the view and network ping request via the view networked server The view networking ping response of transmission;
First determining module, if for not receiving the view networking ping response in the preset duration, really Communication connection between the fixed view networking source terminal and the view networking target terminal disconnects;
Second determining module, if for receiving the view networking ping response in the preset duration, it is determined that Communication connection between the view networking source terminal and the view networking target terminal is unimpeded.
In an optional implementation, described device further include:
First generation module, for generating the first prompt information, first prompt information is for prompting the view to network Communication connection between source terminal and the view networking target terminal disconnects;
First display module, for showing or playing first prompt information.
In an optional implementation, described device further include:
Second generation module, for generating the second prompt information, second prompt information is for prompting the view to network Communication connection between source terminal and the view networking target terminal is unimpeded;
Second display module, for showing or playing second prompt information.
In an optional implementation, described device further include:
Module is obtained, for obtaining the communication connection between the view networking source terminal and the view networking target terminal Parameter information;
Third display module, for showing or playing the parameter information.
In an optional implementation, request to the networking ping that regards that networked server is sent is regarded to be multiple;
The acquisition module includes:
Statistic unit is requested according to view networking ping via described for counting the target received view networked terminals Depending on the received quantity for the view networking ping response that networked server is sent;
First determination unit, quantity and institute for being requested according to the view networking ping sent to view networked server The packet loss for the communication connection that received quantity determines between the view networking source terminal and the view networking target terminal is stated, and is made For the parameter information.
In an optional implementation, the acquisition module includes:
First acquisition unit, for obtaining the sending instant when view networking ping sent to view networked server is requested;
Second acquisition unit receives the target view networked terminals according to view networking ping request via institute for obtaining State the time of reception when view networking ping response that view networked server is sent;
Second determination unit, for according to the time of reception and the sending instant determine view networking source terminal with Data between the view networking target terminal transmit round-trip duration, and as the parameter information.
The application includes following advantages:
In this application, view networking ping request is sent to view networked server, so that view networked server is regarded to target Networked terminals forwarding view networking ping request;It detects and is sending in the preset duration after regarding networking ping request, if receive The view networking ping response sent to target view networked terminals according to networking ping request is regarded via view networked server;If not View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal disconnects;If View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal is unimpeded.
By the application, the connection of the communication connection between view networking source terminal and view networking target terminal can detecte State decides whether to be suitble to mutually to send view networking between view networking source terminal and view networking target terminal according to connection status Data need to change if being not suitable for mutually sending view networking data between view networking source terminal and view networking target terminal It is apt to the connection status of the communication connection between view networking source terminal and view networking target terminal, so that the communication connection after improvement Connection status is suitble to mutually send data again after mutually transmission data, avoids influencing communication quality and avoids reduction user's body It tests.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application.
Fig. 2 is a kind of hardware structural diagram of node server of the application.
Fig. 3 is a kind of hardware structural diagram of access switch of the application.
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway.
Fig. 5 is a kind of structural block diagram of communication connection detection system based on view networking of the application.
Fig. 6 is a kind of step flow chart of communication connection detection method based on view networking of the application.
Fig. 7 is a kind of structural block diagram of communication connection detection device based on view networking of the application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in 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.
To make those skilled in the art more fully understand the application, it is introduced below to depending on networking:
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 Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road 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, and node server and metropolitan area clothes The network controlled under business device 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 the application's can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including Ethernet net Close), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or country 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 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 mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) 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 204 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, are divided to two kinds of situations in this application:
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 208 is configured by CPU module 204, 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 destination 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, if there is Bao Ze is according to the view of packet networking purpose 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 this application: 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, one of core idea of the application is proposed, it then follows the agreement of networking is regarded, it can be with It detects view networking source terminal and regards the connection status of the communication connection between networking target terminal, be according to connection status decision It is no to be suitble to mutually send view networking data between view networking source terminal and view networking target terminal, if being not suitable for networking in view View networking data is mutually sent between source terminal and view networking target terminal, then needs to be improved view networking source terminal and view networking mesh The connection status of the communication connection between terminal is marked, so that the connection status of the communication connection after improving is suitble to mutually send data It mutually sends data again later, avoid influencing communication quality and avoids reducing user experience.
Referring to Fig. 5, a kind of structural block diagram of communication connection detection system based on view networking of the application is shown, this is System includes: view networking source terminal 01, view networked server 02 and view networking target terminal 03, is networked depending on networking source terminal 01 and view Server 02 can between have based on view networking protocol communication connection, view networked server 02 and view network target terminal 03 Between can have based on view networking protocol communication connection, by the two connection may be implemented view networking source terminal 01 and view join Has communication connection between net target terminal 03.
Wherein, when needing depending on networking source terminal and depending on mutually sending data between networking target terminal, either side is needed Data are sent to another party via view networked server, either side needs to receive another party's transmission via depending on networked server Data.
However, sometimes will appear failure depending on networking source terminal and depending on the communication connection between networking target terminal, for example, Disconnect etc., therefore, when needing mutually to send view networking data between view networking source terminal and view networking target terminal, need The connection status of communication connection between detection view networking source terminal and view networking target terminal, decides whether according to connection status It is suitble to mutually send view networking data between view networking source terminal and view networking target terminal, if be not suitable in view networking source View networking data is mutually sent between terminal and view networking target terminal, then needs to be improved view networking source terminal and view networking target The connection status of communication connection between terminal so that improve after communication connection connection status be suitble to mutually send data it It mutually sends data again afterwards, avoid influencing communication quality and avoids reducing user experience.
Referring to Fig. 6, a kind of step flow chart of communication connection detection method based on view networking of the application is shown, it should Method can be applied in view networking source terminal 01 shown in fig. 5, and this method can specifically include following steps:
In step s101, to networked server transmission view networking ping request is regarded, so as to regard networked server to target View networking ping request is forwarded depending on networked terminals;
In this application, any one view networked terminals in view networking need and phase between other view networked terminals When mutually sending data, require via view networked server forwarding.
It therefore, include that view networking source terminal and view join depending on the communication connection between networking source terminal and view networking target terminal Communication connection between communication connection and view networked server between network server and view networking target terminal.
In this way, in the connection status for needing to detect the communication connection between view networking source terminal and view networking target terminal When, it needs to send view networking ping request to view networked server depending on networking source terminal.
Wherein, the terminal iidentification etc. for regarding networked terminals depending at least carrying target in networking ping request.
For example, Ping request includes the request type of the head the Ping 0x4040 of 2 bytes, 4 bytes, 4 bytes The target terminal of packet serial number and 20 bytes identifies, totally 30 bytes.
In step s 102, it detects and is being sent to view networked server in the preset duration after view networking ping request, The view networking ping that target view networked terminals are sent according to view networking ping request via view networked server whether is received to ring It answers;
If unimpeded depending on the communication connection between networking source terminal and view networked server, can be received depending on networked server To view networking ping request, and meeting target is forwarded depending on networked terminals to target depending on the terminal iidentification of networked terminals and is asked depending on networking ping It asks, if the communication connection between view networked server and view networking source terminal is unimpeded, can be received depending on networking target terminal View networking ping response is generated depending on networking ping request, and according to view networking ping request, is then sent to view networked server Depending on ping response of networking, after receiving view networking ping response depending on networked server, view will be sent to view networking source terminal Networking ping response will receive view networking ping response depending on networking source terminal.
However, if view networking source terminal and regard networked server between communication connection disconnect or view networked server with It is disconnected depending on the communication connection between networking source terminal, then would not receive view networking ping request depending on networking target terminal, View networking ping response would not be generated according to view networking ping request, and then view networking will not be sent to view networked server Ping response would not also send view networking ping response depending on networked server, depending on source terminal of networking to view networking source terminal View networking ping response is not just received.In this case, it does not need that view networking ping is waited to ring always depending on networking source terminal It answers, a preset duration can be set, detect and sending in the preset duration after regarding networking ping request, if receive mesh The view networking ping response that mark view networked terminals are sent according to networking ping request is regarded via view networked server, if do not received To view networking ping response, then the communication connection disconnection between view networking source terminal and view networking target terminal can be determined;Such as Fruit receives view networking ping response, then can determine that the communication connection between view networking source terminal and view networking target terminal is smooth It is logical.
If not receiving view networking ping response in preset duration, in step s 103, view networking source terminal is determined Communication connection between view networking target terminal disconnects;
Detecting depending on networking source terminal and depending on the connection status of the communication connection between networking target terminal can be using view The demand of the user of networking source terminal, that is, being to regard source terminal of networking using user's triggering of view networking source terminal to network to view Server sends view networking ping request, therefore, logical between networking source terminal and view networking target terminal determining to regard After the linking status for believing connection, need to inform the user the communication connection between view networking source terminal and view networking target terminal Connection status.
For example, in this application, determining that regarding the communication connection between networking source terminal and view networking target terminal disconnects Later, can be generated the first prompt information, the first prompt information for prompt view networking source terminal and view networking target terminal it Between communication connection disconnect;Display plays the first prompt information.
If received in preset duration view networking ping response, in step S104, determine view networking source terminal with It is unimpeded depending on the communication connection between networking target terminal.
In this application, after determining that the communication connection for regarding and networking between source terminal and view networking target terminal disconnects, The second prompt information can be generated, the second prompt information is used to prompt logical between view networking source terminal and view networking target terminal Letter connection is unimpeded;Display plays the second prompt information.
In this application, view networking ping request is sent to view networked server, so that view networked server is regarded to target Networked terminals forwarding view networking ping request;It detects and is sending in the preset duration after regarding networking ping request, if receive The view networking ping response sent to target view networked terminals according to networking ping request is regarded via view networked server;If not View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal disconnects;If View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal is unimpeded.
By the application, the connection of the communication connection between view networking source terminal and view networking target terminal can detecte State decides whether to be suitble to mutually to send view networking between view networking source terminal and view networking target terminal according to connection status Data need to change if being not suitable for mutually sending view networking data between view networking source terminal and view networking target terminal It is apt to the connection status of the communication connection between view networking source terminal and view networking target terminal, so that the communication connection after improvement Connection status is suitble to mutually send data again after mutually transmission data, avoids influencing communication quality and avoids reduction user's body It tests.
In this application, determine view networking source terminal and view networking target terminal between communication connection it is unimpeded it Afterwards, the parameter information of the communication connection between view networking source terminal and view networking target terminal can also be obtained, and shows or broadcasts Parameter information is put, to inform the communication regarded between networking source terminal and view networking target terminal using the user of view networking source terminal The parameter information of connection, so that user knows that the parameter of the communication connection between view networking source terminal and view networking target terminal is believed Breath, so that user can determine it is to directly control view networking source terminal to be based on the communication connection and regard target terminal phase of networking View networking data is mutually sent, alternatively, the communication connection between view networking source terminal and view networking target terminal is repaired, so that view joins Net source terminal and view is met the requirements and then controlled depending on the parameter information of communication connection after the reparation between networking target terminal Networking source terminal mutually sends view networking data with view networking target terminal based on the communication connection after reparation, alternatively, creation one It is a to network between target terminal, new communication connection that parameter information is met the requirements depending on networking source terminal and view, it controls again later System view networking source terminal mutually sends view networking data based on new communication connection and view networking target terminal.
In one embodiment, the view networking that view networking source terminal in step s101 is sent to view networked server Ping request is multiple;In this way, believing obtaining the parameter for regarding the communication connection between networking source terminal and view networking target terminal When breath, the view that the target view networked terminals received are sent according to view networking ping request via view networked server can be counted The received quantity of networking ping response;Then the quantity and reception requested according to the view networking ping sent to view networked server Quantity determines the packet loss of the communication connection between view networking source terminal and view networking target terminal, for example, calculating received quantity The ratio between quantity requested with the view networking ping sent to view networked server, and lost as the packet loss, and by this Packet rate is as the parameter information.
In another embodiment, the ginseng for regarding the communication connection between networking source terminal and view networking target terminal is being obtained Sending instant when number information, when the available view networking ping sent to view networked server is requested;Acquisition receives mesh Mark view networked terminals according to view networking ping request via view networked server send view networking ping response when reception when It carves;When determining that the data transmission between view networking source terminal and view networking target terminal is round-trip according to the time of reception and sending instant It is long, for example, calculate the difference between the time of reception and sending instant, and as view networking source terminal and view networking target terminal it Between data transmit round-trip duration, and the data are transmitted into round-trip duration as the parameter information.
Further, the view networking ping request that view networking source terminal in step s101 is sent to view networked server When being multiple, ping response corresponding with its can be requested to have a data with each ping and transmit round-trip duration, it can Go out the round-trip duration of mean data transfer to transmit round-trip duration calculation according to multiple data, and pick out longest data transmit it is past It returns duration and/or shortest data transmits round-trip duration, and it is past to show that the round-trip duration of mean data transfer, longest data are transmitted It returns duration and shortest data transmits round-trip duration.
Further, it can also prompt to have received which ping requests corresponding ping response depending on networking source terminal, and mention Show and does not receive which ping requests corresponding ping response etc. depending on networking source terminal.
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, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, 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 related movement not necessarily the application is implemented Necessary to example.
Referring to Fig. 7, a kind of structural block diagram of communication connection detection device based on view networking of the application, application are shown In view networking source terminal, described device includes:
Sending module 11, for sending view networking ping request to view networked server, so that the view networked server The view networking ping request is forwarded to target view networked terminals;
Detection module 12, for detect to it is described send depending on networked server it is pre- after the view networking ping request If in duration, if receive the target view networked terminals according to the view and network ping request via the view the Internet services The view networking ping response that device is sent;
First determining module 13, if for not receiving the view networking ping response in the preset duration, Determine that the communication connection between the view networking source terminal and the view networking target terminal disconnects;
Second determining module 14, if for receiving the view networking ping response in the preset duration, really Communication connection between the fixed view networking source terminal and the view networking target terminal is unimpeded.
In an optional implementation, described device further include:
First generation module, for generating the first prompt information, first prompt information is for prompting the view to network Communication connection between source terminal and the view networking target terminal disconnects;
First display module, for showing or playing first prompt information.
In an optional implementation, described device further include:
Second generation module, for generating the second prompt information, second prompt information is for prompting the view to network Communication connection between source terminal and the view networking target terminal is unimpeded;
Second display module, for showing or playing second prompt information.
In an optional implementation, described device further include:
Module is obtained, for obtaining the communication connection between the view networking source terminal and the view networking target terminal Parameter information;
Third display module, for showing or playing the parameter information.
In an optional implementation, request to the networking ping that regards that networked server is sent is regarded to be multiple;
The acquisition module includes:
Statistic unit is requested according to view networking ping via described for counting the target received view networked terminals Depending on the received quantity for the view networking ping response that networked server is sent;
First determination unit, quantity and institute for being requested according to the view networking ping sent to view networked server The packet loss for the communication connection that received quantity determines between the view networking source terminal and the view networking target terminal is stated, and is made For the parameter information.
In an optional implementation, the acquisition module includes:
First acquisition unit, for obtaining the sending instant when view networking ping sent to view networked server is requested;
Second acquisition unit receives the target view networked terminals according to view networking ping request via institute for obtaining State the time of reception when view networking ping response that view networked server is sent;
Second determination unit, for according to the time of reception and the sending instant determine view networking source terminal with Data between the view networking target terminal transmit round-trip duration, and as the parameter information.
In this application, view networking ping request is sent to view networked server, so that view networked server is regarded to target Networked terminals forwarding view networking ping request;It detects and is sending in the preset duration after regarding networking ping request, if receive The view networking ping response sent to target view networked terminals according to networking ping request is regarded via view networked server;If not View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal disconnects;If View networking ping response is received, determines that the communication connection between view networking source terminal and view networking target terminal is unimpeded.
By the application, the connection of the communication connection between view networking source terminal and view networking target terminal can detecte State decides whether to be suitble to mutually to send view networking between view networking source terminal and view networking target terminal according to connection status Data need to change if being not suitable for mutually sending view networking data between view networking source terminal and view networking target terminal It is apt to the connection status of the communication connection between view networking source terminal and view networking target terminal, so that the communication connection after improvement Connection status is suitble to mutually send data again after mutually transmission data, avoids influencing communication quality and avoids reduction user's body It tests.
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.
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 embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application 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 application 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 application is referring to according to the method for the embodiment of the present application, 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 preferred embodiments of the embodiments of the present application have 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 all change and modification within the scope of the embodiments of the present application.
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 communication connection detection method and device based on view networking provided herein, carry out in detail It introduces, specific examples are used herein to illustrate the principle and implementation manner of the present application, the explanation of above embodiments It is merely used to help understand the present processes and its core concept;At the same time, for those skilled in the art, according to this The thought of application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as the limitation to the application.

Claims (10)

1. a kind of communication connection detection method based on view networking, which is characterized in that be applied to view networking source terminal, the method Include:
To view networked server transmission view networking ping request, so that the view networked server is forwarded to target view networked terminals The view networking ping request;
It detects and is sent in the preset duration regarded after networking ping is requested to described depending on networked server, if received The target view networked terminals are according to the view networking ping for regarding networking ping request and sending via the view networked server Response;
If not receiving the view networking ping response in the preset duration, it is determined that the view networking source terminal and institute The communication connection stated between view networking target terminal disconnects;
If receiving view networking ping response in the preset duration, it is determined that the view network source terminal with it is described It is unimpeded depending on the communication connection between networking target terminal.
2. the method according to claim 1, wherein the determination view networking source terminal and the view are networked After communication connection between target terminal disconnects, further includes:
The first prompt information is generated, first prompt information is for prompting the view networking source terminal and view networking target Communication connection between terminal disconnects;
Show or play first prompt information.
3. the method according to claim 1, wherein the determination view networking source terminal and the view are networked After communication connection between target terminal is unimpeded, further includes:
The second prompt information is generated, second prompt information is for prompting the view networking source terminal and view networking target Communication connection between terminal is unimpeded;
Show or play second prompt information.
4. the method according to claim 1, wherein the determination view networking source terminal and the view are networked After communication connection between target terminal is unimpeded, further includes:
Obtain the parameter information of the communication connection between the view networking source terminal and the view networking target terminal;
Show or play the parameter information.
5. according to the method described in claim 4, it is characterized in that, to regard networked server send regard networking ping request as It is multiple;
The parameter information for obtaining the communication connection between the view networking source terminal and the view networking target terminal, packet It includes:
The target view networked terminals received are counted to be sent according to view networking ping request via the view networked server View networking ping response received quantity;
The view is determined to depending on the quantity and the received quantity requested depending on networking ping that networked server is sent according to described The packet loss for the communication connection networked between source terminal and the view networking target terminal, and as the parameter information.
6. according to the method described in claim 4, it is characterized in that, described obtain the view networking source terminal and view networking The parameter information of communication connection between target terminal, comprising:
Obtain the sending instant when view networking ping sent to view networked server is requested;
It obtains and receives what the target view networked terminals were sent according to view networking ping request via the view networked server Depending on time of reception when networking ping response;
According to the time of reception and the sending instant determine view networking source terminal and the view network target terminal it Between data transmit round-trip duration, and as the parameter information.
7. a kind of communication connection detection device based on view networking, which is characterized in that be applied to view networking source terminal, described device Include:
Sending module, for sending view networking ping request to view networked server, so that the view networked server is to target The view networking ping request is forwarded depending on networked terminals;
Detection module is sending the preset duration regarded after networking ping is requested depending on networked server to described for detecting It is interior, if to receive the target view networked terminals according to the view and network ping request via view networked server transmission View network ping response;
First determining module, if for not receiving the view networking ping response in the preset duration, it is determined that institute The communication connection stated between view networking source terminal and the view networking target terminal disconnects;
Second determining module, if for receiving the view networking ping response in the preset duration, it is determined that described It is unimpeded depending on the communication connection between networking source terminal and the view networking target terminal.
8. device according to claim 7, which is characterized in that described device further include:
First generation module, for generating the first prompt information, first prompt information is for prompting the view networking source whole Communication connection between end and the view networking target terminal disconnects;
First display module, for showing or playing first prompt information.
9. device according to claim 7, which is characterized in that described device further include:
Second generation module, for generating the second prompt information, second prompt information is for prompting the view networking source whole Communication connection between end and the view networking target terminal is unimpeded;
Second display module, for showing or playing second prompt information.
10. device according to claim 7, which is characterized in that described device further include:
Module is obtained, for obtaining the parameter of the communication connection between the view networking source terminal and the view networking target terminal Information;
Third display module, for showing or playing the parameter information, and as the parameter information.
CN201910277482.8A 2019-04-08 2019-04-08 A kind of communication connection detection method and device based on view networking Withdrawn CN110177023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910277482.8A CN110177023A (en) 2019-04-08 2019-04-08 A kind of communication connection detection method and device based on view networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910277482.8A CN110177023A (en) 2019-04-08 2019-04-08 A kind of communication connection detection method and device based on view networking

Publications (1)

Publication Number Publication Date
CN110177023A true CN110177023A (en) 2019-08-27

Family

ID=67689479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910277482.8A Withdrawn CN110177023A (en) 2019-04-08 2019-04-08 A kind of communication connection detection method and device based on view networking

Country Status (1)

Country Link
CN (1) CN110177023A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294256A (en) * 2020-02-21 2020-06-16 宁波海大物联科技有限公司 On-line detection method for performance of communication module
CN112351084A (en) * 2020-10-28 2021-02-09 珠海格力电器股份有限公司 Data transmission method and device, processor and electronic device
CN115086201A (en) * 2022-05-10 2022-09-20 中汽创智科技有限公司 Vehicle-mounted Ethernet test method, device and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294256A (en) * 2020-02-21 2020-06-16 宁波海大物联科技有限公司 On-line detection method for performance of communication module
CN111294256B (en) * 2020-02-21 2022-05-20 宁波海大物联科技有限公司 On-line detection method for performance of communication module
CN112351084A (en) * 2020-10-28 2021-02-09 珠海格力电器股份有限公司 Data transmission method and device, processor and electronic device
CN112351084B (en) * 2020-10-28 2022-02-25 珠海格力电器股份有限公司 Data transmission method and device, processor and electronic device
CN115086201A (en) * 2022-05-10 2022-09-20 中汽创智科技有限公司 Vehicle-mounted Ethernet test method, device and system

Similar Documents

Publication Publication Date Title
CN108810456B (en) A kind of monitoring video flow transfers method and system
CN109167960A (en) A kind of processing method and system of video stream data
CN109120879A (en) A kind of processing method and system of video conference
CN110048954A (en) A kind of data transmission method and device
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN110475090A (en) A kind of method and system of Conference control
CN110392226A (en) A kind of live streaming implementation method and device
CN110049273A (en) A kind of meeting method for recording and transfer server based on view networking
CN109587432A (en) A kind of conference speech terminal switching method and system
CN110177023A (en) A kind of communication connection detection method and device based on view networking
CN110233982A (en) A kind of monitoring method and device based on view networking
CN109743284A (en) A kind of method for processing video frequency and system based on view networking
CN109194901A (en) A kind of method for processing video frequency and device based on view networking
CN109347844A (en) A kind of method and device of equipment access internet
CN108989850A (en) A kind of video playing control method and control system
CN110278244A (en) A kind of method of network entry and view networked terminals based on view networking
CN110087028A (en) A kind of web video component obtains the method and system of video flowing
CN109889516A (en) A kind of method for building up and device of session channel
CN109963123A (en) A kind of control method and device of camera
CN109698790A (en) A kind of storage method and system regarding networking data
CN110049069A (en) A kind of data capture method and device
CN110113555A (en) A kind of video conference processing method and system based on view networking
CN108964966A (en) A kind of parameter information update method and device based on view networking
CN110267110A (en) A kind of concurrent program request processing method and system based on view networking
CN109714558A (en) A kind of communication connection detection method and system based on view networking

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190827