CN116055184A - Channel connection method, device and medium based on network protocol - Google Patents
Channel connection method, device and medium based on network protocol Download PDFInfo
- Publication number
- CN116055184A CN116055184A CN202310042481.1A CN202310042481A CN116055184A CN 116055184 A CN116055184 A CN 116055184A CN 202310042481 A CN202310042481 A CN 202310042481A CN 116055184 A CN116055184 A CN 116055184A
- Authority
- CN
- China
- Prior art keywords
- message
- network protocol
- messages
- information
- checking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- 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/12—Applying verification of the received information
-
- 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/18—Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a channel connection method, device and medium based on network protocol, comprising the following steps: the first checking message is sent to the network protocol, a plurality of second checking messages returned by the network protocol according to the first checking messages are received, the plurality of second checking messages are broadcast to the plurality of servers, so that the plurality of servers can receive the plurality of second checking messages, respectively check the plurality of second checking messages to obtain the target message, output the data message according to the broadcasting path of the target message, and after the data message is received, the data message is connected according to the data message, so that effective channel connection is realized, the problems of low intelligence and universality of the existing connection scheme requiring the user to manually input the specific information message are avoided, and the technical requirements on the user are reduced.
Description
Technical Field
The present invention relates to the field of network channel connection technologies, and in particular, to a channel connection method, device, and medium based on a network protocol.
Background
In the existing network channel connection technology, in order to establish a channel connection dedicated to a target network, a specific information message is usually required to be manually input, so that a client can establish a direct channel connection with a network corresponding to the information message, thereby meeting the access requirement of a user.
However, in the connection method for establishing a network channel, the user can directly establish a channel connection with the network by manually inputting the specific information message of the target network, and if the input information message has an error level name or the network corresponding to the input information message is an unavailable network, the connection is wrong or fails, so that the intelligence and the universality are extremely low, and the connection requirement of the user is very unfavorable.
Disclosure of Invention
The invention mainly aims to provide a channel connection method, device and medium based on a network protocol, and aims to solve the technical problem that the existing network channel connection technology cannot meet the connection requirement of a user.
In order to achieve the above object, the present invention provides a channel connection method based on a network protocol, the channel connection method based on the network protocol is applied to a client, and the channel connection method based on the network protocol includes the following steps:
sending a first checking message to a network protocol, and receiving a plurality of second checking messages returned by the network protocol according to the first checking message;
broadcasting the plurality of second inspection messages to a plurality of servers, so that the plurality of servers can receive the plurality of second inspection messages, respectively inspecting the plurality of second inspection messages to obtain a target message, and outputting a data message according to a broadcasting path of the target message, wherein when node information in any one of the second inspection messages is consistent with node information corresponding to any one of the servers, the second inspection message is the target message;
And after receiving the data message, performing channel connection according to the data message.
Optionally, the step of sending the first ping message to the network protocol includes:
the first checking message is sent to the network protocol, so that the network protocol queries in a message list according to the first checking message, after target message information corresponding to the checking message information of the first checking message is obtained, an information message corresponding to the target message information is output as the second checking message, wherein the message list is composed of a plurality of information messages, the information messages are issued to the network protocol by a server, and the preset level name in the message information corresponding to the server is inconsistent with the preset level name in the message information corresponding to any server in the same channel, and is inconsistent with the preset level name in the message information corresponding to any server in different channels.
Optionally, before the step of sending the first ping message to the network protocol, the method further includes:
and receiving the channel requirement uploaded by the user, and generating a first checking message based on the channel requirement.
Optionally, after receiving the data packet, the step of performing channel connection according to the data packet includes:
after receiving the data message, obtaining channel information according to the data message;
and establishing channel connection with a target network according to the channel information.
The invention also provides another channel connection method based on the network protocol, which is applied to a server and comprises the following steps:
receiving a plurality of second checking messages broadcast by a client, and checking the second checking messages, wherein the second checking messages are returned by the client through a receiving network protocol according to a first checking message, and the first checking messages are sent to the network protocol by the client;
when node information of any second checking message is checked to be consistent with preset node information, the second checking message with the node information consistent with the preset node information is judged to be a target message, wherein the preset node information is node information of the server;
and outputting a data message to the client according to the broadcasting path of the target message so as to enable the client to carry out channel connection according to the data message.
Optionally, before the step of receiving the second ping messages broadcast by the client, the method further includes:
and issuing information messages to the network protocol so that the network protocol can perform message list composition based on the received information messages, wherein the preset level name in the message information corresponding to the information messages is consistent with the preset level name in the message information corresponding to the information messages of any server in the same channel, and is inconsistent with the preset level name in the message information corresponding to the information messages of any server in different channels.
Optionally, the step of outputting the data message to the client according to the broadcast path of the target message includes:
and outputting a data message to the client according to the broadcasting path of the target message, so that the client can establish channel connection with a target network according to the channel information after acquiring the channel information according to the data message.
Optionally, after the step of receiving the plurality of second inspection messages broadcast by the client and inspecting the plurality of second inspection messages, the method further includes:
and when the node information of any one of the second inspection messages is not inspected to be consistent with the preset node information, the plurality of second inspection messages broadcasted by the client are ignored.
In order to achieve the above object, the present invention also provides an electronic device, including: memory, processor and computer processing program stored on the memory and executable on the processor, the computer processing program implementing the steps of the network protocol based channel connection method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer readable storage medium, on which a computer processing program is stored, which when executed by a processor, implements the steps of the network protocol-based channel connection method as above.
In the invention, a first checking message is sent to a network protocol, a plurality of second checking messages returned by the network protocol according to the first checking message are received, the plurality of second checking messages are broadcast to a plurality of servers, so that the plurality of servers can receive the plurality of second checking messages, respectively check the plurality of second checking messages to obtain a target message, and data messages are output according to a broadcasting path of the target message, wherein when node information in any second checking message is consistent with node information corresponding to any server, the second checking message is the target message, and after the data messages are received, channel connection is carried out according to the data messages. In the invention, the client sends the first checking message generated based on the channel requirement of the user to the network protocol to inquire the available channel, and after the second checking message corresponding to the available channel returned by the network protocol is obtained, the second checking message is broadcasted to each server, so that the server corresponding to the information message and the second checking message is consistent, after receiving the second checking message, the server outputs the data message to the client through the broadcasting path of the second checking message, thereby realizing effective channel connection, avoiding the problems of low intelligence and universality of the existing connection scheme requiring the user to manually input the specific information message, and reducing the technical requirement on the user.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a network protocol based channel connection method according to the present invention;
FIG. 3 is a schematic diagram of an interaction flow between a client and a server according to the present invention;
FIG. 4 is a flowchart of a second embodiment of a network protocol based channel connection method according to the present invention;
fig. 5 is a schematic diagram of a conventional channel connection manner and a channel connection manner based on a network protocol according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The network protocol-based channel connection method of the mobile energy storage power supply integrated control system according to the embodiment of the present invention uses an application carrier as an electronic device, as shown in fig. 1, where the electronic device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display area (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the electronic device may also include a camera, RF (radio frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
Those skilled in the art will appreciate that the electronic device structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a computer processing program may be included in the memory 1005, which is a type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a computer processing program stored in the memory 1005 and perform the following operations:
sending a first checking message to a network protocol, and receiving a plurality of second checking messages returned by the network protocol according to the first checking message;
broadcasting the plurality of second inspection messages to a plurality of servers, so that the plurality of servers can receive the plurality of second inspection messages, respectively inspecting the plurality of second inspection messages to obtain a target message, and outputting a data message according to a broadcasting path of the target message, wherein when node information in any one of the second inspection messages is consistent with node information corresponding to any one of the servers, the second inspection message is the target message;
And after receiving the data message, carrying out channel connection according to the data message.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
the step of sending the first checking message to the network protocol comprises the following steps: the first checking message is sent to the network protocol, so that the network protocol queries in a message list according to the first checking message, after target message information corresponding to the checking message information of the first checking message is obtained, an information message corresponding to the target message information is output as the second checking message, wherein the message list is composed of a plurality of information messages, the information messages are issued to the network protocol by a server, and the preset level name in the message information corresponding to the server is consistent with the preset level name in the message information corresponding to any server in the same channel and is inconsistent with the preset level name in the message information corresponding to any server in different channels.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
And before the step of sending the first checking message to the network protocol, receiving the channel requirement uploaded by the user, and generating the first checking message based on the channel requirement.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
the step of carrying out channel connection according to the data message after receiving the data message comprises the step of obtaining channel information according to the data message after receiving the data message;
and establishing channel connection with a target network according to the channel information.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
receiving a plurality of second checking messages broadcast by a client, and checking the second checking messages, wherein the second checking messages are returned by the client through a receiving network protocol according to a first checking message, and the first checking messages are sent to the network protocol by the client;
when node information of any second checking message is checked to be consistent with preset node information, the second checking message with the node information consistent with the preset node information is judged to be a target message, wherein the preset node information is node information of the server;
And outputting a data message to the client according to the broadcasting path of the target message so as to enable the client to carry out channel connection according to the data message.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
before the step of receiving a plurality of second checking messages broadcast by the client, information messages are issued to the network protocol so that the network protocol can perform message list composition based on the received information messages, wherein the preset level names in the message information corresponding to the information messages are consistent with the preset level names in the message information corresponding to the information messages of any server in the same channel, and are inconsistent with the preset level names in the message information corresponding to the information messages of any server in different channels.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
the step of outputting the data message to the client according to the broadcasting path of the target message comprises the following steps: and outputting a data message to the client according to the broadcasting path of the target message, so that the client can establish channel connection with a target network according to the channel information after acquiring the channel information according to the data message.
Further, the processor 1001 may call a computer program stored in the memory 1005, and further perform the following operations:
after the steps of receiving a plurality of second inspection messages broadcast by the client and inspecting the plurality of second inspection messages, the method further comprises:
and when the node information of any one of the second inspection messages is not inspected to be consistent with the preset node information, the plurality of second inspection messages broadcasted by the client are ignored.
As shown in fig. 2, fig. 2 is a flowchart of a first embodiment of a channel connection method based on a network protocol according to the present invention, in this embodiment, the channel connection method based on the network protocol is applied to a client, and the channel connection method based on the network protocol includes the following steps:
step S10, a first checking message is sent to a network protocol, and a plurality of second checking messages returned by the network protocol according to the first checking message are received.
In a network, hijacking of DNS and network traffic often occurs, so that users cannot access network resources that they want to access, and therefore, for this part of users, it is optimal to construct a dedicated channel into a target network to access resources that need to be accessed, where a dedicated channel refers to that any one client and the target network can construct a designated routing point to transmit data, so that a fixed client can reach the target network through the dedicated channel, and satisfy the access requirement of the user.
However, in the existing practical operation, the user needs to manually designate a specific information message of the target network in the establishment of a dedicated channel between the client and the target network, and the user cannot ensure whether the designated information message can meet the access requirement of the user.
Based on the above problems, the present embodiment proposes a solution, based on the fact that the existing client directly establishes a direct connection through a specific information message and a target network, the centralization is obvious, the present embodiment proposes an indirect connection establishment operation of the client through a network protocol and the target network, and the centralization is removed, that is, the present embodiment proposes that the information messages of the server corresponding to the target network are all distributed in the network protocol, and the information is directly registered in the network protocol, so that a controllable, manageable and orderly management of the information messages is established through the network protocol, thereby laying a foundation for providing a query service for the information messages for the client, and avoiding the situation that the existing information messages only have poor generality existing in the corresponding target network alone.
It should be noted that, the network protocol applied in this embodiment is an NDN network protocol.
Specifically, the user sends a first checking message to the network protocol through the client, the first checking message is used for inquiring whether the information message conforming to the first checking message exists in the network protocol, if so, the network protocol packages the information message conforming to the first checking message into an accessible resource list and returns the accessible resource list to the client, and the accessible resource list is a plurality of second checking messages, wherein the first checking message is the requirement of the user on the target network, and the second checking message is the network resource conforming to the requirement of the user and accessible, therefore, the embodiment does not need the user to input the information message of the specific target network, and only needs to specify the requirement of the target network, the network protocol can search in a router for storing the information message of each server according to the requirement, and the server corresponding to the searched information message is the accessible network resource, thereby avoiding the condition that the specific information message specified by the user exists in the prior art has high technical requirement and the specified information message exists unknown condition.
Optionally, before the step of sending the first ping message to the network protocol in step S10, the method further includes:
and step A, receiving the channel requirement uploaded by the user, and generating a first checking message based on the channel requirement.
Specifically, the user can directly select the required access network resources on the client in the early stage, and select the service information of the channel unit, the area, the service type, the bandwidth, the charging grade, the site and the like according to the own requirements, for example, after the user selects the channel unit of 1, the area of HK, the service type of all, the charging grade of a and the site of 1 on the relevant page according to the own requirements, the client can generate a first checking message of channel1/HK/all/charge_a/station1 based on the selected access network resources, and the first checking message can help the user to query the information message which meets the requirements and corresponds to the accessible network resources in the network protocol, so that the existing unintelligibility that the specific information message is required to be specified by the user is avoided.
Optionally, the step of sending the first ping message to the network protocol in step S10 includes:
step S101, the first inspection message is sent to the network protocol, so that the network protocol queries in a message list according to the first inspection message, and after obtaining target message information corresponding to the inspection message information of the first inspection message, outputs an information message corresponding to the target message information as the second inspection message, where the message list is composed of a plurality of information messages, the information messages are issued to the network protocol by the server, and preset level names in the message information corresponding to the server are inconsistent with preset level names in the message information corresponding to any server located in the same channel, and are inconsistent with preset level names in the message information corresponding to any server located in different channels.
Specifically, after generating a first inspection message according to the requirement of accessing network resources specified by a user, the client sends the first inspection message to a network protocol, the network protocol queries a target information message conforming to the first inspection message according to the received first inspection message to a router, after querying a target message information meeting matched with the inspection message information of the first inspection message, outputs an information message corresponding to the target message information as a second inspection message, and simultaneously, in order to ensure that the second inspection message is completely transmitted back to the client, packages the second inspection message into an accessible resource list, returns the accessible resource list to the client, and supposedly, the first inspection message sent to the network protocol is "Chael 1/HK/al/section_a/station 1", after receiving the first inspection message, the network protocol queries a message list in the router based on the inspection message information of the first inspection message, and obtains "Chael 1/HK/section 1", "Chael 1/HK/section 1", "HK/section 1" and "section 1/section 1" respectively, and obtains the corresponding to the first inspection message, and "Chael 1/section 1" respectively, and the fifth inspection message is clearly matched with the target information of the HK_1 section 1 And the condition of the information message corresponding to the accessible network resource.
It should be noted that, the router of the network protocol stores the message list storing the information messages of the servers included in each channel, so in order to distinguish each channel, the embodiment designates a standard for the information messages issued by the servers in each channel, for example, the preset level names of the information messages issued by the servers in the same channel must be consistent, the preset level names of the information messages issued by the servers in different channels cannot be the same as the preset level names of the servers in other channels, it is assumed that there are channel1, channel2 and channel3, when the key words of "channel1" must be contained in the level names (i.e., preset level names) of the information messages issued by the servers in channel1, the level names (i.e., preset level names) of the information messages issued by the servers in channel2 cannot be contained in the channel1", and when the preset level names of" channel2 "and channel2" are contained in the channel3 respectively, the channel1 and channel3 are identified for distinguishing the channel1 and channel 2.
Step S20, broadcasting the plurality of second checking messages to a plurality of servers, so that the plurality of servers can receive the plurality of second checking messages, respectively checking the plurality of second checking messages to obtain a target message, and outputting a data message according to a broadcasting path of the target message, wherein when node information in any one of the second checking messages is consistent with node information corresponding to any one of the servers, the second checking message is the target message.
Specifically, after the client receives a plurality of second inspection messages returned by the network protocol according to the first inspection message at this time, the client can broadcast the received plurality of second inspection messages to each server through the network protocol, so that each server can receive the plurality of second inspection messages and inspect the plurality of second inspection messages, for example, refer to fig. 3, if there is a target message corresponding to the information message of the server in the plurality of second inspection messages, for example, the client sends a first inspection message of channel 1/HK/section 1 to the network protocol, and then returns a first inspection message of channel 1/HK/section 1 to each second inspection message of channel 1/section 1 to the corresponding second inspection message of channel1, and then the network protocol returns a second inspection message of channel 1/HK/section 1 to channel1, and then sends a fifth inspection message of channel1 to the second section 1 to the corresponding second section 1 to the second section 1 of channel a section 1, and then the fifth inspection message of channel1 is received by the client is "the fifth inspection message of channel1 to the second section 1 is the second inspection message of channel1, thus, the client can obtain the data message corresponding to the channel where the server is located.
The data message contains the address, bandwidth, resource list which can be accessed outwards, authentication which needs to be accessed, background real-name authentication url, authentication client downloading link, operation description and other information, so that a user using the client can find the capability of the channel corresponding to the available server which meets the access requirement in the whole network protocol through the second checking message, thereby directly eliminating the channel corresponding to the unavailable server or the server which does not meet the access requirement, and avoiding the inconvenience that whether the information message is available or not based on the specific connection condition after the existing user manually designates the specific information message.
Step S30, after receiving the data message, performing channel connection according to the data message.
Specifically, after the client receives the data message returned by the server, the user can quickly and conveniently establish an effective channel for accessing network resources based on the received data message because the data message contains relevant information for establishing a corresponding channel with the target network, thereby improving the intelligence and convenience of channel establishment and simultaneously reducing the technical requirements for the user.
Optionally, after receiving the data packet in step S30, the step of performing channel connection according to the data packet includes:
step S301, after receiving the data message, obtaining channel information according to the data message;
step S302, establishing channel connection with a target network according to the channel information.
After receiving the data message returned by the server, the client correspondingly displays the corresponding information and method for establishing the special channel on the browser of the client, and the user can establish the channel connection with the target network according to the corresponding information and method. Specifically, referring to fig. 3, after a user registers information such as a real name of a corresponding user through a background registration connection provided by a client in a server, the information is transmitted to the server to be verified, after the information passes the verification, the server transmits an IP message which is successfully registered to the client, after the user receives the IP message through checking the client, the user can download the corresponding authentication client through the authentication client at this time, after the installation is successful, the user transmits an IP message for authenticating the corresponding user information to the server through logging in the authentication client, after the server receives the authenticated IP message, the server authenticates the authenticated IP message, and then feeds back the authenticated IP message to the client, at this time, the client can establish a connection with a channel where the server is located through a network protocol, and establish a dedicated channel connection with a target network through the channel, thereby meeting the access requirement of the user.
It should be noted that, in practical application, the number of data packets received by the client may be several, and the specific number depends on the network resources that the user needs to access.
In this embodiment, the client sends a first inspection message to the network protocol, receives a plurality of second inspection messages returned by the network protocol according to the first inspection messages, broadcasts the plurality of second inspection messages to the plurality of servers, so that the plurality of servers receive the plurality of second inspection messages, respectively inspect the plurality of second inspection messages to obtain a target message, and outputs a data message according to a broadcast path of the target message, wherein when node information in any one of the second inspection messages is consistent with node information corresponding to any one of the servers, the second inspection message is the target message, and after the data message is received, channel connection is performed according to the data message. In the invention, the client sends the first checking message generated based on the channel requirement of the user to the network protocol to inquire the available channel, and after the second checking message corresponding to the available channel returned by the network protocol is obtained, the second checking message is broadcasted to each server, so that the server corresponding to the information message and the second checking message is consistent, after receiving the second checking message, the server outputs the data message to the client through the broadcasting path of the second checking message, thereby realizing effective channel connection, avoiding the problems of low intelligence and universality of the existing connection scheme requiring the user to manually input the specific information message, and reducing the technical requirement on the user.
As shown in fig. 4, fig. 4 is a flowchart of a second embodiment of a channel connection method based on a network protocol according to the present invention, in this embodiment, the channel connection method based on the network protocol is applied to a server, and the channel connection method based on the network protocol includes the following steps:
step S40, receiving a plurality of second checking messages broadcast by the client and checking the second checking messages, wherein the second checking messages are returned by the client through a receiving network protocol according to the first checking messages, and the first checking messages are sent to the network protocol by the client.
And S50, when the node information of any second checking message is checked to be consistent with preset node information, judging the second checking message with the node information consistent with the preset node information as a target message, wherein the preset node information is the node information of the server.
Step S60, outputting data messages to the client according to the broadcasting path of the target message, so that the client can carry out channel connection according to the data messages.
The specific embodiments of step S40 to step S60 may refer to the specific embodiments of step S10 to step S20 described above, and will not be described herein.
Optionally, before the step of receiving the second ping messages broadcast by the client in step S40, the method further includes:
and B, issuing information messages to the network protocol so that the network protocol can form a message list based on the received information messages, wherein the preset level name in the message information corresponding to the information messages is consistent with the preset level name in the message information corresponding to the information messages of any server in the same channel, and is inconsistent with the preset level name in the message information corresponding to the information messages of any server in different channels.
In this embodiment, in order to avoid the situation that the centralization in the existing channel connection scheme causes uncontrollable and unmanageable, the present application directly establishes a direct connection with the target network 1 through the information message after the user designates the specific information message of the target network 1, but the scheme exists, (1) the user cannot ensure whether the target network corresponding to the designated information message can meet the access requirement of the user, and (2) the user cannot ensure whether the target network corresponding to the designated information message is safe and accessible, and only after the user designates the target network, the user can learn whether the target network corresponding to the information meets the security requirement of the user, and the security requirement of the user is poor.
Based on the above problem, still referring to fig. 5, it is proposed that, in the present application, the servers in each channel issue all the corresponding information messages in the routers of the network protocol, and meanwhile, in order to distinguish the information messages issued by each channel, the embodiment designates a standard for the information messages issued by the servers in each channel, for example, preset level names in the information messages issued by the servers in the same channel must be consistent, preset level names in the information messages issued by the servers in different channels cannot be the same as preset level names of the servers in other channels, it is assumed that there are channel1 and channel2, when the first level names (i.e., preset level names) in the information messages issued by the servers in channel1 must contain a keyword of "channel1", the first level names (i.e., preset level names) in the information messages issued by the servers in channel2 cannot contain a keyword of "channel1", so that the first level names (i.e., preset level names) in the information messages issued by the servers in channel2 contain a "channel2" are not consistent, and thus, the first level names and channel1 and channel2 are identified, and the network protocol is connected to the network is avoided by the first channel and second channel and the second channel to the network protocol, and the network protocol is established.
Optionally, after the step of receiving the plurality of second inspection messages broadcast by the client and inspecting the plurality of second inspection messages in step S40, the method further includes:
step S501, when node information of any one of the second ping messages is not checked to be consistent with preset node information, ignoring the plurality of second ping messages broadcasted by the client.
After receiving a plurality of second inspection messages broadcast by the client, the server considers that the server cannot provide corresponding services for accessing network resources for the client after the process of inspecting the second inspection messages one by one does not inspect the second inspection messages with at least one node information consistent with preset node information of the server, for example, the client sends a first inspection message of channel1/HK/all/charge_a/station1 to a network protocol, the network protocol returns a second inspection message of channel1_A/HK/all/charge_a/station1, channel1_B/HK/all/charge_a/station1, channel1_C/HK/all/charge_a/station1, channel 1_D/all/charge_a/station 1 and channel 1_E/HK_a/station 1 to the second inspection messages corresponding to the second client, and the fifth inspection message is received by the fifth inspection message corresponding to the fifth inspection message, and the fifth inspection message is received by the fifth inspection message, and the fifth inspection message is not consistent with the fifth inspection message.
Optionally, the step of outputting the data message to the client according to the broadcast path of the target message in step S60 includes:
step S601, outputting a data packet to the client according to the broadcast path of the target packet, so that the client can establish a channel connection with the target network according to the channel information after obtaining the channel information according to the data packet.
The specific embodiment of step S601 may refer to the specific embodiments of step S301 to step S302, which are not described herein.
In this embodiment, the server receives a plurality of second inspection messages broadcast by the client and inspects the plurality of second inspection messages, where the second inspection messages are returned by the client according to the first inspection messages by receiving the network protocol, the first inspection messages are sent to the network protocol by the client, and when node information inspected to any one of the second inspection messages is consistent with preset node information, the second inspection messages with the node information consistent with the preset node information are determined to be target messages, where the preset node information is node information of the server, and data messages are output to the client according to a broadcast path of the target messages, so that the client performs channel connection according to the data messages, thereby realizing effective channel connection, avoiding the problems of low intelligence and universality existing in the existing connection scheme requiring manual input of specific information messages by users, and reducing technical requirements for users.
In addition, the embodiment of the invention also provides an electronic device, which comprises a memory, a processor and a computer processing program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the channel connection method based on the network protocol when executing the computer processing program.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer processing program, and the modeling simulation program realizes the steps of the channel connection method based on the network protocol when being executed by a processor.
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 embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings.
Claims (10)
1. The channel connection method based on the network protocol is characterized in that the channel connection method based on the network protocol is applied to a client, and the channel connection method based on the network protocol comprises the following steps:
sending a first checking message to a network protocol, and receiving a plurality of second checking messages returned by the network protocol according to the first checking message;
broadcasting the plurality of second inspection messages to a plurality of servers, so that the plurality of servers can receive the plurality of second inspection messages, respectively inspecting the plurality of second inspection messages to obtain a target message, and outputting a data message according to a broadcasting path of the target message, wherein when node information in any one of the second inspection messages is consistent with node information corresponding to any one of the servers, the second inspection message is the target message;
and after receiving the data message, performing channel connection according to the data message.
2. The network protocol based tunnel connection method according to claim 1, wherein the step of transmitting the first ping message to the network protocol comprises:
the first checking message is sent to the network protocol, so that the network protocol queries in a message list according to the first checking message, after target message information corresponding to the checking message information of the first checking message is obtained, an information message corresponding to the target message information is output as the second checking message, wherein the message list is composed of a plurality of information messages, the information messages are issued to the network protocol by a server, and the preset level name in the message information corresponding to the server is consistent with the preset level name in the message information corresponding to any server in the same channel and is inconsistent with the preset level name in the message information corresponding to any server in different channels.
3. The network protocol based tunnel connection method according to claim 1, wherein before the step of transmitting the first ping message to the network protocol, further comprising:
and receiving the channel requirement uploaded by the user, and generating a first checking message based on the channel requirement.
4. The network protocol based channel connection method according to claim 1, wherein the step of performing channel connection according to the data message after receiving the data message comprises:
after receiving the data message, obtaining channel information according to the data message;
and establishing channel connection with a target network according to the channel information.
5. The channel connection method based on the network protocol is characterized in that the channel connection method based on the network protocol is applied to a server and comprises the following steps:
receiving a plurality of second checking messages broadcast by a client, and checking the second checking messages, wherein the second checking messages are returned by the client through a receiving network protocol according to a first checking message, and the first checking messages are sent to the network protocol by the client;
When node information of any second checking message is checked to be consistent with preset node information, the second checking message with the node information consistent with the preset node information is judged to be a target message, wherein the preset node information is node information of the server;
and outputting a data message to the client according to the broadcasting path of the target message so as to enable the client to carry out channel connection according to the data message.
6. The network protocol based channel connection method according to claim 5, wherein before the step of receiving the second ping messages broadcast by the client, the method further comprises:
and issuing information messages to the network protocol so that the network protocol can perform message list composition based on the received information messages, wherein the preset level name in the message information corresponding to the information messages is consistent with the preset level name in the message information corresponding to the information messages of any server in the same channel, and is inconsistent with the preset level name in the message information corresponding to the information messages of any server in different channels.
7. The network protocol based channel connection method according to claim 5, wherein the step of outputting the data message to the client according to the broadcast path of the target message comprises:
And outputting a data message to the client according to the broadcasting path of the target message, so that the client can establish channel connection with a target network according to the channel information after acquiring the channel information according to the data message.
8. The network protocol based channel connection method according to claim 5, wherein after the step of receiving a plurality of second ping messages broadcast by the client and ping the plurality of second ping messages, the method further comprises:
and when the node information of any one of the second inspection messages is not inspected to be consistent with the preset node information, the plurality of second inspection messages broadcasted by the client are ignored.
9. An electronic device, the electronic device comprising: memory, a processor and a computer processing program stored on the memory and executable on the processor, the computer processing program being configured to implement the steps of the network protocol based channel connection method according to any one of claims 1 to 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer processing program which, when executed by a processor, implements the steps of the network protocol based channel connection method according to any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042481.1A CN116055184B (en) | 2023-01-28 | 2023-01-28 | Channel connection method, device and medium based on network protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042481.1A CN116055184B (en) | 2023-01-28 | 2023-01-28 | Channel connection method, device and medium based on network protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116055184A true CN116055184A (en) | 2023-05-02 |
CN116055184B CN116055184B (en) | 2023-06-13 |
Family
ID=86123659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310042481.1A Active CN116055184B (en) | 2023-01-28 | 2023-01-28 | Channel connection method, device and medium based on network protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116055184B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399838A (en) * | 2008-10-29 | 2009-04-01 | 成都市华为赛门铁克科技有限公司 | Method, apparatus and system for processing packet |
CN104702503A (en) * | 2015-03-26 | 2015-06-10 | 中国电子科技集团公司第七研究所 | Network routing method and network routing system |
CN110943827A (en) * | 2019-10-18 | 2020-03-31 | 天津幸福生命科技有限公司 | Data acquisition method and device based on network protocol |
CN111147382A (en) * | 2019-12-31 | 2020-05-12 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
CN112769863A (en) * | 2021-01-26 | 2021-05-07 | 北京树米网络科技有限公司 | Method and device for processing service request message data |
WO2022001674A1 (en) * | 2020-06-29 | 2022-01-06 | 南方电网数字电网研究院有限公司 | Communication system, method and device for miniature intelligent sensor |
US20220159433A1 (en) * | 2019-02-25 | 2022-05-19 | Nokia Solutions And Networks Oy | Combined service discovery and connection setup for service-based architectures |
CN115314467A (en) * | 2022-06-28 | 2022-11-08 | 国网信息通信产业集团有限公司 | Data communication system and method based on distribution network differential protection |
-
2023
- 2023-01-28 CN CN202310042481.1A patent/CN116055184B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399838A (en) * | 2008-10-29 | 2009-04-01 | 成都市华为赛门铁克科技有限公司 | Method, apparatus and system for processing packet |
CN104702503A (en) * | 2015-03-26 | 2015-06-10 | 中国电子科技集团公司第七研究所 | Network routing method and network routing system |
US20220159433A1 (en) * | 2019-02-25 | 2022-05-19 | Nokia Solutions And Networks Oy | Combined service discovery and connection setup for service-based architectures |
CN110943827A (en) * | 2019-10-18 | 2020-03-31 | 天津幸福生命科技有限公司 | Data acquisition method and device based on network protocol |
CN111147382A (en) * | 2019-12-31 | 2020-05-12 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
WO2022001674A1 (en) * | 2020-06-29 | 2022-01-06 | 南方电网数字电网研究院有限公司 | Communication system, method and device for miniature intelligent sensor |
CN112769863A (en) * | 2021-01-26 | 2021-05-07 | 北京树米网络科技有限公司 | Method and device for processing service request message data |
CN115314467A (en) * | 2022-06-28 | 2022-11-08 | 国网信息通信产业集团有限公司 | Data communication system and method based on distribution network differential protection |
Non-Patent Citations (1)
Title |
---|
闫瑞瑞;马建国;: "在单向CATV网络实现IP报文传输的一种方法", 信息通信, no. 05 * |
Also Published As
Publication number | Publication date |
---|---|
CN116055184B (en) | 2023-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111866999B (en) | Intelligent device network distribution method, system and storage medium | |
EP3151628B1 (en) | Method, device and system for accessing a wireless network | |
CN106658659B (en) | Method and device for accessing intelligent terminal equipment to Internet | |
US9781579B2 (en) | Method and device for realizing terminal WIFI talkback | |
CN106789470B (en) | Terminal resource sharing method, device and system | |
US9503893B2 (en) | Communication management system, relay device, communication control system, communication system, communication method, and recording medium storing communication control program | |
US10904743B2 (en) | Methods for automatic bootstrapping of a device | |
KR20040098061A (en) | System and method for bookmarking radio stations and associated internet addresses | |
KR20200027001A (en) | Method and apparatus for collecting traffic statistics | |
US20150215976A1 (en) | Wireless network setup and configuration distribution system | |
US10070359B2 (en) | Dynamic generation of per-station realm lists for hot spot connections | |
US20120158979A1 (en) | Method and apparatus for controlling access to access point in mobile terminal | |
CN104780168A (en) | Portal authentication method and equipment | |
US20170118581A1 (en) | Switching to advertising locator after connection establishment | |
CN112448873A (en) | Equipment binding method and device and computer readable storage medium | |
CN110933061A (en) | Communication method and device | |
US20170347387A1 (en) | Zero configuration of an access point connecting to a mesh network | |
US10390217B2 (en) | Wireless configuration of wireless distribution system (WDS) Wi-Fi range extenders using non-Wi-Fi-wireless communication channels | |
US20120331096A1 (en) | Telecommunications terminal, broadcast receiving terminal and computer program | |
CN105657055A (en) | Local area network equipment finding method and device oriented to WEB page | |
EP4156731A1 (en) | Method and apparatus for joining multicast broadcast service (mbs) session | |
CN116055184B (en) | Channel connection method, device and medium based on network protocol | |
CN107534859B (en) | Network authentication method, client, terminal equipment and platform | |
CN114501612A (en) | Resource allocation method, terminal, network device and storage medium | |
CN103053132B (en) | The method, system and device of a kind of user's access service system or network |
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 |