[go: up one dir, main page]

CN105656913B - A kind of method of adaptive network when intelligent terminal broadcasting video - Google Patents

A kind of method of adaptive network when intelligent terminal broadcasting video Download PDF

Info

Publication number
CN105656913B
CN105656913B CN201610064333.XA CN201610064333A CN105656913B CN 105656913 B CN105656913 B CN 105656913B CN 201610064333 A CN201610064333 A CN 201610064333A CN 105656913 B CN105656913 B CN 105656913B
Authority
CN
China
Prior art keywords
intelligent terminal
source device
video
video source
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610064333.XA
Other languages
Chinese (zh)
Other versions
CN105656913A (en
Inventor
陈嗣文
黄文团
倪海鸥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201610064333.XA priority Critical patent/CN105656913B/en
Publication of CN105656913A publication Critical patent/CN105656913A/en
Application granted granted Critical
Publication of CN105656913B publication Critical patent/CN105656913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1023Media gateways
    • H04L65/103Media gateways in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method of adaptive network, the method are as follows: intelligent terminal obtains intelligent terminal external IP by server, plays the external IP of the video source device of video, LAN port address and WAN port address when the present invention provides a kind of intelligent terminal broadcasting video;Judge video source device whether after network address translation NAT;The two is compared whether in same local area network, in same local area network and video source device is after network address translation NAT, initiates LAN mouthfuls of detections and WAN mouthfuls of detections, respectively by intelligent terminal to determine that the link between intelligent terminal and video source device is available;When not in same local area network and video source device is not after network address translation NAT, then initiating WAN mouthfuls of detections;According to the best link that detection result selection plays, when the corresponding link of detection result is all unstable, selection is played by the link of server.The present invention can effectively accelerate the speed that intelligent terminal plays video, reduce the pressure of server.

Description

A kind of method of adaptive network when intelligent terminal broadcasting video
Technical field
Adaptive network when playing video the present invention relates to technical field of network communication more particularly to a kind of intelligent terminal Method.
Background technique
There are mainly two types of the modes of the video of the video source device of intelligent terminal broadcasting at present: one is pass through connection server Unified management is played, one is play by direct-connected devices such as WIFI.It needs to occupy server resource by server broadcasting, takes Device pressure of being engaged in is big, there is certain network speed requirement;It is played by the direct-connected video source device of WIFI and itself there is distance limitation, environment is wanted Ask high, but can be unaffected in the case where network environment difference.A certain kind side therein is all single use in existing application Formula carries out video playing, optimal broadcast mode that cannot well under processing intelligent terminal current network environment, thus because of ring Border influences to bring bad experience.
" a kind of method and apparatus of distribution video uniform in the wireless network " is disclosed in the prior art, sees publication number Are as follows: CN104967880A, publication date are as follows: the Chinese patent of 2015-10-07, the method comprising the steps of one: to the band of wireless network Width formulates allocation strategy, determines the maximum limit that the maximum intelligent terminal quantity that can connect and each intelligent terminal can obtain Bandwidth processed;Step 2: the video stream bit rate type of installation, and the maximum limit that can be obtained according to each intelligent terminal are detected and selected Make the setting code rate value with the width setting application scenarios;Step 3: establishing Wireless LAN, so that intelligent terminal is accessible Video multimedia data;Step 4: according to the access request of intelligent terminal, video flowing is sent to intelligent terminal.Thus it can realize The invention guarantee have different performance intelligent terminal can obtain uniform wireless bandwidth, smoothly displaying video programs and Obtain various multi-medium datas.The scheme and present patent application of invention effect achieved and use be not identical, this patent Application is the case where capable of adapting to current network automatically when intelligent terminal being allowed to play video, so that accelerating intelligent terminal plays view The speed of frequency reduces the pressure of server.
Summary of the invention
The technical problem to be solved in the present invention, the side of adaptive network when being to provide a kind of intelligent terminal broadcasting video Method can effectively accelerate the speed that intelligent terminal plays video, reduce the pressure of server.
The present invention is implemented as follows: when a kind of intelligent terminal plays video adaptive network method, the method are as follows: Intelligent terminal obtains intelligent terminal external IP by a server, plays the external IP of the video source device of video, LAN port address And WAN port address;Judge video source device whether after network address translation NAT;And by intelligent terminal external IP and Whether the external IP comparison of video source device learns the two in same local area network, and in same local area network and video source device is in net After network address conversion NAT, LAN mouthfuls of detections and WAN mouthfuls of detections are initiated respectively by intelligent terminal, detect packet loss less than 30% Determine that the link between intelligent terminal and video source device is available;When not in same local area network and video source device not in network It is after NAT is converted in location, then same to initiate WAN mouthfuls of detections;According to the best link that detection result selection plays, when detection result pair When the link answered is all unstable, selection is played by the link of server, it is ensured that plays the stability of video.
Further, LAN mouthfuls and WAN mouthfuls of two kinds of links are detected, LAN mouthfuls of chains are preferentially selected when detection result can use Road plays.
Further, when intelligent terminal or video source device end network environment change, it is adaptive that this need to be re-executed The method for answering network.
Further, the detection mode is UDP detection or Http detection;The UDP detection are as follows: initiated to destination address The content of 10 UDP packets, UDP packet need to uniformly be decided through consultation with video source device end, and 7 or more responses are received in preset time 3s Packet, then detect success, and LAN mouthfuls or WAN mouthfuls of links can be used.
Further, the information of the video source device seldom changes, and the information of video source device can be in login or network Uniformly server is reported to save after variation, or is stored in video source device itself, it waits intelligent terminal to initiate request and asks for.
Further, video source device information is obtained from triggering, initiates to detect to obtain the whole process of detection result all It is asynchronous progress, after change of network environment or equipment are restarted, the optimum link of default is to be played by server Link, avoid play when also etc. detection results, improve play experience.
Further, unified that detection result is stored in the caching of intelligent terminal after obtaining detection result, when for playing Quickly take.
Further, the intelligent terminal is mobile phone or tablet device.
Further, the video source device is the gateway of router or IP Camera.
Further, when detecting available a certain link broadcasting failure, it is switched to the chain played by server immediately Road plays out.
The present invention has the advantage that the present invention obtains intelligent terminal external IP by a server, the view of video is played The external IP of frequency source equipment, LAN port address and WAN port address;Judge video source device whether network address translation NAT it Afterwards;And learn that the two, can whether in same local area network by intelligent terminal external IP and the comparison of the external IP of video source device Optimal broadcasting link is selected by current network environment, effectively accelerates the speed that intelligent terminal plays video, reduces service The pressure of device improves user experience.
Detailed description of the invention
Fig. 1 is the method for the present invention flow diagram.
Fig. 2 is that LAN of the present invention detection can lead to link topology figure.
Fig. 3 is that WAN of the present invention detection can lead to link topology figure.
Fig. 4 is the link topology figure that video playing of the present invention passes through server.
Specific embodiment
Shown in please referring to Fig.1 to Fig.4, the method for adaptive network, institute when a kind of intelligent terminal of the invention plays video State method are as follows: when smart machine starting or network environment change, intelligent terminal obtains intelligent terminal by a server External IP plays the external IP of the video source device of video, LAN port address and WAN port address;Whether judge video source device (the LAN port address of video source device, WAN port address are judged, if letter behind the nat after network address translation NAT Breath and the outside ip address of its own);The information of the video source device seldom changes, and the information of video source device can log in Or uniformly server is reported to save after network change, or is stored in video source device itself, wait intelligent terminal initiation to ask It seeks and takes.
After getting video source device information and intelligent terminal external IP information, need to judge whether to need to initiate LAN mouthfuls And WAN mouthfuls of detections, if need to initiate the condition of detection are as follows: when intelligent terminal is identical with the external IP at video source device end, Both ends are in same local area network and initiate LAN mouthfuls of detections and WAN mouthfuls of detections;When the external IP at intelligent terminal and video source device end not It is identical, both ends not in same local area network and video source device not behind the nat, then it is same to initiate WAN mouthful and detect.Meet detection Condition initiates detection.In same local area network and video source device is after network address translation NAT, is distinguished by intelligent terminal LAN mouthfuls of detections and WAN mouthfuls of detections are initiated, less than 30% determining chain between intelligent terminal and video source device of packet loss is detected Road is available;It is when not in same local area network and video source device is not after network address translation NAT, then same to initiate WAN mouthful and visit It surveys;According to the best link that detection result selection plays, when the corresponding link of detection result is all unstable, selection passes through service The link of device plays, it is ensured that plays the stability of video.The detection mode is UDP detection or Http detection;The UDP detection Are as follows: 10 UDP packets are initiated to destination address, the content of UDP packet need to uniformly be decided through consultation with video source device end, in preset time 3s The response bag for receiving 7 or more, then detect success, and LAN mouthfuls or WAN mouthfuls of links can be used.
It is described to detect LAN mouthfuls and WAN mouthfuls of two kinds of links, preferentially select LAN mouthfuls of links to broadcast when detection result can use It puts.When intelligent terminal or video source device end network environment change, method that the adaptive network need to be re-executed.
In the present invention, video source device information is obtained from triggering, initiation detects to obtain the whole process of detection result It is all asynchronous progress, after change of network environment or equipment are restarted, the optimum link of default is to be played by server Link, avoid play when also etc. detection results, improve play experience.
It is described obtain detection result after, it is unified that detection result is stored in the caching of intelligent terminal, it is quick when for playing It takes.The intelligent terminal can be mobile phone, personal assistant, one kind of the smart machines such as plate.
The video source device can be router, one kind of the first-class gateway of network shooting.It is available when detecting When a certain link plays failure, it is switched to is played out by the link that server plays immediately.
When starting to play when the user clicks, the detection result of caching is taken, is quickly played according to optimum link.Optimum link is non- When the link played by server, after playing failure, the link played by server of converting immediately is steady excessively and to repair Change the optimum link of caching.
Three kinds of representative link topological diagrams as shown in Figures 2 to 4.It is that typical intelligent terminal is direct-connected by WIFI in Fig. 2 AP, that is, LAN mouth of video source device, in the good situation of WIFI connection signal, LAN mouthfuls of detections can lead to, and broadcasting passes through LAN mouthfuls Address plays best;Be typical general home-network linkups mode in Fig. 3: WAN mouthfuls of video source device connect in egress gateways LAN mouthfuls of connection outer nets, intelligent terminal pass through WIFI connection outlet gateway.The WAN at this time in the good situation of WIFI connection signal Mouth detection can lead to, and play and played most preferably by WAN port address.It is complicated network topology in Fig. 4, video source device is connected to After NAT and with intelligent terminal not in same local area network, test detection is unavailable, plays link and is played most by server It is good.If the situation video source device connection in Fig. 4 behind the nat, does not then need to initiate WAN mouthfuls of detections, then by detection result Determine optimal broadcasting link.
In short, the present invention obtains intelligent terminal external IP by a server, the outside of the video source device of video is played IP, LAN port address and WAN port address;Judge video source device whether after network address translation NAT;And pass through intelligence The comparison of the external IP of exterior of terminal IP and video source device learns that the two whether in same local area network, can pass through current network The optimal broadcasting link of environmental selection effectively accelerates the speed that intelligent terminal plays video, reduces the pressure of server, improve and use Family experience.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification, is all covered by the present invention.

Claims (8)

1. a kind of method of adaptive network when intelligent terminal plays video, it is characterised in that: the method are as follows: intelligent terminal is logical It crosses a server and obtains intelligent terminal external IP, play the external IP of the video source device of video, LAN port address and WAN mouthfuls Address;Judge video source device whether after network address translation NAT;And pass through intelligent terminal external IP and video source device External IP comparison both learn that, whether in same local area network, in same local area network and video source device is in network address translation After NAT, LAN mouthfuls of detections and WAN mouthfuls of detections are initiated respectively by intelligent terminal, detection packet loss determines intelligence eventually less than 30% Link between end and video source device is available;When not in same local area network and video source device is not in network address translation NAT Later, then same to initiate WAN mouthfuls of detections;According to the best link that detection result selection plays, when the corresponding link of detection result When all unstable, selection is played by the link of server, it is ensured that plays the stability of video;
LAN mouthfuls and WAN mouthfuls of two kinds of links are detected, LAN mouthfuls of links is preferentially selected to play when detection result can use;Work as intelligence When terminal or video source device end network environment change, method that the adaptive network need to be re-executed.
The method of adaptive network when 2. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: institute Stating detection mode is UDP detection or Http detection;UDP detection are as follows: initiate 10 UDP packets to destination address, UDP packet it is interior Appearance need to uniformly be decided through consultation with video source device end, and 7 or more response bags are received in preset time 3s, then detect success, LAN mouthfuls Or WAN mouthfuls of links are available.
The method of adaptive network when 3. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: institute The information for stating video source device seldom changes, and the information of video source device can uniformly be reported to service after login or network change Device saves, or be stored in video source device itself, it waits intelligent terminal to initiate request and asks for.
The method of adaptive network when 4. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: from Triggering obtains video source device information, and the whole process for initiating to detect to obtain detection result is all asynchronous progress, in network After environmental change or equipment are restarted, the optimum link of default is the link played by server, avoids also existing when playing Etc. detection results, improve play experience.
The method of adaptive network when 5. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: It is unified that detection result is stored in the caching of intelligent terminal to after detection result, it is quickly taken when for playing.
The method of adaptive network when 6. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: institute The intelligent terminal stated is mobile phone or tablet device.
The method of adaptive network when 7. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: institute The video source device stated is the gateway of router or IP Camera.
The method of adaptive network when 8. a kind of intelligent terminal according to claim 1 plays video, it is characterised in that: when When detecting available a certain link broadcasting failure, it is switched to is played out by the link that server plays immediately.
CN201610064333.XA 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video Active CN105656913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610064333.XA CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610064333.XA CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Publications (2)

Publication Number Publication Date
CN105656913A CN105656913A (en) 2016-06-08
CN105656913B true CN105656913B (en) 2019-07-09

Family

ID=56488092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610064333.XA Active CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Country Status (1)

Country Link
CN (1) CN105656913B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862132B (en) * 2019-02-22 2021-08-17 安徽睿极智能科技有限公司 Method for video monitoring platform to adaptively penetrate through different networks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697467B2 (en) * 1995-10-05 2010-04-13 Broadcom Corporation Hierarchical data collection network supporting packetized voice communications among wireless terminals and telephones
CN103259709A (en) * 2013-05-27 2013-08-21 南京邮电大学 End-to-end mobile phone real-time video transmission method based on virtual private network
CN104270603A (en) * 2014-09-18 2015-01-07 福建星网锐捷安防科技有限公司 Method for obtaining video streams and monitoring system
CN105007500A (en) * 2015-07-28 2015-10-28 无锡天脉聚源传媒科技有限公司 Video transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697467B2 (en) * 1995-10-05 2010-04-13 Broadcom Corporation Hierarchical data collection network supporting packetized voice communications among wireless terminals and telephones
CN103259709A (en) * 2013-05-27 2013-08-21 南京邮电大学 End-to-end mobile phone real-time video transmission method based on virtual private network
CN104270603A (en) * 2014-09-18 2015-01-07 福建星网锐捷安防科技有限公司 Method for obtaining video streams and monitoring system
CN105007500A (en) * 2015-07-28 2015-10-28 无锡天脉聚源传媒科技有限公司 Video transmission method and device

Also Published As

Publication number Publication date
CN105656913A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN113676361B (en) On-demand probing for quality of experience metrics
EP3709573B1 (en) Satisfying service level agreement metrics for unknown applications
US11671842B2 (en) Monitor and predict Wi-Fi utilization patterns for dynamic optimization of the operating parameters of nearby ENBS using the same unlicensed spectrum
US9407718B2 (en) Method and system for service discovery and deployment in an IP multimedia network
KR20210037416A (en) Apparatus and method for service detection and analzing service characteristics using network data analytic function in mobile communication system
CN106130913B (en) Routing method of multi-WAN (wide area network) port router based on strategy under condition of multi-operator access
WO2016082588A1 (en) Link connectivity checking method and apparatus
CN103873356B (en) Application and identification method, system and home gateway based on home gateway
CN106550241B (en) Video traffic identifying system and virtualization dispositions method
Abou Haibeh et al. Performance evaluation of VoIP calls over MANET for different voice codecs
CN106303751A (en) A kind of realization method and system orienting flow bag
CN106453149A (en) Wireless WIFI router and method for automatically allocating bandwidths based on user applications
CN101489188B (en) Gateway Discovery Method in Multimedia Sensor Network Access Technology
CN103874229A (en) Data connection establishing method and device
WO2019128989A1 (en) Method for achieving intelligent router quality of service, router and electronic device
US8943179B2 (en) Method and system for generic IP multimedia residential gateways
CN111629024A (en) Data transmission control method and device, storage medium and electronic equipment
CN114945199A (en) Base station device, terminal device, and QoS control method
CN102511155B (en) IP path negotiation method, system and device
US20140204775A1 (en) Route selection method for use where plural heterogeneous networks are available
CN107592554B (en) Live video retransmission method and device
CN105656913B (en) A kind of method of adaptive network when intelligent terminal broadcasting video
CN108400911A (en) A kind of device and method for realizing Micro-BFD agreements
TWI481230B (en) Analyze the data packets to select the connection path for the connection path
US20160295301A1 (en) Communication protocol control method and device in smart tv apparatus

Legal Events

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