CN114513549B - Communication method and device - Google Patents
Communication method and device Download PDFInfo
- Publication number
- CN114513549B CN114513549B CN202210150382.0A CN202210150382A CN114513549B CN 114513549 B CN114513549 B CN 114513549B CN 202210150382 A CN202210150382 A CN 202210150382A CN 114513549 B CN114513549 B CN 114513549B
- Authority
- CN
- China
- Prior art keywords
- service
- vlan
- message
- server
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- 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/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a communication method and a device, wherein the method is applied to an access switch, and comprises the following steps: receiving a service request message sent by a client, wherein the service request message comprises service demand information; according to the service demand information, searching whether a service resource table item matched with the service demand information exists in a local service resource table, wherein the service resource table item comprises service end information; if yes, sending a service response message to the client, wherein the service response message comprises the server information, so that the client establishes connection with a server according to the server information and uses the service provided by the server; the server corresponding to the server information and the client are in the same vlan or different vlans.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communications method and apparatus.
Background
When there are a large number of servers (e.g., printers, cameras, etc.) in the network, the configuration is complicated, and the manager does not want to configure information such as addresses of the large number of servers on the client, at this time, the client will automatically discover the various servers using the ws-discovery protocol.
When the server is online, the server actively transmits a hello (hello) message. After receiving the hello message, the client locally stores information such as service type, network (web) service address, uuid of the server and the like included in the hello message. When a client needs a certain service, the client sends a probe (probe) message or a resolve (resolve) message to find the server. After receiving the detection message or analyzing the message, the server determines that the server can provide service, and then the server sends a detection matching (response to the detection message) message or an analysis matching (response to the resolution message) message to the client. The client can establish connection with the server through the probe matching message or analyzing the web service address included in the matching message, and use the service provided by the server.
In the process of sending a detection message and a resolution message by a client, as shown in fig. 1, fig. 1 is a networking schematic diagram of a conventional client for discovering a server through a ws-discovery protocol. After the access client sends the detection message and the analysis message reach the access switch (access), the following three situations will occur:
1) The access switch has been configured with a three layer multicast mode and is connected with the core switch by a single wire: the access switch and the core switch each provide an interface for connection. The access switch sends the message out from all the route ports of the access switch. After the core switch receives the message, the message is not sent to the access switch from the interface connected with the access switch. At this time, the server cannot receive the message sent by the client, and the server cannot respond to the client.
2) The access switch is not configured with three-layer multicast mode: at this time, the access switch sends the multicast message to the interface matched with the vlan identifier according to the identifier of the virtual local area network (English: virtual local area network, abbreviated as vlan) included in the message, and the interface allows the message including the vlan identifier to pass through. If the client (client) 1 sends the message to the access switch, only the printer (print) 1 responds to the message; if client2 sends the message to the access switch, only print2 responds to the message. However, in an actual network, there are currently multiple print, but the client can only acquire the server messages in the same vlan.
3) The access switch has been configured with a three layer multicast mode and is connected with the core switch in a two-wire connection: the access switch and the core switch each provide two interfaces (e.g., a port, B port) for connection. The access exchanger sends the message from the port A. When the core switch receives the message, multicast transmission is still performed again, for example, the core switch sends the message from the port B. However, even if the access switch receives the message again, the access switch only sends the message to the interface matched with the vlan identifier according to the vlan identifier included in the message. The message sending process is finally the same as in case 2), and the client can only acquire the server messages in the same vlan.
In order to fully utilize resources in a network, a manner is needed so that all clients can find out the service ends in different vlan, and the service end resources can be used by the clients; and when the number of the clients is large, the clients are prevented from searching the server through a multicast mode in the whole network, and the network load is increased.
Disclosure of Invention
In view of this, the present application provides a communication method and apparatus, which are used to realize that the service ends in different vlan can be found by the client, and avoid the client searching the service end in the whole network by multicast mode, so as to reduce network load.
In a first aspect, the present application provides a communication method, the method being applied to an access switch, the method comprising:
receiving a service request message sent by a client, wherein the service request message comprises service demand information;
according to the service demand information, searching whether a service resource table item matched with the service demand information exists in a local service resource table, wherein the service resource table item comprises service end information;
if yes, sending a service response message to the client, wherein the service response message comprises the server information, so that the client establishes connection with a server according to the server information and uses the service provided by the server;
The server corresponding to the server information and the client are in the same vlan or different vlans.
In a second aspect, the present application provides a communications apparatus for use in an access switch, the apparatus comprising:
the receiving unit is used for receiving a service request message sent by the client, wherein the service request message comprises service demand information;
the searching unit is used for searching whether a service resource table item matched with the service demand information exists in a local service resource table according to the service demand information, wherein the service resource table item comprises service end information;
the sending unit is used for sending a service response message to the client if the service response message exists, wherein the service response message comprises the server information, so that the client establishes connection with the server according to the server information and uses the service provided by the server;
the server corresponding to the server information and the client are in the same vlan or different vlans.
In a third aspect, the application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to cause the processor to perform the method provided by the first aspect of the application.
Therefore, by applying the communication method and the device provided by the application, the access switch receives the service request message sent by the client, and the service request message comprises the service requirement information; according to the service demand information, in a local service resource table, an access switch searches whether a service resource table item matched with the service demand information exists or not, wherein the service resource table item comprises service end information; if the service response message exists, the access switch sends the service response message to the client, wherein the service response message comprises the information of the server, so that the client establishes connection with the server according to the information of the server and uses the service provided by the server; the server and the client corresponding to the server information are located in the same vlan or different vlans.
Therefore, the access switch stores the resources of various service ends providing service in the local service resource table, the client does not need to search the service ends in a multicast mode in the whole network when searching the service ends, and the access switch can provide matched service end information for the client so as to reduce network load; meanwhile, the server corresponding to the server information can be in the same vlan or different vlans with the client, so that the server in different vlans can be found by the client.
Drawings
FIG. 1 is a schematic diagram of a networking of a server found by a current client through a ws-discovery protocol;
FIG. 2 is a flow chart of a communication method according to an embodiment of the present application;
fig. 3 is a block diagram of a communication device according to an embodiment of the present application;
fig. 4 is a hardware structure of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the corresponding listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The communication method provided by the embodiment of the application is described in detail below. Referring to fig. 2, fig. 2 is a flowchart of a communication method according to an embodiment of the present application. The method is applied to an access switch. The communication method provided by the embodiment of the application can comprise the following steps.
Step 210, receiving a service request message sent by a client, where the service request message includes service requirement information.
Specifically, when a client needs a certain service, the client sends a service request message, where the service request message includes service requirement information.
The client sends a service request message to the access switch. And after receiving the service request message, the access switch acquires the service demand information from the service request message.
In the embodiment of the application, the service request message sent by the client comprises a detection message or an analysis message according to the definition of the existing ws-discovery protocol. The service requirement information includes service type, vlan to which the client belongs, and universal unique identification code (english: universally Unique Identifier, uuid for short) of the server.
When the service request message is a detection message, the detection message comprises a service type and a vlan to which the client belongs; when the service request message is an analysis message, the analysis message comprises a uuid of the service end.
The service type specifically refers to a service type required by the client, for example, if the client needs printing service, the service type is a printer type; and if the client needs camera shooting service, the service type is a camera type.
Step 220, according to the service demand information, searching whether a service resource table item matched with the service demand information exists in a local service resource table, wherein the service resource table item comprises service end information.
Specifically, after the access switch obtains the service requirement information according to the description of step 210, it searches the local service resource table for whether there is a service resource entry matching the service requirement information. The service resource table entry includes server side information.
In one implementation manner, if the service requirement information is a service type and vlan to which the client belongs, in the local service resource table, searching whether a service resource table item matched with the service requirement information exists or not includes the following specific steps:
according to the vlan to which the client belongs, the access switch determines whether the vlan to which the client belongs exists in a configured user vlan list in a vlan configuration policy; if yes, the access switch acquires a service end vlan list matched with the user vlan list from the vlan configuration strategy, wherein the service end vlan list is the same as or different from the user vlan list; according to the vlan list of the server side, in the local service resource list, the access switch acquires a service resource list item corresponding to the server side in the vlan list of the server side; according to the service type, in the acquired service resource list items, the access switch determines whether the service resource list items matched with the service type exist or not; if the service type is matched with the service type, the access switch acquires the web service address of the service end from the service resource table entry matched with the service type.
For example, the vlan to which the client belongs is vlan 1, and the service type is a printer type. The access switch has supported multiple vlan configuration policies. The valn configuration policy includes a user vlan-list and a server vlan-list corresponding to the user vlan-list. For example, the user vlan list is 1-2; the corresponding service end vlan list is 2-3.
A local service resource table is generated in the access switch, wherein the local service resource table comprises a plurality of service resource table items, and each service resource table item comprises service end information. The server information includes the service type and scope of the server, web service address, uuid, and vlan to which it belongs. In the subsequent embodiments, the process of generating the local service resource table by the access switch will be described in detail, and will not be described in the present embodiment.
In this example, if the vlan to which the client belongs is vlan 1, then the access switch determines that vlan 1 already exists in the list of user vlans. The access switch obtains a service end vlan 2-3 matched with vlan 1. And according to the vlan 2-3 of the server, the access switch acquires a service resource table entry corresponding to the vlan 2-3 of the server in the local service resource table. The number of the acquired service resource entries may be multiple. For example, the access switch acquires 10 service resource entries, wherein 5 service-side home vlan 2 and 5 service-side home vlan 3 in the 10 service resource entries.
According to the printer type, the access switch determines that 6 service resource table items matched with the printer type exist in the 10 acquired service resource table items, wherein 2 service terminals belong to vlan 2 and 4 service terminals belong to vlan 3 in the 6 service resource table items. The access switch obtains the web service addresses of 6 service ends from 6 service resource table items respectively.
In another implementation manner, if the service requirement information is uuid of the service end, the above-mentioned searching in the local service resource table is performed to find whether there is a service resource table entry matching with the service requirement information, which specifically includes:
according to the uuid of the server, the access switch determines whether a service resource table item corresponding to the uuid of the server exists in a local service resource table; if the service resource list item exists, the access switch acquires the web service address of the service end from the service resource list item.
For example, if the uuid of the server is 70 edalc-200 a-4a5e-b60e-ed793e77ace3, the access switch determines that 1 service resource table entry corresponding to 70 edalc-200 a-4a5e-b60e-ed793e77ace3 exists in the local service resource table, and obtains the web service address of 1 server from the service resource table entry.
It can be appreciated that the vlan to which the server belongs is the same or different from the vlan to which the client belongs. For example, vlan 2 or vlan 3 to which the server belongs.
Step 230, if so, sending a service response message to the client, where the service response message includes the server information, so that the client establishes a connection with a server according to the server information, and uses a service provided by the server.
Specifically, according to the description of step 220, there is a service resource entry in the local service resource table that matches the service requirement information. The access switch acquires the server information from the matched service resource list item.
After the access switch acquires the server information, a service response message is generated, wherein the service response message comprises the server information.
The access switch sends a service response message to the client. And the client receives the service response message and acquires the service end information from the service response message. And according to the information of the server side, the client side establishes communication connection with the server side and uses the service provided by the server side.
The server information is specifically a web service address of the server.
In the embodiment of the application, according to the definition of the existing ws-discovery protocol, the access switch correspondingly generates and transmits a service response message according to the service request message transmitted by the client.
For example, when the service request message is a probe message, the service response message is a probe matching message, where the probe matching message includes a web service address of the server; when the service request message is an analysis message, the service response message is an analysis matching message, and the analysis matching message comprises a web service address of the service end.
Therefore, by applying the communication method provided by the application, the access switch receives the service request message sent by the client, and the service request message comprises the service requirement information; according to the service demand information, in a local service resource table, an access switch searches whether a service resource table item matched with the service demand information exists or not, wherein the service resource table item comprises service end information; if the service response message exists, the access switch sends the service response message to the client, wherein the service response message comprises the information of the server, so that the client establishes connection with the server according to the information of the server and uses the service provided by the server; the server and the client corresponding to the server information are located in the same vlan or different vlans.
Therefore, the access switch stores the resources of various service ends providing service in the local service resource table, the client does not need to search the service ends in a multicast mode in the whole network when searching the service ends, and the access switch can provide matched service end information for the client so as to reduce network load; meanwhile, the server corresponding to the server information can be in the same vlan or different vlans with the client, so that the server in different vlans can be found by the client.
Optionally, in an embodiment of the present application, a process of generating a local service resource table by the access switch is further included.
Specifically, in one implementation, when the server is online, the server actively sends a first hello message, where the first hello message includes a service type and a service range of the server, a web service address, a uuid, and a vlan to which the uuid belongs. The access switch receives the first hello message, and obtains the service type and the service range of the service end, the web service address, the uuid and the vlan to which the uuid belongs from the first hello message.
The access switch generates a service resource table entry of the service end, wherein the service resource table entry comprises service end information, and the service end information comprises service type and range of the service end, web service address, uuid and vlan to which the service end belongs.
According to the supported vlan configuration strategy, the access switch sends a second hello message in the vlan included in the configured user vlan list according to the identity of the server, that is, the uuid included in the second hello message is the uuid of the server. The clients in the vlan included in the user vlan list all receive the second hello message; the vlan list of the configured user vlan is the same as or different from the vlan to which the service side belongs.
In the supported vlan configuration strategy, a user vlan list or all vlan lists in the networking can be configured and designated. In the embodiment of the present application, a vlan list of a configuration-specified user is described as an example. In practical application, the access switch may also send the second hello message in all vlan in the network according to the vlan configuration policy supported.
For example, the server in vlan 3 actively sends a first hello message. After receiving the first hello message, the access switch acquires the service type and the range of the service end, the web service address, the uuid and the vlan to which the uuid belongs from the first hello message. The vlan list of the configured user in the access switch is 1-2, and the access switch sends a second hello message in vlan 1-2 according to the identity of the server. The clients in vlan 1-2 all receive the second hello message, so that the server information of the server in vlan 3 can be acquired by the clients in vlan 1-2, and the cross-vlan discovery service is realized.
In another implementation manner, when the server is online, the server actively transmits a first hello message, where the first hello message includes a uuid of the server and a vlan to which the uuid belongs. And the access switch receives the first hello message and acquires the uuid and the belonging vlan of the server side from the first hello message.
Because the access switch does not acquire the web service address of the server from the first hello message, the access switch sends an analysis message in the vlan to which the server belongs, wherein the analysis message comprises the uuid of the server. After all the service ends in the vlan to which the service end belongs receive the analysis message, the service end which is the same as the uuid generates and sends an analysis matching message to the access switch, wherein the analysis matching message comprises the service type and the range of the service end and the web service address.
The access switch receives the analysis matching message sent by the server and acquires the service type, the service range and the web service address of the server from the analysis matching message. The access switch generates a service resource table entry of the service end, wherein the service resource table entry comprises service end information, and the service end information comprises service type and range of the service end, web service address, uuid and vlan to which the service end belongs.
According to the supported vlan configuration strategy, the access switch sends a second hello message in the vlan included in the configured user vlan list according to the identity of the server, wherein the second hello message comprises the service type and the range of the server, the web service address, the uuid and the vlan to which the server belongs, that is, the uuid included in the second hello message is the uuid of the server. The clients in the vlan included in the user vlan list all receive the second hello message; the vlan list of the configured user vlan is the same as or different from the vlan to which the service side belongs.
In the supported vlan configuration strategy, a user vlan list or all vlan lists in the networking can be configured and designated. In the embodiment of the present application, the configuration specification user vlan class is taken as an example for explanation. In practical application, the access switch may also send the second hello message in all vlan in the network according to the vlan configuration policy supported.
For example, the server in vlan 3 actively sends a first hello message. After receiving the first hello message, the access switch acquires the uuid and the vlan to which the server belongs from the first hello message. The access switch sends an analysis message in the vlan 3, and after all the service ends in the vlan 3 receive the analysis message, the service ends which are the same as the uuid send an analysis matching message to the access switch.
The vlan list of the configured user in the access switch is 1-2, and the access switch sends a second hello message in vlan 1-2 according to the identity of the server. The clients in Vlan 1-2 all receive the second hello message, so that the server information of the server in Vlan 3 can be acquired by the clients in Vlan 1-2, and the cross-Vlan discovery service is realized.
Optionally, in the embodiment of the present application, the method further includes a process of receiving the bye packet sent by the server by the access switch.
Specifically, when the server leaves the network, the server sends a first bye message to the access switch, where the first bye message includes a uuid of the server. The access switch receives the first bye message and acquires the uuid of the server side from the first bye message. And deleting the service resource list item matched with the uuid of the server side in the local service resource list by the access switch according to the uuid of the server side.
If the vlan configuration policy function is not supported, the access switch sends a second bye message according to the identity of the server in all vlan in the network, that is, the uuid included in the second bye message is the uuid of the server.
If the vlan policy function is supported, the access switch sends a second bye message in the vlan included in the configured user vlan list, that is, the uuid included in the second bye message is the uuid of the server.
Therefore, all clients in the networking receive bye, the server leaves the networking according to the bye message, and the locally stored server information of the server is deleted.
Optionally, in the embodiment of the present application, a process of the access switch to detect the server end in the networking period is further included.
Specifically, the manager can configure the function of periodically detecting the service end for the access switch, so as to timely and quickly find the service end which can provide service currently in the networking.
In the process of detecting the service end, the access switch can detect the service end of the service appointed by the manager. For example, the manager designates access to the switch to probe the print service with a probing period of 60s-38400s.
And generating and sending a detection message by the access switch in the vlan included in the configured service-side vlan list according to a preset detection period (for example, 60 s), wherein the detection message is used for acquiring service-side information of a service-side which can currently provide service in the vlan included in the service-side vlan list. The server information includes the service type and scope of the server, the web service address, uuid, and vlan to which it belongs.
It can be appreciated that, unlike the probe message described above, in this embodiment, the probe message includes a service type and a vlan included in the vlan list of the server. And the service type is obtained from the detection message after the service end receives the detection message. If the service can provide the service matched with the service type, the service end generates a detection matching message and carries the service end information of the service end in the detection matching message. The access switch acquires the service end which can currently provide corresponding service in the vlan included in the vlan list of the service end through the detection matching message sent by the service end, and determines the specific service, the web service address and the like provided by each service end.
Optionally, in the embodiment of the present application, the method further includes a process that the access switch needs to replace the client to probe the service again after the service resource entry matching with the service requirement information is not found in the local service resource table.
Specifically, according to the description of step 220, if there is no, the access switch sends a probe message in each vlan included in the service vlan list, where one probe message includes a service type and one vlan included in the service vlan list. When a detection matching message sent by a first service end capable of providing services is received, the access switch acquires the service type and range of the first service end, a web service address, a uuid and a vlan to which the detection matching message belongs, wherein the service type and range of the first service end, the web service address, the uuid and the vlan are included in the detection matching message.
The access switch generates a first service resource table entry of the first service end, wherein the first service resource table entry comprises first service end information, and the first service end information comprises a service type and a service range of the first service end, a web service address, a uuid and a vlan to which the first service end belongs.
The access switch sends a service response message to the client, wherein the service response message comprises a web service address of the first service end, so that the client establishes connection with the first service end according to the web service address of the first service end and uses the service provided by the first service end; the first service end and the client end are located in the same vlan or different vlans.
In one implementation, the vlan to which the client belongs is vlan 1 and the service type is printer type. The vlan list of the user in the vlan configuration strategy supported by the access switch is 1-2; the corresponding service end vlan list is 2-3.
From vlan 1, the access switch determines that vlan 1 already exists in the list of user vlan. The access switch obtains a service end vlan 2-3 matched with vlan 1. And according to the vlan 2-3 of the server, the access switch acquires a service resource table entry corresponding to the vlan 2-3 of the server in the local service resource table. The number of the acquired service resource entries may be multiple. For example, the access switch acquires 10 service resource entries, wherein 5 service-side home vlan 2 and 5 service-side home vlan 3 in the 10 service resource entries.
According to the printer type, the access switch determines that the service resource list item matched with the printer type does not exist in the acquired 10 service resource list items. The access switch generates and transmits a detection message in vlan 2-3, wherein one detection message comprises vlan 2 and printer type; another probe message includes vlan 3 and the printer type. That is, the access switch again probes for print type services within vlan 2-3 instead of the client.
If a first service end is newly added in vlan 2-3, the first service end can provide a service of a printing type, after receiving a detection message, the first service end generates and sends a detection matching message, wherein the detection matching message comprises the service type and range of the first service end, a web service address, a uuid and the vlan to which the first service end belongs.
After receiving the detection matching message, the access switch generates a first service resource table item of a first service end, wherein the first service resource table item comprises first service end information, and the first service end information comprises service type and range of the first service end, a web service address, uuid and a vlan to which the uuid belongs.
The access switch sends a service response message to the client, wherein the service response message comprises a web service address of the first service end, so that the client establishes connection with the first service end according to the web service address of the first service end and uses the service provided by the first service end.
It should be noted that, if only the user vlan list is configured in the access switch and the service-side vlan list is not configured, in the searching process, the access switch determines that the service-side vlan is not configured locally, and stops searching. At this point, the access switch determines that there is no matching service resource entry.
Meanwhile, the service response message is the same as the foregoing embodiment, and according to different service request messages sent by the client, the service response message in this embodiment corresponds to the service request message one by one.
In another implementation, if the uuid of the server is 70 edcalc-200 a-4a5e-b60e-ed793e77ace3, the access switch determines that no service resource entry corresponding to 70 edcalc-200 a-4a5e-b60e-ed793e77ace3 exists in the local service resource table. The access switch generates and transmits a detection message in the vlan (e.g. vlan 2-3) included in the configured service-side vlan list, wherein one detection message comprises vlan2 and printer type; another probe message includes vlan3 and the printer type.
That is, the access switch again probes for print type services within vlan 2-3 instead of the client.
If a first service end is newly added in vlan 2-3, the first service end can provide a service of a printing type, after receiving a detection message, the first service end generates and sends a detection matching message, wherein the detection matching message comprises the service type and range of the first service end, a web service address, a uuid and the vlan to which the first service end belongs.
After receiving the detection matching message, the access switch generates a first service resource table item of a first service end, wherein the first service resource table item comprises first service end information, and the first service end information comprises service type and range of the first service end, a web service address, uuid and a vlan to which the uuid belongs.
The access switch sends a service response message to the client, wherein the service response message comprises a web service address of the first service end, so that the client establishes connection with the first service end according to the web service address of the first service end and uses the service provided by the first service end.
It should be noted that, the service response message is the same as the foregoing embodiment, and the service response message in this embodiment corresponds to the service request message one by one according to different service request messages sent by the client.
Optionally, in the embodiment of the present application, after the migration of the server in the vlan, the access switch further includes a process of judging whether the vlan to which the server belongs changes according to the uuid of the server, updating the service resource table entry according to the change result, and sending bye message or hello message in the vlan before and after the migration, respectively.
Specifically, if the access switch determines that the service end has been migrated from the first vlan to the second vlan, the access switch obtains a first service resource table entry corresponding to the service end in the first vlan from a local service resource table, where the service resource table entry includes a vlan to which the service end belongs, and the vlan belongs to an identifier of the first vlan.
The access switch judges whether the uuid of the server has been changed; if not, the access switch updates the vlan of the service end included in the first service resource list item to obtain a second service resource list item corresponding to the service end in the second vlan, wherein the vlan of the service end is the identifier of the second vlan.
According to the supported vlan configuration strategy, the access switch judges whether a first user vlan list where a first vlan is located is identical to a second user vlan list where a second vlan is located; if the two types of vlan lists are different, the access switch sends a bye message in the vlan included in the first user vlan list, the bye message includes a uuid of the service end, and sends a hello message in the vlan included in the second user vlan list, wherein the hello message includes a service type and a range of the service end, a web service address, the uuid and the vlan to which the service end belongs.
It should be noted that, the access switch may determine whether the server has performed the vlan migration process by using an active probing manner or a manner of receiving hello packets sent by the server. The access switch may determine whether the uuid of the server has been changed by comparing the uuid of the server in the first service resource table entry with the uuid of the server obtained by active probing or by receiving hello packets sent by the server.
Optionally, in the embodiment of the present application, the method further includes a process that the access switch ages the service resource table entry.
Specifically, the access switch regularly ages the service resource table entry to delete the service resource table entry which is not updated for a long time, thereby saving the resources occupied by the service resource table. The access switch sets aging time for the service resource table entry, and the access switch acquires the aging time (for example, 120 s) of the service resource table entry; when the aging time reaches a preset time interval (for example, the preset time interval is 80% -82% of the aging time), the access switch sends an analysis message to the service end corresponding to the service resource table entry.
If the analysis matching message sent by the service end is not received, the access switch repeatedly executes the process of sending the analysis message to the service end corresponding to the service resource table entry when the aging time reaches a preset time interval until the aging time reaches a first time interval (for example, the first time interval is 95% -97% of the aging time) and the analysis message is sent again and then stops.
In one example, when the aging time has reached 80% -82%, the access switch sends an parsing message to the server corresponding to the service resource table entry. If the analysis matching message sent by the server is not received, the access switch sends the analysis message to the server again when the aging time reaches 85% -87%. If the analysis matching message sent by the server is not received, the access switch sends the analysis message to the server again when the aging time reaches 90% -92%. If the analysis matching message sent by the server is not received, the access switch sends the analysis message to the server again when the aging time reaches 95% -97%. If the analysis matching message sent by the server is not received, the access switch does not continue to send the analysis message to the server.
If the aging time is overtime and the analysis matching message sent by the server is not received, the access switch deletes the service resource list item of the server from the local service resource list.
Sending bye message in vlan included in the configured user vlan list according to the supported vlan configuration strategy, wherein the bye message comprises uuid of the server side, so that the client side in the vlan included in the user vlan list deletes the locally stored server side information of the server side;
the user vlan list is matched with the service end vlan list, and the service end vlan list comprises service end vlan to which the service end belongs.
It should be noted that, the parsing message in the embodiment of the present application is the same as the parsing message described above, and includes uuid of the server.
It will be appreciated that in the embodiment of the present application, steps 210-230 and the optional steps described above are performed when the access switch enables the gateway function; when the access switch disables the gateway function, steps 210-230 and optional steps described above are not performed and the service resource table is released.
Based on the same inventive concept, the embodiment of the application also provides a communication device corresponding to the communication method. Referring to fig. 3, fig. 3 is a communication apparatus provided in an embodiment of the present application, where the apparatus is applied to an access switch, and the apparatus includes:
A receiving unit 310, configured to receive a service request packet sent by a client, where the service request packet includes service requirement information;
a searching unit 320, configured to search, according to the service requirement information, whether a service resource table entry matching the service requirement information exists in a local service resource table, where the service resource table entry includes service end information;
a sending unit 330, configured to send a service response message to the client if the service response message exists, where the service response message includes the server information, so that the client establishes a connection with a server according to the server information, and uses a service provided by the server;
the server corresponding to the server information and the client are in the same vlan or different vlans.
Optionally, the receiving unit 310 is further configured to receive a first hello packet sent by a server, where the first hello packet includes a service type and a service range of the server, a web service address, a uuid, and a vlan to which the uuid belongs;
the apparatus further comprises: a first generating unit (not shown in the figure) configured to generate a service resource table entry of the server, where the service resource table entry includes the server information, and the server information includes a service type and a service range of the server, a web service address, a uuid, and a vlan to which the service belongs;
The sending unit 330 is further configured to send a second hello packet in a vlan included in the configured user vlan list according to a supported vlan configuration policy, so that a client in the vlan included in the user vlan list receives the second hello packet, where the second hello packet includes a service type and a range of the service end, a web service address, a uuid, and a vlan to which the user vlan belongs;
wherein, the vlan list of the configured user vlan is the same as or different from the vlan to which the service side belongs.
Optionally, the receiving unit 310 is further configured to receive a first hello packet sent by a server, where the first hello packet includes a uuid and a vlan to which the server belongs;
the sending unit 330 is further configured to send, in the vlan, an parsing message, where the parsing message includes a uuid of the server;
the receiving unit 310 is further configured to receive an parsing and matching message sent by the server, where the parsing and matching message includes a service type and a range of the server and a web service address;
the apparatus further comprises: a second generating unit (not shown in the figure) configured to generate a service resource table entry of the server, where the service resource table entry includes the server information, and the server information includes a service type and a service range of the server, a web service address, a uuid, and a vlan to which the service belongs;
The sending unit 330 is further configured to send, according to a supported vlan configuration policy, a second hello packet in a vlan included in a configured user vlan list, where the second hello packet includes a service type and a range of the service end, a web service address, a uuid, and a vlan to which the service end belongs, so that a client in the vlan included in the user vlan list receives the second hello packet;
wherein, the vlan list of the configured user vlan is the same as or different from the vlan to which the service side belongs.
Optionally, the service request message includes a detection message or an analysis message, and the service requirement information includes a service type, a vlan to which the client belongs, and a uuid of the server;
when the service request message is the detection message, the detection message comprises the service type and the vlan to which the client belongs;
when the service request message is the analysis message, the analysis message comprises a uuid of the server;
the service response message comprises a detection matching message or a resolution matching message, and the service end information comprises a web service address of the service end;
when the service request message is the detection message, the service response message is the detection matching message, and the detection matching message comprises a web service address of the service end;
When the service request message is the analysis message, the service response message is the analysis matching message, and the analysis matching message comprises the web service address of the service end.
Optionally, the searching unit 320 is specifically configured to determine, according to the vlan to which the client belongs, whether the vlan to which the client belongs exists in the configured user vlan list in the supported vlan configuration policy;
if so, acquiring a service-side vlan list matched with a user vlan list from the vlan configuration strategy, wherein the service-side vlan list is the same as or different from the user vlan list;
according to the service end vlan list, acquiring a service resource list item corresponding to a service end in the service end vlan list in a local service resource list;
according to the service type, determining whether a service resource table item matched with the service type exists in the acquired service resource table items;
if so, acquiring the web service address of the service end from the service resource table item matched with the service type.
Optionally, the searching unit 320 is specifically configured to determine, according to the uuid of the server, whether a service resource table entry corresponding to the uuid of the server exists in a local service resource table;
If so, acquiring the web service address of the service end from the service resource table entry.
Optionally, the receiving unit 310 is further configured to receive a first bye packet sent by the server, where the first bye packet includes a uuid of the server;
the apparatus further comprises: a first deleting unit (not shown in the figure) configured to delete, in a local service resource table, a service resource table entry that matches the uuid of the server according to the uuid of the server;
the sending unit 330 is further configured to send, if the vlan policy function is not supported, a second bye packet in all vlan in the network, where the second bye packet includes a uuid of the server;
if the vlan configuration policy function is supported, a second bye message is sent in a vlan included in the configured user vlan list, wherein the second bye message includes a uuid of the server.
Optionally, the sending unit 330 is further configured to send, according to a preset probing period, a probing message in a vlan included in the configured service vlan list, where the probing message is used to obtain service side information of a service side that can currently provide services in a vlan included in the service vlan list.
Optionally, the sending unit 330 is further configured to send, if not, a detection message in a vlan included in the service vlan list, where the detection message includes the service type and a vlan included in the service vlan list;
the apparatus further comprises: a first obtaining unit (not shown in the figure) configured to obtain, when the receiving unit 310 receives a probe matching packet sent by a first service end capable of providing a service, a service type and a range of the first service end, a web service address, a uuid, and a vlan to which the first service end belongs, where the probe matching packet includes;
a third generating unit (not shown in the figure) configured to generate a first service resource table entry of the first service end, where the first service resource table entry includes first service end information, and the first service end information includes a service type and a range of the first service end, a web service address, a uuid, and a vlan to which the first service end belongs;
the sending unit 330 is further configured to send the probe matching packet to the client, where the probe matching packet includes a web service address of the first service end, so that the client establishes a connection with the first service end according to the web service address of the first service end, and uses a service provided by the first service end;
The first service end and the client end are located in the same vlan or different vlans.
Optionally, the apparatus further comprises: a second obtaining unit (not shown in the figure), configured to obtain, if it is determined that the service end has migrated from the first vlan to the second vlan, a corresponding first service resource table entry of the service end in the first vlan from a local service resource table, where the service resource table entry includes a vlan to which the service end belongs, and the vlan to which the service end belongs is an identifier of the first vlan;
a first judging unit (not shown in the figure) for judging whether the uuid of the server has been changed;
an updating unit (not shown in the figure) configured to update, if not changed, a vlan to which the service end included in the first service resource table entry belongs to, to obtain a second service resource table entry corresponding to the service end in the second vlan, where the vlan is an identifier of the second vlan;
a second judging unit (not shown in the figure) for judging whether the first vlan-list of the first vlan is the same as the second vlan-list of the second vlan according to the vlan configuration policy;
the sending unit 330 is further configured to send bye message in vlan included in the first vlan list of users and send hello message in vlan included in the second vlan list of users if the two vlan lists are different.
Optionally, the apparatus further comprises: a third obtaining unit (not shown in the figure) for obtaining the aging time of the service resource table item;
the sending unit 330 is further configured to send an parsing message to the server corresponding to the service resource table entry when the aging time has reached a preset time interval;
an execution unit (not shown in the figure), configured to, if the receiving unit 310 does not receive the parsing matching message sent by the server, repeatedly execute a process of sending the parsing message to the server corresponding to the service resource table entry when the aging time has reached a preset time interval, until the aging time reaches a second time interval and after sending the parsing message again, stop;
a second deleting unit (not shown in the figure) configured to delete the service resource entry from the local service resource table if the aging time is over and the parsing matching message sent by the server is not received;
the sending unit 330 is further configured to send a bye message in a vlan included in the configured user vlan list according to a supported vlan configuration policy, where the bye message includes a uuid of the server;
the user vlan list is matched with a service-side vlan list, and the service-side vlan list comprises a service-side vlan to which the service-side belongs.
Therefore, by applying the communication device provided by the application, the access switch receives the service request message sent by the client, and the service request message comprises the service requirement information; according to the service demand information, in a local service resource table, an access switch searches whether a service resource table item matched with the service demand information exists or not, wherein the service resource table item comprises service end information; if the service response message exists, the access switch sends the service response message to the client, wherein the service response message comprises the information of the server, so that the client establishes connection with the server according to the information of the server and uses the service provided by the server; the server and the client corresponding to the server information are located in the same vlan or different vlans.
Therefore, the access switch stores the resources of various service ends providing service in the local service resource table, the client does not need to search the service ends in a multicast mode in the whole network when searching the service ends, and the access switch can provide matched service end information for the client so as to reduce network load; meanwhile, the server corresponding to the server information can be in the same vlan or different vlans with the client, so that the server in different vlans can be found by the client.
Based on the same inventive concept, the embodiment of the present application also provides a network device, as shown in fig. 4, including a processor 410, a transceiver 420, and a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine executable instructions capable of being executed by the processor 410, and the processor 410 is caused to perform the communication method provided by the embodiment of the present application by the machine executable instructions. The communication device shown in fig. 3 may be implemented by using a hardware structure of a network device as shown in fig. 4.
The computer readable storage medium 430 may include a random access Memory (in english: random Access Memory, abbreviated as RAM) or a nonvolatile Memory (in english: non-volatile Memory, abbreviated as NVM), such as at least one magnetic disk Memory. Optionally, the computer readable storage medium 430 may also be at least one storage device located remotely from the aforementioned processor 410.
The processor 410 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (English: digital Signal Processor; DSP; for short), an application specific integrated circuit (English: application Specific Integrated Circuit; ASIC; for short), a Field programmable gate array (English: field-Programmable Gate Array; FPGA; for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In an embodiment of the present application, processor 410 is enabled to implement the processor 410 itself and invoke transceiver 420 to perform the communication method described in the previous embodiment of the present application by reading machine-executable instructions stored in machine-readable storage medium 430.
Additionally, embodiments of the present application provide a machine-readable storage medium 430, the machine-readable storage medium 430 storing machine-executable instructions that, when invoked and executed by the processor 410, cause the processor 410 itself and the invoking transceiver 420 to perform the communication methods described in the foregoing embodiments of the present application.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
For the communication device and the machine-readable storage medium embodiments, since the method content involved is substantially similar to the method embodiments described above, the description is relatively simple, and reference will only be made to part of the description of the method embodiments.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.
Claims (11)
1. A method of communication, the method being applied to an access switch, the method comprising:
receiving a service request message sent by a client, wherein the service request message comprises service demand information;
according to the service demand information, searching whether a service resource table item matched with the service demand information exists in a local service resource table, wherein the service resource table item comprises service end information;
if yes, sending a service response message to the client, wherein the service response message comprises the server information, so that the client establishes connection with a server according to the server information and uses the service provided by the server;
The server corresponding to the server information and the client are in the same vlan or different vlans;
before receiving the service request message sent by the client, the method further includes:
receiving a first hello message sent by a server, wherein the first hello message includes a uuid and a vlan to which the server belongs;
in the vlan, sending an analysis message, wherein the analysis message comprises uuid of the server side;
receiving an analysis matching message sent by the server, wherein the analysis matching message comprises a service type and a range of the server and a web service address;
generating a service resource table item of the service end, wherein the service resource table item comprises the service end information, and the service end information comprises a service type and a service range of the service end, a web service address, a uuid and a vlan to which the service end belongs;
according to the supported vlan configuration strategy, a second hello message is sent in a vlan included in a configured user vlan list, wherein the second hello message comprises the service type and the service range of the service end, a web service address, a uuid and the vlan to which the service end belongs, so that a client in the vlan included in the user vlan list receives the second hello message;
Wherein, the vlan list of the configured user vlan is the same as or different from the vlan to which the server belongs; the vlan configuration strategy comprises the user vlan list and a service-side vlan list corresponding to the vlan list.
2. The method of claim 1, wherein prior to receiving the service request message sent by the client, the method further comprises:
receiving a first hello message sent by a server, wherein the first hello message comprises a service type and a service range of the server, a web service address, a uuid and a vlan to which the uuid belongs;
generating a service resource table item of the service end, wherein the service resource table item comprises the service end information, and the service end information comprises a service type and a service range of the service end, a web service address, a uuid and a vlan to which the service end belongs;
according to a supported vlan configuration strategy, a second hello message is sent in a vlan included in a configured user vlan list, so that a client in the vlan included in the user vlan list receives the second hello message, wherein the second hello message comprises a service type and a service range of the service end, a web service address, a uuid and a vlan to which the second hello message belongs;
wherein, the vlan list of the configured user vlan is the same as or different from the vlan to which the service side belongs.
3. The method of claim 1, wherein the service request message includes a probe message or an parse message, and the service requirement information includes a service type, a vlan to which the client belongs, and a uuid of the server;
when the service request message is the detection message, the detection message comprises the service type and the vlan to which the client belongs;
when the service request message is the analysis message, the analysis message comprises a uuid of the server;
the service response message comprises a detection matching message or a resolution matching message, and the service end information comprises a web service address of the service end;
when the service request message is the detection message, the service response message is the detection matching message, and the detection matching message comprises a web service address of the service end;
when the service request message is the analysis message, the service response message is the analysis matching message, and the analysis matching message comprises the web service address of the service end.
4. A method according to claim 3, wherein the searching, according to the service requirement information, in a local service resource table, whether there is a service resource table entry matching the service requirement information specifically includes:
According to the vlan to which the client belongs, in a supported vlan configuration strategy, determining whether the vlan to which the client belongs exists in a configured user vlan list;
if so, acquiring a service-side vlan list matched with a user vlan list from the vlan configuration strategy, wherein the service-side vlan list is the same as or different from the user vlan list;
according to the service end vlan list, acquiring a service resource list item corresponding to a service end in the service end vlan list in a local service resource list;
according to the service type, determining whether a service resource table item matched with the service type exists in the acquired service resource table items;
if so, acquiring the web service address of the service end from the service resource table item matched with the service type.
5. A method according to claim 3, wherein the searching, according to the service requirement information, in a local service resource table, whether there is a service resource table entry matching the service requirement information specifically includes:
according to the uuid of the server, determining whether a service resource table item corresponding to the uuid of the server exists in a local service resource table;
If so, acquiring the web service address of the service end from the service resource table entry.
6. The method according to claim 1, wherein the method further comprises:
receiving a first bye message sent by the server, wherein the first bye message comprises a uuid of the server;
deleting a service resource table item matched with the uuid of the server in a local service resource table according to the uuid of the server;
if the vlan configuration strategy function is not supported, sending a second bye message in all vlan in the networking, wherein the second bye message comprises a uuid of the server;
if the vlan configuration policy function is supported, a second bye message is sent in a vlan included in the configured user vlan list, wherein the second bye message includes a uuid of the server.
7. The method according to claim 1, wherein the method further comprises:
according to a preset detection period, sending a detection message in a vlan included in a configured service-side vlan list, wherein the detection message is used for acquiring service-side information of a service-side which can currently provide service in the vlan included in the service-side vlan list.
8. The method according to claim 4, wherein the method further comprises:
If the service resource list item matched with the service type does not exist, sending a detection message in the vlan included in the service-side vlan list, wherein the detection message comprises the service type and the vlan included in the service-side vlan list;
when a detection matching message sent by a first service end capable of providing service is received, acquiring the service type and range of the first service end, a web service address, a uuid and a vlan to which the detection matching message belongs, wherein the service type and range of the first service end, the web service address, the uuid and the vlan to which the detection matching message belongs are included;
generating a first service resource table item of the first service end, wherein the first service resource table item comprises first service end information, and the first service end information comprises a service type and a service range of the first service end, a web service address, a uuid and a vlan to which the first service end belongs;
the service response message is sent to the client, wherein the service response message comprises the web service address of the first service end, so that the client establishes connection with the first service end according to the web service address of the first service end and uses the service provided by the first service end;
the first service end and the client end are located in the same vlan or different vlans.
9. The method according to claim 1, wherein the method further comprises:
if the service end is determined to be migrated from the first vlan to the second vlan, acquiring a first service resource table item corresponding to the service end in the first vlan from a local service resource table, wherein the service resource table item comprises a vlan to which the service end belongs, and the vlan to which the service end belongs is an identifier of the first vlan;
judging whether the uuid of the server has been changed or not;
if not, updating the vlan to which the service end belongs, which is included in the first service resource table entry, to obtain a second service resource table entry corresponding to the service end in the second vlan, wherein the vlan to which the service end belongs is the identifier of the second vlan;
judging whether a first user vlan list where the first vlan is located is identical to a second user vlan list where the second vlan is located according to a supported vlan configuration strategy;
if the two vlan lists are different, a bye message is sent in the vlan included in the first user vlan list, and a hello message is sent in the vlan included in the second user vlan list.
10. The method according to claim 1, wherein the method further comprises:
acquiring the aging time of the service resource table item;
When the aging time reaches a preset time interval, sending an analysis message to the server corresponding to the service resource table item;
if the analysis matching message sent by the server is not received, repeating the process of sending the analysis message to the server corresponding to the service resource table item when the aging time reaches a preset time interval until the aging time reaches a first time interval and the analysis message is sent again and then stopping;
if the aging time is overtime and the analysis matching message sent by the server is not received, deleting the service resource list item from a local service resource list;
sending a bye message in a vlan included in a configured user vlan list according to a supported vlan configuration strategy, wherein the bye message comprises a uuid of the server;
the user vlan list is matched with a service-side vlan list, and the service-side vlan list comprises a service-side vlan to which the service-side belongs.
11. A communication device, the device being applied to an access switch, the device comprising:
the receiving unit is used for receiving a service request message sent by the client, wherein the service request message comprises service demand information;
The searching unit is used for searching whether a service resource table item matched with the service demand information exists in a local service resource table according to the service demand information, wherein the service resource table item comprises service end information;
the sending unit is used for sending a service response message to the client if the service response message exists, wherein the service response message comprises the server information, so that the client establishes connection with the server according to the server information and uses the service provided by the server;
the server corresponding to the server information and the client are in the same vlan or different vlans;
the receiving unit is further configured to receive a first hello packet sent by a server, where the first hello packet includes a uuid and a vlan to which the server belongs;
the sending unit is further configured to send an parsing message in the vlan, where the parsing message includes a uuid of the server;
the receiving unit is further configured to receive an analysis matching packet sent by the server, where the analysis matching packet includes a service type and a range of the server and a web service address;
the apparatus further comprises: the second generation unit is used for generating a service resource table item of the service end, wherein the service resource table item comprises the service end information, and the service end information comprises the service type and range of the service end, a web service address, a uuid and a vlan to which the service end belongs;
The sending unit is further configured to send a second hello packet in a vlan included in the configured user vlan list according to a supported vlan configuration policy, where the second hello packet includes a service type and a range of the service end, a web service address, a uuid, and a vlan to which the service end belongs, so that a client in the vlan included in the user vlan list receives the second hello packet;
wherein, the vlan list of the configured user vlan is the same as or different from the vlan to which the server belongs; the vlan configuration strategy comprises the user vlan list and a service-side vlan list corresponding to the vlan list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150382.0A CN114513549B (en) | 2022-02-18 | 2022-02-18 | Communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150382.0A CN114513549B (en) | 2022-02-18 | 2022-02-18 | Communication method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114513549A CN114513549A (en) | 2022-05-17 |
CN114513549B true CN114513549B (en) | 2023-09-15 |
Family
ID=81552267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210150382.0A Active CN114513549B (en) | 2022-02-18 | 2022-02-18 | Communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114513549B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104618394A (en) * | 2015-02-28 | 2015-05-13 | 小米科技有限责任公司 | Method and device for establishing communication connection between client sides and router |
CN106656721A (en) * | 2016-11-16 | 2017-05-10 | 广州视源电子科技股份有限公司 | Cross-vlan service connection method, device and system |
CN106789861A (en) * | 2016-03-11 | 2017-05-31 | 新华三技术有限公司 | A kind of message processing method and device |
CN108024306A (en) * | 2017-12-05 | 2018-05-11 | 锐捷网络股份有限公司 | A kind of TCP connection managements method and gateway device |
CN109379291A (en) * | 2018-09-29 | 2019-02-22 | 新华三技术有限公司合肥分公司 | The processing method and processing device of service request in a kind of networking |
CN109408020A (en) * | 2018-12-18 | 2019-03-01 | 锐捷网络股份有限公司 | It is a kind of to realize the method and apparatus for throwing screen service |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9674048B2 (en) * | 2013-06-03 | 2017-06-06 | Qualcomm Incorporated | Efficient infrastructure service discovery with security |
US9847963B2 (en) * | 2013-10-09 | 2017-12-19 | Cisco Technology, Inc. | Communicating service denials back to client during MDNS service discovery |
-
2022
- 2022-02-18 CN CN202210150382.0A patent/CN114513549B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104618394A (en) * | 2015-02-28 | 2015-05-13 | 小米科技有限责任公司 | Method and device for establishing communication connection between client sides and router |
CN106789861A (en) * | 2016-03-11 | 2017-05-31 | 新华三技术有限公司 | A kind of message processing method and device |
CN106656721A (en) * | 2016-11-16 | 2017-05-10 | 广州视源电子科技股份有限公司 | Cross-vlan service connection method, device and system |
CN108024306A (en) * | 2017-12-05 | 2018-05-11 | 锐捷网络股份有限公司 | A kind of TCP connection managements method and gateway device |
CN109379291A (en) * | 2018-09-29 | 2019-02-22 | 新华三技术有限公司合肥分公司 | The processing method and processing device of service request in a kind of networking |
CN109408020A (en) * | 2018-12-18 | 2019-03-01 | 锐捷网络股份有限公司 | It is a kind of to realize the method and apparatus for throwing screen service |
Non-Patent Citations (2)
Title |
---|
MQTT over VLAN for Reduction of Overhead on Information Discovery;Yuya Sasaki;《2019 International Conference on Information Networking (ICOIN)》;全文 * |
中型园区网络的系统构建与安全策略研究;刘诣;胡晓筝;;数据通信(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114513549A (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7978631B1 (en) | Method and apparatus for encoding and mapping of virtual addresses for clusters | |
US10623237B2 (en) | Method of managing zigbee network in the internet of things | |
JP5364671B2 (en) | Terminal connection status management in network authentication | |
US8169641B2 (en) | Servers and computer readable media, methods, and systems including or employing servers to perform one-to-one communication between devices on different networks | |
JP2005287045A (en) | Method for discovery of device connected to ip network and device to carry out the method | |
CN110493366B (en) | Method and device for adding access point into network management | |
CN111130902B (en) | Switch management method, device and storage medium | |
JP2006262193A (en) | Controller, packet transferring method, and packet processor | |
US20050198383A1 (en) | Printer discovery protocol system and method | |
US20110022632A1 (en) | Information processing apparatus, image forming apparatus, and control method therefor | |
US9166884B2 (en) | Network location service | |
CN112217781A (en) | Method and apparatus for analyzing service-oriented communications | |
CN111193778B (en) | Method and device for balancing WEB service load | |
US11115266B2 (en) | Priority based selection of time services | |
CN107995124B (en) | Traffic scheduling method and device | |
KR102547701B1 (en) | Network topology discovery method, device, and system | |
JP6378121B2 (en) | Gateway apparatus and communication method | |
CN114513549B (en) | Communication method and device | |
CN105227334A (en) | A kind of Fabric method for discovering network topology and device | |
CN113746659B (en) | Method, equipment and system for network topology discovery | |
CN110809033B (en) | Message forwarding method and device and switching server | |
CN109041038A (en) | For controlling the method and system of electronic device and designated user's binding | |
EP3562101A1 (en) | Bras management method, packet forwarding method, packet forwarding controller, and bras | |
CN111385324A (en) | Data communication method, device, equipment and storage medium | |
CN117424928B (en) | Network equipment and resource sharing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |