CN113746602A - Network real-time call method, device and system - Google Patents

Network real-time call method, device and system Download PDF

Info

Publication number
CN113746602A
CN113746602A CN202111045324.3A CN202111045324A CN113746602A CN 113746602 A CN113746602 A CN 113746602A CN 202111045324 A CN202111045324 A CN 202111045324A CN 113746602 A CN113746602 A CN 113746602A
Authority
CN
China
Prior art keywords
router
session
session information
communication
current session
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
CN202111045324.3A
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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202111045324.3A priority Critical patent/CN113746602A/en
Publication of CN113746602A publication Critical patent/CN113746602A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
    • H04L1/0003Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate by switching between different modulation schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0075Transmission of coding parameters to receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a network real-time call method, a device and a system, relates to the technical field of network communication, and can improve the reliability of data transmission in various application scenes. The technical scheme of the embodiment of the invention comprises the following steps: the controller receives current session information sent by a first router, wherein the current session information is obtained by the first router in a session establishing process between a calling terminal and a called terminal, and the first router is in communication connection with the calling terminal. And then searching target coding parameters from the preset corresponding relation between different session information and different coding parameters, wherein the target coding parameters correspond to the session types included by the current session information and the communication link quality for bearing the current session communication tunnel. Then sending target coding parameters to the first router and the second router; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time conversation process of each party of the conversation based on the target coding parameters.

Description

Network real-time call method, device and system
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method, an apparatus, and a system for real-time network communication.
Background
Real-time Transport Protocol (RTP) is used on the Internet to perform Real-time voice and video calls. Although the transmission delay of the RTP protocol is small, the reliability of data transmission by using the RTP protocol is low, and the phenomena of packet disorder, packet loss and packet repetition often occur, so that the problems of video screen leakage, voice delay and the like occur when a receiving end plays data.
At present, a Forward Error Correction (FEC) technology is usually adopted to encode an original data packet to be transmitted to obtain a redundant packet, and the original data packet and the redundant packet are transmitted through an RTC protocol, so that the problems of packet disorder, packet loss and packet repetition are reduced. The coding scheme for FEC coding in the router is fixed, and there is an effect of improving reliability of data transmission for some application scenarios, but other application scenarios do not achieve the effect of improving reliability. For example: the application scene effect for the voice call of both parties may be good, but the application scene effect for the video call of both parties or the video call of three parties is not good enough.
Therefore, the real-time call method based on the FEC technique with the fixed coding scheme cannot adapt to different application scenarios, and the reliability of data transmission still needs to be improved.
Disclosure of Invention
The embodiment of the invention aims to provide a network real-time call method, a device and a system so as to improve the reliability of data transmission in various application scenes. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a network real-time call method, which is applied to a controller, and the method includes:
receiving current session information sent by a first router, wherein the current session information is obtained by the first router in a session establishment process between a calling terminal and a called terminal, and the current session information comprises the following steps: the session type and the communication link quality of the communication tunnel bearing the current session; the first router is in communication connection with the calling terminal;
searching target coding parameters from the preset corresponding relation between different session information and different coding parameters; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session;
sending the target coding parameter to the first router and a second router, wherein the second router is a router in communication connection with a called terminal; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time communication process of each party of the conversation based on the target coding parameters.
Optionally, the generating manner of the corresponding relationship between the different session information and the different encoding parameters includes:
the method comprises the steps of simulating sessions of different application scenes, setting different encoding parameters aiming at each application scene to obtain packet loss rates corresponding to the different encoding parameters, and taking the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to session information of the application scene, wherein the session information of each application scene is different.
In a second aspect, an embodiment of the present invention provides a network real-time call method, which is applied to a first router communicatively connected to a call terminal, where the method includes:
acquiring current session information in a session establishment process between a calling terminal and a called terminal, wherein the current session information comprises: the session type and the communication link quality of the communication tunnel bearing the current session;
sending current session information to a controller;
receiving target coding parameters sent by the controller; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters;
and performing FEC encoding or decoding on the data message transmitted in the real-time communication process of each party of the conversation based on the target encoding parameter.
Optionally, the step of obtaining current session information in the process of establishing a session between the calling terminal and the called terminal includes:
receiving a calling message sent by the calling terminal, wherein the calling message is used for requesting real-time communication with the called terminal;
and establishing a session with the called terminal based on the call message, and determining current session information.
Optionally, the step of establishing a session with the called terminal based on the call packet and determining current session information includes:
determining the session type of the call message according to the session identifier carried by the call message;
and establishing a session with a called terminal, determining a communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
Optionally, before the step of performing FEC encoding or decoding on the data packet transmitted in the real-time communication process between each party of the session based on the target encoding parameter, the method further includes:
creating a first forwarding policy;
and setting the matching rule of the first forwarding strategy as a destination address as the address of the called terminal, and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
In a third aspect, an embodiment of the present invention provides a network real-time call method, which is applied to a second router in communication connection with a called terminal, where the method includes:
receiving target coding parameters sent by a controller, wherein the target coding parameters correspond to the session type in the current session information and the communication link quality of a communication tunnel bearing the current session and are searched by the controller from the preset corresponding relationship between different session information and different coding parameters;
and performing FEC encoding or decoding on the data message transmitted in the real-time communication process of each party of the conversation based on the target encoding parameter.
Optionally, before the step of performing FEC encoding or decoding on the data packet transmitted in the real-time communication process between each party of the session based on the target encoding parameter, the method further includes:
creating a second forwarding policy;
and setting the matching rule of the second forwarding strategy as a destination address as the address of the called terminal, and setting the coding parameter as the received target coding parameter.
In a fourth aspect, an embodiment of the present invention provides a network real-time call device, which is applied to a controller, and the device includes:
a receiving module, configured to receive current session information sent by a first router, where the current session information is obtained by the first router in a session establishment procedure between a calling terminal and a called terminal, and the receiving module includes: the session type and the communication link quality of the communication tunnel bearing the current session; the first router is in communication connection with the calling terminal;
the searching module is used for searching target coding parameters from the preset corresponding relation between different session information and different coding parameters; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session;
a sending module, configured to send the target encoding parameter to the first router and a second router, where the second router is a router in communication connection with a called terminal; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time communication process of each party of the conversation based on the target coding parameters.
Optionally, the apparatus further includes a generation module, where the generation module is configured to:
the method comprises the steps of simulating sessions of different application scenes, setting different encoding parameters aiming at each application scene to obtain packet loss rates corresponding to the different encoding parameters, and taking the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to session information of the application scene, wherein the session information of each application scene is different.
In a fifth aspect, an embodiment of the present invention provides a network real-time call device, which is applied to a first router communicatively connected to a call terminal, where the device includes:
an obtaining module, configured to obtain current session information in a session establishment procedure between a calling terminal and a called terminal, where the current session information includes: the session type and the communication link quality of the communication tunnel bearing the current session;
the sending module is used for sending the current session information to the controller;
the receiving module is used for receiving the target coding parameters sent by the controller; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters;
and the coding and decoding module is used for carrying out FEC coding or decoding on the data message transmitted in the real-time conversation process of each party of the conversation based on the target coding parameter.
Optionally, the obtaining module is specifically configured to:
receiving a calling message sent by the calling terminal, wherein the calling message is used for requesting real-time communication with the called terminal;
and establishing a session with the called terminal based on the call message, and determining current session information.
Optionally, the obtaining module is specifically configured to:
determining the session type of the call message according to the session identifier carried by the call message;
and establishing a session with a called terminal, determining a communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
Optionally, the apparatus further comprises: a creating module and a setting module;
the creating module is used for creating a first forwarding strategy before the step of FEC encoding or decoding the data message transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameter;
the setting module is used for setting the matching rule of the first forwarding strategy as the destination address as the address of the called terminal and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
In a sixth aspect, an embodiment of the present invention provides a network real-time call device, which is applied to a second router communicatively connected to a called terminal, where the device includes:
a receiving module, configured to receive a target coding parameter sent by a controller, where the target coding parameter corresponds to a session type in current session information and a communication link quality of a communication tunnel carrying the current session, and is searched by the controller from a preset correspondence between different session information and different coding parameters;
and the coding and decoding module is used for carrying out FEC coding or decoding on the data message transmitted in the real-time conversation process of each party of the conversation based on the target coding parameter.
Optionally, the apparatus further comprises: a creating module and a setting module;
the creating module is used for creating a second forwarding strategy before the step of FEC encoding or decoding the data message transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameter;
the setting module is used for setting the matching rule of the second forwarding strategy as the destination address of the called terminal and setting the coding parameter as the received target coding parameter.
In a seventh aspect, an embodiment of the present invention provides a network real-time call system, including a controller, a first router and a second router, where the controller is configured to implement the method in any one of the first aspects, the first router is configured to implement the method in any one of the second aspects, and the second router is configured to implement the method in any one of the third aspects.
In an eighth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any network real-time call method when executing the program stored in the memory.
In a ninth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of any of the above network real-time call methods.
In a tenth aspect, embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above-mentioned network real-time call methods.
According to the network real-time communication method, the device, the system, the electronic equipment and the medium provided by the embodiment of the invention, when the calling terminal and the called terminal carry out real-time communication, the first router and the second router are used for forwarding data messages transmitted between the calling terminal and the called terminal. The controller can search target coding parameters from preset corresponding relations between different session information and different coding parameters based on the session type in the current session information and the communication link quality of the communication tunnel bearing the current session; and the first router and the second router carry out FEC encoding and FEC decoding according to the target encoding parameters. It can be seen that, in the embodiment of the present invention, the encoding parameters used by the first router and the second router are not fixed, and are determined by the controller according to the application scenario, so that the target encoding parameter used in the real-time call process can meet the session type of the current session and the communication link quality of the communication tunnel bearing the current session, and therefore, the embodiment of the present invention can improve the reliability of data transmission in various application scenarios.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by referring to these drawings.
Fig. 1 is an exemplary schematic diagram of a network real-time call system structure according to an embodiment of the present invention;
fig. 2 is a flowchart of a network real-time call method according to an embodiment of the present invention;
fig. 3a is a flowchart of another network real-time communication method according to an embodiment of the present invention;
fig. 3b is a flowchart of another network real-time communication method according to an embodiment of the present invention;
fig. 3c is a flowchart of another network real-time communication method according to an embodiment of the present invention;
fig. 4a is a flowchart of another network real-time communication method according to an embodiment of the present invention;
fig. 4b is a flowchart of another network real-time communication method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network real-time communication device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another network real-time communication device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another network real-time communication device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
In order to improve the reliability of data transmission in various application scenarios, an embodiment of the present invention provides a network real-time communication method, where a system applied in the method includes: a controller, a plurality of user terminals and a plurality of routers. An example of such a system is shown in fig. 1, which includes: the system comprises a controller, 3 user terminals 1-3 and three routers 1-3. Each user terminal is connected to one router, and any router (the router 3 in the figure) is connected to the controller. The controller and the router 3 and the terminals and the routers may be connected by wire or wireless, and the routers may be connected by Internet. Management channels can be established between the controller and the routers through Netconf or Secure Shell (SSH), and the controller can manage each router in the system through the management channels. Netconf is a network configuration protocol based on Extensible Markup Language (XML).
In order to improve reliability of data transmission in various application scenarios, an embodiment of the present invention provides a network real-time communication method, where the method is applied to a controller, and as shown in fig. 2, the method includes the following steps:
s201, receiving the current session information sent by the first router.
The current session information is obtained by the first router in the process of establishing a session between the calling terminal and the called terminal, and the current session information comprises: session type and communication link quality that carries the current session communication tunnel. The first router is a router in communication connection with the call terminal.
Wherein the session type indicates a session type of a session established by the calling terminal and the called terminal. For example, the session types include: two-party audio, two-party video, three-party audio, three-party video, and the like.
The communication tunnel is used for bearing the current session between the first router and the second router. The communication link quality may specifically include: packet loss rate, delay, jitter, etc. of the communication tunnel.
S202, searching target coding parameters from the preset corresponding relation between different session information and different coding parameters.
Wherein the target coding parameter corresponds to the session type in the current session information and the communication link quality for carrying the current session communication tunnel. I.e., the target encoding parameters can conform to the session type of the current session and the communication link quality of the communication tunnel carrying the current session.
Illustratively, the encoding parameters corresponding to the session information include an average packet loss resistance rate, an encoding timeout time, a number of encoded block packets, and a decoding timeout time.
S203, sending the target coding parameters to the first router and the second router so that the first router and the second router can perform FEC coding or decoding on the data messages transmitted in the real-time communication process of each party of the conversation based on the target coding parameters. The second router is connected with the called terminal in a communication mode.
The current session information may include an identification of the communication tunnel such that the controller may determine the second router from the current session information and send the target encoding parameters to the first router and the second router, respectively.
In this embodiment, referring to fig. 1, if the calling terminal is a user terminal 1 and the called terminal is a user terminal 2, the router 1 communicatively connected to the user terminal 1 is a first router, and the router 2 communicatively connected to the user terminal 2 is a second router. The bearer current session communication tunnel may be the communication tunnel between router 1 and router 2 in fig. 1.
According to the network real-time communication method provided by the embodiment of the invention, when the calling terminal and the called terminal carry out real-time communication, the first router and the second router are used for forwarding the data message transmitted between the calling terminal and the called terminal. The controller can search target coding parameters from preset corresponding relations between different session information and different coding parameters based on the session type in the current session information and the communication link quality of the communication tunnel bearing the current session; and the first router and the second router carry out FEC encoding and FEC decoding according to the target encoding parameters. It can be seen that, in the embodiment of the present invention, the encoding parameters used by the first router and the second router are not fixed, and are determined by the controller according to the application scenario, so that the target encoding parameter used in the real-time call process can meet the session type of the current session and the communication link quality of the communication tunnel bearing the current session, and therefore, the embodiment of the present invention can improve the reliability of data transmission in various application scenarios.
Optionally, the generating manner of the correspondence between the different session information and the different encoding parameters may include: and simulating sessions of different application scenes, setting different encoding parameters aiming at each application scene to obtain packet loss rates corresponding to the different encoding parameters, and taking the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to the session information of the application scene. Wherein the session information of each application scenario is different.
In an implementation manner, the controller may send multiple encoding and decoding parameters to two routers for each application scenario, so that the two routers perform FEC encoding or decoding on the transmitted data packet according to each encoding parameter to obtain a packet loss rate corresponding to each encoding parameter, and upload the packet loss rate corresponding to each encoding parameter to the controller. Then, the controller selects the encoding parameter with the minimum packet loss rate as the encoding parameter corresponding to the session information of the application scene aiming at each application scene. Then, the corresponding relation between various session information and the coding parameters is obtained.
The embodiment of the invention can simulate the conversation type and the communication link quality in an actual scene through intelligent analysis system software, and optimize and adjust different coding parameters corresponding to different conversation information, thereby ensuring the reliability of data transmission in different scenes. For example, when both videos have a link impairment of 20%, the transmission reliability is highest when the average packet loss resistance is 30%, the coding timeout time is 200 milliseconds (ms), the number of coded block packets is 40, and the decoding timeout time is 1000ms, and even if there is a link impairment of 20%, the FEC decoding side can recover a complete set of original packets based on the received original packets and redundant packets.
For example, the preset correspondence between different session information and different encoding parameters is shown in table one.
Watch 1
Figure BDA0003250956850000091
The session type and the link impairment in table one belong to session information, and the link impairment can be obtained based on the communication link quality. For example: the packet loss rate is 20%, and the link impairment may be 20%.
In the embodiment of the invention, the messages transmitted and received between the terminals are transmitted in the form of data packets.
The following describes each encoding parameter in table one in detail:
1. average packet loss resistance: for configuring the number of redundant packets generated for a set of original data packets in an FEC encoding technique. The smaller the average packet loss resistance rate is, the smaller the number of generated redundant packets is, and the smaller the bandwidth consumed during transmission is; the larger the average anti-packet loss rate is, the larger the number of generated redundant packets is, and the larger the bandwidth consumed during transmission is. The average packet loss resistance rate is greater than the packet loss rate of the communication tunnel, and the average packet loss resistance rate is greater than the link damage.
2. The number of coded block packets: the FEC encoding is directed to the number of original packets in a set of original packets. The smaller the number of the encoding block packets is, the less the redundancy packets generated by the FEC encoding is, and if the packet loss occurs when the group of original data packets are transmitted, the smaller the time delay for recovering the lost data packets at the FEC decoding side is; the larger the number of the coded block packets is, the more the redundancy packets generated by the FEC coding are, and if the packet loss occurs during the transmission of the original data packet group, the larger the time delay for recovering the lost data packet at the FEC decoding side is.
For example, when the number of coded block packets is 40 and the average packet loss immunity is 30%, 40 original packets are grouped, and FEC coding generates 40 × 30% — 12 redundant packets for a group of original packets.
3. Coding timeout time: the FEC encoding side has the longest time to perform FEC encoding once. The FEC encoding side receives and caches original data packets sent by a terminal, and if the number of the cached original data packets reaches the number of encoding block packets within the encoding timeout duration, the FEC encoding is carried out on the original data packets with the number of the encoding block packets according to the average packet loss resistance rate to generate redundant packets; or when the number of the cached original data packets does not reach the number of the coded block packets when the coding timeout duration is reached, performing FEC coding on the currently cached data message according to the average packet loss resistance rate to generate a redundant packet. And then transmits the original data packet and the redundant packet to the FEC decoding side.
4. Decoding timeout time: the maximum time for one FEC decoding on the FEC decoding side. The FEC decoding side receives and caches original data packets and redundant packets, and if the number of the cached data packets reaches the number of the encoding blocks within the decoding timeout duration, FEC decoding is carried out on the data packets with the number of the encoding blocks to obtain a group of original data packets; or when the number of the cached data packets does not reach the number of the coded block packets when the coding timeout duration is reached, the received original data packets are reserved, and the received redundant packets are discarded. And sending the original data packet to the terminal.
In addition, for the session of the video call type or the video conference type, in the corresponding relationship between different session information and different encoding parameters, in addition to the parameters shown in table one, the session information may also include a camera type, and the flow rates of the data packets generated by different camera types are different. Different camera types correspond to different decoding timeout times. While the session type also affects the decode timeout time.
The embodiment of the invention can configure the corresponding relation between different session information and different coding parameters in the controller after obtaining the corresponding relation between different session information and different coding parameters, and meanwhile, the controller can learn and update the corresponding relation between different session information and different coding parameters.
In the embodiment of the invention, the controller can intelligently and dynamically adjust the FEC encoding and decoding strategy (namely the target encoding parameter) according to the session type and the communication link quality of the communication tunnel, thereby enabling the FEC technology to achieve the best effect in various application scenes.
Based on the same inventive concept, an embodiment of the present invention provides a network real-time call method, which is applied to a first router communicatively connected to a call terminal, as shown in fig. 3a, and includes the following steps:
s301, obtaining current session information in the process of establishing a session between the calling terminal and the called terminal.
Wherein the current session information includes: session type and communication link quality that carries the current session communication tunnel.
In the embodiment of the present invention, after receiving a call packet sent by a calling terminal, a first router sets an Application Layer Gateway (ALG) service flag for the call packet, establishes a session between the calling terminal and a called terminal, and adds a new association table entry in an association table of the first router. The current session information is included in the associated table entry.
And S302, sending the current session information to the controller.
In one embodiment, the controller may subscribe to an ALG session establishment event from the first router, and send current session information to the controller through Netconf after the first router establishes a session and adds an association table entry.
And S303, receiving the target coding parameters sent by the controller.
The target coding parameter corresponds to the session type included in the current session information and the quality of a communication link bearing the current session communication tunnel, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters.
S304, based on the target coding parameter, FEC coding or decoding is carried out on the data message transmitted in the real-time communication process of each party of the conversation.
In the network real-time communication method provided by the embodiment of the invention, when the calling terminal and the called terminal carry out real-time communication, the first router and the second router are used for forwarding the data message transmitted between the calling terminal and the called terminal. The controller can search target coding parameters from preset corresponding relations between different session information and different coding parameters based on the session type in the current session information and the communication link quality of the communication tunnel bearing the current session; and the first router and the second router carry out FEC encoding and FEC decoding according to the target encoding parameters. It can be seen that, in the embodiment of the present invention, the encoding parameters used by the first router and the second router are not fixed, and are determined by the controller according to the application scenario, so that the target encoding parameter used in the real-time call process can meet the session type of the current session and the communication link quality of the communication tunnel bearing the current session, and therefore, the embodiment of the present invention can improve the reliability of data transmission in various application scenarios.
In this embodiment of the present invention, as shown in fig. 3b, the manner of obtaining the current session information in the session establishment process between the calling terminal and the called terminal in S301 may be implemented as follows:
s3011, receiving a call message sent by the calling terminal. The calling message is used for requesting real-time communication with the called terminal.
S3012, based on the call message, establishing a session with the called terminal, and determining current session information.
Optionally, when the session type is two-party audio or two-party video, the number of the called terminal is one; when the conversation type is more than two sides of audio or more than two sides of video, the number of the called terminals is multiple. For example, when the session type is a three-party video, the number of the called terminals is two.
In one embodiment, the first router may determine the session type of the call packet according to the session identifier of the call packet. And establishing a session with the called terminal, determining a current session bearing communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
Optionally, the first router may determine, based on a destination address of the call packet, a second router in communication connection with the called terminal, so as to determine a current session-bearing communication tunnel between the first router and the second router, and sense, through an Intelligent Routing (RIR) module, a communication link quality of the communication tunnel. For example, the communication link quality includes packet loss rate, delay, jitter, and/or the like.
For example, the current session information sent by the first router to the controller is shown in table two:
watch two
Figure BDA0003250956850000121
Figure BDA0003250956850000131
The reporting device is an identifier of a first router that sends the current session information, for example, when the router 1 in fig. 1 is the first router, the identifier of the router 1 is recorded in a reporting device item. The outgoing interface is the outgoing interface of the first router for forwarding the message of the session, the destination address of the session is the address of the called terminal, and the number of the tunnel is the number of the communication tunnel between the first router and the second router.
After the current session information is reported to the controller, the controller searches the target coding parameters corresponding to the current session information from the preset corresponding relationship between different session information and different coding parameters. The target coding parameter may be understood as an optimal FEC coding strategy for communication between the first router and the second router. And the subsequent controller issues the target coding parameters to the first router and the second router.
Before the above step S304, referring to fig. 3c, the first router may further configure an FEC encoding policy for transmitting a data packet transmitted between the calling terminal and the called terminal, including:
s305, creating a first forwarding strategy.
S306, setting the matching rule of the first forwarding strategy as the destination address as the address of the called terminal, and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
Illustratively, the process of setting the first forwarding policy is as follows:
first, a WAAS _ RTP of WAAS RTP class is created on a first router (RouterA) by the following code, and a matching rule is created, wherein the matching rule is User Datagram Protocol (UDP) traffic with a destination address of 2.2.2.2/24.
<RouterA>system-view
[RouterA]waas rtp-class waas_rtp
[RouterA-waasrtpclass-waas_rtp]match udp destination ip-address 2.2.2.2/24
Then, a WAAS policy _ FEC (i.e. a first forwarding policy) is created on the first router through the following codes, an RTP class WAAS _ RTP is referred to, an RTP class WAAS _ RTP optimization mode is designated as FEC, an average packet loss resistance rate is configured to be 30%, an encoding timeout time is 200 milliseconds, and the number of coded block packets is 40.
<RouterA>system-view
[RouterA]waas policy Policy_fec
[RouterA-waaspolicy-policy_fec]rtp-class waas_rtp
[RouterA-waaspolicy-policy_fec-waas_rtp]optimize fec
[RouterA-waaspolicy-policy_fec-waas_rtp]fec average-ratio 30
[RouterA-waaspolicy-policy_fec-waas_rtp]fec encode timeout 200
[RouterA-waaspolicy-policy_fec-waas_rtp]fec block-size 40
It should be noted that the average packet loss resistance rate, the coding timeout time, and the number of coded block packets are target coding parameters sent by the controller, and the target coding parameters sent by the controller are not limited thereto.
Next, the WAAS policy _ fec is applied on the first router's interface GigabitEthernet1/0/1 by the following code.
<RouterA>system-view
[RouterA]interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1]waas apply policy policy_fec
The interface gigabit ethernet1/0/1 is an outgoing interface on the first router for forwarding the data packet sent by the calling terminal to the second router, and the first router can determine the outgoing interface according to the destination address of the calling packet.
After receiving the data message sent by the calling terminal, the subsequent first router performs RTP WAAS policy matching, that is, determines whether the destination address of the data message meets the matching rule of the first forwarding policy.
And if the destination address of the data message is the same as the destination address set in the matching rule, determining that the data message is matched with the first forwarding strategy, creating a fast forwarding table entry of the FEC, and setting a fast forwarding service mark for the data message. The created fast forwarding table entry comprises: quintuple information of the data message and target coding parameters.
Meanwhile, the data message is transmitted in the form of a data packet. The first router receives and caches original data packets sent by the calling terminal, and if the number of the cached original data packets reaches the number of the encoding block packets within the encoding timeout duration, the FEC encoding is carried out on the original data packets of the number of the encoding block packets according to the average packet loss resistance rate to generate redundant packets; or when the number of the cached original data packets does not reach the number of the coded block packets when the coding timeout duration is reached, performing FEC coding on the currently cached data message according to the average packet loss resistance rate to generate a redundant packet. The original data packet and the redundant packet are then sent to the second router.
In the embodiment of the present invention, the first router may adjust the FEC coding scheme in time according to the target coding parameter sent by the controller, so as to improve the reliability of data transmission.
Optionally, the called terminal may further send the data packet to the second router.
On this basis, the second router may be configured with a third forwarding policy, where a matching rule of the third forwarding policy is that the destination address is an address of the calling terminal, and the coding parameter is a target coding parameter. The manner of configuring the third forwarding policy in the second router is similar to the manner of configuring the first forwarding policy in the first router, and reference may be made to the manner of configuring the first forwarding policy in the first router, which is not described herein again.
And after receiving the data message sent by the called terminal, the second router performs FEC coding on the data message based on a third forwarding strategy and sends the coded data message to the first router. And after receiving the coded data message, the first router performs FEC decoding on the data message through the target coding parameter and sends the FEC decoded data message to the calling terminal.
Based on the same inventive concept, an embodiment of the present invention provides a network real-time call method, which is applied to a second router communicatively connected to a called terminal, as shown in fig. 4a, and includes the following steps:
s401, receiving the target coding parameter sent by the controller.
The target coding parameter is corresponding to the session type in the current session information and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters.
S402, based on the target coding parameter, FEC coding or decoding is carried out on the data message transmitted in the real-time communication process of each party of the conversation.
In the network real-time communication method provided by the embodiment of the invention, when the calling terminal and the called terminal carry out real-time communication, the first router and the second router are used for forwarding the data message transmitted between the calling terminal and the called terminal. The controller can search target coding parameters from preset corresponding relations between different session information and different coding parameters based on the session type in the current session information and the communication link quality of the communication tunnel bearing the current session; and the first router and the second router carry out FEC encoding and FEC decoding according to the target encoding parameters. It can be seen that, in the embodiment of the present invention, the encoding parameters used by the first router and the second router are not fixed, and are determined by the controller according to the application scenario, so that the target encoding parameter used in the real-time call process can meet the session type of the current session and the communication link quality of the communication tunnel bearing the current session, and therefore, the embodiment of the present invention can improve the reliability of data transmission in various application scenarios.
Before S402, as shown in fig. 4b, the second router may further configure an FEC decoding policy for transmitting the data packet transmitted between the calling terminal and the called terminal, including:
and S403, creating a second forwarding strategy.
S404, setting the matching rule of the second forwarding strategy as the destination address as the address of the called terminal, and setting the coding parameter as the received target coding parameter.
Illustratively, the process of setting the second forwarding policy is as follows:
first, a WAAS _ RTP class of WAAS _ RTP is created on the second router (RouterB) by the following code and a matching rule is created, wherein the matching rule is UDP traffic with a destination address of 2.2.2.2/24.
<RouterB>system-view
[RouterB]waas rtp-class waas_rtp
[RouterB-waasrtpclass-waas_rtp]match udp destination ip-address 2.2.2.2/24
Then, a WAAS policy _ FEC (i.e. a second forwarding policy) is created on the second router through the following codes, the RTP class WAAS _ RTP is referred to, and the RTP class WAAS _ RTP optimization mode is specified to be FEC, the decoding timeout time is configured to be 1000 milliseconds, and the number of coded block packets is 40.
<RouterB>system-view
[RouterB]waas policy policy_fec
[RouterB-waaspolicy-policy_fec]rtp-class waas_rtp
[RouterB-waaspolicy-policy_fec-waas_rtp]optimize fec
[RouterB-waaspolicy-policy_fec-waas_rtp]fec decode timeout 1000
[RouterB-waaspolicy-policy_fec-waas_rtp]fec block-size 40
The decoding timeout time and the number of coded block packets are target coding parameters transmitted by the controller, and the target coding parameters transmitted by the controller are not limited thereto.
Next, the WAAS policy _ fec is applied on the interface gigabit ethernet1/0/1 of the second router by the following code.
<RouterB>system-view
[RouterB]interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1]waas apply policy policy_fec
The interface gigabit Ethernet1/0/1 is an interface on the second router for receiving the data packet sent by the first router.
And after receiving the data message sent by the first router, the subsequent second router performs RTP-like WAAS policy matching, namely, determines whether the destination address of the data message meets the matching rule of the second forwarding policy.
And if the destination address of the data message is the same as the destination address set in the matching rule, determining that the data message is matched with the second forwarding strategy, and performing FEC decoding on the received data message through the decoding timeout time and the packet number of the coding blocks configured in the second forwarding strategy.
Data messages are transmitted in the form of data packets. And the second router receives and caches the original data packets and the redundant packets sent by the first router, and if the number of the cached data packets reaches the number of the coding block packets within the decoding timeout duration, the FEC decoding is carried out on the data packets with the number of the coding block packets, the lost original data packets are recovered, and a group of complete original data packets are obtained. And then sends the original data packet to the called terminal. Or when the number of the cached data packets does not reach the number of the coded block packets when the coding timeout duration is reached, the received original data packets are reserved, and the received redundant packets are discarded. And transmits the reserved original data packet to the called terminal.
Optionally, the second router may further send the packet loss rate and the average decoding time to the controller according to the FEC decoding condition, so that the controller updates the target coding parameter corresponding to the current session information through intelligent analysis system software according to the packet loss rate and the average decoding time. Therefore, the target coding parameters more conforming to the current session information are obtained, the packet loss rate is reduced, and the reliability of data transmission is improved.
Optionally, the called terminal may further send the data packet to the second router, and the second router performs FEC encoding on the data packet according to the third forwarding policy, and forwards the encoded data packet to the first router.
On this basis, the first router may further configure a fourth forwarding policy, where a matching rule of the fourth forwarding policy is that the destination address is an address of the calling terminal, and the coding parameter is a target coding parameter. The manner of configuring the fourth forwarding policy in the first router is similar to the manner of configuring the second forwarding policy in the second router, and reference may be made to the manner of configuring the second forwarding policy by the second router, which is not described herein again.
And after receiving the data message sent by the second router, the first router performs FEC decoding on the data message based on a fourth forwarding strategy and sends the decoded data message to the calling terminal.
It should be noted that, in the three embodiments of the network real-time communication method provided in the embodiments of the present invention, descriptions of the same steps may refer to each other.
The network real-time communication system provided by the embodiment of the invention can be applied to enterprise networks with branch organizations. Referring to fig. 1, a user terminal 1 and a router 1 therein may be located in a branch office of an enterprise network, in which case the router 1 may be referred to as a branch router. Similarly, the user terminal 2 and the router 2 may be located in another branch of the enterprise network, and the router 2 may also be referred to as a branch router. The user terminal 3 and the router 3 may be located in yet another branch of the enterprise network. Alternatively, the user terminal 3 and the router 3 may be located in a headquarters organization of the enterprise network, and in this case, the router 3 may also be referred to as a headquarters router. By arranging the network real-time call system provided by the embodiment of the invention in an enterprise network, enterprise users can communicate with a headquarter router through each user terminal, the branch routers and the headquarter router, and the reliability of data transmission of different session type applications such as two-party voice call, three-party voice call, voice conference, two-party video call, video conference and the like can be ensured.
Based on the same inventive concept, corresponding to the embodiment of the method applied to the controller, the embodiment of the present invention provides a network real-time communication device applied to the controller, as shown in fig. 5, the device includes: a receiving module 501, a searching module 502 and a sending module 503;
a receiving module 501, configured to receive current session information sent by a first router, where the current session information is obtained by the first router in a session establishment procedure between a calling terminal and a called terminal, and includes: the session type and the communication link quality of the communication tunnel bearing the current session; the first router is in communication connection with the calling terminal;
a searching module 502, configured to search for a target encoding parameter from a preset correspondence between different session information and different encoding parameters; the target coding parameters correspond to the type of the session and the quality of a communication link bearing the current session communication tunnel;
a sending module 503, configured to send the target encoding parameter to a first router and a second router, where the second router is a router in communication connection with the called terminal; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time conversation process of each party of the conversation based on the target coding parameters.
Optionally, the apparatus may further include a generation module, where the generation module is configured to:
the method comprises the steps of simulating sessions of different application scenes, setting different encoding parameters aiming at each application scene to obtain packet loss rates corresponding to the different encoding parameters, and taking the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to session information of the application scene, wherein the session information of each application scene is different.
Based on the same inventive concept, corresponding to an embodiment of a method applied to a first router, an embodiment of the present invention provides a network real-time call device applied to a first router communicatively connected to a call terminal, as shown in fig. 6, where the device includes: an acquisition module 601, a sending module 602, a receiving module 603 and an encoding and decoding module 604;
an obtaining module 601, configured to obtain current session information in a session establishment procedure between a calling terminal and a called terminal, where the current session information includes: the session type and the communication link quality of the communication tunnel bearing the current session;
a sending module 602, configured to send current session information to a controller;
a receiving module 603, configured to receive the target encoding parameter sent by the controller; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters;
and the coding and decoding module 604 is configured to perform FEC coding or decoding on the data packet transmitted in the real-time communication process between each party of the session based on the target coding parameter.
Optionally, the obtaining module 601 is specifically configured to:
receiving a calling message sent by a calling terminal, wherein the calling message is used for requesting real-time communication with a called terminal;
and establishing a session with the called terminal based on the call message, and determining current session information.
Optionally, the obtaining module 601 is specifically configured to:
determining the conversation type of the call message according to the conversation identification carried by the call message;
and establishing a session with the called terminal, determining a communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
Optionally, the apparatus may further include: a creating module and a setting module;
the creating module is used for creating a first forwarding strategy before the step of FEC encoding or decoding of data messages transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameters;
and the setting module is used for setting the matching rule of the first forwarding strategy as the destination address as the address of the called terminal and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
Based on the same inventive concept, corresponding to an embodiment of a method applied to a second router, an embodiment of the present invention provides a network real-time call device applied to a second router communicatively connected to a called terminal, where as shown in fig. 7, the device includes: a receiving module 701 and a coding/decoding module 702;
a receiving module 701, configured to receive a target coding parameter sent by a controller, where the target coding parameter corresponds to a session type in current session information and a communication link quality of a communication tunnel carrying the current session, and is searched by the controller from a preset corresponding relationship between different session information and different coding parameters;
and the coding and decoding module 702 is configured to perform FEC coding or decoding on the data packet transmitted in the real-time communication process between each party of the session based on the target coding parameter.
Optionally, the apparatus further comprises: a creating module and a setting module;
the creating module is used for creating a second forwarding strategy before the step of FEC encoding or decoding the data message transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameter;
and the setting module is used for setting the matching rule of the second forwarding strategy as the destination address as the address of the called terminal and setting the coding parameter as the received target coding parameter.
Based on the same inventive concept, corresponding to the method embodiment, an embodiment of the present invention provides a network real-time communication system, including a controller, a first router and a second router, where the controller is configured to implement a method executed by the controller, the first router is configured to implement a method executed by the first router, and the second router is configured to implement a method executed by the second router.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the method steps in the above-described method embodiments when executing the program stored in the memory 803.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned network real-time call methods.
In another embodiment, a computer program product containing instructions is provided, which when run on a computer causes the computer to execute any of the above embodiments of the network real-time call method.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (17)

