CN108337388A - Voip communications method and router - Google Patents

Voip communications method and router Download PDF

Info

Publication number
CN108337388A
CN108337388A CN201710044294.1A CN201710044294A CN108337388A CN 108337388 A CN108337388 A CN 108337388A CN 201710044294 A CN201710044294 A CN 201710044294A CN 108337388 A CN108337388 A CN 108337388A
Authority
CN
China
Prior art keywords
data packet
communication path
time
server
response server
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.)
Pending
Application number
CN201710044294.1A
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.)
Nanning Fulian Fugui Precision Industrial Co Ltd
Original Assignee
Nanning Fugui Precision Industrial 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 Nanning Fugui Precision Industrial Co Ltd filed Critical Nanning Fugui Precision Industrial Co Ltd
Priority to CN201710044294.1A priority Critical patent/CN108337388A/en
Publication of CN108337388A publication Critical patent/CN108337388A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0075Details of addressing, directories or routing tables
    • 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/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/4228Systems providing special services or facilities to subscribers in networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Abstract

Network telephone communication means provided by the invention is applied to the router connected with the networking telephone (Voice over Internet Protocol, VoIP) client.When detecting VoIP client and being in off hook state, the response server on every communication path sends the first data packet of time used in the first time information for carrying mark sending time and control response server the first data packet of calculation processing;Receive second data packet for including the processing time that the response server is sent, and the second temporal information of the receiving time of the second data packet of mark is generated when receiving the second data packet, to obtain accurate two-way time of first data packet in each path;And according to the exhalation path that the length of accurate two-way time is the VoIP client one optimal quality of selection.The present invention also provides a kind of routers.VoIP communication means and router provided by the invention, two-way time of the calculated data packet on every communication path are more accurate so that the quality for the communication path selected is more reliable.

Description

Voip communications method and router
Technical field
The present embodiments relate to the communications field, more particularly to a kind of networking telephone (Voice over Internet Protocol, VoIP) communication means and router.
Background technology
Time delay is to evaluate the basic index of network performance.Latency measurement is in necks such as network performance detection, user's behaviors analysis It has a very wide range of applications in domain.In network performance detection, round-trip delay is often that one of reaction network state is important Index.Round-trip delay is generally by the transmission time of source to destination, the processing time of purpose end equipment and destination to source Transmission time, this three parts composition, but since the processing time of purpose end equipment is not that data packet is passed through in a network Time.Therefore, the round-trip delay for containing processing time can not real reaction network situation.However, existing time delay is surveyed Round-trip delay measured by amount tool Ping does not remove the processing time, results in the inaccuracy of measured value.
Invention content
In view of the foregoing, it is necessary to a kind of VoIP communication means be provided, by transmission, reception and generate the carrying time The data packet of information to obtain data packet in the processing time of purpose end equipment, and calculates data packet in every communication path On accurate round-trip delay, to according to the calculated accurate round-trip delay select optimal communication path.
In view of the foregoing, it there is a need to and a kind of router be provided, by transmission, reception and generate carrying temporal information Data packet, to obtain data packet in the processing time of purpose end equipment, and calculate data packet on every communication path Accurate round-trip delay, to select optimal communication path according to the calculated accurate round-trip delay.
The embodiment of the present invention provides a kind of voip communications method, is applied in router, the router is connected to At least one VoIP client.The router is connected to the first phone by the first communication path and the second communication path Proxy server and the second telephony proxy server, first communication path and the second communication path respectively include response clothes Business device, the communication means include:
When detecting that the VoIP client is in off hook state, respectively to the first communication path and the second communication path On response server send the first data packet, first data packet carry mark sending time first time information and Information is controlled, the control information is used to indicate the response server and calculates reception first data packet and send for ringing Answer the time difference between the second data packet of first data packet;It receives on first communication path and the second communication path The response server send include second data packet of the time difference, and generate and identify second data packet Receiving time the second temporal information;According to the first time information, the time difference and second temporal information Calculate separately the two-way time of first data packet on first communication path and the second communication path;And described in comparing The two-way time of first data packet on first communication path and the second communication path selects shortest one of two-way time Exhalation path of the communication path as the VoIP client, and described in the VoIP client is registered on the path Telephony proxy server.
The embodiment of the present invention also provides a kind of router, is connected at least one VoIP client.The router passes through First communication path and the second communication path are connected to the first telephony proxy server and the second telephony proxy server.Institute It states the first communication path and the second communication path respectively includes a response server, the router includes detecting module, sends Module, receiving module, computing module and selection registration module.
The detecting module detects whether the VoIP client is in off hook state.It is plucked when the VoIP client is in When machine state, response server on first communication path and the second communication path sends the to the sending module respectively One data packet, first data packet carry the first time information of mark sending time and are used to indicate the response service Device calculates the time difference received between the second data packet of first data packet and transmission for responding first data packet. What the receiving module received the transmission of the response server on first communication path and the second communication path includes institute Second data packet of time difference is stated, and generates the second temporal information of the receiving time for identifying second data packet.Institute It states computing module and calculates separately described first according to the first time information, the time difference and second temporal information The two-way time of the first data packet on communication path and the second communication path.The more calculated institute of selection registration module The two-way time of first data packet on the first communication path and the second communication path is stated, two-way time shortest one is selected Exhalation path of the communication path as the VoIP client, and the VoIP client is registered to the institute on the path State telephony proxy server.
Compared to the prior art, VoIP communication means and router provided in an embodiment of the present invention are detecting VoIP visitors When family end is in off hook state, when the response server on every communication path sends carry mark sending time first Between the time used in information and control response server the first data packet of calculation processing the first data packet, receive the response and service Second data packet for including the processing time that device is sent, and the second number of mark is generated when receiving the second data packet Lead to obtain accurate two-way time of first data packet in each path according to the second temporal information of the receiving time of packet The length of the accurate two-way time for crossing more each path judges the network state of each path, is selected for the VoIP client One optimal exhalation path.
Certainly, this known operator can know more about other benefits or other of the embodiment of the present invention upon review of the specification Purpose.
Description of the drawings
Fig. 1 is the schematic diagram of the VoIP communication systems of the embodiment of the present invention.
Fig. 2 is the functional block diagram of the router of the embodiment of the present invention.
Fig. 3 is the step flow chart of the VoIP communication means of one embodiment of the invention.
Fig. 4 is the step flow chart of the VoIP communication means of another embodiment of the present invention.
Main element symbol description
Following specific implementation mode will be further illustrated the present invention in conjunction with above-mentioned attached drawing.
VoIP communication systems 1
VoIP client 2
Router 3
Interchanger center 4
Arbitrating server 5
Communication path 6
Response server 7
Route selection system 10
Processor 20
Memory 30
Detecting module 100
Sending module 200
Receiving module 300
Computing module 400
Select registration module 500
Specific implementation mode
It is the schematic diagram of the VoIP communication systems of the present invention with reference to figure 1.VoIP communication systems 1 include at least one VoIP Client 2, router 3, telephony proxy server 4 and arbitrating server 5.VoIP routers 3 are distinguished by communication path 6A, 6B It is connected at least two telephony proxy server 4A, 4B.Communication path 6A includes a response server 7A, and communication path 6B includes One response server 7B.
Router 3 is connected to VoIP client 2, arbitrating server 5, response server 7A and response server 7B. Response server 7A and response server 7B is communicated to connect with telephony proxy server 4, response server 7A and response server 7B is used to receive and process the data packet of the transmission of VoIP routers 3.Arbitrating server 5 takes with response server 7A and response respectively The 7B communication connections of business device, and the data-handling capacity of response server 7A and response server 7B are monitored in real time.
As shown in Fig. 2, being the functional block diagram of the router of the embodiment of the present invention.Router 3 includes route selection system 10, processor 20 and memory 30.Route selection system 10 include detecting module 100, sending module 200, receiving module 300, Computing module 400 and selection registration module 500.Module 100-500 is configured to by least one processor (such as the present embodiment Processor 20) execute, to complete the embodiment of the present invention.Relative program generation of the memory 30 for store path selection system 10 Code data.
Detecting module 100 detects whether VoIP client 2 is in off hook state, wherein off hook state is that user picks up electricity The receiver of phone or state when pressing hands-free.
When detecting module 100, which detects VoIP client 2, is in off hook state, sending module can service first to response Device sending time synchronic command so that the time synchronization between router 3 and response server 7, secondly, send module 200 to Response server 7 on every communication path 6 sends the first data packet respectively, the first data packet carry first time information and Control information.First data packet can be under Internet protocol sixth version (Internet Protocol Version 6, IPv6) Internet Control Message Protocol (Internet Control Message Protocol, ICMP) data packet.First time information It can be timestamp, the destination option message (Destination Options Header) of IPv6 data packets can be carried on In.
First time information is for identifying sending time T1, control information calculates for control response server 7 and receives the The time T of one data packet2With the time T for sending the second data packet for responding the first data packet3Between time difference Δ T (Δ T=T3-T2), calculated time difference Δ T is the time used in the first data packet of processing of response server 7.
What receiving module 300 received the transmission of the response server 7 on every communication path 6 includes calculated time difference Δ The second data packet of T, and the second temporal information is generated, to identify the receiving time T of the second data packet4.After this, it calculates Module 300 is according to the sending time T for identifying the first data packet1First time information, identify the second data packet receiving time T4 The second temporal information and the first data packet receiving time T2With the sending time T of the second data packet3Between time difference Δ T, Pass through formula T=T4-ΔT-T1, calculate accurate round-trip delay value T of first data packet on every communication path 6.
Accurate round-trip delay value of the selecting module 400 according to calculated first data packet on every communication path 6, choosing Select exhalation path of the shortest communication path of accurate round-trip delay value as VoIP client 2, and by 2 note of VoIP client Volume to it is selected go out communication path 6 on telephony proxy server 4 in.
In one embodiment, when VoIP client 2 passes through three communication paths 6 and three telephony proxy servers 4 respectively Connection, and computing module 300 has calculated that accurate round-trip delay T of first data packet on three paths 6 is respectively When 27.84ms, 22.32ms and 29.68ms, selects registration module 400 according to three round-trip delay values, select round-trip delay Optimal exhalation path of the communication path as VoIP client 2 that value is 22.32ms, and described in VoIP client 2 is registered to Telephony proxy server 4 on communication path, the phone to carry out VoIP client by this communication path breathe out.
In one embodiment, it sends module 200 and sends carrying respectively in the response server 7 on every communication path 6 Before the first data packet for having first time information and control information, third data packet also is sent to arbitrating server 5, so that secondary It cuts out server 5 and a sequence list is generated according to the data-handling capacity of each response server 7, and the sequence list of generation is returned To router 3, so that sending module 200 sends the according to response server 7 of the sequence list of passback on every communication path 6 One data packet, to reduce network congestion.Sequence list includes the Internet protocol (Internet of each response server 7 Protocol, IP) address and sending module 200 should send the correspondence between the time T0 of the first data packet.
Similarly, it before sending module 200 sends the first data packet, can also be taken respectively to response server 7 and arbitration Business 5 sending time synchronic command of device, so that the time synchronization between router 3, response server 7 and arbitrating server 5.
Fig. 3 is the step flow chart of the VoIP communication means of one embodiment of the invention.
Whether step S300, detecting VoIP client are in off hook state.
Step S302, when VoIP client is in off hook state, the response server on every communication path respectively Sending time synchronic command, so that the time synchronization between router and all response servers.
Step S304, response server the first data packet of transmission on every communication path, the first data packet are taken respectively Band first time information and control information.First time information is used to identify the sending time of the first data packet, and control information is used Second data packet of the time for receiving the first data packet with transmission for responding the first data packet is calculated in instruction response server Time between time difference.
Step S306 receives the second data packet comprising the time difference that the response server on every communication path is sent, And generate the second temporal information of the receiving time of the second data packet of mark.
Step S308 calculates separately every communication path according to first time information, time difference and the second temporal information On the first data packet accurate two-way time.
Step S310 compares accurate two-way time of first data packet on every communication path, when selection is accurate round-trip Between exhalation path of the shortest communication path as VoIP client, and the VoIP client is registered to the path On telephony proxy server.
Fig. 4 is the step flow chart of the VoIP communication means of another embodiment of the present invention.
Whether step S400, detecting VoIP client are in off hook state.
Step S402, when the VoIP client is in off hook state, respectively to response server and arbitrating server Sending time synchronic command, so that the time synchronization between router, response server and arbitrating server.
Step S404 sends third data packet, so that arbitrating server is according to each response server to arbitrating server Data-handling capacity generate a sequence list, and by the sequence list of generation return.
Step S406, according to the sequence list that arbitrating server returns, the respectively response server on every communication path The first data packet is sent, the first data packet carries first time information and control information.First time information is for identifying first The sending time of data packet, the time that control information is used to indicate response server calculating the first data packet of reception are used for transmission Respond the time difference between the time of the second data packet of the first data packet.
Step S408 receives the second data packet comprising the time difference that the response server on every communication path is sent, And generate the second temporal information of the receiving time of the second data packet of mark.
Step S410 correspondingly calculates every communication lines according to first time information, time difference and the second temporal information The accurate two-way time of the first data packet on diameter.
Step S412 compares accurate two-way time of first data packet on every communication path, when selection is accurate round-trip Between exhalation path of the shortest communication path as VoIP client, and the VoIP client is registered to the path On telephony proxy server.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although with reference to preferred embodiment to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that, it can modify to technical scheme of the present invention Or equivalent replacement, without departing from the spirit of the technical scheme of the invention and range.

Claims (6)

1. a kind of voip communications method is applied in router, the router is connected at least one VoIP client, It is characterized in that, the router is connected to the first call agent service by the first communication path and the second communication path Device and the second telephony proxy server, first communication path and the second communication path respectively include a response server, institute Stating communication means includes:
When detecting that the VoIP client is in off hook state, respectively on the first communication path and the second communication path Response server sends the first data packet, and first data packet carries first time information and the control of mark sending time Information, the control information are used to indicate the response server and calculate reception first data packet and send for responding State the time difference between the second data packet of the first data packet;
Receive the response server transmission on first communication path and the second communication path includes the time difference Second data packet, and generate the second temporal information of the receiving time for identifying second data packet;
First communication lines are calculated separately according to the first time information, the time difference and second temporal information The two-way time of first data packet on diameter and the second communication path;And
The two-way time for comparing first data packet on first communication path and the second communication path, when selecting round-trip Between exhalation path of the shortest communication path as the VoIP client, and the VoIP client is registered to described The telephony proxy server on path.
2. the communication means as described in claim 1, which is characterized in that the router also with an arbitrating server communication link It connects, the arbitrating server communicates phase with first communication path with the response server on the second communication path respectively Even, and the data-handling capacity of the response server is monitored in real time, further include step before the forwarding step:
Third data packet is sent to the arbitrating server, so that the arbitrating server is according to first communication path and the The data-handling capacity of the response server on two communication paths generate an IP address comprising the response server and First data packet should sending time correspondence sequence list, and the sequence list is returned, so as to according to described suitable The response server on first communication path and the second communication path sends first data packet to sequence table respectively.
3. communication means as claimed in claim 2, which is characterized in that first data packet is the ICMP numbers under IPv6 agreements According to packet.
4. a kind of router is connected at least one VoIP client, which is characterized in that the router passes through the first communication lines Diameter and the second communication path are connected to the first telephony proxy server and the second telephony proxy server, first communication Path respectively includes a response server with the second communication path, and the router includes:
Detecting module, for detecting whether the VoIP client is in off hook state;
Sending module is used for when the VoIP client is in off hook state, respectively to first communication path and second Response server on communication path sends the first data packet, when first data packet carries the first of mark sending time Between information and be used to indicate the response server and calculate and receive first data packet and send for responding first number According to the time difference between the second data packet of packet;
Receiving module, the packet for receiving the transmission of the response server on first communication path and the second communication path Second data packet containing the time difference, and generate the second time letter for the receiving time for identifying second data packet Breath;
Computing module, for being calculated separately according to the first time information, the time difference and second temporal information The two-way time of the first data packet on first communication path and the second communication path;And
Select registration module, first data packet on more calculated first communication path and the second communication path Two-way time, select exhalation path of the two-way time shortest communication path as the VoIP client, and by institute State the telephony proxy server that VoIP client is registered on the path.
5. router as claimed in claim 4, which is characterized in that the router is also communicated to connect with an arbitrating server, The arbitrating server is connected with first communication path with the response server communication on the second communication path respectively, And the data-handling capacity of the response server is monitored in real time, the sending module is additionally operable to:
The response server on first communication path and the second communication path respectively send the first data packet it Before, third data packet is sent to the arbitrating server, so that data of the arbitrating server according to the response server Processing capacity generate an IP address comprising the response server and first data packet should the corresponding of sending time close It is sequence list, and the sequence list is returned, is communicated respectively to first communication path with second according to the sequence list The response server on path sends first data packet.
6. router as claimed in claim 5, which is characterized in that first data packet is the ICMP data under IPv6 agreements Packet.
CN201710044294.1A 2017-01-19 2017-01-19 Voip communications method and router Pending CN108337388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710044294.1A CN108337388A (en) 2017-01-19 2017-01-19 Voip communications method and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710044294.1A CN108337388A (en) 2017-01-19 2017-01-19 Voip communications method and router

