Movatterモバイル変換


[0]ホーム

URL:


CN109981819A - MDNS message processing method, device and group network system - Google Patents

MDNS message processing method, device and group network system
Download PDF

Info

Publication number
CN109981819A
CN109981819ACN201910226411.5ACN201910226411ACN109981819ACN 109981819 ACN109981819 ACN 109981819ACN 201910226411 ACN201910226411 ACN 201910226411ACN 109981819 ACN109981819 ACN 109981819A
Authority
CN
China
Prior art keywords
message
mdns
request message
gateway
sent
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
Application number
CN201910226411.5A
Other languages
Chinese (zh)
Other versions
CN109981819B (en
Inventor
王玉戚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Hefei BranchfiledCriticalNew H3C Technologies Co Ltd Hefei Branch
Priority to CN201910226411.5ApriorityCriticalpatent/CN109981819B/en
Publication of CN109981819ApublicationCriticalpatent/CN109981819A/en
Application grantedgrantedCritical
Publication of CN109981819BpublicationCriticalpatent/CN109981819B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Present disclose provides a kind of mDNS message processing method, device and group network systems;Wherein, this method comprises: the request message that receiving terminal apparatus is sent;If request message is mDNS message, the first setting identification is set in the heading of request message;First setting identification is mDNS message for identification request message;The request message for being provided with the first setting identification is sent to the corresponding gateway of mDNS message by mDNS trunking.The disclosure is in the case where mDNS trunking and gateway are in different VLAN, mDNS trunking is without decapsulating whether message can be mDNS message by the not message of the first setting identification in message, and then it is sent to gateway after carrying out relevant treatment to mDNS message, to provide the mDNS service across VLAN for terminal device.

Description

MDNS message processing method, device and group network system
Technical field
This disclosure relates to field of communication technology, more particularly, to a kind of mDNS message processing method, device and group network system.
Background technique
MDNS (multicast Domain Name System, multicast domain name system) agreement may be implemented in no traditionIn the case where dns server, send out the equipment in VLAN (Virtual Local Area Network, virtual LAN) mutuallyNow with the function of communication.MDNS trunking and mDNS gateway can make mDNS service across VLAN, to improveThe forwarding rate of mDNS message and the limitless volumes of wireless networking.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of mDNS message processing method, device and group network system, so thatMDNS trunking identifies whether the message is mDNS message, and then sets to gateway is sent to after mDNS message progress relevant treatmentIt is standby, to provide the mDNS service across VLAN for terminal device.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, this method is applied to AP (Access present disclose provides a kind of mDNS message processing methodPoint, access points);AP is communicated to connect with terminal device and mDNS trunking respectively;Method includes: to receive terminal to setThe request message that preparation is sent;If request message is mDNS message, the first setting identification is set in the heading of request message;FirstSetting identification is mDNS message for identification request message;The request message for being provided with the first setting identification is relayed by mDNSEquipment is sent to the corresponding gateway of mDNS message.
Second aspect, present disclose provides a kind of mDNS message processing method, this method is applied to mDNS trunking;MDNS trunking is communicated to connect with AP and gateway respectively;Method includes: the request message for receiving AP and sending;Judgement requestWhether first setting identification is provided in the heading of message;First setting identification is mDNS message for identification request message;If so, request message is converted to unicast message, the request message after conversion is sent to the corresponding gateway of mDNS message and is setIt is standby.
The third aspect, present disclose provides a kind of mDNS message process device, which is set to access points AP;APIt is communicated to connect respectively with terminal device and mDNS trunking;The device includes: the first receiving module, is used for receiving terminal apparatusThe request message of transmission;Identify and arrange module, if being mDNS message for request message, in the heading setting the of request messageOne setting identification;First setting identification is mDNS message for identification request message;First sending module, for will to be provided withThe request message of one setting identification is sent to the corresponding gateway of mDNS message by mDNS trunking.
Fourth aspect, present disclose provides a kind of mDNS message process device, which is set to mDNS trunking;MDNS trunking is communicated to connect with AP and gateway respectively;Device includes: the second receiving module, for receiving AP transmissionRequest message;Whether judgment module is provided with the first setting identification in the heading for judging request message;First setting markKnowing for identification request message is mDNS message;Second sending module, if for being provided in the heading of request messageRequest message is converted to unicast message by one setting identification, and the request message after conversion is sent to the corresponding net of mDNS messageClose equipment.
5th aspect, present disclose provides a kind of access points, including processor and memory, memory to be stored with energyThe machine-executable instruction being enough executed by processor, processor execute machine-executable instruction to realize above-mentioned first aspectMDNS message processing method.
6th aspect, present disclose provides a kind of mDNS trunkings, including processor and memory, memory to be stored withThe machine-executable instruction that can be executed by processor, processor execute machine-executable instruction to realize above-mentioned second aspectMDNS message processing method.
7th aspect, present disclose provides a kind of machine readable storage medium, machine readable storage medium is stored with machineExecutable instruction, for machine-executable instruction when being called and being executed by processor, machine-executable instruction promotes processor to realizeAbove-mentioned mDNS message processing method.
Eighth aspect, present disclose provides a kind of group network system, which includes AP, mDNS trunking, the first gatewayEquipment and the second gateway;AP is connect with mDNS trunking;MDNS trunking respectively with the first gateway and secondGateway connection.
Above-mentioned mDNS message processing method, device, access points, mDNS trunking, machine readable storage medium andGroup network system, after AP receives the request message of terminal device transmission, if the request message is mDNS message, in request messageHeading be arranged the first setting identification, with identify the request message be mDNS message;It will be provided with the first setting identification againRequest message is sent to the corresponding gateway of mDNS message by mDNS trunking.By this way, it is set in mDNS relayingIn the case that standby and gateway be in different VLAN, mDNS trunking can be by the in message without decapsulating messageWhether one setting identification not message is mDNS message, and then is sent to gateway after carrying out relevant treatment to mDNS message,To provide the mDNS service across VLAN for terminal device.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be withDeduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, better embodiment is cited below particularly, and matchInstitute's attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior artEmbodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described belowAttached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative laborIt puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram for networking that disclosure embodiment provides;
Fig. 2 is a kind of flow chart for mDNS message processing method that disclosure embodiment provides;
Fig. 3 is the flow chart for another mDNS message processing method that disclosure embodiment provides;
Fig. 4 is the flow chart for another mDNS message processing method that disclosure embodiment provides;
Fig. 5 is the structural schematic diagram for another networking that disclosure embodiment provides;
Fig. 6 is the flow chart for another mDNS message processing method that disclosure embodiment provides;
Fig. 7 is the flow chart for another mDNS message processing method that disclosure embodiment provides;
Fig. 8 is a kind of structural schematic diagram for mDNS message process device that disclosure embodiment provides;
Fig. 9 is the structural schematic diagram for another mDNS message process device that disclosure embodiment provides;
Figure 10 is the structural schematic diagram for the AP or mDNS trunking that disclosure embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of disclosure embodiment clearer, below in conjunction with attached drawing to this public affairsThe technical solution opened is clearly and completely described, it is clear that and described embodiment is a part of embodiment of the disclosure,Rather than whole embodiment.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creationProperty labour under the premise of every other embodiment obtained, belong to the disclosure protection range.
In order to make it easy to understand, a kind of networking suitable for disclosure mDNS message processing method is described first below;Such as Fig. 1Shown, which includes gateway, mDNS trunking, AP and terminal device;For ease of description, in Fig. 1 with two groups according toFor the mDNS trunking of secondary connection, AP and terminal device, the mDNS trunking in every group is connect with gateway;WhenSo, in actual implementation, gateway can connect multiple mDNS trunkings, and AP also can connect multiple terminal devices;It shouldRadio access interface has can be set in AP, and wired access interface also can be set, and the disclosure does not limit specific networking structure.Wherein, mDNS trunking realizes the communication of the terminal device under non-same VLAN for making mDNS service across VLAN;EventuallyEnd equipment can be the various equipment with communication connection function such as mobile phone, tablet computer, printer, multimedia player.
In the related technology, in networking, terminal device send message by AP be sent to gateway (or access controlDevice) when, message needs are packaged;In order to realize the mDNS service of travelling across VLAN in networking;It is usually set between AP and gatewayIt is equipped with mDNS trunking.But the mDNS trunking cannot identify whether the message after AP encapsulation is mDNS message, thusThe relevant processing of mDNS message can not be carried out, networking is caused to be difficult to realize the mDNS service of travelling across VLAN.
Specifically, AP would generally be assisted by preset tunnel when terminal device sends message to gateway by APEncapsulated message is discussed, such as openflow agreement or capwap agreement;But the mDNS trunking between AP and gateway does not haveThe ability of standby decapsulation message, therefore, mDNS trunking cannot identify whether packed message is mDNS message, can notThere is provided relevant treatment for mDNS message, the mDNS relay function of mDNS trunking at this moment be it is infirm, only as commonInterchanger E-Packet.It is only come into force again in L 2 broadcast domain due to the multicast address that mDNS message uses, i.e. the mDNS messageIt can only be forwarded in same VLAN;If the mDNS trunking and gateway are in same VLAN, mDNS trunkingRequest message can be sent to gateway, to realize that mDNS is serviced;But if the mDNS trunking and gatewayIn different VLAN, request message cannot be forwarded to gateway by mDNS trunking, cause to be difficult to realize in networking acrossThe mDNS of VLAN is serviced.
Based on this, present embodiment is quasi- to provide a kind of mDNS message processing method, device and group network system, which can be withApplied in group network system, to realize the mDNS service of travelling across VLAN.A kind of mDNS message processing method, the party is described first belowMethod is applied to access points AP;The AP is communicated to connect with terminal device and mDNS trunking respectively;As shown in Fig. 2, the partyMethod includes the following steps:
Step S202, the request message that receiving terminal apparatus is sent;
When terminal device needs to establish connection with other terminal devices, it is necessary first to above-mentioned request message is sent, to obtainThe address of other terminal devices is taken, to be communicated with other terminal devices.For example, mobile phone needs printer to provide printing clothesIt when business, needs to send above-mentioned message request, to obtain the address of printer, is established and communicated to connect by the address and printerAfterwards, then to printer data to be printed are sent.For another example, it when tablet computer needs stereo set to provide audio broadcasting service, needsAbove-mentioned message request is sent, to obtain the address of stereo set, after establishing communication connection by the address and stereo set, thenAudio to be played is sent to stereo set.
The first setting identification is arranged in the heading of request message if request message is mDNS message in step S204;ThisOne setting identification is mDNS message for identification request message;
For example, can judge whether the request message is mDNS according to the heading of request message or other message informationsMessage;The source IP address of message, source MAC, source port number, destination IP are generally comprised in the heading of request messageThe information such as location, target MAC (Media Access Control) address, destination slogan;Since mDNS message belongs to multicast message, thus the destination IP in headingAddress, target MAC (Media Access Control) address are usually multicast address, and the destination slogan of mDNS message is 5353.Thus AP is asked by parsingThe heading of message is sought, can judge whether the message is mDNS message.
Above-mentioned first setting identification can be set on each layer encapsulation head of heading, such as IP layers, ether layer;In order not toOther content is influenced, the first setting identification can be set in some null fields or Optional Field, such as IP layers of OPTION wordSection.First setting identification can be indicated with the form of character or number, such as be indicated by 0x01 or T.
It should be noted that for the ease of the identification of mDNS trunking, which be can be set can be byThe encapsulation head of mDNS trunking inquiry, such as IP layers above-mentioned, ether layer, in order to which mDNS trunking is asked without decapsulationAsk message that can inquire first setting identification.
The request message for being provided with the first setting identification is sent to mDNS message by mDNS trunking by step S206Corresponding gateway.
Specifically, the request message for being provided with the first setting identification first can be sent to mDNS trunking by AP, it shouldMDNS trunking can preset the function of the first setting identification corresponding field of inquiry;MDNS trunking receives requestAfter message, inquire in the first setting identification corresponding field whether be provided with the first setting identification, if it is not, then by the requestMessage is sent to the corresponding gateway of common message as common message;If it is, the request message can be determinedFor mDNS message;In the case where mDNS trunking is in different VLAN from gateway, in order to which request message is sent toRequest message first can be converted into unicast message by mDNS message by grid equipment, mDNS trunking, and be sent to mDNS reportThe corresponding gateway of text, to realize the mDNS message forwarding of travelling across VLAN.
In the mDNS message processing method that disclosure embodiment provides, AP receives the request message of terminal device transmissionAfterwards, if the request message is mDNS message, the first setting identification is set in the heading of request message, to identify the request reportText is mDNS message;The request message for being provided with the first setting identification is sent to mDNS message pair by mDNS trunking againThe gateway answered.By this way, in the case where mDNS trunking and gateway are in different VLAN, mDNS relayingEquipment is not necessarily to decapsulate whether message can be mDNS message by the not message of the first setting identification in message, and then rightMDNS message is sent to gateway after carrying out relevant treatment, to provide the mDNS service across VLAN for terminal device.
Disclosure embodiment also provides another kind mDNS message processing method, and this method is in the above-mentioned Message processing side mDNSIt is realized on the basis of method;This method emphasis describes AP and judges whether request message is that the detailed process of mDNS message and setting are markedThe setting up procedure of knowledge;As shown in figure 3, this method comprises the following steps:
Step S302, the request message that receiving terminal apparatus is sent;
Step S304, the heading of analysis request message obtain the address information of request message;The address information includes meshAddress and/or port numbers;
Step S306 determines whether request message is mDNS message according to the address information of request message;If so, holdingRow step S308;If not, executing step S312;
The destination address of mDNS message is that the multicast address in multicast address, such as IPv4 network is 224.0.0.251;AndThe port numbers of mDNS message are 5353;Thus judge whether the destination address of request message is multicast address, or judgement requestWhether the port numbers of message are 5353, that is, can determine whether the request message is mDNS message.Certainly, in order to improve reliability,Whether the destination address that can also judge request message simultaneously is multicast address, and the port numbers of request message whether be5353, when judging result, which is, is, just determine that the request message is mDNS message.
The first setting identification is arranged in the heading of request message in step S308;First setting identification is asked for identifyingSeeking message is mDNS message;
The request message for being provided with the first setting identification is sent to mDNS message by mDNS trunking by step S310Corresponding gateway;Terminate.
The second setting identification is arranged in the heading of request message in step S312;Second setting identification is used for identification requestMessage is general service message;
Request message is sent to the corresponding gateway of general service message by mDNS trunking by step S314.
Above-mentioned first setting identification and the second setting identification can be set in the same field, also can be set in different wordsDuan Zhong.In one of implementation, a specific field, the designated word can be selected in the heading of request message in advanceSection is usually spare field or Optional Field, if the request message is mDNS message, the finger in the heading of request messageDetermine that the first setting identification is arranged in field;If the request message is general service message, it is arranged second on the specific fieldSetting identification.
Specifically, above-mentioned specific field can be located in the heading of request message, IP layers of the part option;It can beThe IP layers of the part option increases an identification field (being referred to as flag field), and the format of the identification field can beTLV (tag length value, type lengths values) format, naturally it is also possible to be extended formatting.It, can be in the identification fieldIt indicates that the request message is mDNS message by 0x01, indicates that the request message is that general service message (can also be with by 0x00Referred to as non-mDNS message);The length of the identification field can be 1 byte (byte).
In aforesaid way, AP may determine that whether request message is mDNS message by the address information of request message;Such asThe fruit request message is mDNS message, then the first setting identification is arranged in request message, if the request message is common industryBusiness message, then be arranged the second setting identification in request message, so that subsequent mDNS trunking identifies mDNS message;In turnIt is sent to gateway after carrying out relevant treatment to mDNS message, to provide the mDNS service across VLAN for terminal device.
Disclosure embodiment also provides another kind mDNS message processing method, and this method is in the above-mentioned Message processing side mDNSIt is realized on the basis of method;This method is described from the angle of mDNS trunking;The mDNS trunking respectively with AP and netClose equipment communication connection;As shown in figure 4, this method comprises the following steps:
Step S402 receives the request message that AP is sent;
Step S404 judges the first setting identification whether is provided in the heading of request message;First setting identificationIt is mDNS message for identification request message;
Request message is converted to list if being provided with the first setting identification in the heading of request message by step S406Casting text, is sent to the corresponding gateway of mDNS message for the request message after conversion.
In which, after mDNS trunking receives the request message of AP transmission, the heading of the request message is judgedIn whether be provided with the first setting identification, if it is, the request message is determined as mDNS message, and request message is convertedFor unicast message, the request message after conversion is sent to the corresponding gateway of mDNS message.By this way, in mDNSIn the case that equipment and gateway are in different VLAN, mDNS trunking can be by message without decapsulating messageThe first setting identification identify whether the message is mDNS message, and then to mDNS message carry out relevant treatment after be sent to gatewayEquipment, to provide the mDNS service across VLAN for terminal device.
Disclosure embodiment also provides another kind mDNS message processing method, and this method is in the above-mentioned Message processing side mDNSIt is realized on the basis of method.In above-mentioned networking, gateway needs while handling mDNS message and general service message, in quantities of messagesSituations such as when larger, the processing pressure of gateway is larger, be easy to cause message loss, message transmissions failure, leads to user's bodyDegree of testing is lower.
Based on this, this method first improves the structure of networking, is illustrated by taking wireless networking as an example, i.e. AP withTerminal device is wirelessly connected, and certainly, this method also can be applied to wired networking.Specifically, gateway is set according to execution functionStandby to be divided into the first gateway and the second gateway, first gateway and the second gateway are relayed with mDNS respectivelyEquipment communication connection.As shown in figure 5, mDNS trunking 1 and mDNS trunking 2 connect the first gateway and the simultaneouslyTwo gateways;Wherein, the first gateway is for handling mDNS message, and the second gateway is for handling general service reportText;That is, request message is sent to the first gateway when mDNS trunking judges that request message is mDNS message;When mDNS trunking judges that request message is general service message, request message is sent to the second gateway.SeparatelyOutside, mDNS trunking 1 is connected with AP1, the AP1 connection terminal device 1;MDNS trunking 2 is connected with AP2, the AP2 connectionTerminal device 2.
Based on above-mentioned networking structure, the flow chart of another mDNS message processing method shown in Figure 6;This method packetInclude following steps:
Step S602 receives the request message that AP is sent;
Step S604 judges to be provided that the first setting identification or the second setting identification in the heading of request message;If it is the first setting identification, step S606 is executed;If it is the second setting identification, step S612 is executed;Wherein, the first settingMark is mDNS message for identification request message;Second setting identification is general service message for identification request message;
Request message is converted to unicast message by step S606, and the request message after conversion is sent to the first gateway and is setIt is standby, reply process is carried out to mDNS message by first gateway;
It as described in the previous embodiments, i.e., can only be since the multicast address of mDNS message only comes into force in L 2 broadcast domainForwarding in same VLAN;When mDNS trunking belongs to different VLAN from gateway, in order to which mDNS message is sent to netEquipment is closed, mDNS trunking needs request message being converted to unicast message by mDNS message, and then again by unicast message shapeThe request message of formula is sent to gateway, i.e., above-mentioned first gateway.
Step S608 receives the first gateway to the response message of request message;
After first gateway receives request message, which is parsed, according to asking in request messageContent is sought, the address for the equipment that terminal device needs to connect is inquired from list item, generates response message further according to query result.It shouldThe address of the equipment of inquiry is generally comprised in response message.In general, the first gateway sends response message extremely with unicast fashionMDNS trunking.
In step S610, the VLAN belonging to the AP for sending request message, response message is sent in the form of multicast, makes terminalEquipment receives response message.Terminate.
After terminal device receives response message, the address for needing the equipment connected can be got from response message, is obtainedAfter getting the address, terminal device can send communication message to the address, which passes through AP and the second gateway controlDevice is sent to equipment;AP is when sending communication message, it will usually is packaged by tunnel protocol to communication message, after encapsulationCommunication message be sent to the second gateway, then the communication between equipment is realized by the second gateway.For example, working as equipmentWhen for printer, which can be the message for including print data.
Request message is sent to the second gateway by step S612;Request message is provided by the second gatewayRequest service is forwarded processing.
In aforesaid way, the gateway in networking is divided into the first gateway and the second gateway, in mDNSWhen equipment identifies that request message is mDNS message, which is converted into unicast message and is sent to the first gateway setIt is standby to be handled;When request message is general service message, request message is sent to the second gateway and is handled;It shouldIn mode, the processing function of mDNS message is isolated, the first gateway and the division of labor of the second gateway are clear, relative toOne gateway handles the mode of mDNS message and general service message simultaneously, and aforesaid way can be protected when quantities of messages is largerBusiness processing efficiency is demonstrate,proved, so as to optimize the Experience Degree of user.
For a further understanding of disclosure embodiment also provides another kind mDNS message processing method, and this method is upperIt states and realizes on the basis of mDNS message processing method.In this method, by taking terminal device and printer establish communication connection as an example intoRow explanation.This method is realized by the interaction of terminal device, AP, mDNS trunking and the first gateway.As shown in fig. 7, the partyMethod includes the following steps:
Step S702, terminal device send request message to AP;The request message can be used for terminal device to the first netClose the address that equipment obtains printer.
The heading of step S704, AP analysis request message, obtains the address information of request message;According to the address informationJudge that the request message is mDNS message, and the first setting identification is set in the heading of the request message;
The request message for being provided with the first setting identification is sent to mDNS trunking by step S706.
In the step, if AP, which does not have, judges that the request message is the function of mDNS message, AP by request message withAnd other messages are used as general service message to be sent to the processing of the second gateway by mDNS trunking.
Step S708, mDNS trunking judges to be provided with the first setting identification in the heading of request message, will requestMessage is converted to unicast message by mDNS message;
Request message after conversion is sent to the first gateway by step S710.
In the step, if mDNS trunking does not have the function of the first setting identification of inquiry, mDNS trunkingThe processing of the second gateway is sent to using request message as general service message.
Step S712, the first gateway parse the request message, the address of printer are inquired from list item, according to this dozenThe address of print machine generates response message;
The response message is back to mDNS trunking by step S714.
In actual implementation, if the first gateway closes the function of processing mDNS message, the first gatewayThe request message would generally be abandoned, no longer response is handled.
Step S716, mDNS trunking is sent in the form of multicast and is answered in the VLAN belonging to the AP for sending request messageMessage is answered, terminal device is made to receive response message.
Step S718 after terminal device receives response message, obtains the address of printer, according to this from the response messageRealize the communication with printer in address.
In aforesaid way, in the case where mDNS trunking and gateway are in different VLAN, mDNS trunkingWithout decapsulate message can by the first setting identification in message not Chu mDNS message, and then mDNS message is converted into listIt is sent to the first gateway after casting text to be handled, to provide the mDNS service across VLAN for terminal device.
Corresponding to above method embodiment, a kind of structural schematic diagram of mDNS message process device shown in Figure 8;The device is set to access points AP;AP is communicated to connect with terminal device and mDNS trunking respectively;The device includes:
First receiving module 80, the request message sent for receiving terminal apparatus;
Identify and arrange module 81 is set if being mDNS message for request message in the heading setting first of request messageCalibration is known;First setting identification is mDNS message for identification request message;
First sending module 82, for sending the request message for being provided with the first setting identification by mDNS trunkingTo the corresponding gateway of mDNS message.
Further, above-mentioned apparatus further include: parsing module obtains request report for the heading of analysis request messageThe address information of text;Address information includes destination address and/or port numbers;Determining module, for the address according to request messageInformation determines whether request message is mDNS message.
Further, above-mentioned apparatus further include: the second setting identification setup module, if not being mDNS for request messageThe second setting identification is arranged in the heading of request message in message;Second setting identification is common industry for identification request messageBusiness message;First request message sending module, for request message to be sent to general service message by mDNS trunkingCorresponding gateway.
Further, above-mentioned identify and arrange module is arranged on the specific field in the heading of request messageOne setting identification;Above-mentioned second setting identification on specific field for being arranged the second setting identification.
Above-mentioned mDNS message process device, after AP receives the request message of terminal device transmission, if the request messageIt is mDNS message, the first setting identification is set in the heading of request message, to identify the request message as mDNS message;Again willThe request message for being provided with the first setting identification is sent to the corresponding gateway of mDNS message by mDNS trunking.Pass throughWhich, in the case where mDNS trunking and gateway are in different VLAN, mDNS trunking is without decapsulating reportWhether text can be mDNS message by the not message of the first setting identification in message, and then carry out at correlation to mDNS messageGateway is sent to after reason, to provide the mDNS service across VLAN for terminal device.
The structural schematic diagram of another mDNS message process device shown in Figure 9;The device is set to mDNS relayingEquipment;MDNS trunking is communicated to connect with AP and gateway respectively;The device includes:
Second receiving module 90, for receiving the request message of AP transmission;
Whether judgment module 91 is provided with the first setting identification in the heading for judging request message;First settingMark is mDNS message for identification request message;
Second sending module 92, if asked by described in for being provided with the first setting identification in the heading of request messageIt asks message to be converted to unicast message, the request message after conversion is sent to the corresponding gateway of mDNS message.
Further, above-mentioned apparatus further includes the second request message sending module, if the heading for request messageIn be provided with the second setting identification, request message is sent to the corresponding gateway of general service message;Wherein, the second settingMark is general service message for identification request message.
Further, above-mentioned gateway includes the first gateway and the second gateway;First gateway andTwo gateways are communicated to connect with mDNS trunking respectively;Above-mentioned second sending module, for the request message after convertingIt is sent to the first gateway;Reply process is carried out to mDNS message by the first gateway;Above-mentioned second request message hairModule is sent, for request message to be sent to the second gateway;Request clothes are provided to request message by the second gatewayIt is engaged in or is forwarded processing.
Further, above-mentioned apparatus further include: response message receiving module reports request for receiving the first gatewayThe response message of text;Response message sending module, for being sent out in the form of multicast in the VLAN belonging to the AP for sending request messageResponse message is sent, terminal device is made to receive response message.
In aforesaid way, after mDNS trunking receives the request message of AP transmission, the message of the request message is judgedIt whether is provided with the first setting identification in head, if it is, the request message is determined as mDNS message, and request message is turnedIt is changed to unicast message, the request message after conversion is sent to the corresponding gateway of mDNS message.By this way, in mDNSIn the case that trunking and gateway are in different VLAN, mDNS trunking can pass through message without decapsulating messageIn the first setting identification not message whether be mDNS message, and then to mDNS message carry out relevant treatment after be sent to gatewayEquipment, to provide the mDNS service across VLAN for terminal device.
Disclosure embodiment also provides a kind of group network system, which includes that AP, mDNS trunking, the first gateway are setStandby and the second gateway;AP is connect with mDNS trunking;MDNS trunking respectively with the first gateway and the second netClose equipment connection.
Present embodiments provide for a kind of access points corresponding with above method embodiment and mDNS relaying to setIt is standby;Figure 10 is the structural schematic diagram of AP or mDNS trunking, and as shown in Figure 10, which includes processor 101 and memory100;Wherein, memory 100 is held for storing one or more computer instruction, one or more computer instruction by processorRow, to realize above-mentioned mDNS message processing method.
AP or mDNS trunking shown in Fig. 10 further includes bus 102 and communication interface 103, and processor 101, communication connectMouth 103 and memory 100 are connected by bus 102.AP the or mDNS trunking can be network edge device.
Wherein, memory 100 may include high-speed random access memory (RAM, Random Access Memory),It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Bus102 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control alwaysLine etc..Only to be indicated with a four-headed arrow in Figure 10, it is not intended that an only bus or a type of convenient for indicatingBus.
Communication interface 103 is used to connect by network interface at least one user terminal and other network units, will sealThe IPv4 message or IPv10 message installed is sent to the user terminal by network interface.
Processor 101 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realizationEach step of method can be completed by the integrated logic circuit of the hardware in processor 101 or the instruction of software form.OnThe processor 101 stated can be general processor, including central processing unit (Central Processing Unit, abbreviationCPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DigitalSignal Processor, abbreviation DSP), specific integrated circuit (Application Specific IntegratedCircuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) orPerson other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute sheetDisclosed each method, step and logic diagram in disclosed embodiment.General processor can be microprocessor or this atReason device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in disclosure embodiment, can direct bodyNow executes completion for hardware decoding processor, or in decoding processor hardware and software module combine and execute completion.It is softPart module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically erasable programmable are depositedIn the storage medium of this fields such as reservoir, register maturation.The storage medium is located at memory 100, and processor 101 reads storageInformation in device 100, in conjunction with its hardware complete aforementioned embodiments method the step of.
For the disclosure embodiment further provides a kind of machine readable storage medium, machine readable storage medium storage is organicDevice executable instruction, for the machine-executable instruction when being called and being executed by processor, machine-executable instruction promotes processorRealize above-mentioned mDNS message processing method, specific implementation can be found in method implementation, and details are not described herein.
The technical effect of AP or mDNS trunking provided by disclosure embodiment, realization principle and generation is with beforeIt is identical to state method implementation, to briefly describe, device embodiments part does not refer to place, can refer to preceding method embodiment partyCorresponding contents in formula.
In several embodiments provided herein, it should be understood that disclosed device and method can also lead toOther modes are crossed to realize.Device embodiments described above are only schematical, for example, the flow chart in attached drawing andBlock diagram shows the system in the cards of the device of multiple embodiments according to the disclosure, method and computer program productFramework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generationA part of code, a part of the module, section or code include one or more for realizing defined logic functionExecutable instruction.It should also be noted that function marked in the box can also be in some implementations as replacementOccur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, theySometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chartIn each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is specialHardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Finally, it should be noted that embodiment described above, the only specific embodiment of the disclosure, to illustrate this public affairsThe technical solution opened, rather than its limitations, the protection scope of the disclosure are not limited thereto, although referring to aforementioned embodiments pairThe disclosure is described in detail, those skilled in the art should understand that: any technology for being familiar with the artPersonnel can still modify to technical solution documented by aforementioned embodiments in the technical scope that the disclosure disclosesOr variation or equivalent replacement of some of the technical features can be readily occurred in;And these modifications, variation or replacement,The spirit and scope for disclosure embodiment technical solution that it does not separate the essence of the corresponding technical solution, should all cover in this public affairsWithin the protection scope opened.Therefore, the protection scope of the disclosure shall be subject to the protection scope of the claim.

Claims (14)

CN201910226411.5A2019-03-222019-03-22mDNS message processing method, device and networking systemActiveCN109981819B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910226411.5ACN109981819B (en)2019-03-222019-03-22mDNS message processing method, device and networking system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910226411.5ACN109981819B (en)2019-03-222019-03-22mDNS message processing method, device and networking system

Publications (2)

Publication NumberPublication Date
CN109981819Atrue CN109981819A (en)2019-07-05
CN109981819B CN109981819B (en)2022-05-06

Family

ID=67080261

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910226411.5AActiveCN109981819B (en)2019-03-222019-03-22mDNS message processing method, device and networking system

Country Status (1)

CountryLink
CN (1)CN109981819B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111049948A (en)*2019-12-302020-04-21杭州迪普科技股份有限公司Domain name detection method and device
US20210399947A1 (en)*2020-06-172021-12-23Hewlett Packard Enterprise Development LpSystem and method for reconfiguring a network using network traffic comparisions
CN114244784A (en)*2021-11-112022-03-25新华三大数据技术有限公司Message forwarding method and device
CN115767155A (en)*2022-09-072023-03-07成都西加云杉科技有限公司Network communication method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140269703A1 (en)*2013-03-152014-09-18Cable Television Laboratories, Inc.mDNS-DNS ARCHITECTURE
US20140380041A1 (en)*2012-08-172014-12-25Cellco Partnership D/B/A Verizon WirelessMethods and systems for registering a packet-based address for a mobile device using a fully-qualified domain name (fqdn) for the device in a mobile communication network
CN104283979A (en)*2013-07-112015-01-14华为技术有限公司 Method, device and system for message transmission in multicast domain name system
CN104717313A (en)*2013-12-172015-06-17华为技术有限公司Method and device for mDNS gateway address configuration
US9130859B1 (en)*2013-03-292015-09-08Juniper Networks, Inc.Methods and apparatus for inter-virtual local area network multicast services
CN106452924A (en)*2016-11-302017-02-22北京小米移动软件有限公司Method and device for synchronizing wireless network configuration
CN108965045A (en)*2018-06-222018-12-07四川斐讯信息技术有限公司A kind of method and system of test router forwarding multicasting DNS message
CN109151086A (en)*2017-06-192019-01-04华为技术有限公司A kind of message forwarding method and the network equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140380041A1 (en)*2012-08-172014-12-25Cellco Partnership D/B/A Verizon WirelessMethods and systems for registering a packet-based address for a mobile device using a fully-qualified domain name (fqdn) for the device in a mobile communication network
US20140269703A1 (en)*2013-03-152014-09-18Cable Television Laboratories, Inc.mDNS-DNS ARCHITECTURE
US9130859B1 (en)*2013-03-292015-09-08Juniper Networks, Inc.Methods and apparatus for inter-virtual local area network multicast services
CN104283979A (en)*2013-07-112015-01-14华为技术有限公司 Method, device and system for message transmission in multicast domain name system
WO2015003566A1 (en)*2013-07-112015-01-15华为技术有限公司Method, device and system for transmitting packet in multicast domain name system
CN104717313A (en)*2013-12-172015-06-17华为技术有限公司Method and device for mDNS gateway address configuration
CN106452924A (en)*2016-11-302017-02-22北京小米移动软件有限公司Method and device for synchronizing wireless network configuration
CN109151086A (en)*2017-06-192019-01-04华为技术有限公司A kind of message forwarding method and the network equipment
CN108965045A (en)*2018-06-222018-12-07四川斐讯信息技术有限公司A kind of method and system of test router forwarding multicasting DNS message

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111049948A (en)*2019-12-302020-04-21杭州迪普科技股份有限公司Domain name detection method and device
CN111049948B (en)*2019-12-302022-07-29杭州迪普科技股份有限公司Domain name detection method and device
US20210399947A1 (en)*2020-06-172021-12-23Hewlett Packard Enterprise Development LpSystem and method for reconfiguring a network using network traffic comparisions
US11824640B2 (en)*2020-06-172023-11-21Hewlett Packard Enterprise Development LpSystem and method for reconfiguring a network using network traffic comparisions
CN114244784A (en)*2021-11-112022-03-25新华三大数据技术有限公司Message forwarding method and device
CN114244784B (en)*2021-11-112023-09-19新华三大数据技术有限公司Message forwarding method and device
CN115767155A (en)*2022-09-072023-03-07成都西加云杉科技有限公司Network communication method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN109981819B (en)2022-05-06

Similar Documents

PublicationPublication DateTitle
EP3958521B1 (en)Method and apparatus for providing service for service flow
CN109981819A (en)MDNS message processing method, device and group network system
CN100563146C (en) A Time Division Multiplexing Data Transmission Method Based on Packet Switching
CN101764751A (en)Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN107277190B (en) A method for automatic on-line of SDN equipment, SDN equipment and controller
CN107770072B (en)Method and equipment for sending and receiving message
EP2636273A1 (en)A method and device for transmitting an ipv6 over low power wireless personal area network data packet
WO2017054576A1 (en)Unicast tunnel building method, apparatus and system
CN103401773A (en)Method and network equipment realizing interboard communication
CN101640621B (en)Method and device for realizing data transmission in wireless network
CN102143045A (en)Method, device and system for processing service message in wireless local area network
CN109120492B (en)Storage unit, source switch, message forwarding method and mirror image system
CN103685032B (en)Message forwarding method and network address translation services device
CN106059885B (en)Processing method and system of the wireless controller to CAPWAP message
CN104205729B (en)Method, device, and system for configuring device in network
CN104754521B (en)A kind of message forwarding method, wireless access point, wireless controller and system
WO2021254454A1 (en)Bier oam detection method, and device and system
CN108809853A (en)Message transmitting method and edge calculations device
CN108632126B (en)Message forwarding channel establishing method and device and message forwarding method and device
CN109561004A (en)Message forwarding method, device and interchanger
CN101754429A (en)Method, device and system for recognizing precision time protocol massages
CN104768176B (en)The method, apparatus that sFlow is sampled in wireless network
CN102882760A (en)Method, module, equipment and system for message processing in virtual private local area network service network
CN103457819B (en) Method and device for processing common gateway user service message
CN100488169C (en) A data processing method in a bridge network and a bridge network

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp