CN111314567B - Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices - Google Patents
Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices Download PDFInfo
- Publication number
- CN111314567B CN111314567B CN202010066728.XA CN202010066728A CN111314567B CN 111314567 B CN111314567 B CN 111314567B CN 202010066728 A CN202010066728 A CN 202010066728A CN 111314567 B CN111314567 B CN 111314567B
- Authority
- CN
- China
- Prior art keywords
- packet
- slave device
- slave
- sends
- master
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/006—Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/006—Networks 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/0066—Details of access arrangements to the networks
Abstract
The invention discloses a communication method based on cascade connection of a plurality of IAD devices, which relates to the technical field of network communication and sequentially comprises the following steps: the master device sends a query packet with the MAC (media access control) 0 of the slave device; the slave equipment receives the inquiry packet and sends an inquiry response packet with the slave equipment MAC; the master device receives the inquiry response packet and sends an inquiry packet with the slave device MAC; the slave equipment receives an inquiry packet with slave equipment MAC and sends a request IP address packet; the main device receives the request IP address packet and sends an internal IP address packet; the slave device receives the internal IP address packet, sets corresponding parameters, sets the parameters as a slave device mode, restarts the call processing module, and correspondingly adds 1 to the restart times; the master device sends a query packet with the slave device MAC; the slave equipment receives the inquiry packet and sends an inquiry response packet with the slave equipment MAC; and the main equipment receives the inquiry response packet, identifies the number of the ports, sets corresponding parameters and registers the corresponding parameters to the SIP server. Compared with the traditional scheme, the invention can realize quick networking and save cost and IPV4 address resources.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a communication method based on cascade connection of a plurality of IAD (inter-integrated access devices).
Background
At present, a plurality of enterprises introduce integrated access devices (IAD devices) to implement VOIP telephony functions, as shown in fig. 1 of the specification, each IAD device needs to be configured with 1 IPV4 address, most IAD devices are implemented by using IPV4 protocol, and 1 IAD device needs to allocate 1 IPV4 address, so that when a parallel connection mode is adopted, as many IAD devices need to allocate many IPV4 addresses, in this case, a switch or a router is required to connect a plurality of IAD devices. With the increase of the enterprise size and the number of the telephones, more IAD equipment needs to be added, namely more IPV4 addresses need to be allocated, but because the IPV4 addresses are saturated at present, the IPV6 is not adopted on a large scale, and more time, manpower, material resources and financial resources are needed for replacing the IPV6 system. In order to achieve the function expansion as soon as possible, and in the case that the address of the IPV4 cannot be increased, only the IAD device with more ports is replaced, so that the original small-port device cannot be used continuously and is wasted, and the large-port device is more expensive. Therefore, in order to realize fast networking, reduce cost and save resources, a new communication method based on the IAD equipment is urgently needed.
Disclosure of Invention
In view of the above, it is necessary to provide a communication method based on cascading multiple IAD devices, where 1 IAD device is used as a master device, the other devices are used as slave devices, a WAN port of the master device is connected to an external network, and a LAN port is connected to a WAN port of the slave device, so that the IAD devices with corresponding port numbers are added, and then the original small-port IAD devices are cascaded, so that the communication method can be continuously used, thereby meeting the requirements of fast networking, reducing cost, and saving resources.
In order to realize the purpose, the invention is realized according to the following technical scheme:
a communication method based on cascade connection of a plurality of IAD devices is applied to a master device and a slave device in the IAD devices and comprises a first stage and a second stage,
the first stage is a master-slave equipment identification process, and comprises the following steps:
step S1, the master device sends a query packet with the slave device MAC being 0;
step S2, the slave device receives the inquiry packet and sends the inquiry response packet with the slave device MAC;
step S3, the master device receives the inquiry response packet and sends the inquiry packet with the slave device MAC;
step S4, the slave device receives the inquiry packet with slave device MAC and sends the request IP address packet;
step S5, the master device receives the request IP address packet of each slave device, and sends the allocation internal IP address packet to each slave device;
step S6, the slave device receives the internal IP address packet, sets the corresponding parameter, sets it as the slave device mode, then restarts the call processing module, and adds 1 to the restart times of the call processing module USCallSN;
step S7, the master device sends a query packet with each slave device MAC;
step S8, the slave device receives the inquiry packet and sends an inquiry response packet with the MAC of the slave device and the restart times usCallSN after the step S6 is finished;
step S9, the master device receives the inquiry response packet of each slave device, identifies the port number of each slave device, sets corresponding parameters, and registers to the SIP server;
and the second stage is a normal call processing flow of the user on-hook and off-hook.
Further, before step S1, the method further includes the following steps:
setting 1 IAD device to be in a master device mode through a setting interface, wherein the rest devices are slave devices, and connecting a LAN port of the master device to a WAN port of the slave device;
if a plurality of slave devices are cascaded, the LAN port of the slave device 1 is continuously connected with the WAN port of the slave device 2, and if a computer is required to be connected, the computer is connected with the LAN port of the last slave device;
each master-slave device is powered on, and the master device discovers each slave device.
Further, in step S3, if the master device does not receive the inquiry response packet of the slave device, it returns to step S1.
Further, in step S6, the setting corresponding parameters include WAN port IP address, mask, gateway and device as slave mode.
Further, in steps S1-S9, the master device sends a packet from the LAN port to the slave device, and the slave device receives the packet from the WAN port, analyzes the packet, and responds to the master device with the corresponding information from the WAN port according to the message type; and the master device receives the data packet sent by the slave device through the LAN port, analyzes the data packet and responds corresponding information to the slave device from the LAN port according to the message type.
Compared with the prior art, the invention has the advantages and positive effects that at least:
1. and (3) fast networking: only adding a telephone number of a port of a newly-added slave device on an SIP server, then cascading a plurality of IAD devices, taking 1 IAD device as a master device, and taking the rest as slave devices;
2. the cost is saved: the SIP server does not need to be replaced to support the IPV6, the IAD equipment with more ports does not need to be replaced, a switch or a router is not needed to be connected with a plurality of IAD equipment, and a plurality of small-port equipment only need to be cascaded;
3. saving IPV4 resources: multiple IAD devices connected in parallel need multiple IPV4 addresses, and multiple IAD devices connected in cascade need only 1 IPV4 addresses.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of 2 IAD devices connected in parallel;
fig. 2 is a schematic structural diagram of a cascade of 2 IAD devices according to an embodiment of the present invention;
fig. 3 is a schematic workflow diagram of an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work based on the embodiments of the present invention belong to the protection scope of the present invention.
It should be noted that, in the embodiment of the present invention, there is a description related to "slave device 1", "slave device 2", etc., and the description of "slave device 1", "slave device 2", etc. is only for descriptive purposes, and is not to be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "slave device 1", "slave device 2", etc. may explicitly or implicitly include at least one such feature.
The "IAD device" in the present invention means an Integrated Access Device (IAD), which is an access device capable of simultaneously delivering traditional PSTN voice service, packet voice service, and data service (through LAN port) on a single WAN link, etc., and belongs to the general term; "IPV 6" is an abbreviation for "Internet Protocol Version 6" (Internet Protocol Version 6), which is a generic term; "IPV 4" is an abbreviation for "Internet Protocol version 4" (fourth edition of Internet communication Protocol) in English, and belongs to a general term; "MAC" means a MAC Address, also called Media Access Control Address (Media Access Control Address), a Physical Address (Physical Address), an Address for identifying the location of a network device, and is a generic term; "WAN" is an abbreviation of Wide Area Network (WAN), a transregional data communications Network, referred to herein as a WAN port, and is a generic term; "LAN" is intended to mean a local area network port, a generic term; the socket means a socket, is an abstraction layer, through which an application program can send or receive data, and can perform operations such as opening, reading, writing, and closing on the application program like a file, and belongs to a general term.
Examples
Fig. 1 and 2 take two IAD devices as an example, and different structures that the two IAD devices adopt a parallel connection manner and a cascade connection manner are provided. As shown in fig. 1 and 2, each IAD device needs to configure 1 IPV4 address, so that with the parallel connection mode of fig. 1, as many IAD devices need to allocate many IPV4 addresses, which requires a switch or a router to connect multiple IAD devices; however, if the cascade mode of fig. 2 is adopted, only 1 IPV4 address needs to be allocated to the master device, and the address of the slave device is allocated with an internal IP address by the master device, so that the address of the IPV4 can be saved, thereby realizing fast networking, reducing cost and saving resources.
As shown in fig. 3, the present invention provides a communication method based on cascading multiple IAD devices, which is applied to a master device and a slave device in an IAD device, and includes a first stage and a second stage,
the first stage is a master-slave equipment identification process, and comprises the following steps:
step S1, the master device sends a query packet with the slave device MAC being 0;
specifically, the host device establishes a socket of the LAN port, and then sends an inquiry packet, where a specific data structure is as follows:
step S2, the slave device receives the inquiry packet and sends the inquiry response packet with the slave device MAC;
specifically, when the WAN port of the slave device receives the inquiry packet transmitted from the master device, the inquiry response packet of the slave device is transmitted through the WAN port. The specific data structure is as follows:
step S3, the master device receives the inquiry response packet and sends the inquiry packet with the slave device MAC; the specific data structure is as follows:
step S4, the slave device receives the inquiry packet with slave device MAC and sends the request IP address packet; the specific data structure is as follows:
step S5, the master device receives the request IP address packet of each slave device, and sends the allocation internal IP address packet to each slave device; the specific data structure is as follows:
step S6, the slave device receives the internal IP address packet, sets the corresponding parameter, sets it as the slave device mode, then restarts the call processing module, and adds 1 to the restart times of the call processing module USCallSN; the specific data structure is as follows:
VS_SHM_SET(CURR_CFG.WAN_CONN_STATIC_IP(0),slave_ip);
VS_SHM_SET(CURR_CFG.PRIMARY_WAN_GATEWAY,master_ip);
VS_SHM_SET(CURR_CFG.SYS_SLAVE_MODE,1);
step S7, the master device sends a query packet with the slave device MAC; the specific data structure is as follows:
step S8, the slave device receives the inquiry packet and sends the inquiry response packet with the slave device MAC; the specific data structure is as follows:
step S9, the master device receives the inquiry response packet of each slave device, identifies the port number of each slave device, sets corresponding parameters, and registers to the SIP server;
and the second stage is a normal call processing flow of the user on-hook and off-hook.
Further, before step S1, the method further includes the following steps:
setting 1 IAD device to be in a master device mode through a setting interface, wherein the rest devices are slave devices, and connecting a LAN port of the master device to a WAN port of the slave device;
if a plurality of slave devices are cascaded, the LAN port of the slave device 1 is continuously connected with the WAN port of the slave device 2, and if a computer is required to be connected, the computer is connected with the LAN port of the last slave device;
when all the master and slave devices are powered on, the master device can discover all the slave devices, and the hardware is connected in the mode as above.
Further, in step S3, if the master device does not receive the inquiry response packet of the slave device, it returns to step S1.
Further, in step S6, the setting corresponding parameters include WAN port IP address, mask, gateway and device as slave mode.
Further, in steps S1-S9, the master device sends a packet from the LAN port to the slave device, and the slave device receives the packet from the WAN port, analyzes the packet, and responds to the master device with the corresponding information from the WAN port according to the message type; and the master device receives the data packet sent by the slave device through the LAN port, analyzes the data packet and responds corresponding information to the slave device from the LAN port according to the message type.
As shown in fig. 2 and 3, the working principle of the present invention is:
firstly, setting 1 device into a master device mode through a setting interface, wherein the rest devices are slave devices, secondly, connecting a LAN port of the master device to a WAN port of the slave device, if a plurality of slave devices are cascaded, continuously connecting the LAN port of the slave device 1 to the WAN port of the slave device 2, then, connecting a computer to the LAN port of the last slave device if the computer needs to be connected, and finally, powering on each device, wherein the master device can discover each slave device, and hardware is connected according to the above mode.
After the power is on, the master device sends an inquiry packet with the MAC (media access control) 0 of the slave device through the LAN; after each slave device receives the inquiry packet from the WAN port, the inquiry response packet with the MAC address of the slave device is sent; after receiving the inquiry response packet of each slave device from the LAN port, the master device sends an inquiry packet with the number of the slave devices and the MAC to each slave device; after receiving the inquiry packet from the WAN port, each slave device sends a request IP address packet; after receiving the request IP address packet of each slave device from the LAN port, the master device sends an allocated internal IP address packet to each slave device; after each slave device receives the IP address packet from the WAN port, setting corresponding parameters and setting the parameters as slave device modes; the master device identifies the number of the slave devices and the number of the ports, sets corresponding parameters, registers the slave devices with the SIP server, and then processes the slave devices according to the flow of the SIP protocol.
The invention can realize rapid networking on the premise of not increasing hardware, as long as adding the telephone number of a newly-added slave device port on the SIP server, and then cascading a plurality of IAD devices, wherein 1 IAD device is taken as a master device, and the rest are taken as slave devices; the invention can also save cost: the SIP server does not need to be replaced to support the IPV6, the IAD equipment with more ports does not need to be replaced, a switch or a router is not needed to be connected with a plurality of IAD equipment, and a plurality of small-port equipment only need to be cascaded; the invention can use less IPV4 address, thereby saving IPV4 address resource.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.
Claims (5)
1. A communication method based on cascade connection of a plurality of IAD devices is applied to a master device and a slave device in the IAD devices and is characterized by comprising a first stage and a second stage,
the first stage is a master-slave equipment identification process, and comprises the following steps:
step S1, the master device sends a query packet with the slave device MAC being 0;
step S2, the slave device receives the inquiry packet and sends the inquiry response packet with the slave device MAC;
step S3, the master device receives the inquiry response packet and sends the inquiry packet with the slave device MAC;
step S4, the slave device receives the inquiry packet with slave device MAC and sends the request IP address packet;
step S5, the master device receives the request IP address packet of each slave device, and sends the allocation internal IP address packet to each slave device;
step S6, the slave device receives the internal IP address packet, sets the corresponding parameter, sets it as the slave device mode, then restarts the call processing module, and adds 1 to the restart times of the call processing module USCallSN;
step S7, the master device sends a query packet with each slave device MAC;
step S8, the slave device receives the inquiry packet and sends an inquiry response packet with the MAC of the slave device and the restart times usCallSN after the step S6 is finished;
step S9, the master device receives the inquiry response packet of each slave device, identifies the port number of each slave device, sets corresponding parameters, and registers to the SIP server;
and the second stage is a normal call processing flow of the user on-hook and off-hook.
2. The communication method based on multiple IAD device cascade of claim 1, further comprising, before step S1, the steps of:
setting 1 IAD device to be in a master device mode through a setting interface, wherein the rest devices are slave devices, and connecting a LAN port of the master device to a WAN port of the slave device;
if a plurality of slave devices are cascaded, the LAN port of the slave device 1 is continuously connected with the WAN port of the slave device 2, and if a computer is required to be connected, the computer is connected with the LAN port of the last slave device;
each master-slave device is powered on, and the master device discovers each slave device.
3. The cascade communication method for multiple IAD devices as claimed in claim 2, wherein in step S3, if the master device does not receive the inquiry response packet from the slave device, the method returns to step S1.
4. The communication method according to claim 2, wherein in step S6, the setting corresponding parameters comprise WAN port IP address, mask, gateway and device slave mode.
5. The cascade communication method based on multiple IAD devices as claimed in claim 2, wherein in steps S1-S9, the master device sends the data packet from the LAN port to the slave device, the slave device receives the data packet from the WAN port, analyzes the data packet, and responds to the master device with the corresponding information from the WAN port according to the message type; and the master device receives the data packet sent by the slave device through the LAN port, analyzes the data packet and responds corresponding information to the slave device from the LAN port according to the message type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010066728.XA CN111314567B (en) | 2020-01-20 | 2020-01-20 | Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010066728.XA CN111314567B (en) | 2020-01-20 | 2020-01-20 | Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111314567A CN111314567A (en) | 2020-06-19 |
CN111314567B true CN111314567B (en) | 2021-10-26 |
Family
ID=71146834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010066728.XA Active CN111314567B (en) | 2020-01-20 | 2020-01-20 | Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111314567B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113225270B (en) * | 2020-08-26 | 2022-03-15 | 广州锦行网络科技有限公司 | Network system supporting IPv4 and IPv6 dual-stack mixing |
CN112866428A (en) * | 2020-12-31 | 2021-05-28 | 广州芯德通信科技股份有限公司 | IAD device communication method and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7274703B2 (en) * | 2002-03-11 | 2007-09-25 | 3Com Corporation | Stackable network units with resiliency facility |
EP3255866B1 (en) * | 2015-05-29 | 2019-08-21 | Huawei Technologies Co., Ltd. | Internet protocol address allocation method and router |
CN108259345B (en) * | 2016-12-30 | 2021-01-26 | 新华三技术有限公司 | Port generation method and device |
CN109587361B (en) * | 2018-12-27 | 2020-09-25 | 武汉职业技术学院 | Campus local area network VoIP system based on IBX1000 |
CN109982172B (en) * | 2019-03-22 | 2020-08-04 | 烽火通信科技股份有限公司 | PON access system subframe cascading system and method |
-
2020
- 2020-01-20 CN CN202010066728.XA patent/CN111314567B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111314567A (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4605066B2 (en) | IP telephone system and IP telephone terminal registration method | |
CN111796905B (en) | Method and system for realizing Kubernetes container cloud platform VLAN network | |
US7711830B2 (en) | Sharing a shared resource across logical partitions or systems | |
CN111314567B (en) | Communication method based on cascade connection of multiple IAD (inter-integrated access device) devices | |
US20070250605A1 (en) | Automatic discovery and configuration of network devices | |
JP2000059415A (en) | Gateway for internet telephone system | |
IL174819A (en) | Mobile-terminal gateway | |
US20040258021A1 (en) | Program for voice talking, voice talking method, and voice talking apparatus | |
WO2020253631A1 (en) | Configuration method, device, and system for ip address | |
CN107809386B (en) | IP address translation method, routing device and communication system | |
WO2011144080A2 (en) | Communication method, system and apparatus | |
JP3420512B2 (en) | Dynamic domain name system | |
CN109088957B (en) | NAT rule management method, device and equipment | |
WO2016086544A1 (en) | Network interface configuration method and apparatus for network device and storage medium | |
US7593349B2 (en) | Method and arrangement for configuration of a device in a data network | |
CN105939344A (en) | TCP (Transmission Control Protocol) connection establishing method and device | |
JP5729796B1 (en) | Gateway device, communication system, communication method, and communication program | |
US20070104200A1 (en) | Network device with routing function and policy route setting method thereof | |
CN108259345B (en) | Port generation method and device | |
CN110753135A (en) | IP address configuration method, configuration equipment and storage medium | |
CN107070725B (en) | A kind of method that server two-level management intermodule communication is shaken hands | |
JPH1013471A (en) | Inter-network connection system and domain name managing method | |
CN115174310A (en) | PDN dialing and configuration method, system, device, equipment and storage medium | |
WO2019041247A1 (en) | Address allocation method and related device | |
CN112866428A (en) | IAD device communication method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |