CN110225146B - Intranet and extranet mapping method and device, electronic equipment, medium and video conference system - Google Patents

Intranet and extranet mapping method and device, electronic equipment, medium and video conference system Download PDF

Info

Publication number
CN110225146B
CN110225146B CN201910418138.6A CN201910418138A CN110225146B CN 110225146 B CN110225146 B CN 110225146B CN 201910418138 A CN201910418138 A CN 201910418138A CN 110225146 B CN110225146 B CN 110225146B
Authority
CN
China
Prior art keywords
conference
media server
port
server
nat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910418138.6A
Other languages
Chinese (zh)
Other versions
CN110225146A (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.)
Zhejiang Huachuang Video Signal Technology Co Ltd
Original Assignee
Zhejiang Huachuang Video Signal Technology 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 Zhejiang Huachuang Video Signal Technology Co Ltd filed Critical Zhejiang Huachuang Video Signal Technology Co Ltd
Priority to CN201910418138.6A priority Critical patent/CN110225146B/en
Publication of CN110225146A publication Critical patent/CN110225146A/en
Application granted granted Critical
Publication of CN110225146B publication Critical patent/CN110225146B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • H04N7/155Conference systems involving storage of or access to video conference sessions

Landscapes

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

Abstract

The invention discloses an internal and external network mapping method, an internal and external network mapping device, electronic equipment, a medium and a video conference system, wherein the method comprises the following steps: the conference management server receives a starting request of a conference; in a port section which has a mapping relation with an exit router, allocating a first idle port for the conference, and allocating a target media server for the conference in a media server cluster; and selecting a second idle port of the target media server, and generating an NAT port mapping rule corresponding to the conference according to the first idle port and the second idle port, so that the target media server provides media service for the conference. The method is used for reducing the workload of NAT port mapping rule configuration and improving the utilization rate of processing resources of the media server.

Description

Intranet and extranet mapping method and device, electronic equipment, medium and video conference system
Technical Field
The invention relates to the technical field of computer networks and communication, in particular to an internal and external network mapping method, an internal and external network mapping device, electronic equipment, a medium and a video conference system.
Background
The video conference system comprises a media server, a terminal and other equipment, wherein the terminal collects audio and video, codes the audio and video and sends the audio and video to the media server, and the media server fuses or does not fuse the audio and video sent by a plurality of participant terminals of a conference and then sends the fused audio and video to each participant terminal according to the requirements of the conference, so that audio and video conversation of a plurality of participants is realized. In a large video conference system, a large number of media servers are often required to be clustered, stacked and deployed to achieve higher concurrency performance and provide media services for more conferences. Meanwhile, in order to ensure security, the media server is usually deployed in an office network (intranet), and is not directly open to the outside, but performs Network Address Translation (NAT) port mapping on an egress router of the intranet, so as to provide a video conference service to the intranet and the extranet at the same time.
As shown in fig. 1, in order to implement that a media server in an internal network provides a media service of a conference for a terminal in an external network in the prior art, after port static misclassification is performed according to an Internet Protocol (IP) address interconnected between networks, NAT port mapping is performed, that is, after a mutually different external service port segment is statically allocated to each media server, NAT port mapping is performed on an egress router. Referring to fig. 1, the IP addresses (internal network) of the media server 1, the media server 2, and the media server 3 are 192.168.1.11, 192.168.1.12, and 192.168.1.13, respectively, the IP address (external network) of the egress router is 113.31.84.82, and the NAT port mapping rule is:
Figure BDA0002065081870000011
Figure BDA0002065081870000012
Figure BDA0002065081870000013
the terminal intercommunication is used for realizing the intercommunication of the internal network media server and the external network participating in the conference, and further providing media service for the conference.
However, in the existing internal and external network mapping method, when a large number of media servers are stacked, a large number of IP addresses and ports need to be configured when NAT port mapping rules are configured, and when a media server cluster is expanded or reduced, NAT port mapping rules need to be reconfigured, so that configuration management workload is large, and an error rate is high. And because each port of the media server provides media service for one conference, the number of the ports configured for the media server is difficult to confirm, too many ports expose too many external ports and have low utilization rate, and too few ports can not fully utilize the processing resources of the media server to provide the media service for the conference.
Disclosure of Invention
The invention provides an internal and external network mapping method, an internal and external network mapping device, electronic equipment, a medium and a video conference system, which are used for solving the problems that the workload of NAT port mapping rule configuration is large, and the utilization rate of a port and the utilization rate of processing resources of a media server are difficult to ensure in the prior art.
In a first aspect, the invention discloses an internal and external network mapping method, which comprises the following steps:
receiving a starting request of a conference;
in a port section which has a mapping relation with an exit router, allocating a first idle port for the conference, and allocating a target media server for the conference in a media server cluster;
and selecting a second idle port of the target media server, and generating a Network Address Translation (NAT) port mapping rule corresponding to the conference according to the first idle port and the second idle port.
In an optional design, if the target media server is a non-master media server in a blade server, the generating, according to the first idle port and the second idle port, the NAT port mapping rule corresponding to the conference includes:
selecting a third idle port of a main control media server in the blade server, and generating a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port; and instructing the master control media server to generate a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
In an alternative design, the allocating a target media server for the conference in a media server cluster includes:
selecting a media server with the lowest resource occupancy rate in a media server cluster as a target media server distributed for the conference; or the like, or, alternatively,
and selecting a media server corresponding to the target conference area in the media server cluster as a target media server distributed for the conference according to the target conference area corresponding to the conference and the conference area corresponding to each media server in the media server cluster.
In an alternative design, the method further includes:
receiving a stop request for the conference;
and deleting the NAT port mapping rule corresponding to the conference.
In an optional design, if the target media server is a non-master media server in a blade server, receiving a stop request of the conference, and deleting the NAT port mapping rule corresponding to the conference includes:
and deleting the first NAT port mapping rule corresponding to the conference, instructing a main control media server in the blade server, and deleting the second NAT port mapping rule corresponding to the conference.
In a second aspect, the present invention discloses an intranet and extranet mapping apparatus, comprising:
the receiving module is used for receiving a starting request of the conference;
a determining module, configured to allocate a first idle port for the conference in a port segment having a mapping relationship with an egress router, and allocate a target media server for the conference in a media server cluster;
and the control module is used for selecting a second idle port of the target media server and generating a Network Address Translation (NAT) port mapping rule corresponding to the conference according to the first idle port and the second idle port.
In an optional design, the control module is specifically configured to select a third idle port of a master media server in the blade server if the target media server is a non-master media server in the blade server, and generate a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port; and instructing the master control media server to generate a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
In an optional design, the determining module is specifically configured to select a media server with a lowest resource occupancy rate in a media server cluster as a target media server allocated to the conference; or selecting a media server corresponding to the target conference area in the media server cluster as a target media server distributed for the conference according to the target conference area corresponding to the conference and the conference area corresponding to each media server in the media server cluster.
In an optional design, the receiving module is further configured to receive a stop request of the conference;
and the control module is also used for deleting the NAT port mapping rule corresponding to the conference.
In an optional design, the control module is specifically configured to delete the first NAT port mapping rule corresponding to the conference, instruct the master control media server in the blade server, and delete the second NAT port mapping rule corresponding to the conference if the target media server is a non-master control media server in the blade server.
In a third aspect, the present invention discloses a video conference system, comprising: a conference management server for performing the method as set forth in the first aspect or any one of the optional designs of the first aspect, and an egress router and a media server cluster respectively connected to the conference management server.
In an alternative design, the media servers in the media server cluster include a non-master media server and a master media server in the blade server.
In a fourth aspect, the present invention discloses an electronic device, comprising: a processor and a memory;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the method as set forth in the first aspect or any one of the alternative designs of the first aspect.
In a fifth aspect, the present invention discloses a computer readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the method as set forth in the first aspect or any one of the alternative designs of the first aspect.
The method comprises the following steps:
in the embodiment of the invention, after receiving a conference request, the conference management server allocates a first idle port for the conference in the port segment which has a mapping relation with the exit router, and allocates a target media server for the conference in the media server cluster, and generates the NAT port mapping rule for the conference according to the second idle port of the selected target media server, so that the NAT port mapping relation between a certain port segment of the conference management server and a certain port segment of the exit router is only configured on the exit router once, and the conference management server can dynamically allocate a port which can be connected with an external network for the conference according to the conference requirement, and generate the NAT port mapping rule, thereby reducing the workload for configuring the NAT port mapping rule, not limiting the number of the ports which are mapped by the NAT ports of the media server, but configuring the NAT port mapping rule corresponding to the media server according to the number of the conferences which are served by the media server The waste of port resources and the waste of processing resources of the media server are avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a video conference system architecture suitable for a conventional intranet and extranet mapping method;
fig. 2 is a schematic diagram of an intranet and extranet mapping method according to an embodiment of the present invention;
fig. 3 is a schematic view of a video conference system architecture to which an intranet-intranet mapping method according to an embodiment of the present invention is applied;
fig. 4 is a second schematic view of a video conference system architecture to which the intranet and intranet mapping method according to the embodiment of the present invention is applied;
FIG. 5 is a diagram illustrating a data flow according to an embodiment of the present invention;
fig. 6 is a schematic diagram of services provided by servers in a video conference system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an intranet and extranet mapping apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, some terms in the present application are explained to be understood by those skilled in the art.
An intranet, typically referred to as a Local Area Network (LAN), and an extranet, typically referred to as a Wide Area Network (WAN). The following are exemplary: if a certain small company has 5 computers connected, the system formed by the 5 computers is a local area network; if the company opens broadband service connected with the internet, the internet is an external network, and the local area network formed by the 5 computers is an internal network.
A Network Address Translation (NAT) technology is an address Translation technology, and is generally used for translating an internal local address of a host having a private IP address in an internal network into an external uniquely identifiable legal IP address when the host accesses the external network; meanwhile, the legal IP address returned to the internal network host by the external network is mapped back to the private IP address of the host in the internal network, so that different private networks can use the same private IP address segment and can normally communicate with the external network, and the disorder of address information can not be caused.
NAT port mapping, which maps one port of IP address of outer network host computer to one port of one machine in inner network, to provide relative intercommunication service. When the user accesses the port of the IP address of the host of the external network, the server automatically maps the request to the machine corresponding to the internal network.
It should be understood that the terms "first," "second," and the like in the description of the present application are used for distinguishing between the descriptions and are not intended to indicate or imply relative importance nor order to indicate or imply a sequence or order to the claims.
Example 1:
fig. 2 is a schematic diagram of an intranet and extranet mapping method provided in an embodiment of the present invention, where the method includes:
s201: a request to initiate a conference is received.
Referring to fig. 3, a schematic diagram of a video conference system architecture applicable to the internal and external network mapping method provided by the embodiment of the present invention is shown, as shown in fig. 3, a media server cluster and a conference management server formed by a plurality of media servers are arranged in an internal network, participant terminals of a conference are distributed in an external network, the conference management server is respectively connected to the media servers and is connected to an egress router connected to the external network of the internal network, when the media servers provide media services such as data exchange for the conference, data sent by the media servers reach the terminals through the conference management server and the egress router, and data sent by the terminals reach the media servers through the egress router and the conference management server, where the participant terminals of the conference may be devices such as a mobile phone, a Tablet Personal Computer (PC), and a Personal Computer (PC).
The internal and external network mapping method provided by the embodiment of the invention is applied to a conference management server, and the conference management server can be a PC (personal computer), a server cluster and other devices. The conference management server may be used to manage the conference and the media server, control the start and stop of the conference, and the like.
Specifically, a user can create a conference through an operation interface provided by the conference management server, and issue a start request of the conference to the conference management server; for example: the user can create a conference "conference H" through an operation interface provided by the conference management server, and send a start request of the conference "conference H" to the conference management server. Of course, the user may also create a conference through the terminal and send a request for starting the conference to the conference management server through the terminal.
Preferably, in order to facilitate the conference management server to manage the conference, the conference management server may further include information such as a name of the conference, the number of participants in the conference, and a conference area to which the conference belongs.
S202: and in a port section with a mapping relation with an exit router, allocating a first idle port for the conference, and allocating a target media server for the conference in a media server cluster.
In the embodiment of the invention, an NAT port mapping rule with a conference management server is pre-configured in the exit router and is used for realizing the intercommunication between the corresponding port of the conference management server and an external network. For example: the IP address of the egress router is 113.31.84.82 (extranet), the IP address of the conference management server is 192.168.1.10 (intranet), and the egress router stores the IP address
Figure BDA0002065081870000071
Figure BDA0002065081870000072
The NAT port mapping rule of (1), that is, there is a mapping relationship between the 20101 port of 192.168.1.10 and the 20101 port of 113.31.84.82, and there is a mapping relationship … between the 20102 port of 192.168.1.10 and the 20102 port of 113.31.84.82.
And when the conference management server receives a conference request, allocating a first idle port for the conference in a port segment with a mapping relation between the conference management server and the exit router, and allocating a target media server for the conference in a media server cluster, wherein if a media server with the residual processing resource amount larger than a set threshold value is selected from the media server cluster, the selected media server is used as the target media server allocated for the conference.
Taking the port segment in the conference management server having the mapping relationship with the egress router as "20101-, wherein, the ports 20101 to 20200 in the port segment "20101-, a port is allocated for the "conference H" randomly or in the order of the port numbers from small to large in the idle port segment "20201-, for example, allocating "20201 port" for "conference H" selects a media server in the media server cluster, where the remaining processing resource is greater than the set resource threshold, such as media server 3, as the target media server allocated for "conference H".
S203: and selecting a second idle port of the target media server, and generating an NAT port mapping rule corresponding to the conference according to the first idle port and the second idle port.
In the embodiment of the present invention, the conference management server may obtain the port list in the idle/use state in the media server by sending a query instruction to the media server, or may maintain the port list in the idle/use state in the media server in the conference management server, which is not specifically limited.
The conference management server selects a second idle port of the target media server, and generates an NAT port mapping rule according to the first idle port allocated for the conference and the selected second idle port of the target media server, so that the target media server in the internal network is communicated with the terminal of the external network participating in the conference, and the target media server provides media services such as data exchange for the conference.
Still taking the above-mentioned conference H as an example, the first idle port allocated by the conference management server for the conference H is "20201 port", the IP of the conference management server is 192.168.1.10, the second idle port of the target media server "media server 3" is "20101 port", the IP address of the target media server is 192.168.3.3, and the NAT port mapping rule corresponding to "conference H" generated by the conference management server is that
Figure BDA0002065081870000091
And 192.168.1.10: 20201 and 113.31.84.82 of egress router: 20201 there is a mapping relationship between the data sent between the participating terminals of the "conference H" and the media server 3
Figure BDA0002065081870000092
And
Figure BDA0002065081870000093
Figure BDA0002065081870000094
the media server 3 formed by the NAT port mapping rule sends and receives data with a data path of the exit router and the conference management server, so that the media server 3 can be connected with an external network and intercommunicate with terminals of the external network participating in the conference, and then multipoint control is carried out on the terminals participating in the conference, and media services such as data exchange are provided for the conference H.
Preferably, in order to ensure reliability, after selecting a second idle port of the target media server, the conference management server may further send a conference start request to the target media server through the second idle port of the target media server, so that the target media server starts the media service, and sends a response message to the conference management server, and after receiving the response message, the conference management server generates an NAT port mapping rule of the conference.
Optionally, to facilitate management of mapping, in the embodiment of the present invention, the NAT port mapping rule may adopt a peer-to-peer mapping rule and be uniformly allocated by the conference management server, for example: the port number of the second idle port allocated or selected for the same conference is kept consistent with the port number of the first idle port.
Still taking the above-mentioned conference H as an example, the first idle port allocated by the conference management server for the conference H is "20201 port", the IP of the conference management server is 192.168.1.10, the target media server "media server 3", the conference management server selects the second idle port of "media server 3" as "20201 port" according to the peer-to-peer mapping rule, the IP address of the target media server is 192.168.3.3, and the NAT port mapping rule corresponding to "conference H" generated by the conference management server is "NAT port mapping rule
Figure BDA0002065081870000095
And 192.168.1.10: 20201 and 113.31.84.82 of egress router: 20201 there is a mapping relationship between the data sent between the participating terminals of the "conference H" and the media server 3
Figure BDA0002065081870000096
And
Figure BDA0002065081870000097
Figure BDA0002065081870000098
the media server 3 formed by the NAT port mapping rule sends and receives data with a data path of the exit router and the conference management server, so that the media server 3 can be connected with an external network and intercommunicate with terminals of the external network participating in the conference, and then multipoint control is carried out on the terminals participating in the conference, and media services such as data exchange are provided for the conference H.
In the embodiment of the invention, after receiving a conference request, the conference management server allocates a first idle port for the conference in the port segment having a mapping relation with the exit router, and allocates a target media server for the conference in the media server cluster, and generates the NAT port mapping rule for the conference according to the second idle port of the selected target media server, so that the NAT port mapping relation between a certain port segment of the conference management server and a certain port segment of the exit router is only configured on the exit router once, and the conference management server can dynamically allocate a port which can be connected with an external network for the conference according to the conference requirement, and generate the NAT port mapping rule, thereby reducing the workload for configuring the NAT port mapping rule, not limiting the number of the ports mapped by the media server, but configuring the NAT port mapping rule corresponding to the media server according to the number of the conferences served by the media server, the waste of port resources and the waste of processing resources of the media server are avoided.
Example 2:
in order to save hardware and machine room resources, in the embodiment of the present invention, multi-layer NAT port mapping hopping is supported, and specifically, on the basis of the above embodiment, in the embodiment of the present invention, if the target media server is a non-master control media server in a blade server, the generating, according to the first idle port and the second idle port, the NAT port mapping rule corresponding to the conference includes:
selecting a third idle port of a main control media server in a blade server where the target media server is located, and generating a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port; and instructing the master control media server to generate a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
The blade server is a low-cost server platform for realizing High Available High Density (HAHD), and can be plugged in a standard, i.e. Advanced Telecom Computing Architecture (ATCA) chassis like a blade, so that the machine room resources are greatly saved, each blade is actually a system mainboard, i.e. a server, and the blade server can contain a plurality of processors, but hardware such as a hard disk and a network is multiplexed in the blade server, and further the functions of a plurality of traditional servers are realized. Taking the example of a blade server having 4 processors, the blade server may correspond to 4 conventional servers. In the embodiment of the invention, in order to save hardware resources and machine room resources, the media server cluster can be deployed by using the blade server, and each main control server or non-main control server in the blade server can be used as one media server.
Referring to fig. 4, a schematic diagram of a video conference system architecture applicable to the intranet and extranet mapping method is shown, if a selected target media server is a non-master media server in a blade server, the target media server cannot be directly connected to a conference management server. The conference management server firstly selects a third idle port from the idle ports of the main control media server in the blade server where the target media server is located, generates a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port, indicates the main control media server in the blade server where the target media server is located, and generates a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
The following are exemplary: the media server allocated for the conference H is the media server 3, the first idle port allocated for the conference H by the conference management server is the '20201 port', the IP of the conference management server is 192.168.1.10, the second idle port of the target media server 'media server 3' is the '20101 port', the IP address of the target media server is 192.168.3.3, the third idle port of the main control media server 'main control media server 1' in the blade server where the media server 3 is located is '20205', the IP address of the main control media server 1 is 192.168.2.1, and the conference management server generates the first NAT port mapping rule that the first NAT port mapping rule is
Figure BDA0002065081870000111
Instruct the main control media server 1 to generate a second NAT port mapping rule of
Figure BDA0002065081870000112
Optionally, to facilitate management of mapping, in the embodiment of the present invention, the NAT port mapping rule may adopt a peer-to-peer mapping rule and be uniformly distributed by the conference management server, that is, all the NAT rules such as the first NAT rule and the second NAT rule use the peer-to-peer mapping rule, for example, when the corresponding mapping rule is adopted, the conference management server generates the first NAT port mapping rule as
Figure BDA0002065081870000113
Figure BDA0002065081870000114
Instruct the main control media server 1 to generate a second NAT port mapping rule of
Figure BDA0002065081870000121
In the embodiment of the present invention, 192.168.1.10, 192.168.2.1, 192.168.3.3 may be located in different subnets, for example, under the subnet where the master media server is located, the subnet where the media server is located may be nested.
As shown in fig. 5, when the target media server is a non-master media server among the non-blade servers, data streams exist between the terminal and the egress router, the egress router and the conference management server, the conference management server and the master media server 1, and the master media server 1 and the media server 3.
Example 3:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the allocating a target media server for the conference in a media server cluster includes:
selecting a media server with the lowest resource occupancy rate in a media server cluster as a target media server distributed for the conference; or the like, or a combination thereof,
and selecting a media server corresponding to the target conference area in the media server cluster as a target media server distributed for the conference according to the target conference area corresponding to the conference and the conference area corresponding to each media server in the media server cluster.
In the embodiment of the present invention, the conference management server may select one media server with the lowest resource occupancy rate as a target media server allocated for the conference according to the resource occupancy rate of each media server in the media server cluster. Of course, in the conference management server, a conference area corresponding to each media server in the media server cluster may also be stored in advance, and when a media server is allocated to a conference, one media server of a corresponding conference area is allocated to the conference as a target media server according to the conference area corresponding to the conference.
Example 4:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
receiving a stop request for the conference;
and deleting the NAT port mapping rule corresponding to the conference.
Specifically, after a certain conference is finished, the user may issue a request to stop the conference through an operation interface provided by the conference management server, or may issue a request to stop the conference to the conference management server through a terminal or the like.
Specifically, after the conference management server receives a stopping request of the conference, the NAT port mapping rule corresponding to the conference is deleted, the port occupied by the conference is released, and the media conference server stops providing the media conference for the conference after detecting that the port of the conference is released. Of course, the conference management server may send the request for stopping the conference to the media conference server providing the media service for the conference after receiving the request for receiving the conference, and the media conference server may stop providing the media service for the conference after receiving the request for stopping the conference.
Of course, if the target media server is a non-master media server in the blade server, receiving the stop request of the conference, and deleting the NAT port mapping rule corresponding to the conference includes:
and deleting the first NAT port mapping rule corresponding to the conference, instructing a main control media server in the blade server, and deleting the second NAT port mapping rule corresponding to the conference.
Specifically, if the media server of the media service provided for the conference is a non-master control media server in the blade server, after the conference management server receives the stop request of the conference, the first NAT port mapping rule corresponding to the conference is deleted, the master control media server in the blade server is instructed to delete the second NAT port mapping rule corresponding to the conference, and the port occupied by the conference is released.
Referring to fig. 6, services provided by each server in the video conference system are introduced, and signaling and management services run continuously on the conference management server and are responsible for overall management of the allocated ports, and NAT port mapping rules are added to or deleted from the conference management server; the media control service continuously runs on the media server and is responsible for adding and deleting NAT port mapping rules on the master control media server and starting the media service for stopping the conference; the media services are started and stopped as required, one conference corresponds to one media service, the media service is operated on a conference media server and is responsible for providing data exchange services for the participating terminals of the conference.
Example 5:
fig. 7 is a schematic structural diagram of an intranet and extranet mapping apparatus provided in an embodiment of the present invention, where the apparatus includes:
a receiving module 71, configured to receive a start request of a conference;
a determining module 72, configured to allocate a first idle port for the conference in a port segment having a mapping relationship with an egress router, and allocate a target media server for the conference in a media server cluster;
and the control module 73 is configured to select a second idle port of the target media server, and generate a network address translation NAT port mapping rule corresponding to the conference according to the first idle port and the second idle port.
Preferably, the control module 73 is specifically configured to, if the target media server is a non-master control media server in a blade server, select a third idle port of a master control media server in the blade server where the target media server is located, and generate a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port; and instructing the master control media server to generate a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
Preferably, the determining module 72 is specifically configured to select a media server with the lowest resource occupancy rate in the media server cluster as a target media server allocated to the conference; or selecting a media server corresponding to the target conference area in the media server cluster as a target media server distributed for the conference according to the target conference area corresponding to the conference and the conference area corresponding to each media server in the media server cluster.
Preferably, the receiving module 71 is further configured to receive a stop request of the conference;
the control module 73 is further configured to delete the NAT port mapping rule corresponding to the conference.
Preferably, the control module 73 is specifically configured to delete the first NAT port mapping rule corresponding to the conference, instruct the master control media server in the blade server, and delete the second NAT port mapping rule corresponding to the conference if the target media server is a non-master control media server in the blade server.
Example 6:
based on the same inventive concept, the embodiment of the present invention further provides an electronic device, and as the principle of solving the problem of the electronic device is similar to the internal and external network mapping method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where in fig. 8, the bus architecture may include any number of interconnected buses and bridges, and specifically, one or more processors represented by a processor 81 and various circuits of a memory represented by a memory 82 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The processor 81 is responsible for managing the bus architecture and general processing, and the memory 82 may store data used by the processor 81 in performing operations.
In the electronic device provided by the embodiment of the present invention:
the processor 81 is configured to read a program in the memory 82 and execute the intranet and extranet mapping method described in the foregoing embodiment.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, where a computer program executable by an electronic device is stored in the computer storage readable storage medium, and when the computer program runs on the electronic device, the electronic device is caused to execute the internal and external network mapping method described in the foregoing embodiments.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
While the preferred embodiments of the present application have been described, additional variations and modifications of these 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 alterations and modifications as fall within the scope of the application.
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. An intranet and extranet mapping method is applied to a conference management server, and the method comprises the following steps:
receiving a starting request of a conference;
in a port section which has a mapping relation with an exit router, allocating a first idle port for the conference, and allocating a target media server for the conference in a media server cluster;
selecting a second idle port of the target media server, and generating a Network Address Translation (NAT) port mapping rule corresponding to the conference according to the first idle port and the second idle port;
and the exit router is pre-configured with an NAT port mapping rule of the conference management server.
2. The method of claim 1, wherein if the target media server is a non-master media server in a blade server, the generating the NAT port mapping rule corresponding to the conference according to the first idle port and the second idle port comprises:
selecting a third idle port of a main control media server in the blade server, and generating a first NAT port mapping rule corresponding to the conference according to the first idle port and the third idle port; and instructing the master control media server to generate a second NAT port mapping rule corresponding to the conference according to the third idle port and the second idle port.
3. The method of claim 1, wherein the allocating a target media server for the conference among a cluster of media servers comprises:
selecting a media server with the lowest resource occupancy rate in a media server cluster as a target media server distributed for the conference; or the like, or a combination thereof,
and selecting a media server corresponding to the target conference area from the media server cluster as the target media server according to the target conference area corresponding to the conference and the conference area corresponding to each media server in the media server cluster.
4. The method of claim 1, wherein the method further comprises:
receiving a stop request for the conference;
and deleting the NAT port mapping rule corresponding to the conference.
5. The method of claim 2, wherein deleting the NAT port mapping rule corresponding to the conference if a stop request for the conference is received comprises:
and deleting the first NAT port mapping rule corresponding to the conference, instructing a main control media server in the blade server, and deleting the second NAT port mapping rule corresponding to the conference.
6. An intranet and extranet mapping apparatus, the apparatus comprising:
the receiving module is used for receiving a starting request of the conference;
the determining module is used for allocating a first idle port for the conference in a port segment which has a mapping relation with an exit router, and allocating a target media server for the conference in a media server cluster;
the control module is used for selecting a second idle port of the target media server and generating a Network Address Translation (NAT) port mapping rule corresponding to the conference according to the first idle port and the second idle port;
the exit router is pre-configured with NAT port mapping rules of the internal and external network mapping device.
7. A video conferencing system, comprising: a conference management server for performing the method of any of claims 1-5, and an egress router and a media server cluster respectively connected to the conference management server.
8. The system of claim 7, wherein the media servers in the media server cluster comprise a non-master media server and a master media server in a blade server.
9. An electronic device, comprising: a processor and a memory;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1-5.
10. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 1-5.
CN201910418138.6A 2019-05-20 2019-05-20 Intranet and extranet mapping method and device, electronic equipment, medium and video conference system Active CN110225146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910418138.6A CN110225146B (en) 2019-05-20 2019-05-20 Intranet and extranet mapping method and device, electronic equipment, medium and video conference system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910418138.6A CN110225146B (en) 2019-05-20 2019-05-20 Intranet and extranet mapping method and device, electronic equipment, medium and video conference system

