CN113676411A - Network communication method, session edge controller and storage medium - Google Patents

Network communication method, session edge controller and storage medium Download PDF

Info

Publication number
CN113676411A
CN113676411A CN202111223964.9A CN202111223964A CN113676411A CN 113676411 A CN113676411 A CN 113676411A CN 202111223964 A CN202111223964 A CN 202111223964A CN 113676411 A CN113676411 A CN 113676411A
Authority
CN
China
Prior art keywords
media
address
forwarding table
terminal
packet
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.)
Granted
Application number
CN202111223964.9A
Other languages
Chinese (zh)
Other versions
CN113676411B (en
Inventor
黄金鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dinstar Co ltd
Original Assignee
Shenzhen Dinstar 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 Shenzhen Dinstar Co ltd filed Critical Shenzhen Dinstar Co ltd
Priority to CN202111223964.9A priority Critical patent/CN113676411B/en
Publication of CN113676411A publication Critical patent/CN113676411A/en
Application granted granted Critical
Publication of CN113676411B publication Critical patent/CN113676411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0078Security; Fraud detection; Fraud prevention

Abstract

The invention discloses a network communication method, a session edge controller and a storage medium, wherein the method comprises the following steps: when a media packet sent by a terminal is received, acquiring a source address corresponding to the media packet and a forwarding table, and updating the counted number of the media packets when the source address corresponding to the media packet is consistent with a media address in the forwarding table; and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number. The invention realizes the dynamic locking of the media address in the forwarding table and improves the security of the conversation between the calling terminal and the called terminal.

Description

Network communication method, session edge controller and storage medium
Technical Field
The present invention relates to the field of network telephony technologies, and in particular, to a network telephony method, a session edge controller, and a storage medium.
Background
Voip (voice over Internet protocol) means that after analog voice signals are compressed and packaged, voice signals are transmitted in the form of data packets in the environment of an IP network, which is commonly referred to as Internet telephony or IP telephony for short. After the calling party and the called party establish a VoIP conversation through a session edge controller (SBC or session controller), the session edge controller forwards the media of the calling party to the called party and forwards the media of the called party to the calling party, thereby implementing the conversation between the calling party and the called party.
Currently, after a calling party and a called party establish a call, the media addresses of the calling party and the called party may change during the call (for example, the media addresses of the calling party and the called party change when the network of the calling party and the called party is switched from a wifi network to a 4g network). When the media addresses of the calling party and the called party are changed, if the media addresses are not locked, the third party may impersonate the calling party and the called party to launch malicious attacks to the media in the session edge controller by using the loophole which is not locked on the media addresses. If the locking of the media addresses is too strict to allow the media addresses of the calling party and the called party to change, a call drop may result once the media address of either of the calling party and the called party changes. Therefore, flexible locking of the media address of any one of the calling party and the called party cannot be realized in the current VoIP conversation, which easily causes malicious attack on the session edge controller or interruption of the conversation between the calling party and the called party.
Disclosure of Invention
The embodiment of the application aims to solve the technical problems that the media addresses of a calling party and a called party cannot be flexibly locked in the existing VoIP call, and the session edge controller is easily attacked maliciously or the call of the calling party and the called party is interrupted.
The embodiment of the application provides a network communication method, which comprises the following steps:
when a media packet sent by a terminal is received, a source address and a forwarding table corresponding to the media packet are obtained;
updating the counted number of the media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table;
and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number.
In an embodiment, the step of updating the counted number of media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table includes:
and when the source address corresponding to the media packet is consistent with the media address in the forwarding table and the source address corresponding to the media packet is the same as the source address corresponding to the media packet sent by the terminal received last time, updating the counted number of the media packets.
In an embodiment, the step of updating the counted number of media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table further includes:
and when the source address corresponding to the media packet is inconsistent with the source address corresponding to the media packet sent by the terminal received last time, clearing the number of the media packets.
In an embodiment, after the step of locking the media address in the forwarding table when the number of the media packets is greater than or equal to a preset number, the method further includes:
and forwarding the received media packet according to the media address in the forwarding table.
In an embodiment, the network call method further includes:
acquiring a media address lock mode of the media address;
and when the media address lock mode is a dynamic lock mode, executing the step of acquiring a source address and a forwarding table corresponding to the media packet when the media packet sent by the terminal is received.
In an embodiment, after the step of obtaining the media address lock mode of the media address, the method further includes:
and locking the media address in the forwarding table when the media address lock mode is a locking mode.
In an embodiment, after the step of obtaining the media address lock mode of the media address, the method further includes:
when the media address lock mode is an unlocking mode, judging whether a source address corresponding to the currently received media packet is consistent with the media address in the forwarding table;
when the source address corresponding to the currently received media packet is consistent with the media address in the forwarding table, keeping the media address in the forwarding table unchanged;
and when the source address corresponding to the currently received media packet is inconsistent with the media address in the forwarding table, updating the forwarding table by adopting the source address corresponding to the currently received media packet.
In an embodiment, the terminal includes a calling terminal and a called terminal, and before the step of obtaining the media address lock mode of the media address, the method further includes:
after the calling terminal and the called terminal establish a call connection, the forwarding table is established according to the media address of the calling terminal and the media address of the called terminal.
In addition, to achieve the above object, the present invention also provides a session edge controller including: the network call method comprises a memory, a processor and a network call program which is stored on the memory and can run on the processor, wherein the network call program realizes the steps of the network call method when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a storage medium having a network call program stored thereon, which when executed by a processor, implements the steps of the network call method described above.
The technical solutions of the network communication method, the session edge controller, and the storage medium provided in the embodiments of the present application at least have the following technical effects or advantages:
because the technical scheme that when the media packets sent by the terminal are received, the source address corresponding to the media packets and the forwarding table are obtained, the source address corresponding to the media packets is consistent with the media address in the forwarding table, the counted quantity of the media packets is updated, and when the quantity of the media packets is larger than or equal to the preset quantity, the media address in the forwarding table is locked is adopted, the media address recorded in the forwarding table is allowed to be updated when the media address of the calling terminal and/or the called terminal is changed due to unstable network of the calling terminal and/or the called terminal at the initial stage of establishing VoIP conversation between the calling terminal and the called terminal through the session edge controller, and when the continuously counted quantity of the media packets is larger than or equal to the preset quantity, the media address of the calling terminal and/or the called terminal currently recorded in the forwarding table is locked, the technical problems that flexible locking of media addresses of a calling party and a called party cannot be achieved in the existing VoIP call, and a session edge controller is easily attacked maliciously or the call between the calling party and the called party is interrupted are solved, dynamic locking of the media addresses in a forwarding table is achieved, and the security of the call between the calling terminal and the called terminal is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a network communication method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a network communication method according to the present invention;
fig. 4 is a flowchart illustrating a network communication method according to a third embodiment of the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a session edge controller.
As shown in fig. 1, the session edge controller may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the session edge controller architecture shown in fig. 1 does not constitute a definition of a session edge controller, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a network call program. Among them, the operating system is a program that manages and controls the session edge controller hardware and software resources, a web-talk program, and the execution of other software or programs.
In the session edge controller shown in fig. 1, the user interface 1003 is mainly used for connecting a terminal and performing data communication with the terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be used to invoke a web-talk program stored in the memory 1005.
In this embodiment, the session edge controller includes: a memory 1005, a processor 1001, and a web-talk program stored on the memory 1005 and executable on the processor, wherein:
when the processor 1001 calls the network call program stored in the memory 1005, the following operations are performed:
when a media packet sent by a terminal is received, a source address and a forwarding table corresponding to the media packet are obtained;
updating the counted number of the media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table;
and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
and when the source address corresponding to the media packet is consistent with the media address in the forwarding table and the source address corresponding to the media packet is the same as the source address corresponding to the media packet sent by the terminal received last time, updating the counted number of the media packets.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
and when the source address corresponding to the media packet is inconsistent with the source address corresponding to the media packet sent by the terminal received last time, clearing the number of the media packets.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
and forwarding the received media packet according to the media address in the forwarding table.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
acquiring a media address lock mode of the media address;
and when the media address lock mode is a dynamic lock mode, executing the step of acquiring a source address and a forwarding table corresponding to the media packet when the media packet sent by the terminal is received.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
and locking the media address in the forwarding table when the media address lock mode is a locking mode.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
when the media address lock mode is an unlocking mode, judging whether a source address corresponding to the currently received media packet is consistent with the media address in the forwarding table;
when the source address corresponding to the currently received media packet is consistent with the media address in the forwarding table, keeping the media address in the forwarding table unchanged;
and when the source address corresponding to the currently received media packet is inconsistent with the media address in the forwarding table, updating the forwarding table by adopting the source address corresponding to the currently received media packet.
When the processor 1001 calls the network call program stored in the memory 1005, the following operations are also performed:
after the calling terminal and the called terminal establish a call connection, the forwarding table is established according to the media address of the calling terminal and the media address of the called terminal.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
As shown in fig. 2, in a first embodiment of the present application, a network session method of the present application is applied to a session edge controller (SBC), and includes the following steps:
step S210: when a media packet sent by a terminal is received, a source address and a forwarding table corresponding to the media packet are obtained.
In this embodiment, the terminals include two terminals, such as a first terminal and a second terminal, where the first terminal may be understood as a calling terminal and the second terminal may be understood as a called terminal, or the first terminal may be understood as a called terminal and the second terminal may be understood as a called terminal.
A VoIP call may be understood as a network call or an internet telephone, for example a voice call. The calling terminal and the called terminal realize VoIP conversation, and the VoIP conversation between the calling terminal and the called terminal needs to be established through a conversation edge controller; the calling terminal and the called terminal are in one-to-one communication, that is, the calling terminal and the called terminal are both one. After a calling terminal and a called terminal establish a VoIP (voice over Internet protocol) conversation through a session edge controller, a calling user of the calling terminal inputs voice to the calling terminal, the calling terminal sends the voice input by the calling user to the session edge controller, and the session edge controller forwards the voice sent by the calling terminal to the called terminal; similarly, the calling and called users of the called terminal input voice to the called terminal, the called terminal sends the voice input by the called user to the session edge controller, and the session edge controller forwards the voice sent by the called terminal to the calling terminal. The voice sent by the calling terminal and the called terminal to the session edge controller respectively can be understood as a media packet.
After a calling terminal and a called terminal establish a VoIP call through a session edge controller, when a calling user communicates with a called user, the calling terminal and the called terminal respectively send corresponding media packets to the session edge controller, and the session edge controller acquires a source address corresponding to the received media packets. The source address is a media address used by the terminal to send the media packet, and the media address refers to a network address of a network connected with the terminal and is determined by a network type currently connected with the terminal. For example, if the terminal is currently connected to a communication network of an operator, such as a mobile data traffic network, a unified data traffic network, and a telecommunication data traffic network, the media address of the terminal is the communication network address of the operator, such as a mobile data traffic network address; and if the terminal is currently connected with a wireless network, such as WIFI, the media address of the terminal is the wireless network address. Specifically, if the media address of the calling terminal is the mobile data traffic network address and the media address of the called terminal is also the mobile data traffic network address, then the media addresses of the media packets received by the session edge controller from the calling terminal and the called terminal are both the mobile data traffic network addresses; if the media address of the calling terminal is a wireless network address and the media address of the called terminal is also a wireless network address, the media addresses of the media packets received by the session edge controller from the calling terminal and the called terminal are both wireless network addresses; if the media address of the calling terminal is the mobile data flow network address and the media address of the called terminal is the wireless network address, then the media address of the media packet received by the session edge controller from the calling terminal is the mobile data flow network address and the media address of the media packet of the called terminal is the wireless network address; if the media address of the calling terminal is a wireless network address and the media address of the called terminal is a mobile data traffic network address, the media address of the media packet received by the session edge controller from the calling terminal is the wireless network address and the media address of the media packet of the called terminal is the mobile data traffic network address.
Step S220: and updating the counted number of the media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table.
In the embodiment, a forwarding table is arranged in the session edge controller, the forwarding table records the media address of the calling terminal and the media address of the called terminal, and after the calling terminal sends the media packet to the session edge controller, the session edge controller forwards the media packet sent by the calling terminal to the called terminal according to the currently recorded media address of the called terminal in the forwarding table; similarly, after the called terminal sends the media packet to the session edge controller, the session edge controller forwards the media packet sent by the called terminal to the calling terminal according to the currently recorded media address of the calling terminal in the forwarding table. If the forwarding table is locked, the media address of the calling terminal and the media address of the called terminal recorded in the forwarding table are not changed all the time; if the unlocked forwarding table is set, after the media address of the calling terminal and the media address of the called terminal are recorded in the forwarding table for the first time, if the media address of the media packet sent by any one end of the calling terminal and the called terminal changes later, the forwarding table is updated, that is, the forwarding table records that the media address of any one end of the calling terminal and the called terminal is replaced by the changed media address. For example, the forwarding table records that the media address of the calling terminal and the media address of the called terminal are both wireless network addresses for the first time, but then the media address of the media packet sent by the calling terminal is changed into a mobile data traffic network address, and the media address of the calling terminal recorded by the forwarding table is replaced by the mobile data traffic network address.
Specifically, after the session edge controller receives the media packets sent by any one of the calling terminal and the called terminal, the number of the received media packets is counted, that is, the number of the received media packets is counted. The media packet quantity of the calling terminal and the media packet quantity of the called terminal are separately counted, namely, the media packet quantity of the media packet sent by the calling terminal is separately counted, and the media packet quantity of the media packet sent by the called terminal is also separately counted.
After the session edge controller currently acquires the source addresses corresponding to the media packets at any ends of the calling terminal and the called terminal, the source address corresponding to the currently acquired media packet is compared with the media address in the forwarding table to judge whether the media address of the terminal sending the acquired media packet is consistent with the media address in the forwarding table. For example, after the session edge controller currently acquires the source address corresponding to the media packet of the calling terminal, it determines whether the source address corresponding to the media packet of the calling terminal is consistent with the media address of the calling terminal recorded in the forwarding table, and if so, updates the number of the media packets of the media packet sent by the calling terminal, that is, adds 1 to the original number of the media packets, and is expressed as Sum = Sum +1 by a formula of a computer language, and Sum represents the number of the media packets. The principle of separately counting the number of media packets sent by the called terminal and the number of media packets sent by the calling terminal is the same in a statistical manner, which is not described in detail in this embodiment.
Further, step S220 includes: and when the source address corresponding to the media packet is consistent with the media address in the forwarding table and the source address corresponding to the media packet is the same as the source address corresponding to the media packet sent by the terminal received last time, updating the counted number of the media packets.
It should be understood that, in this embodiment, a specific precondition for updating the counted number of media packets is set, that is, the session edge controller determines that the source address corresponding to the currently acquired media packet is consistent with the media address in the forwarding table, and the source address corresponding to the currently acquired media packet is the same as the source address corresponding to the media packet received from the terminal last time, and updates the counted number of media packets.
The source address corresponding to the currently acquired media packet is identical to the media address of the terminal recorded in the forwarding table, and the source address corresponding to the currently acquired media packet is identical to the source address corresponding to the media packet received from the terminal last time, which means that the source address corresponding to the currently acquired media packet and the source address corresponding to the media packet received from the terminal last time are both identical to the media address of the terminal recorded in the forwarding table, that is, the source addresses corresponding to the media packets continuously received by the session edge controller and coming from the same terminal are both identical to the media address of the terminal recorded in the forwarding table, that is, the media address of the media packet sent by the same terminal is not changed.
Further, the source address corresponding to the currently acquired media packet is consistent with the media address of the terminal recorded in the forwarding table, and the source address corresponding to the currently acquired media packet is the same as the source address corresponding to the media packet received from the terminal last time, and the judgment condition for updating the counted number of the media packets is to detect whether the network of the calling terminal or the called terminal tends to be stable. For example, the source address corresponding to the currently acquired media packet from the calling terminal is consistent with the media address of the calling terminal recorded in the forwarding table, and the source address corresponding to the media packet received from the calling terminal last time is also consistent with the media address of the calling terminal recorded in the forwarding table, which means that the source address corresponding to the media packet continuously sent to the session edge controller by the calling terminal is not changed, that is, the media address of the calling terminal is not changed, the counted number of media packets is updated, and if the number of times of updating the number of media packets is greater, the network of the calling terminal is more and more stable.
Further, step S220 further includes: and when the source address corresponding to the media packet is inconsistent with the source address corresponding to the media packet sent by the terminal received last time, clearing the number of the media packets.
Specifically, if the source address corresponding to the currently acquired media packet is inconsistent with the media address of the terminal recorded in the forwarding table, it indicates that the network to which the terminal is connected is switched, that is, the media address of the media packet sent by the terminal is changed, that is, the source address corresponding to the media packet is changed. Furthermore, as the network connected with the terminal is switched, which indicates that the network connected with the terminal is unstable at present, the counted number of the media packets is cleared, and the terminal media address recorded in the forwarding table is updated at the same time, that is, the source address corresponding to the changed media packet is used to replace the terminal media address recorded in the forwarding table, and the number of the media packets sent by the terminal is counted again.
Step S230: and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number.
In this embodiment, a determination condition for determining that a network to which a terminal is connected is already in a stable state is preset, where the determination condition is that the number of media packets is greater than or equal to a preset number, that is, if the number of updated media packets is greater than or equal to the preset number, it is determined that the network to which the terminal is connected is already stable and the media address of the terminal is not changed, and the media address of the terminal recorded in a forwarding table is locked. For example, when a calling terminal and a called terminal just start a call, the calling terminal is connected to a wireless network, such as WIFI, but the network of the wireless network is poor, and in order to keep the call smooth, the calling terminal performs network switching, that is, the wireless network is switched to a data traffic network of an operator, such as a mobile data traffic network, and after the network switching connected to the calling terminal, a media address of a media packet sent by the calling terminal is also changed, that is, a source address corresponding to the media packet is also changed. Meanwhile, the session edge controller counts the number of media packets of the media packets sent by the calling terminal according to the manner of step S230 every time the session edge controller receives a media packet sent by the calling terminal, if the number of currently counted media packets is 51 and the preset number is 50, the number of currently counted media packets is greater than the preset number, which indicates that the media address of the media packet sent by the calling terminal is not changed any more, that is, the source address corresponding to the media packet is not changed any more, that is, the network of the calling terminal is not switched any more, that is, the network of the calling terminal is stable, the media address of the calling terminal currently recorded in the forwarding table is locked, and the media address of the calling terminal currently recorded in the forwarding table after locking is not updated, that is, the media address is not replaced.
It should be noted that, the number of the media packets is greater than or equal to the preset number, which also indicates that the VoIP conversation between the calling terminal and the called terminal is stable, and the media addresses of the calling terminal and/or the called terminal are not changed any more, and at this time, the currently recorded media addresses of the calling terminal and/or the called terminal in the forwarding table are locked, so that the conversation security can be improved, and the conversation is prevented from being maliciously attacked.
According to the technical scheme, when the network of the calling terminal and/or the called terminal is unstable at the initial stage of establishing the VoIP call between the calling terminal and the called terminal through the session edge controller, and the media address of the calling terminal and/or the called terminal is changed, the media address recorded in the forwarding table is allowed to be updated, and when the continuously counted number of media packages is greater than or equal to the preset number, the media address of the calling terminal and/or the called terminal currently recorded in the forwarding table is locked, so that not only is the dynamic locking of the media address in the forwarding table realized, but also the security of the call between the calling terminal and the called terminal is improved.
As shown in fig. 3, in the second embodiment of the present application, the following steps are further included after step S230:
step S240: and forwarding the received media packet according to the media address in the forwarding table.
Specifically, after the media address of the terminal recorded in the forwarding table is locked, the media address of the terminal is not changed. For example, after locking, the media address of the calling terminal recorded in the forwarding table is a mobile data traffic network address, and the media address of the called terminal is a wireless network address, and after the session edge controller receives media packets sent by the calling terminal and the called terminal, the session edge controller sends the media packet sent by the calling terminal to the called terminal according to the wireless network address each time, and sends the media packet sent by the called terminal to the calling terminal according to the mobile data traffic network address.
As shown in fig. 4, in a third embodiment of the present application, the network call method further includes the following steps:
step S110: and acquiring a media address lock mode of the media address.
Step S120: judging which mode of the media address lock mode is a dynamic lock mode, a lock mode and an unlock mode, wherein when the media address lock mode is the dynamic lock mode, executing step S210; when the media address lock mode is the lock mode, executing step S1211; and executing step S1221 when the media address lock mode is the unlock mode.
Step S210: when a media packet sent by a terminal is received, a source address and a forwarding table corresponding to the media packet are obtained;
step S220: updating the counted number of the media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table;
step S230: and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number.
Step S1211: and locking the media address in the forwarding table.
Step S1221: judging whether a source address corresponding to the currently received media packet is consistent with the media address in the forwarding table; wherein, if yes, step S1222 is executed; if not, step S1223 is performed.
Step S1222: keeping the media address in the forwarding table unchanged.
Step S1223: and updating the forwarding table by adopting the source address corresponding to the currently received media packet.
In this embodiment, a media address lock mode of a media address of a terminal in a forwarding table is preset, where the media address lock mode includes a dynamic lock mode, a lock mode, and an unlock mode, and a user may select and set a specific media address lock mode on a calling terminal or a called terminal. The calling terminal is taken as an example for explanation:
assuming that after the calling terminal and the called terminal establish a VoIP call through the session edge controller, the session edge controller obtains the media address lock mode selected and set by the user at the calling terminal, and if the media address lock mode selected and set by the user at the calling terminal is a dynamic lock mode, steps S210-S230 are performed, and the specific implementation manner of steps S210-S230 is the same as that of the first embodiment, and is not described herein again. After the steps S210 to S230 are executed, the session edge controller locks the media address of the calling terminal recorded in the forwarding table when determining that the number of media packets continuously received from the calling terminal is greater than or equal to the preset number.
If the user selects the set media address lock mode as the lock mode at the calling terminal, after the calling terminal and the called terminal establish a VoIP call through the session edge controller, the media address of the calling terminal recorded for the first time in the forwarding table is locked, that is, the media address of the calling terminal is not changed, that is, even if the source address corresponding to the next received media packet is inconsistent with the media address of the calling terminal recorded for the first time in the forwarding table, the media address of the calling terminal recorded for the first time in the forwarding table is not replaced, so that the security of the call can be improved, and malicious attack can be avoided.
If the user selects the set media address lock mode at the calling terminal as the unlock mode, the session edge controller judges whether the source address corresponding to the currently received media packet from the calling terminal is consistent with the media address of the calling terminal recorded in the forwarding table, if so, the media address of the calling terminal recorded in the forwarding table is kept unchanged, namely, the media address of the calling terminal recorded in the publication table is not updated; and if the two are not consistent, replacing the media address of the calling terminal recorded in the forwarding table by the source address corresponding to the currently received media packet from the calling terminal. For example, the media address of the calling terminal recorded in the forwarding table is a wireless network address, and due to poor network signals of the calling terminal, the calling terminal is switched from a wireless network to a mobile data traffic network, that is, the media address of the calling terminal is changed from the wireless network address to the mobile data traffic network address, that is, the wireless network address of the calling terminal recorded in the forwarding table is replaced by the mobile data traffic network address, and then the session edge controller sends the media packet of the called terminal to the calling terminal according to the mobile data traffic network address, so that when the network signals of the calling terminal are poor, the uninterrupted communication between the calling terminal and the called terminal is maintained.
It should be noted that, after the called terminal sets the media address lock mode to be any one of the dynamic lock mode, the lock mode and the unlock mode, the implementation manner of the session edge controller for dynamically locking, locking and unlocking the media address of the called terminal recorded in the forwarding table is the same as that of the calling terminal, and is not described herein again.
Further, step S110 further includes: after the calling terminal and the called terminal establish a call connection, the forwarding table is established according to the media address of the calling terminal and the media address of the called terminal.
Specifically, after the VoIP session is established between the calling terminal and the called terminal through the session edge controller, the media addresses of both the calling terminal and the called terminal are recorded in the forwarding table of the session edge controller, that is, the forwarding table is established. For example, after the calling terminal and the called terminal establish a VoIP call through the session edge controller, the calling terminal is currently connected to a wireless network, that is, the media address of the calling terminal is a wireless network address, and the called terminal is currently connected to a mobile data traffic network, that is, the media address of the called terminal is a mobile data traffic network address.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A network call method is applied to a session edge controller, and comprises the following steps:
when a media packet sent by a terminal is received, a source address and a forwarding table corresponding to the media packet are obtained;
updating the counted number of the media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table;
and locking the media addresses in the forwarding table when the number of the media packets is greater than or equal to the preset number.
2. The method of claim 1, wherein the step of updating the statistical number of media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table comprises:
and when the source address corresponding to the media packet is consistent with the media address in the forwarding table and the source address corresponding to the media packet is the same as the source address corresponding to the media packet sent by the terminal received last time, updating the counted number of the media packets.
3. The method of claim 2, wherein the step of updating the counted number of media packets when the source address corresponding to the media packet is consistent with the media address in the forwarding table further comprises:
and when the source address corresponding to the media packet is inconsistent with the source address corresponding to the media packet sent by the terminal received last time, clearing the number of the media packets.
4. The method of claim 1, wherein after the step of locking the media addresses in the forwarding table when the number of media packets is greater than or equal to a preset number, the method further comprises:
and forwarding the received media packet according to the media address in the forwarding table.
5. The method of claim 1, wherein the network telephony method further comprises:
acquiring a media address lock mode of the media address;
and when the media address lock mode is a dynamic lock mode, executing the step of acquiring a source address and a forwarding table corresponding to the media packet when the media packet sent by the terminal is received.
6. The method of claim 5, wherein the step of obtaining the media address lock pattern for the media address is followed by:
and locking the media address in the forwarding table when the media address lock mode is a locking mode.
7. The method of claim 5, wherein the step of obtaining the media address lock pattern for the media address is followed by:
when the media address lock mode is an unlocking mode, judging whether a source address corresponding to the currently received media packet is consistent with the media address in the forwarding table;
when the source address corresponding to the currently received media packet is consistent with the media address in the forwarding table, keeping the media address in the forwarding table unchanged;
and when the source address corresponding to the currently received media packet is inconsistent with the media address in the forwarding table, updating the forwarding table by adopting the source address corresponding to the currently received media packet.
8. The method of claim 5, wherein the terminals comprise a calling terminal and a called terminal, and the step of obtaining the media address lock mode of the media address further comprises, before the step of obtaining the media address lock mode of the media address:
after the calling terminal and the called terminal establish a call connection, the forwarding table is established according to the media address of the calling terminal and the media address of the called terminal.
9. A session edge controller, comprising: a memory, a processor, and a network telephony program stored on the memory and executable on the processor, the network telephony program when executed by the processor implementing the steps of the network telephony method of any of claims 1-8.
10. A storage medium having a network telephony program stored thereon, the network telephony program when executed by a processor implementing the steps of the network telephony method of any of claims 1 to 8.
CN202111223964.9A 2021-10-21 2021-10-21 Network communication method, session edge controller and storage medium Active CN113676411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111223964.9A CN113676411B (en) 2021-10-21 2021-10-21 Network communication method, session edge controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111223964.9A CN113676411B (en) 2021-10-21 2021-10-21 Network communication method, session edge controller and storage medium

Publications (2)

Publication Number Publication Date
CN113676411A true CN113676411A (en) 2021-11-19
CN113676411B CN113676411B (en) 2022-01-11

Family

ID=78550678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111223964.9A Active CN113676411B (en) 2021-10-21 2021-10-21 Network communication method, session edge controller and storage medium

Country Status (1)

Country Link
CN (1) CN113676411B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5995443A (en) * 1990-04-18 1999-11-30 Rambus Inc. Synchronous memory device
US20040139295A1 (en) * 2003-01-09 2004-07-15 International Business Machines Corporation Acceleration of input/output (I/O) communication through improved address translation
US7003676B1 (en) * 2001-05-10 2006-02-21 Advanced Micro Devices, Inc. Locking mechanism override and disable for personal computer ROM access protection
CN101366238A (en) * 2006-01-05 2009-02-11 加拿大网际系统公司 Systems and methods for improved network based content inspection
CN101986737A (en) * 2010-11-26 2011-03-16 重庆金美通信有限责任公司 Method for switching between one-number multi-client terminals without interrupting call
CN113225768A (en) * 2021-04-29 2021-08-06 北京凯视达信息技术有限公司 4G/5G transmission network synchronization method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5995443A (en) * 1990-04-18 1999-11-30 Rambus Inc. Synchronous memory device
US7003676B1 (en) * 2001-05-10 2006-02-21 Advanced Micro Devices, Inc. Locking mechanism override and disable for personal computer ROM access protection
US20040139295A1 (en) * 2003-01-09 2004-07-15 International Business Machines Corporation Acceleration of input/output (I/O) communication through improved address translation
CN101366238A (en) * 2006-01-05 2009-02-11 加拿大网际系统公司 Systems and methods for improved network based content inspection
CN101986737A (en) * 2010-11-26 2011-03-16 重庆金美通信有限责任公司 Method for switching between one-number multi-client terminals without interrupting call
CN113225768A (en) * 2021-04-29 2021-08-06 北京凯视达信息技术有限公司 4G/5G transmission network synchronization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MIHAI CONSTANTINESCU;DANIEL GHEORGHICA;VICTOR CROITORU: ""Secure and flexible method for SBC/firewall management"", 《2009 INTERNATIONAL SYMPOSIUM ON SIGNALS, CIRCUITS AND SYSTEMS》 *
郭晨; 詹舒波: ""呼叫中心会话边界控制的一种设计与实现"", 《软件》 *

Also Published As

Publication number Publication date
CN113676411B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
US20130343234A1 (en) Communication Method, System, and Apparatus
CN109327423B (en) Service implementation method and device
WO2020037007A1 (en) Originating caller verification via insertion of an attestation parameter
CN1984373B (en) System and method for providing multimedia contents in a communication system
CN112152828A (en) Game acceleration method and device, VPN terminal and storage medium
CN108076451B (en) Call type prompting method and device
US11678149B2 (en) Communications network
CN113676411B (en) Network communication method, session edge controller and storage medium
WO2010078756A1 (en) Method, device and system for call control
CN101047752B (en) Ip telephone system
RU2595526C2 (en) Method, apparatus and system for recording multimedia data
KR20110008171A (en) Method for establishing communication from a mobile terminal in dual mode
JP2008187417A (en) Cellular phone
WO2012103930A1 (en) Determining a location address for shared data
CN107852577B (en) Supplementary service implementation method, terminal equipment and IMS server
US20210306274A1 (en) Media packet forwarding method, forwarding server, and storage medium
CN106358008B (en) Method for avoiding repeated call access and conference television terminal equipment
US11575601B2 (en) Network device and packet processing method using same
CN110661922B (en) Call control method, network device and system
CN115696309A (en) Communication method and device
CN102523572B (en) The processing method and processing device of call request message
CN105635101A (en) The invention discloses a roaming register processing method, a multi-domain split-type mobile terminal control device and system
CN113472812B (en) Message data processing method and device and computer readable storage medium
CN113132467B (en) Method, system and storage medium for realizing SIP relay deactivation operation
CN114466025B (en) Session processing method and first cluster control functional entity

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
GR01 Patent grant
GR01 Patent grant