Publications (1)

Publication Number Publication Date
CN108337388A true CN108337388A (en) 2018-07-27

Family

ID=62922172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710044294.1A Pending CN108337388A (en) 2017-01-19 2017-01-19 Voip communications method and router

Country Status (1)

Country Link
CN (1) CN108337388A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802898A (en) * 2019-02-01 2019-05-24 深圳市比速智网技术有限公司 Multilink data transmission method, reception device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030125044A1 (en) * 2001-12-27 2003-07-03 Deloach James D. Automation of maintenance and improvement of location service parameters in a data base of a wireless mobile communication system
CN101631015A (en) * 2008-07-18 2010-01-20 郑州威科姆科技股份有限公司 Method for calibrating time tag of network time service
CN103427935A (en) * 2012-05-16 2013-12-04 中国科学院声学研究所 Network delay measuring method and system for eliminating position errors
CN104144088A (en) * 2014-07-24 2014-11-12 重庆邮电大学 Network delay measuring method with delay measuring accuracy improved

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030125044A1 (en) * 2001-12-27 2003-07-03 Deloach James D. Automation of maintenance and improvement of location service parameters in a data base of a wireless mobile communication system
CN101631015A (en) * 2008-07-18 2010-01-20 郑州威科姆科技股份有限公司 Method for calibrating time tag of network time service
CN103427935A (en) * 2012-05-16 2013-12-04 中国科学院声学研究所 Network delay measuring method and system for eliminating position errors
CN104144088A (en) * 2014-07-24 2014-11-12 重庆邮电大学 Network delay measuring method with delay measuring accuracy improved

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802898A (en) * 2019-02-01 2019-05-24 深圳市比速智网技术有限公司 Multilink data transmission method, reception device and storage medium