Publications (2)

Publication Number Publication Date
CN110225146A CN110225146A (en) 2019-09-10
CN110225146B true CN110225146B (en) 2022-05-27

Family

ID=67821349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910418138.6A Active CN110225146B (en) 2019-05-20 2019-05-20 Intranet and extranet mapping method and device, electronic equipment, medium and video conference system

Country Status (1)

Country Link
CN (1) CN110225146B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911353B (en) * 2019-12-03 2023-01-20 海信视像科技股份有限公司 Display device, port scheduling method and storage medium
CN112312061B (en) * 2020-10-15 2023-05-12 浙江华创视讯科技有限公司 Video conference method and device, electronic equipment and storage medium
CN114979286B (en) * 2022-05-11 2023-09-19 咪咕文化科技有限公司 Access control method, device, equipment and computer storage medium for container service
CN115499409A (en) * 2022-09-29 2022-12-20 阿里巴巴(中国)有限公司 NAT gateway, server and network system
CN115633016A (en) * 2022-10-17 2023-01-20 维沃移动通信有限公司 Data transmission method, device, system, electronic equipment and medium
CN117041468A (en) * 2023-07-20 2023-11-10 北京安盛祥元科技发展有限公司 Network communication method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702001A (en) * 2013-12-17 2014-04-02 中国联合网络通信集团有限公司 Teleconference platform and teleconference processing method
CN104184842A (en) * 2013-05-24 2014-12-03 中兴通讯股份有限公司 Message forwarding method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9178846B1 (en) * 2011-11-04 2015-11-03 Juniper Networks, Inc. Deterministic network address and port translation
CN108933845A (en) * 2018-06-20 2018-12-04 新华三技术有限公司 A kind of public network IP address distribution method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184842A (en) * 2013-05-24 2014-12-03 中兴通讯股份有限公司 Message forwarding method and device
CN103702001A (en) * 2013-12-17 2014-04-02 中国联合网络通信集团有限公司 Teleconference platform and teleconference processing method

