CN116170214A - ITMS platform and sub-gateway communication method, device, equipment and storage medium - Google Patents
ITMS platform and sub-gateway communication method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116170214A CN116170214A CN202310156860.3A CN202310156860A CN116170214A CN 116170214 A CN116170214 A CN 116170214A CN 202310156860 A CN202310156860 A CN 202310156860A CN 116170214 A CN116170214 A CN 116170214A
- Authority
- CN
- China
- Prior art keywords
- gateway
- sub
- authentication account
- request message
- connection request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to a communication method, a device, equipment and a storage medium of an ITMS platform and a sub-gateway, wherein when a main gateway receives an active connection request message sent by the sub-gateway, a first authentication account carried by the main gateway is encrypted and converted to obtain a second authentication account; the active connection request message carrying the second authentication account number is sent to the ITMS platform so as to realize active reporting between the sub-gateway and the ITMS platform; when the primary gateway receives a reverse connection request message carrying a second authentication account number and sent by an ITMS platform, determining a first authentication account number according to the second authentication account number and a first mapping table; determining a target MAC address based on the first authentication account number and the second mapping table; and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address, so as to realize reverse connection between the ITMS platform and the sub-gateway, and further realize normal communication between the sub-gateway and the ITMS platform under the condition of non-direct connection.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for communication between an ITMS platform and a sub-gateway.
Background
For a traditional FTTR (fiber to the room) networking environment, referring to fig. 1, an ITMS (integrated management system) platform can only interact with directly connected devices, that is, the ITMS platform can only directly communicate with a main gateway, but cannot acquire device information of a sub-gateway hung under the main gateway, so that direct communication with the sub-gateway cannot be realized.
However, for the ITMS platform, the device operation status, service configuration, the number of devices that can be accessed, and the bandwidth limitations of the internet, etc. of the sub-gateway need to be known by the ITMS platform. For example, when the internet service of a certain sub-gateway is found to be not available, all the terminals hung down by the sub-gateway cannot be normally connected, and then the ITMS platform needs to inquire whether the internet service has been issued to the sub-gateway or whether a certain network configuration of the sub-gateway is normal, and the like.
It can be seen that how to implement the communication between the sub-gateway and the ITMS platform without changing the existing network architecture is a current problem that needs to be solved.
Disclosure of Invention
The application provides a communication method, device, equipment and storage medium of an ITMS platform and a sub-gateway, so as to solve the problem that the ITMS platform cannot directly communicate with the sub-gateway in the related technology.
In a first aspect, there is provided a method for communication between an ITMS platform and a sub-gateway, the method being applied to a main gateway, the method comprising the steps of:
when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account;
updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or;
when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
determining a target MAC address based on the first authentication account and a preset second mapping table;
and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
In some embodiments, after the step of performing encryption conversion on the first authentication account carried in the active connection request packet to obtain the second authentication account, the method further includes:
and constructing a first mapping table based on the first authentication account and the second authentication account.
In some embodiments, the active connection request packet further carries MAC address information and IP address information corresponding to the sub-gateway.
In some embodiments, after the step when the active connection request message sent by the sub-gateway is received, the method further includes:
and constructing a second mapping table based on the first authentication account number and the MAC address information carried by the active connection request message.
In some embodiments, after the step when the active connection request message sent by the sub-gateway is received, the method further includes:
and constructing a third mapping table based on the MAC address information and the IP address information carried by the active connection request message.
In some embodiments, the method further comprises:
acquiring a real-time IP address of a sub-gateway;
and updating the mapping relation contained in the third mapping table based on the real-time IP address.
In some embodiments, the transparently transmitting the reverse connection request packet to the sub-gateway corresponding to the target MAC address includes:
determining a target IP address based on the target MAC address and the third mapping table;
and transmitting the reverse connection request message to a sub-gateway corresponding to the target IP address.
In a second aspect, there is provided an ITMS platform and sub-gateway communication apparatus for implementing the foregoing ITMS platform and sub-gateway communication method, including a main gateway for:
when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account;
updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or;
when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
determining a target MAC address based on the first authentication account and a preset second mapping table;
and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
In a third aspect, there is provided an ITMS platform and sub-gateway communication apparatus, comprising: the system comprises a memory and a processor, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor so as to realize the communication method of the ITMS platform and the sub-gateway.
In a fourth aspect, there is provided a computer readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the ITMS platform and sub-gateway communication method described previously.
The beneficial effects that technical scheme that this application provided brought include: the normal communication between the sub-gateway and the ITMS platform under the non-direct connection condition can be realized on the basis of the existing network architecture.
The application provides a communication method, a device, equipment and a storage medium of an ITMS platform and a sub-gateway, wherein the method is applied to a main gateway and comprises the steps of carrying out encryption conversion on a first authentication account carried by an active connection request message when the active connection request message sent by the sub-gateway is received, so as to obtain a second authentication account; updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or; when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table; determining a target MAC address based on the first authentication account and a preset second mapping table; and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway. By the method and the device, normal communication between the sub-gateway and the ITMS platform under the condition of non-direct connection is realized on the basis of the existing network architecture, no additional network frame is needed, and network burden is further effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of information interaction between an ITMS platform and a gateway in the prior art;
fig. 2 is a flow chart of a communication method between an ITMS platform and a sub-gateway according to an embodiment of the present application;
fig. 3 is a schematic diagram of an information interaction flow between a gateway down-hanging set top box and an ITMS platform in the prior art;
fig. 4 is an information interaction schematic diagram of a sub-gateway initiating active connection to an ITMS platform according to an embodiment of the present application;
fig. 5 is a schematic implementation flow chart of internal processing of a primary gateway according to an embodiment of the present application;
fig. 6 is an information interaction schematic diagram of an ITMS platform according to an embodiment of the present application initiating reverse connection to a sub-gateway;
fig. 7 is a schematic structural diagram of an ITMS platform and a sub-gateway communication device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The embodiment of the application provides a communication method, device, equipment and storage medium of an ITMS platform and a sub-gateway, which can solve the problem that the ITMS platform cannot directly communicate with the sub-gateway in the related technology.
Fig. 2 is a communication method between an ITMS platform and a sub-gateway provided in an embodiment of the present application, where the method is applied to a main gateway, and the method includes the following steps:
step S10: when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account; the active connection request message also carries MAC address information and IP address information corresponding to the sub-gateway;
it should be appreciated that, in an existing FTTR networking environment, when multiple sub-gateway devices are suspended from a main gateway, the ITMS platform cannot access the sub-gateway, and the sub-gateway is in an out-of-pipe state for the ITMS platform due to the failure to directly communicate, so that communication between the ITMS platform and the sub-gateway needs to be achieved.
In the existing networking mode with similar problems, as shown in fig. 3, when the gateway hangs down the set top box, because the ITMS platform is not directly connected to the set top box, so that the ITMS platform cannot directly communicate with the set top box, a STUN (session traversing application) server is newly added, and when the ITMS platform needs to access the set top box, the STUN server provides an address and an external network port capable of accessing the set top box, so that the ITMS platform can access the set top box through the external network port and the address, and further, the communication between the ITMS platform and the set top box is realized. Although the communication between the ITMS platform and the sub-gateway can be realized by adding additional servers in the existing FTTR networking environment, the main problem of the communication mode is that two servers are provided, and the ITMS platform can actively communicate with the set top box only when the two servers are connected normally, so that the network environment becomes more complex and is not easy to manage.
In this embodiment, as shown in fig. 4, when the sub-gateway needs to initiate a secure connection procedure (i.e. active reporting) to the ITMS platform, it will carry a unique first authentication account number Digest (i.e. a Digest identification account number) and basic information including MAC address information and IP address information. However, since the sub-gateway is not directly connected with the ITMS platform, the first authentication account number Digest carried by the sub-gateway will be forwarded through the main gateway, i.e. the sub-gateway will send an active connection request message carrying the first authentication account number Digest and its basic information to the main gateway.
After receiving the first authentication account number Digest, the primary gateway encrypts and converts the first authentication account number Digest into an encrypted account number so as to obtain a second authentication account number Digest' corresponding to the first authentication account number Digest. It should be understood that, in this embodiment, the Digest represents an authentication account number of the device, that is, a unique identifier of the device, which may be expressed as a combination of a MAC address of the device and a name thereof, that is, a character string with the MAC address as a character string, and the Digest account number is identified by the name, and the Digest' is an encrypted Digest; for example, in this embodiment, the device is a SUB-gateway, and assuming that a name of a certain SUB-gateway is SUB and a MAC address of the SUB-gateway is 11:22:33:44:55:66, the Digest is 112233445566SUB, that is, a first authentication account Digest of the SUB-gateway is 112233445566SUB, and a second authentication account Digest' is an account formed by encrypting 112233445566 SUB.
Further, after the step when the active connection request message sent by the sub-gateway is received, the method further includes:
and constructing a second mapping table based on the first authentication account number and the MAC address information carried by the active connection request message.
In this embodiment, as shown in fig. 5, a second mapping table (i.e. the table corresponding to the table in fig. 5) is created to record the correspondence between the unique first authentication account number Digest corresponding to each sub-gateway and the MAC address, so that the main gateway can confirm the corresponding sub-gateway device bound by the first authentication account number Digest. It can be understood that, the data issued by the ITMS platform can be accurately transferred to the corresponding sub-gateway through the Digest mapping table. Therefore, when the primary gateway obtains the first authentication account number Digest and the MAC address information sent by the sub gateway, the primary gateway establishes a corresponding relation between the first authentication account number Digest and the MAC address of the sub gateway and stores the corresponding relation in a Digest corresponding table.
For example, if the first authentication account number Digest of the sub-gateway 1 is Digest1 and its MAC address is A1, the first authentication account number Digest of the sub-gateway 2 is Digest2 and its MAC address is A2, and the first authentication account number Digest of the sub-gateway 3 is Digest3 and its MAC address is A3, the correspondence between Digest1 and A1, digest2 and A2, and Digest3 and A3 will be stored in the Digest correspondence table respectively.
Further, after the step when the active connection request message sent by the sub-gateway is received, the method further includes:
and constructing a third mapping table based on the MAC address information and the IP address information carried by the active connection request message.
Exemplarily, in this embodiment, referring to fig. 5, a third mapping table (i.e., ARP table in fig. 5) is created to record the correspondence between the MAC address and the IP address corresponding to each sub-gateway. It should be appreciated that although the sub-gateways may change in IP address due to power down, the MAC address of each sub-gateway is fixed, so that the main gateway can accurately identify the sub-gateway that is down through the ARP table. When the main gateway obtains the MAC address information and the IP address information sent by the sub gateway, the main gateway establishes the corresponding relation between the MAC address and the IP address of the sub gateway and stores the corresponding relation in an ARP table.
Further, the method further comprises:
acquiring a real-time IP address of a sub-gateway;
and updating the mapping relation contained in the third mapping table based on the real-time IP address.
It should be understood that, for example, the sub-gateway will change its IP address after being powered off, that is, when the sub-gateway is disconnected and then disconnected again, its IP address will change, and then the mapping relationship between the MAC address and the IP address corresponding to the sub-gateway described in the ARP table will not be established and needs to be updated. Therefore, in this embodiment, the main gateway monitors the real-time IP address of the sub-gateway in real time, so as to determine whether the mapping relationship between the MAC address and the IP address stored in the ARP table needs to be updated based on the real-time IP address.
For example, if the MAC address before the sub-gateway 1 is not powered off is a and the IP address is B1, the main gateway stores the mapping relationship between the MAC address and the IP address corresponding to the sub-gateway 1 in the ARP table as a to B1; when the sub-gateway 1 is powered off and is on line again, the corresponding MAC address is a, but the corresponding real-time IP address is changed to B2, and at this time, the main gateway updates the mapping relationship corresponding to the sub-gateway 1 in the ARP table, that is, updates a to B1 to a to B2, and then the latest mapping relationship corresponding to the sub-gateway 1 recorded in the ARP table is a to B2.
Further, after the step of performing encryption conversion on the first authentication account carried by the active connection request message to obtain the second authentication account, the method further includes:
and constructing a first mapping table based on the first authentication account and the second authentication account.
In this embodiment, as shown in fig. 5, a first mapping table (i.e. the table of table mapping in fig. 5) is created to record the mapping relationship between the unique first authentication account table reported by each subnet and the second authentication account table generated after the unique first authentication account table and the second authentication account table 'are encrypted, or the mapping relation between the second authentication account number Digest' issued by the ITMS platform and the first authentication account number Digest generated after decryption. It can be understood that the Digest mapping table realizes the security of the interactive data by encryption and decryption, and avoids the leakage of equipment information. Therefore, after the primary gateway performs encryption conversion on the first authentication account number Digest corresponding to the sub-gateway to obtain a second authentication account number Digest ', the corresponding relation between the first authentication account number Digest and the second authentication account number Digest' of the sub-gateway is established and stored in a Digest mapping table.
As can be seen, referring to fig. 5, in the process of implementing communication with the primary gateway, when the secondary gateway sends request information to the primary gateway, the secondary gateway in this embodiment carries information including a first authentication account number Digest (i.e. a Digest broadband account number), MAC address information and IP address information; the primary gateway needs to implement internal conversion through the conversion table in fig. 5 to obtain a second authentication account number Digest' corresponding to the first authentication account number Digest. The following three tables are maintained in the whole process: ARP table, digest correspondence table, digest mapping table.
The ARP table is used for recording the corresponding relation between the MAC address and the IP address of the sub-gateway, and the main gateway can accurately identify the sub-gateway hung down through the ARP table; the table is used for recording the unique correspondence between the table identification account number and the MAC address of each sub-gateway so as to confirm the sub-gateway equipment bound by the table identification account number, and the table can enable the data issued by the ITMS platform to be accurately transferred to the corresponding sub-gateway; the Digest mapping table is used for generating a second authentication account Digest 'by encrypting and converting a first authentication account Digest reported by the sub gateway or generating a first authentication account Digest by decrypting a second authentication account Digest' issued by the ITMS platform, and realizing the security of interaction data by encrypting and decrypting based on the Digest mapping table so as to avoid the leakage of equipment information.
Step S20: updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform so as to realize active reporting between the sub-gateway and the ITMS platform;
in this embodiment, after the primary gateway obtains the second authentication account number Digest ' through encryption conversion, the second authentication account number Digest ' is reported to the ITMS platform, and the ITMS platform records the reported Digest ' information. The sub gateway completes the initiative report of the ITMS platform and successfully establishes the forward channel.
Step S30: when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
in this embodiment, as shown in fig. 6, when the ITMS platform needs to acquire certain sub-gateway information, a reverse connection request message is issued to the main gateway, and the message carries second authentication account number Digest' information corresponding to the sub-gateway, which indicates that the sub-gateway needs to be accessed at this time. When receiving the request information sent by the ITMS platform, the main gateway converts the second authentication account number Diget 'into a corresponding first authentication account number Diget in the inside according to the mapping relation between the first authentication account number Diget and the second authentication account number Diget' recorded in the Diget mapping table.
For example, the table stores the mapping relationship between the first authentication account number Digest and the second authentication account number Digest' corresponding to the sub-gateway 1 as follows: the mapping relations between the first authentication account number Digest and the second authentication account number Digest' corresponding to the sub-gateway 2 are as follows: digest2 to Digest 2'; when the request information sent by the ITMS platform and received by the main gateway is carried by the Digest 2', the request information is decrypted and converted into Digest2 according to the Digest mapping table.
Step S40: determining a target MAC address based on the first authentication account and a preset second mapping relation;
in this embodiment, the primary gateway determines, after determining the first authentication account number Digest, a target MAC address corresponding to the first authentication account number Digest according to a mapping relationship between the first authentication account number Digest and the MAC address in the Digest correspondence table.
For example, the mapping relation between the first authentication account number Digest corresponding to the sub-gateway 1 and the MAC address is stored in the Digest correspondence table: the mapping relation between the first authentication account number Digest corresponding to the sub-gateway 2 and the MAC address is from the Digest1 to the MAC1, and the mapping relation is: digest2 to MAC2; when the primary gateway determines that the first authentication account number Digest is Digest2, determining that the target MAC address corresponding to the first authentication account number Digest (i.e., digest 2) is MAC2 according to the Digest correspondence table.
Step S50: and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
Specifically, the transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address includes:
determining a target IP address based on the target MAC address and the third mapping table;
and transmitting the reverse connection request message to a sub-gateway corresponding to the target IP address.
In this embodiment, the primary gateway determines the corresponding target MAC address according to the first authentication account number Digest, that is, after the conversion is completed, the primary gateway confirms the IP address information of the sub-gateway corresponding to the target MAC address through the internal ARP forwarding table, that is, obtains the target IP address of the sub-gateway to be forwarded, and forwards the data of the ITMS platform to the sub-gateway corresponding to the target IP address, and after the sub-gateway receives the information, the reverse connection between the ITMS platform and the sub-gateway is completed, and at this time, the ITMS platform and the sub-gateway complete the reverse communication.
For example, the ARP forwarding table stores the mapping relationship between the MAC address and the IP address corresponding to the sub-gateway 1 as follows: MAC1 to IP1, and simultaneously stores the mapping relation between the MAC address and the IP address corresponding to the sub gateway 2 as follows: MAC2 to IP2; when the main gateway determines that the target MAC address is MAC2, determining that the target IP address corresponding to the target MAC address (namely MAC 2) is IP2 according to the ARP forwarding table, and transmitting the reverse connection request message to the sub-gateway with the IP address of IP 2.
Therefore, through the embodiment, the main gateway and the sub-gateway can be connected with the ITMS platform in the FTTR networking scene, and the ITMS platform can know the network states of the main gateway and the sub-gateway and can communicate in real time, and the method is realized directly in the existing network environment without an additional network frame. Therefore, the embodiment does not need to increase extra network burden while realizing normal communication under the condition that the sub-gateway and the ITMS platform are not directly connected.
The following describes a specific flow of interaction between the sub-gateway and the ITMS platform in this embodiment with reference to fig. 4 and 6.
Referring to fig. 4, when the sub gateway 1 reports the ITMS platform, the sub gateway 1 carries the Digest information (i.e., the first authentication account number Digest: digest 1) and the basic information (i.e., the MAC address: MAC1 and the IP address: IP 1) to the main gateway.
The main gateway firstly traverses an ARP table according to the reported information of the sub-gateway, and confirms whether MAC1 information exists in the ARP table or not; when confirming that the MAC1 does not exist, adding the MAC1 and the IP1 corresponding to the MAC1 into a linked list of ARP; and if so, updating the IP information of the sub-gateway 1 to IP1; traversing the table, wherein the first authentication account number of each sub gateway is fixed with the MAC address, so that only whether the MAC1 exists in the table is required to be inquired, and if the MAC1 does not exist in the table, the corresponding relation between the table 1 and the MAC1 is added into the table in the same way; if the equipment information exists, the equipment information is directly skipped, and the conversion of the Digest1 into the Digest 1' is realized according to the Digest mapping table, so that the safety of the equipment information is ensured. The conversion rule is realized in the main gateway, so that the conversion can be realized only by the main gateway itself for confirmation, and the Digest account numbers before and after conversion are mapped and correlated with each other.
After the primary gateway generates the Digest1 ' by internal processing, the message carrying the Digest1 ' is reported to the ITMS platform, and the ITMS platform records the information of the Digest1 ' and marks the message as the information transmitted by the sub gateway. The sub-gateway completes the active reporting process.
Referring to fig. 6, during reverse connection, the ITMS platform sends a message request to the primary gateway, and the message carries account information of the Digest 1'; after the main gateway receives the message, it finds that the field of the Digest 1' exists in the message, and confirms that the message is the data information requested by the ITMS platform to the sub-gateway.
At this time, the main gateway confirms whether the Digest 1' is recorded in the Digest mapping table, and if not, the main gateway directly returns an acquisition information error to the ITMS platform; when the Digest1 'exists in the Digest mapping table, converting the Digest 1' into the Digest1 according to the Digest mapping table; and then through the Digest correspondence table again, finding the MAC1 corresponding to the Digest1; finally, finding out the IP1 corresponding to the MAC1 through an ARP table, namely obtaining the IP of the sub-gateway to be forwarded, wherein the sub-gateway corresponding to the IP1 is the sub-gateway 1; therefore, after the main gateway finds the down-hanging IP address of the sub-gateway, the message of the ITMS platform is transmitted to the sub-gateway 1 with the IP address of IP1; and after receiving the message information of the main gateway, the sub gateway 1 starts to respond to the information of the ITMS platform. Therefore, in the reverse connection, the main gateway is used for finding the IP of the lower hanging sub-gateway through three internally maintained tables, and then the message information is transmitted thoroughly.
After the forward and reverse connection, the ITMS platform and the sub-gateway complete the complete information interaction, so that the ITMS platform realizes the control of the sub-gateway.
In summary, through the application, under the existing networking environment, interconnection and intercommunication of the ITMS platform and the sub-gateway are realized, and the sub-gateway can be directly controlled on the ITMS platform, so that active reporting to the ITMS platform when the sub-gateway is on line is realized, and the ITMS platform can acquire the state information of the sub-gateway in real time, thereby realizing point-to-point interaction. Therefore, compared with the control of two platforms, the network environment is simpler, and the maintenance is more convenient.
The embodiment of the application also provides an ITMS platform and sub-gateway communication device for realizing the ITMS platform and sub-gateway communication method, which comprises a main gateway for:
when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account;
updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or;
when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
determining a target MAC address based on the first authentication account and a preset second mapping table;
and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
Further, the primary gateway is further configured to: and constructing a first mapping table based on the first authentication account and the second authentication account.
Further, the active connection request message also carries MAC address information and IP address information corresponding to the sub-gateway.
Further, the primary gateway is further configured to: and constructing a second mapping table based on the first authentication account number and the MAC address information carried by the active connection request message.
Further, the primary gateway is further configured to: and constructing a third mapping table based on the MAC address information and the IP address information carried by the active connection request message.
Further, the primary gateway is further configured to:
acquiring a real-time IP address of a sub-gateway;
and updating the mapping relation contained in the third mapping table based on the real-time IP address.
Further, the primary gateway is specifically configured to:
determining a target IP address based on the target MAC address and the third mapping table;
and transmitting the reverse connection request message to a sub-gateway corresponding to the target IP address.
It should be noted that, for convenience and brevity of description, a person skilled in the art may clearly understand that, for the specific working process of the above-described apparatus and units, reference may be made to the corresponding process in the foregoing embodiment of the communication method between the ITMS platform and the sub-gateway, which is not described herein again.
The apparatus provided by the above embodiments may be implemented in the form of a computer program that is operable on an ITMS platform and sub-gateway communication device as shown in fig. 7.
The embodiment of the application also provides an ITMS platform and sub-gateway communication device, which comprises: the system comprises a memory, a processor and a network interface which are connected through a system bus, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor so as to realize all or part of the steps of the communication method between the ITMS platform and the sub-gateway.
Wherein the network interface is used for network communication, such as sending assigned tasks, etc. It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor may be a CPU, but may also be other general purpose processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit (application specific IntegratedCircuit, ASIC), field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device discrete hardware components, or the like. A general purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like, that is a control center of a computer device, with various interfaces and lines connecting various parts of the entire computer device.
The memory may be used to store computer programs and/or modules, and the processor implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a video playing function, an image playing function, etc.), and the like; the storage data area may store data (such as video data, image data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SmartMediaCard, SMC), secure Digital (SD) card, flash card (FlashCard), at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor implements all or part of the steps of the aforementioned ITMS platform and sub-gateway communication method.
The embodiments of the present application implement all or part of the above-described procedures, or may be implemented by a computer program that instructs related hardware to perform the steps of the above-described methods when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, record medium, USB flash disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RandomAccessmemory, RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, and the like. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, server, 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, magnetic disk storage, 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for communication between an ITMS platform and a sub-gateway, the method being applied to a main gateway, the method comprising the steps of:
when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account;
updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or;
when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
determining a target MAC address based on the first authentication account and a preset second mapping table;
and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
2. The method for communication between an ITMS platform and a sub-gateway according to claim 1, wherein after the step of performing encryption conversion on the first authentication account carried in the active connection request message to obtain the second authentication account, the method further comprises:
and constructing a first mapping table based on the first authentication account and the second authentication account.
3. The ITMS platform and sub-gateway communication method of claim 1, wherein: the active connection request message also carries MAC address information and IP address information corresponding to the sub-gateway.
4. The ITMS platform and sub-gateway communication method of claim 3, further comprising, after the step of when the active connection request message sent by the sub-gateway is received:
and constructing a second mapping table based on the first authentication account number and the MAC address information carried by the active connection request message.
5. The ITMS platform and sub-gateway communication method of claim 3, further comprising, after the step of when the active connection request message sent by the sub-gateway is received:
and constructing a third mapping table based on the MAC address information and the IP address information carried by the active connection request message.
6. The ITMS platform and sub-gateway communication method of claim 5, wherein the method further comprises:
acquiring a real-time IP address of a sub-gateway;
and updating the mapping relation contained in the third mapping table based on the real-time IP address.
7. The ITMS platform and sub-gateway communication method of claim 6, wherein the transparently transmitting the reverse connection request message to the sub-gateway corresponding to the destination MAC address comprises:
determining a target IP address based on the target MAC address and the third mapping table;
and transmitting the reverse connection request message to a sub-gateway corresponding to the target IP address.
8. An ITMS platform and sub-gateway communication apparatus for implementing the ITMS platform and sub-gateway communication method of any one of claims 1 to 7, comprising a primary gateway for:
when an active connection request message sent by a sub-gateway is received, carrying out encryption conversion on a first authentication account carried by the active connection request message to obtain a second authentication account;
updating the active connection request message based on the second authentication account number, and sending the active connection request message carrying the second authentication account number to the ITMS platform to realize active reporting between the sub-gateway and the ITMS platform, or;
when a reverse connection request message carrying a second authentication account number is received, which is sent by an ITMS platform, a first authentication account number is determined according to the second authentication account number and a preset first mapping table;
determining a target MAC address based on the first authentication account and a preset second mapping table;
and transmitting the reverse connection request message to the sub-gateway corresponding to the target MAC address so as to realize reverse connection between the ITMS platform and the sub-gateway.
9. An ITMS platform and sub-gateway communication device, comprising: a memory and a processor, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement the ITMS platform and sub-gateway communication method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized by: the computer readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform the ITMS platform and sub-gateway communication method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310156860.3A CN116170214A (en) | 2023-02-23 | 2023-02-23 | ITMS platform and sub-gateway communication method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310156860.3A CN116170214A (en) | 2023-02-23 | 2023-02-23 | ITMS platform and sub-gateway communication method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116170214A true CN116170214A (en) | 2023-05-26 |
Family
ID=86414463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310156860.3A Pending CN116170214A (en) | 2023-02-23 | 2023-02-23 | ITMS platform and sub-gateway communication method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116170214A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117880372A (en) * | 2024-03-12 | 2024-04-12 | 四川天邑康和通信股份有限公司 | Equipment access control method of FTTR (fiber to the Home) system, gateway equipment and gateway distributed system |
-
2023
- 2023-02-23 CN CN202310156860.3A patent/CN116170214A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117880372A (en) * | 2024-03-12 | 2024-04-12 | 四川天邑康和通信股份有限公司 | Equipment access control method of FTTR (fiber to the Home) system, gateway equipment and gateway distributed system |
CN117880372B (en) * | 2024-03-12 | 2024-05-14 | 四川天邑康和通信股份有限公司 | FTTR system equipment access control method, gateway equipment and gateway distributed system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11082304B2 (en) | Methods, systems, and computer readable media for providing a multi-tenant software-defined wide area network (SD-WAN) node | |
US11075821B2 (en) | Method and apparatus for managing field device based on cloud server | |
US9967738B2 (en) | Methods and arrangements for enabling data transmission between a mobile device and a static destination address | |
EP4391462A2 (en) | Method and apparatus for accessing gateway | |
CN109831548B (en) | Virtual content delivery network vCDN node establishment method and server | |
JPWO2006132142A1 (en) | Remote access system and its IP address assignment method | |
JP2021530892A (en) | Communication method and communication device | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN111327668B (en) | Network management method, device, equipment and storage medium | |
CN110505316A (en) | The distribution method and wireless routing device of internet protocol address | |
JP7476366B2 (en) | Relay method, relay system, and relay program | |
CN116170214A (en) | ITMS platform and sub-gateway communication method, device, equipment and storage medium | |
US20140181279A1 (en) | Virtual Console-Port Management | |
CN108243026A (en) | Lan device communication management method, system and gateway device | |
CN111711705B (en) | Method and device for realizing network connection based on bidirectional NAT (network Address translation) by proxy node | |
CN116996908A (en) | Fusion management method, device, equipment and medium of master-slave gateway and wireless AP | |
US9413590B2 (en) | Method for management of a secured transfer session through an address translation device, corresponding server and computer program | |
CN105516397A (en) | Method for accessing multiple operating system terminals into network and multiple operating system terminals | |
CN103442450B (en) | Wireless communications method and Wireless Telecom Equipment | |
JP5261432B2 (en) | Communication system, packet transfer method, network switching apparatus, access control apparatus, and program | |
WO2017164132A1 (en) | Management device, l3cpe, and control method therefor | |
CN108259292B (en) | Method and device for establishing tunnel | |
CN116996587B (en) | Distributed sdp tunnel control method and device | |
CN110995510B (en) | Management method and device for realizing VOIP service zero configuration in POL | |
JP7375588B2 (en) | PON system, station side equipment, management server, setting method, and installation method |
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 |