Similar Documents

Publication Publication Date Title
EP2057784B1 (en) Improved traceroute using address request messages
US11388292B2 (en) Monitoring voice-over-IP performance over the internet
US20090296588A1 (en) Network verification system
US20030185210A1 (en) Monitoring quality of service in a packet-based network
CN101547063B (en) Method and system for testing forward delay
US8923142B2 (en) Passive monitoring of network performance
KR20050014308A (en) method and apparatus for packet processing in WLAN access point
CN1773993B (en) Session relay equipment and session relay method
JP2006324945A (en) Communication terminal apparatus
CN108513703B (en) Network performance detection method and device
CN111803925A (en) Scheduling method and device of forwarding server of cloud game and readable storage medium
CN110519103A (en) A kind of Fault Locating Method of heterogeneous network, device and terminal
US20100067414A1 (en) Communication Control Apparatus, Wireless Communication Apparatus, Communication Control Method, and Wireless Communication Method
CN110784378B (en) Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN108337388A (en) Voip communications method and router
CN106817267A (en) A kind of fault detection method and equipment
JP4798495B2 (en) Video distribution quality measurement system, apparatus and method
WO2010106651A1 (en) Pathway analyzer
KR20070088723A (en) Communication device, routing method, and program
CN111600798B (en) Method and equipment for sending and obtaining assertion message
JP3872311B2 (en) NETWORK QUALITY MANAGEMENT METHOD, ITS DEVICE, ITS PROGRAM, AND MEDIUM CONTAINING THE PROGRAM
CN111182607A (en) Double-path forwarding acceleration method based on 4G router
JP4165335B2 (en) Delay time measuring device, jitter tolerance measuring device, and speech quality evaluation device using them
CN101026563A (en) Method, device and system for obtaining route expense
JP2006174156A (en) Network congestion scale determining method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180727