Also Published As

Publication number Publication date
CN110225146A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110225146B (en) Intranet and extranet mapping method and device, electronic equipment, medium and video conference system
US11546387B2 (en) Network conference management method and apparatus and storage medium, and network conference platform and system
CN102655503B (en) Use the Resourse Distribute in shared resource pond
US9332039B2 (en) Method, apparatus, and system for establishing voice communication
CN108768692B (en) Network creation method, related equipment and system
WO2021098407A1 (en) Mec-based service node allocation method and apparatus, and related server
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN111585887B (en) Communication method and device based on multiple networks, electronic equipment and storage medium
EP3745678B1 (en) Storage system, and method and apparatus for allocating storage resources
US9729347B2 (en) System and method for selection of a conference bridge master server
WO2016197628A1 (en) Method of terminal-based conference load-balancing, and device and system utilizing same
CN110661894A (en) User IP address allocation method, network device and storage medium
CN112312061B (en) Video conference method and device, electronic equipment and storage medium
WO2014183417A1 (en) Method, device, and system for memory management
US20160183229A1 (en) Ip phone network system, server apparatus, ip exchange and resource capacity expansion method
US9473316B2 (en) Resource consumption reduction via meeting affinity
US20150156231A1 (en) Method and a server of reserving conference hardware resources
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN113382065A (en) File downloading method, device, system, equipment and storage medium
CN110636149B (en) Remote access method, device, router and storage medium
CN106330504B (en) Method for realizing application and service controller
CN105307130A (en) Resource allocation method and resource allocation system
CN113595749B (en) Communication method and device for realizing multi-party network node intercommunication based on IRC platform
CN114629744B (en) Data access method, system and related device based on macvlan host network
RU2522995C2 (en) Method and apparatus for creating peer-to-peer group in peer-to-peer application and method of using peer-to-peer group

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