1. A network real-time call method is applied to a controller, and comprises the following steps:
receiving current session information sent by a first router, wherein the current session information is obtained by the first router in a session establishment process between a calling terminal and a called terminal, and the current session information comprises the following steps: the session type and the communication link quality of the communication tunnel bearing the current session; the first router is in communication connection with the calling terminal;
searching target coding parameters from the preset corresponding relation between different session information and different coding parameters; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session;
sending the target coding parameter to the first router and a second router, wherein the second router is a router in communication connection with a called terminal; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time communication process of each party of the conversation based on the target coding parameters.
2. The method according to claim 1, wherein the generating manner of the correspondence between the different session information and the different encoding parameters comprises:
the method comprises the steps of simulating sessions of different application scenes, setting different encoding parameters for each application scene to obtain packet loss rates corresponding to the different encoding parameters, and using the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to session information of the application scene, wherein the session information of each application scene is different.
3. A network real-time call method applied to a first router communicatively connected to a calling terminal, the method comprising:
acquiring current session information in a session establishment process between a calling terminal and a called terminal, wherein the current session information comprises: the session type and the communication link quality of the communication tunnel bearing the current session;
sending current session information to a controller;
receiving target coding parameters sent by the controller; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters;
and performing FEC encoding or decoding on the data message transmitted in the real-time communication process of each party of the conversation based on the target encoding parameter.
4. The method of claim 3, wherein the step of obtaining current session information during the session between the calling terminal and the called terminal comprises:
receiving a calling message sent by the calling terminal, wherein the calling message is used for requesting real-time communication with the called terminal;
and establishing a session with the called terminal based on the call message, and determining current session information.
5. The method according to claim 4, wherein the step of establishing a session with the called terminal based on the call packet and determining current session information comprises:
determining the session type of the call message according to the session identifier carried by the call message;
and establishing a session with a called terminal, determining a communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
6. The method according to any of claims 3-5, wherein prior to the step of FEC encoding or decoding the data packets transmitted during the real-time conversation between the parties of the conversation based on the target encoding parameters, the method further comprises:
creating a first forwarding policy;
and setting the matching rule of the first forwarding strategy as a destination address as the address of the called terminal, and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
7. A network real-time call method is applied to a second router which is in communication connection with a called terminal, and the method comprises the following steps:
receiving target coding parameters sent by a controller, wherein the target coding parameters correspond to the session type in the current session information and the communication link quality of a communication tunnel bearing the current session and are searched by the controller from the preset corresponding relationship between different session information and different coding parameters;
and performing FEC encoding or decoding on the data message transmitted in the real-time communication process of each party of the conversation based on the target encoding parameter.
8. The method of claim 7, wherein prior to the step of FEC encoding or decoding data packets transmitted during real-time conversations between parties to the conversation based on the target encoding parameters, the method further comprises:
creating a second forwarding policy;
and setting the matching rule of the second forwarding strategy as a destination address as the address of the called terminal, and setting the coding parameter as the received target coding parameter.
9. A network real-time communication device is applied to a controller, and comprises:
a receiving module, configured to receive current session information sent by a first router, where the current session information is obtained by the first router in a session establishment procedure between a calling terminal and a called terminal, and the receiving module includes: the session type and the communication link quality of the communication tunnel bearing the current session; the first router is in communication connection with the calling terminal;
the searching module is used for searching target coding parameters from the preset corresponding relation between different session information and different coding parameters; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session;
a sending module, configured to send the target encoding parameter to the first router and a second router, where the second router is a router in communication connection with a called terminal; and the first router and the second router carry out FEC coding or decoding on the data messages transmitted in the real-time communication process of each party of the conversation based on the target coding parameters.
10. The apparatus of claim 9, further comprising a generation module configured to:
the method comprises the steps of simulating sessions of different application scenes, setting different encoding parameters aiming at each application scene to obtain packet loss rates corresponding to the different encoding parameters, and taking the encoding parameter corresponding to the minimum packet loss rate as the encoding parameter corresponding to session information of the application scene, wherein the session information of each application scene is different.
11. A network real-time communication device for use with a first router communicatively coupled to a call terminal, the device comprising:
an obtaining module, configured to obtain current session information in a session establishment procedure between a calling terminal and a called terminal, where the current session information includes: the session type and the communication link quality of the communication tunnel bearing the current session;
the sending module is used for sending the current session information to the controller;
the receiving module is used for receiving the target coding parameters sent by the controller; the target coding parameter corresponds to the session type and the communication link quality of the communication tunnel bearing the current session, and is searched by the controller from the preset corresponding relation between different session information and different coding parameters;
and the coding and decoding module is used for carrying out FEC coding or decoding on the data message transmitted in the real-time conversation process of each party of the conversation based on the target coding parameter.
12. The apparatus of claim 11, wherein the obtaining module is specifically configured to:
receiving a calling message sent by the calling terminal, wherein the calling message is used for requesting real-time communication with the called terminal;
and establishing a session with the called terminal based on the call message, and determining current session information.
13. The apparatus of claim 12, wherein the obtaining module is specifically configured to:
determining the session type of the call message according to the session identifier carried by the call message;
and establishing a session with a called terminal, determining a communication tunnel between the first router and the second router according to the destination address of the call message, and acquiring the communication link quality of the communication tunnel.
14. The apparatus according to any one of claims 11-13, further comprising: a creating module and a setting module;
the creating module is used for creating a first forwarding strategy before the step of FEC encoding or decoding the data message transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameter;
the setting module is used for setting the matching rule of the first forwarding strategy as the destination address as the address of the called terminal and setting the coding parameter of the first forwarding strategy as the received target coding parameter.
15. A network real-time communication device, applied to a second router communicatively connected to a called terminal, the device comprising:
a receiving module, configured to receive a target coding parameter sent by a controller, where the target coding parameter corresponds to a session type in current session information and a communication link quality of a communication tunnel carrying the current session, and is searched by the controller from a preset correspondence between different session information and different coding parameters;
and the coding and decoding module is used for carrying out FEC coding or decoding on the data message transmitted in the real-time conversation process of each party of the conversation based on the target coding parameter.
16. The apparatus of claim 15, further comprising: a creating module and a setting module;
the creating module is used for creating a second forwarding strategy before the step of FEC encoding or decoding the data message transmitted in the real-time conversation process of each party of the conversation based on the target encoding parameter;
the setting module is used for setting the matching rule of the second forwarding strategy as the destination address of the called terminal and setting the coding parameter as the received target coding parameter.
17. A network real-time telephony system comprising a controller, a first router and a second router, wherein the controller is configured to implement the method of claim 1 or 2, the first router is configured to implement the method of any one of claims 3-6, and the second router is configured to implement the method of claim 7 or 8.
CN202111045324.3A 2021-09-07 2021-09-07 Network real-time call method, device and system Pending CN113746602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111045324.3A CN113746602A (en) 2021-09-07 2021-09-07 Network real-time call method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111045324.3A CN113746602A (en) 2021-09-07 2021-09-07 Network real-time call method, device and system

