CN116647308A - Data transmission method, device and signaling service system - Google Patents

Data transmission method, device and signaling service system Download PDF

Info

Publication number
CN116647308A
CN116647308A CN202310664797.4A CN202310664797A CN116647308A CN 116647308 A CN116647308 A CN 116647308A CN 202310664797 A CN202310664797 A CN 202310664797A CN 116647308 A CN116647308 A CN 116647308A
Authority
CN
China
Prior art keywords
packet
keep
alive
network state
receiving
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
CN202310664797.4A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202310664797.4A priority Critical patent/CN116647308A/en
Publication of CN116647308A publication Critical patent/CN116647308A/en
Pending legal-status Critical Current

Links

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/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • 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/1096Supplementary features, e.g. call forwarding or call holding
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a data transmission method, a data transmission device and a signaling service system, and relates to the technical field of data transmission. The method comprises the steps that keep-alive packets sent by a forwarding client of a receiving switch at regular time are received; analyzing the keep-alive packet to obtain network state field information in the keep-alive packet; and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information. The method acquires the network state of the client based on the keep-alive mechanism of the SIP protocol so as to dynamically adjust the packet receiving and encoding and decoding strategies, obtain better transmission effect, and solve the problem that the transmission effect is poor because the existing method cannot know the network state.

Description

Data transmission method, device and signaling service system
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission device, and a signaling service system.
Background
After finishing the signaling interaction control of the UA and the US, the current general SIP signaling service system obviously lacks the control of both sides of media transmission, for example, the network state of the sending end can only roughly judge the packet loss rate obtained by calculating according to the number of data packets received by the receiving end, thereby causing poor transmission effect.
Disclosure of Invention
The embodiment of the application aims to provide a data transmission method, a data transmission device and a signaling service system, wherein a keep-alive mechanism based on an SIP protocol is used for acquiring the network state of a client so as to dynamically adjust a packet receiving and encoding and decoding strategy to acquire a better transmission effect, and the problem that the transmission effect is poor due to the fact that the network state cannot be known in the existing method is solved.
The embodiment of the application provides a data transmission method, which is applied to a receiving end and comprises the following steps:
the receiving exchanger forwards keep-alive packets sent by the client at regular time;
analyzing the keep-alive packet to obtain network state field information in the keep-alive packet;
and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
In the implementation process, based on the keep-alive mechanism of the SIP protocol, the client sends the keep-alive packets periodically, the receiving end can determine the current network state according to the keep-alive packets, so that the receiving and encoding/decoding strategies are dynamically adjusted according to the network state, the data packets are better received, the receiving and encoding/decoding based on the self-adaptive bandwidth are realized, the better transmission effect is obtained, and the problem that the transmission effect is poor due to the fact that the network state cannot be known in the existing method is solved.
Further, the parsing the keep-alive packet to obtain network status field information in the keep-alive packet includes:
and analyzing the keep-alive packet to obtain network state information and pre-transmission data packet information of the client in the keep-alive packet.
In the implementation process, when the client performs signaling interaction, new network state field information is added in the keep-alive packet, and the receiving end can accurately acquire the current network state according to the network state field information so as to dynamically adjust the packet receiving and decoding strategies according to the current network state.
Further, the dynamically adjusting the packet receiving and encoding and decoding strategies based on the network status field information includes:
acquiring the packet loss rate and the bit rate at the current moment;
and dynamically adjusting the sending size and decoding strategy of the subsequent data packet based on the packet loss rate, the bit rate, the network state information of the client and the pre-transmission data packet information.
In the implementation process, the network status field information comprises broadband information and the size and number of the data packets to be transmitted subsequently, and can be dynamically adjusted according to the information, the packet loss rate and the bit rate, so that the packet receiving, encoding and decoding of the self-adaptive bandwidth are realized, and a good transmission effect is obtained.
Further, the dynamically adjusting the packet receiving and encoding and decoding strategies based on the network status field information includes:
and changing the network connection mode when receiving the packet based on the network state information of the client.
In the implementation process, the network connection mode can be better under the condition of poor network environment, so that the transmission effect is improved.
The embodiment of the application also provides a data transmission device, which is applied to a receiving end and comprises:
the receiving module is used for receiving keep-alive packets sent by the forwarding client of the switch at regular time;
the analysis module is used for analyzing the keep-alive packet to obtain network state field information in the keep-alive packet;
and the dynamic adjustment module is used for dynamically adjusting the packet receiving and encoding and decoding strategies based on the network state field information.
In the implementation process, based on the keep-alive mechanism of the SIP protocol, the client sends the keep-alive packets periodically, the receiving end can determine the current network state according to the keep-alive packets, so that the receiving and encoding/decoding strategies are dynamically adjusted according to the network state, the data packets are better received, the receiving and encoding/decoding based on the self-adaptive bandwidth are realized, the better transmission effect is obtained, and the problem that the transmission effect is poor due to the fact that the network state cannot be known in the existing method is solved.
Further, the parsing module includes:
and the field acquisition module is used for analyzing the keep-alive packet to acquire network state information and pre-transmission data packet information of the client in the keep-alive packet.
In the implementation process, when the client performs signaling interaction, new network state field information is added in the keep-alive packet, and the receiving end can accurately acquire the current network state according to the network state field information so as to dynamically adjust the packet receiving and decoding strategies according to the current network state.
The embodiment of the application also provides a signaling service system, which comprises:
the client is connected to the switch through network address conversion and an open source SIP server, and periodically transmits a keep-alive packet to the switch through a keep-alive mechanism of an SIP protocol after network state field information is added into the keep-alive packet;
the switch forwards the received keep-alive packet to the receiving end;
the receiving end analyzes the keep-alive packet to obtain network state field information in the keep-alive packet; and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
In the implementation process, based on the keep-alive mechanism of the SIP protocol, the client sends the keep-alive packets periodically, the receiving end can determine the current network state according to the keep-alive packets, so that the receiving and encoding/decoding strategies are dynamically adjusted according to the network state, the data packets are better received, the receiving and encoding/decoding based on the self-adaptive bandwidth are realized, the better transmission effect is obtained, and the problem that the transmission effect is poor due to the fact that the network state cannot be known in the existing method is solved.
Further, the system further comprises:
and the database is used for storing and backing up all the session control states so as to restore all the session control states when the machine is down.
In the implementation process, because the session control state and the network of the switch are separable, all session control states are backed up and stored in the database, and can be quickly recovered when the switch is down without reestablishing the session control state, thereby realizing quick recovery of data when the switch is down.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic equipment to execute the data transmission method of any one of the above steps.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores computer program instructions, and when the computer program instructions are read and run by a processor, the data transmission method of any one of the above is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating dynamic adjustment according to an embodiment of the present application;
fig. 3 is a block diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is a block diagram of another data transmission device according to an embodiment of the present application;
fig. 5 is a block diagram of a signaling service system according to an embodiment of the present application.
Icon:
100-a receiving module; 200-an analysis module; 201-a field acquisition module; 300-a dynamic adjustment module; 301-a packet data acquisition module; 302-an adjustment module; 303-connection mode replacement module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a flowchart of a data transmission method according to an embodiment of the present application.
In the prior art, the network state of the transmitting end can only be roughly judged by the packet loss rate, and the two interacting parties can not dynamically adjust the packet sending or change the packet receiving strategy according to the real-time network condition so as to obtain the best transmission effect.
The method specifically comprises the following steps:
step S100: the receiving exchanger forwards keep-alive packets sent by the client at regular time;
step S200: analyzing the keep-alive packet to obtain network state field information in the keep-alive packet;
step S300: and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
Based on a keep-alive mechanism of an SIP protocol (Session Initiation Protocol, which is a signaling control protocol of an application layer), a client can periodically send keep-alive packets, and a receiving end can determine a current network state according to the keep-alive packets, so that a packet receiving and encoding and decoding strategy is dynamically adjusted according to the network state, and a data packet is better received, the packet receiving and encoding and decoding based on self-adaptive bandwidth are realized, a better transmission effect is obtained, and the problem that the transmission effect is poor due to the fact that the network state cannot be known by the existing method is solved.
The step S200 specifically includes:
and analyzing the keep-alive packet to obtain network state information and pre-transmission data packet information of the client in the keep-alive packet.
When the client side performs signaling interaction, new network state field information is added in the keep-alive packet, and the receiving side can accurately acquire the current network state according to the network state field information so as to dynamically adjust the packet receiving and decoding strategies according to the current network state.
The keep-alive mechanism based on the SIP protocol (the client periodically sends a keep-alive packet to the signaling service to inform that the current connection is effective), adds a NetStatus field (network status field information) into the keep-alive packet, and timely informs the network environment where the receiving end is currently located, where the NetStatus field (network status field information) includes bandwidth information and related data of the data packet to be sent next, such as the number and the size of the data packet.
As shown in fig. 2, in a specific flowchart of dynamic adjustment, step S300 specifically includes the following steps:
step S301: acquiring the packet loss rate and the bit rate at the current moment;
and the receiving end obtains the packet loss rate and the bit rate at the current moment according to the packet receiving condition.
Step S302: and dynamically adjusting the sending size and decoding strategy of the subsequent data packet based on the packet loss rate, the bit rate, the network state information of the client and the pre-transmission data packet information.
Step S303: and changing the network connection mode when receiving the packet based on the network state information of the client.
The network status field information comprises broadband information and the size and number of the data packets to be transmitted subsequently, and can be dynamically adjusted according to the information, the packet loss rate and the bit rate, so that the packet receiving, encoding and decoding of the self-adaptive bandwidth are realized, and a good transmission effect is obtained.
Under the condition of poor network environment, the network connection mode can be better, so that the transmission effect is improved.
The large packet loss rate indicates that the current network environment is not good, and the continuous transmission at the current transmission rate causes serious packet loss phenomenon, so that the receiving end cannot acquire any effective information at all. At this time, the bit rate of the stream is reduced, and the size and transmission rate of the packet are reduced, so that the receiving end can accurately acquire the information sent by the client under the condition of poor network environment.
The coding and decoding strategy is to dynamically change according to the current network environment, and when the network environment is worse, more data frames are reserved, more accurate time-consuming algorithm and error and retransmission mechanism are adopted to ensure that the data packets reach correctly and are received by the receiving end.
Illustratively, the transmission size of the subsequent data packet is dynamically adjusted according to the NetStatus field (network status field information) of the keep-alive packet and the length of the remaining data to be transmitted; in case of poor network environment, the connection mode can be changed, for example, a TCP connection (transmission control protocol, transmission Control Protocol, a connection-oriented, reliable and byte stream-based transport layer communication protocol) is used to replace the UDP connection (user datagram protocol, user Datagram Protocol; UDP provides an application with a method for sending encapsulated IP packets without establishing a connection); in addition, the data packet sending rate can be dynamically adjusted by further utilizing an error detection algorithm and congestion control at a software level.
TCP is reliable transmission, and packet loss can be effectively reduced by using TCP when the network environment is poor; UDP is unreliable transmission and is suitable for a better network environment, so that the packet receiving rate can be improved by changing the network connection mode.
For example, when the network of the client is poor and the bandwidth is reduced, the receiving end can change the encoding and decoding strategy (for example, change the decoding algorithm, reserve more I frames and P frames, optimize the residual calculation, and the like) according to the packet loss rate and the current code rate and combining the network status field information sent by the resirocate so as to obtain the best stream data packet.
At the exchanger end, all session control states are stored in the memory for backup, and are also stored in the database for backup again, so that the recovery can be quickly realized when the machine is down, and the received keep-alive packets sent by the client end are forwarded to the receiving end, so that the receiving end dynamically adjusts the packet receiving and encoding and decoding strategies according to the network state information carried in the keep-alive packets, and the high-efficiency receiving of the data packets is realized.
Example 2
An embodiment of the present application provides a data transmission device, which is applied to a receiving end of the data transmission method described in embodiment 1, as shown in fig. 3, and is a structural block diagram of the data transmission device.
In the prior art, the network state of the transmitting end can only be roughly judged by the packet loss rate, and the two interacting parties cannot dynamically adjust the packet sending or change the packet receiving strategy according to the real-time network condition so as to obtain the optimal transmission effect.
The devices include, but are not limited to:
a receiving module 100, configured to receive a keep-alive packet sent by a forwarding client of the switch at regular time;
the parsing module 200 is configured to parse the keep-alive packet to obtain network status field information in the keep-alive packet;
the dynamic adjustment module 300 is configured to dynamically adjust the packet receiving and encoding/decoding policy based on the network status field information.
Based on a keep-alive mechanism of the SIP protocol, a client sends keep-alive packets periodically, a receiving end can determine the current network state according to the keep-alive packets, so that the receiving end can dynamically adjust the receiving and encoding and decoding strategies according to the network state, and accordingly data packets can be better received, the receiving and encoding and decoding based on the self-adaptive bandwidth are realized, better transmission effects are obtained, and the problem that the transmission effects are poor due to the fact that the existing method cannot know the network state is solved.
As shown in fig. 4, which is a block diagram of another data transmission apparatus, the parsing module 200 includes:
and the field acquisition module 201 is configured to parse the keep-alive packet to obtain network state information and pre-transmission data packet information of the client in the keep-alive packet.
When the client side performs signaling interaction, new network state field information is added in the keep-alive packet, and the receiving side can accurately acquire the current network state according to the network state field information so as to dynamically adjust the packet receiving and decoding strategies according to the current network state.
Based on the keep-alive mechanism of the SIP protocol (Session Initiation Protocol, which is a signaling control protocol of an application layer), a client periodically sends a keep-alive packet to a signaling service to inform that the current connection is effective, adds a NetStatus field (network status field information) to the keep-alive packet, and timely informs the network environment where the receiving end is currently located, where the NetStatus field includes bandwidth information and related data of a data packet to be sent next, such as the number and the size of the data packet.
The dynamic adjustment module 300 includes, but is not limited to:
a packet data acquisition module 301, configured to acquire a packet loss rate and a bit rate at a current moment;
an adjustment module 302, configured to dynamically adjust a subsequent packet transmission size and a decoding policy based on the packet loss rate, the bit rate, and network status information and pre-transmission packet information of the client;
the connection mode replacing module 303 is configured to replace a network connection mode based on the network status information of the client.
The network status field information comprises broadband information and the size and the number of the data packets to be transmitted subsequently, and can be dynamically adjusted according to the information, the packet loss rate and the bit rate, so that the packet receiving, encoding and decoding of the self-adaptive bandwidth are realized, and a good transmission effect is obtained.
Under the condition of poor network environment, the network connection mode can be better, so that the transmission effect is improved.
Illustratively, according to the NetStatus field of the keep-alive packet and the length of the remaining data to be transmitted, the sending size of the subsequent data packet is dynamically adjusted; in case of poor network environment, the connection mode can be changed, for example, a TCP connection (transmission control protocol, transmission Control Protocol, a connection-oriented, reliable and byte stream-based transport layer communication protocol) is used to replace the UDP connection (user datagram protocol, user Datagram Protocol; UDP provides an application with a method for sending encapsulated IP packets without establishing a connection); in addition, the data packet sending rate can be dynamically adjusted by further utilizing an error detection algorithm and congestion control at a software level.
At the exchanger end, all session control states are stored in the memory for backup, and are also stored in the database for backup again, so that the recovery can be quickly realized when the machine is down, and the received keep-alive packets sent by the client end are forwarded to the receiving end, so that the receiving end dynamically adjusts the packet receiving and encoding and decoding strategies according to the network state information carried in the keep-alive packets, and the high-efficiency receiving of the data packets is realized.
Example 3
The embodiment of the application provides a signaling service system, as shown in fig. 5, which is a structural block diagram of the signaling service system.
In the existing method, rough judgment can only be carried out by the packet loss rate of the data packet received by the receiving end, and the two interacting parties cannot carry out real-time interaction according to the real-time network condition so as to dynamically adjust the packet sending or change the packet receiving strategy to obtain the optimal transmission effect; and after the signaling service system is down, although the rapid recovery can be realized through the protocol network address conversion, the current signaling service is mostly realized based on the eXosip2 (the eXosip is an extended protocol set of the osi 2 and partially encapsulates the osi 2 protocol stack), and the state and Socket can not be separated due to the existence of a state machine, so that even if the rapid recovery is realized after the signaling service is down, the rapid recovery is not realized, and only the Context of some upper layers can be recovered.
The signaling service system solves the problems, and on the one hand, the signaling service system can perfectly recover all Session states when in downtime, avoids data loss caused by downtime, and does not need to reestablish the Session states. Specifically, the present application relates to a method for manufacturing a semiconductor device;
the signaling service system is a high-reliability signaling service system realized based on a Resiprocat (switch), and all Session information is respectively backed up in a memory and a database. Unlike the eXosip2, the state machine-based network and the state of the Session cannot be separated, and when a downtime occurs, the Open SIP Server and the resirocat can perfectly restore all the sessions before the Session, including all the information of the Session state, through the data backup of the database. Therefore, all information is not lost, and the previously created Session is not required to be re-established, so that the client is recovered without sense.
The signaling service system uses a self-adaptive packet receiving and decoding mechanism based on an SIP keep-alive mechanism: by using a keep-alive mechanism of the SIP protocol (Session Initiation Protocol, which is a signaling control protocol of an application layer), a client periodically sends a keep-alive packet to a signaling service to inform that the current connection is effective, and by adding a NetStatus field (network status field information) into the keep-alive packet, the client can timely inform the network environment (including bandwidth conditions and related data of packets to be sent next) of the current environment, and after the resirocat receives the information, sends the information to other module services (a receiving end, i.e. a receiving end, which establishes a receiving connection with the client), and the receiving end dynamically adjusts according to real-time network information.
For example, when the network of the client is poor and the bandwidth is reduced, the receiving end can change the encoding and decoding strategy (for example, change the decoding algorithm, reserve more I frames and P frames, optimize the residual calculation, and the like) according to the packet loss rate and the current code rate and combining the network status field information sent by the resirocate so as to obtain the best stream data packet.
The more specific decoding strategy is the prior art and will not be described in detail herein.
Based on a keep-alive mechanism of an SIP protocol (Session Initiation Protocol, which is a signaling control protocol of an application layer), a client sends keep-alive packets periodically, and a receiving end can determine a current network state according to the keep-alive packets, so that a packet receiving and encoding and decoding strategy is dynamically adjusted according to the network state, and a data packet is better received, so that the packet receiving and encoding and decoding based on self-adaptive bandwidth are realized, a better transmission effect is obtained, and the problem that the transmission effect is poor due to the fact that the network state cannot be known by the existing method is solved.
The system includes, but is not limited to:
the client is connected to the switch through network address conversion and an open source SIP server, and periodically transmits a keep-alive packet to the switch through a keep-alive mechanism of an SIP protocol (Session Initiation Protocol, which is a signaling control protocol of an application layer) after network state field information is added into the keep-alive packet;
the switch forwards the received keep-alive packet to the receiving end;
the receiving end analyzes the keep-alive packet to obtain network state field information in the keep-alive packet; and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
And analyzing the keep-alive packet to obtain network state information and pre-transmission data packet information of the client in the keep-alive packet.
When the client side performs signaling interaction, new network state field information is added in the keep-alive packet, and the receiving side can accurately acquire the current network state according to the network state field information so as to dynamically adjust the packet receiving and decoding strategies according to the current network state.
The keep-alive mechanism based on the SIP protocol (the client periodically sends a keep-alive packet to the signaling service to inform that the current connection is effective), adds a NetStatus field (network status field information) into the keep-alive packet, and timely informs the network environment where the receiving end is currently located, where the NetStatus field (network status field information) includes bandwidth information and related data of the data packet to be sent next, such as the number and the size of the data packet.
The network status field information comprises broadband information and the size and number of the data packets to be transmitted subsequently, and can be dynamically adjusted according to the information, the packet loss rate and the bit rate, so that the packet receiving, encoding and decoding of the self-adaptive bandwidth are realized, and a good transmission effect is obtained.
Under the condition of poor network environment, the network connection mode can be better, so that the transmission effect is improved.
Illustratively, the subsequent data packet transmission size is dynamically adjusted according to the NetStatus field (network status field information) of the keep-alive packet and the length of the remaining data to be transmitted.
In case of poor network environment, the connection mode can be changed, for example, a TCP connection (transmission control protocol, transmission Control Protocol, a connection-oriented, reliable and byte stream-based transport layer communication protocol) is used to replace the UDP connection (user datagram protocol, user Datagram Protocol; UDP provides an application with a method for sending encapsulated IP packets without establishing a connection); in addition, the data packet sending rate can be dynamically adjusted by further utilizing an error detection algorithm and congestion control at a software level.
The system further comprises:
and the database is used for storing and backing up all the session control states so as to restore all the session control states when the machine is down.
Because the session control state and the network of the switch are separable, all session control states are backed up and stored in the database, and can be quickly recovered when the switch is down, the session control state is not required to be re-established, and the quick recovery of data when the switch is down is realized.
After the client is connected to the resirocat through NAT (Network Address Translation ) and openips, since the session state (session control state) of the resirocat and the network are separable, all session states are backed up in a database such as Redis in addition to saving one copy in the memory of the resirocat, so that the session state can be restored in time when downtime occurs.
When the client and the switch interact through signaling, a new field NetStatus is added to the keep-alive packet by means of a keep-alive mechanism and a keep-alive packet of the SIP protocol.
The network status field information describes the current client's network status (e.g., bandwidth, etc.) and information about the next packets that need to be transmitted (e.g., size, number of packets). The signaling sends the field information to other module services (media receiving end) in time, the receiving end can dynamically adjust the strategy (algorithm) of receiving and decoding the packet according to the current packet loss rate and bit rate, complete receiving of the data packet is realized under the condition of network environment fluctuation, smooth proceeding of service is ensured, and receiving and encoding and decoding based on self-adaptive bandwidth are realized.
For example, the transmission size of the subsequent data packet can be dynamically adjusted according to the NetStatus field (network status field information) of the keep-alive packet and the length of the remaining transmission content; in case of poor network environment, the connection mode may be changed, for example, a TCP connection (transmission control protocol, transmission Control Protocol, a connection-oriented, reliable, byte-stream-based transport layer communication protocol) may be used instead of a UDP connection (user datagram protocol, user Datagram Protocol; UDP provides a method for an application to send encapsulated IP packets without setting up a connection). In addition, the data packet sending rate can be dynamically adjusted by further utilizing an error detection algorithm and congestion control at a software level. Therefore, the signaling service system of the application has high reliability and can adaptively receive packets and encode and decode.
The embodiment of the application also provides an electronic device, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic device to execute the data transmission method described in the embodiment 1.
The embodiment of the present application further provides a readable storage medium, where computer program instructions are stored, where the computer program instructions, when read and executed by a processor, perform the data transmission method described in embodiment 1.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A data transmission method, applied to a receiving end, the method comprising:
the receiving exchanger forwards keep-alive packets sent by the client at regular time;
analyzing the keep-alive packet to obtain network state field information in the keep-alive packet;
and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
2. The method according to claim 1, wherein parsing the keep-alive packet to obtain network status field information in the keep-alive packet comprises:
and analyzing the keep-alive packet to obtain network state information and pre-transmission data packet information of the client in the keep-alive packet.
3. The data transmission method according to claim 2, wherein the dynamically adjusting the packet reception and codec policy based on the network status field information comprises:
acquiring the packet loss rate and the bit rate at the current moment;
and dynamically adjusting the sending size and the encoding and decoding strategy of the subsequent data packet based on the packet loss rate, the bit rate, the network state information of the client and the pre-transmission data packet information.
4. The data transmission method according to claim 2, wherein the dynamically adjusting the packet reception and codec policy based on the network status field information comprises:
and changing the network connection mode when receiving the packet based on the network state information of the client.
5. A data transmission apparatus for use at a receiving end, the apparatus comprising:
the receiving module is used for receiving keep-alive packets sent by the forwarding client of the switch at regular time;
the analysis module is used for analyzing the keep-alive packet to obtain network state field information in the keep-alive packet;
and the dynamic adjustment module is used for dynamically adjusting the packet receiving and encoding and decoding strategies based on the network state field information.
6. The data transmission device of claim 5, wherein the parsing module comprises:
and the field acquisition module is used for analyzing the keep-alive packet to acquire network state information and pre-transmission data packet information of the client in the keep-alive packet.
7. A signaling service system, the system comprising:
the client is connected to the switch through network address conversion and an open source SIP server, and periodically transmits a keep-alive packet to the switch through a keep-alive mechanism of an SIP protocol after network state field information is added into the keep-alive packet;
the switch forwards the received keep-alive packet to the receiving end;
the receiving end analyzes the keep-alive packet to obtain network state field information in the keep-alive packet; and dynamically adjusting a packet receiving and encoding and decoding strategy based on the network state field information.
8. The signaling service system of claim 7, wherein the system further comprises:
and the database is used for storing and backing up all the session control states so as to restore all the session control states when the machine is down.
9. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor that runs the computer program to cause the electronic device to perform the data transmission method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that the readable storage medium has stored therein computer program instructions, which when read and executed by a processor, perform the data transmission method of any of claims 1 to 4.
CN202310664797.4A 2023-06-06 2023-06-06 Data transmission method, device and signaling service system Pending CN116647308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310664797.4A CN116647308A (en) 2023-06-06 2023-06-06 Data transmission method, device and signaling service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310664797.4A CN116647308A (en) 2023-06-06 2023-06-06 Data transmission method, device and signaling service system

