Abstract:
A packet transmission method, apparatus, and system in a multicast domain name system (mDNS), which are used to resolve a network bandwidth waste problem due to much service information needs to be transmitted in an mDNS-based network. The method includes, converting, by a relay, a known-answer service query packet that is sent by a user terminal and used to query service information in an mDNS, into a unicast known-answer service query packet and sending the unicast known-answer service query packet to a gateway, receiving, by the relay, a unicast known-answer service answer packet that is sent by the gateway and includes service information unknown to the user terminal, and converting, by the relay, the unicast known-answer service answer packet into a multicast known-answer service answer packet and sending the multicast known-answer service answer packet to the user terminal.
Abstract:
A packet transmission method and apparatus, and a computer storage medium, and relates to the field of communications technologies. A first device obtains service type information of an original packet. The first device generates an encapsulating security payload (ESP) packet of the original packet based on a target security association, where the ESP packet includes a packet header, an ESP header, a service type field, a first encrypted part, and an ESP authentication data field, and the service type field includes the service type information. The first device sends the ESP packet to a second device. The second device parses the service type field to obtain the service type information of the original packet. The second device performs a target operation on the ESP packet based on a service policy and the service type information of the original packet.
Abstract:
A packet transmission method, apparatus, and system in a multicast domain name system (mDNS), which are used to resolve a network bandwidth waste problem due to much service information needs to be transmitted in an mDNS-based network. The method includes, converting, by a relay, a known-answer service query packet that is sent by a user terminal and used to query service information in an mDNS, into a unicast known-answer service query packet and sending the unicast known-answer service query packet to a gateway, receiving, by the relay, a unicast known-answer service answer packet that is sent by the gateway and includes service information unknown to the user terminal, and converting, by the relay, the unicast known-answer service answer packet into a multicast known-answer service answer packet and sending the multicast known-answer service answer packet to the user terminal.