Publications (1)

Publication Number Publication Date
CN113746602A true CN113746602A (en) 2021-12-03

Family

ID=78736797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111045324.3A Pending CN113746602A (en) 2021-09-07 2021-09-07 Network real-time call method, device and system

Country Status (1)

Country Link
CN (1) CN113746602A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006679A (en) * 2021-12-30 2022-02-01 北京天维信通科技有限公司 Data processing method and device combining FEC technology with intelligent routing
CN114866314A (en) * 2022-04-29 2022-08-05 苏州雄立科技有限公司 Routing method of session data packet

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006679A (en) * 2021-12-30 2022-02-01 北京天维信通科技有限公司 Data processing method and device combining FEC technology with intelligent routing
CN114006679B (en) * 2021-12-30 2022-09-27 北京天维信通科技有限公司 Data processing method and device combining FEC technology with intelligent routing
CN114866314A (en) * 2022-04-29 2022-08-05 苏州雄立科技有限公司 Routing method of session data packet
CN114866314B (en) * 2022-04-29 2024-05-14 苏州雄立科技有限公司 Routing method of session data packet

Similar Documents

Publication Publication Date Title
US8713167B1 (en) Distributive data capture
US9660954B2 (en) VOIP routing based on RTP server-to-server routing
US10470000B2 (en) Methods and apparatus for enhanced MBMS content provisioning and content ingestion
CN109040658B (en) Conference control method and device
CN109068186B (en) Method and device for processing packet loss rate
US11032122B2 (en) Multicast delay diagnosis method and apparatus
CN113746602A (en) Network real-time call method, device and system
EP3501145B1 (en) Fast access telecommunication tunnel cloning
US10382504B2 (en) Conducting a conference call over a computer network
WO2018176496A1 (en) Iptv service quality detection method, device and system
CN109561072B (en) Link detection method and system
US10412126B2 (en) Detection and auto-correction of talk path problems in communication sessions
US20180262355A1 (en) Method for multicast packet transmission in software defined networks
CN110430385B (en) Video conference processing method, device and storage medium
CN111614927A (en) Video session establishment method, device, electronic equipment and storage medium
CN116915688B (en) Data transmission method and system of real-time audio and video transmission network
CN103684970A (en) Transmission method and thin terminals for media data streams
CN111245733B (en) Data transmission method and device
CN116325659A (en) Method, system and computer readable medium for routing of lawful interception packets
US8861520B1 (en) Packet cloning for enhanced delivery of communication from a source device to one or more destination devices
US8644138B2 (en) Method, computer program product, and apparatus for deriving intelligence from format change requests
US20220329986A1 (en) Multicast service implementation method and apparatus, and communications device
CN110099025B (en) Call method and device based on video networking
US8526315B2 (en) Flow state attributes for producing media flow statistics at a network node
US11178006B2 (en) Replacement of collaboration endpoints

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