Publications (1)

Publication Number Publication Date
CN116647308A true CN116647308A (en) 2023-08-25

Family

ID=87622834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310664797.4A Pending CN116647308A (en) 2023-06-06 2023-06-06 Data transmission method, device and signaling service system

Country Status (1)

Country Link
CN (1) CN116647308A (en)

Similar Documents

Publication Publication Date Title
US20210112148A1 (en) System and method for achieving accelerated throughput
EP1056259B1 (en) Method and apparatus for telecommunications using internet protocol
US8619592B2 (en) Method and apparatus for increased internet protocol (IP) headers compression performance by reporting cause of missing packets
CN101636983B (en) Reducing effects of packet loss in video transmissions
US8548003B2 (en) System and method for achieving accelerated throughput
CA2363591C (en) Update of header compression state in packet communications
US9237105B2 (en) Data communication with compensation for packet loss
EP2446602B1 (en) Method and apparatus for handling broken path in peer-to-peer network
CA2489430A1 (en) Adaptive feedback technique implemented in mobile ip networks
JP3425140B2 (en) Data packet transfer method and apparatus
EP2515481A1 (en) Transmission control method, access equipment and transmission system
RU2531571C2 (en) Video monitoring system and forward error correction (fec) method thereof
JP2006287284A (en) Wireless communication system and header compression control method thereof
US6970476B1 (en) Efficient header compression context update in packet communications
CN116647308A (en) Data transmission method, device and signaling service system
JP2002094553A (en) Device and method for transmitting packet
CN111163040A (en) Renegotiated session reestablishment method and device
CN101193062B (en) A TS value recovery method for ROHC compression
JP2005229378A (en) Repeater and control method thereof
KR20050017083A (en) A Network system for transmitting packet with header compression and control method thereof
CN116633996A (en) Network connection optimization method, device, equipment and readable storage medium
Baldaniya et al. A Review on Multipath Protocol for Video Transmission

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