Search

CN-122001849-A - Communication method and device

CN122001849ACN 122001849 ACN122001849 ACN 122001849ACN-122001849-A

Abstract

The application provides a communication method and a device, which are applied to first Leaf equipment, wherein the method comprises the steps of receiving a first message sent by network equipment, wherein the first message comprises first data content; generating a first local service list item according to the first data content, wherein the first local service list item comprises second data content; and broadcasting and sending a second message, wherein the second message comprises the second data content, so that a second Leaf device receiving the second message locally generates a first global table item according to the second data content.

Inventors

  • MA DONGHAI
  • CHEN YAN

Assignees

  • 新华三技术有限公司

Dates

Publication Date
20260508
Application Date
20260105

Claims (10)

  1. 1. A method of communication, for application to a first Leaf device, the method comprising: Receiving a first message sent by network equipment, wherein the first message comprises first data content; generating a first local service list item according to the first data content, wherein the first local service list item comprises second data content; and broadcasting and sending a second message, wherein the second message comprises the second data content, so that a second Leaf device receiving the second message locally generates a first global table item according to the second data content.
  2. 2. The method of claim 1, wherein prior to receiving the first message sent by the network device, the method further comprises: receiving a third message sent by a client, wherein the third message comprises first information; and if the local service list item and the global list item matched with the first information do not exist locally, sending the third message to the network equipment.
  3. 3. The method according to claim 2, wherein the method further comprises: receiving a fourth message sent by third Leaf equipment, wherein the fourth message comprises third data content; And generating a second global table entry locally according to the third data content, wherein the second global table entry comprises the third data content.
  4. 4. A method according to claim 3, wherein the second or fourth message is an EVPN 5 class route, the EVPN 5 class route comprising a payload carrying the second or third data content.
  5. 5. The method of claim 4, wherein the second data content comprises a mapping relationship between DNS metadata, or wherein the second data content comprises a mapping relationship between DHCP metadata; The third data content comprises a mapping relation between domain name information and an IP address, or comprises a mapping relation among an IP address, an MAC address and VLAN information.
  6. 6. A communications apparatus for use with a first Leaf device, the apparatus comprising: A receiving unit, configured to receive a first packet sent by a network device, where the first packet includes first data content; The generation unit is used for generating a first local service table entry according to the first data content, wherein the first local service table entry comprises second data content; And the sending unit is used for broadcasting and sending a second message, wherein the second message comprises the second data content, so that a second Leaf device receiving the second message locally generates a first global table item according to the second data content.
  7. 7. The apparatus of claim 6, wherein the receiving unit is further configured to receive a third packet sent by the client, the third packet including the first information; The sending unit is further configured to send the third packet to the network device if there are no local service entry and no global entry matching the first information locally.
  8. 8. The apparatus of claim 7, wherein the receiving unit is further configured to receive a fourth packet sent by a third Leaf device, the fourth packet including third data content; The generating unit is further configured to locally generate a second global entry according to the third data content, where the second global entry includes the third data content.
  9. 9. The apparatus of claim 8, wherein the second message or the fourth message is an EVPN 5 class route, the EVPN 5 class route including a payload carrying the second data content or the third data content.
  10. 10. The apparatus of claim 9, wherein the second data content comprises a mapping relationship between DNS metadata, or wherein the second data content comprises a mapping relationship between DHCP metadata; The third data content comprises a mapping relation between domain name information and an IP address, or comprises a mapping relation among an IP address, an MAC address and VLAN information.

Description

Communication method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a communications method and apparatus. Background The Domain name system (english: domain NAME SYSTEM, DNS for short) is a distributed database for TCP/IP applications, providing conversion between Domain names and IP addresses. Through the domain name system, when a user accesses certain applications, the user can directly use the meaningful domain name which is convenient to memorize, and the domain name is resolved into a correct IP address by a domain name resolution server in the network. As shown in fig. 1, fig. 1 is a schematic diagram of a conventional centralized DNS networking. In fig. 1, a Spine device, a Leaf device, a DNS server, and a DNS client are included in the networking. Each DNS client accesses a Leaf device and sends DNS requests to the accessed Leaf device. After receiving the DNS unknown request, the Leaf device sends the DNS unknown request to the DNS server through the Spine device. After the DNS server processes the DNS unknown request, a DNS response is sent to the corresponding Leaf equipment through the Spine equipment. The Leaf device then sends the DNS response to the DNS client. However, with the explosive development of cloud computing, micro-service and edge computing, the traditional centralized DNS networking also has the defect that after a large number of Leaf devices are connected to the Spine device, different Leaf devices bring about a large number of same unknown requests to repeatedly penetrate through the Spine layer, so that the Spine device becomes a DNS performance bottleneck in networking and the networking resource waste is serious. Disclosure of Invention In view of the above, the application provides a communication method and device, which are used for solving the problems that the Spine equipment in the traditional centralized DNS networking becomes the DNS performance bottleneck in the networking and the networking resource is seriously wasted. In a first aspect, the present application provides a communication method applied to a first Leaf device, the method comprising: Receiving a first message sent by network equipment, wherein the first message comprises first data content; generating a first local service list item according to the first data content, wherein the first local service list item comprises second data content; and broadcasting and sending a second message, wherein the second message comprises the second data content, so that a second Leaf device receiving the second message locally generates a first global table item according to the second data content. In a second aspect, the present application provides a communications apparatus for use with a first Leaf device, the apparatus comprising: A receiving unit, configured to receive a first packet sent by a network device, where the first packet includes first data content; The generation unit is used for generating a first local service table entry according to the first data content, wherein the first local service table entry comprises second data content; And the sending unit is used for broadcasting and sending a second message, wherein the second message comprises the second data content, so that a second Leaf device receiving the second message locally generates a first global table item according to the second data content. 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. The communication method and the communication device provided by the application are applied, the first Leaf equipment receives the first message sent by the network equipment, the first message comprises first data content, the first Leaf equipment generates a first local service list item according to the first data content, the first local service list item comprises second data content, and the first Leaf equipment broadcasts and sends a second message, the second message comprises second data content, so that the second Leaf equipment receiving the second message locally generates a first global list item according to the second data content. Therefore, the local learning data content is synchronized to other Leaf devices in the networking, so that when other Leaf devices receive service requests, the local caching and the synchronized data content are utilized to respond preferentially, the service analysis efficiency is greatly improved, dependence on external network devices is reduced, the system reliability and expansibility are enhanced due to the collaborative architecture design of the multiple Leaf devices, the existing network infrastructure is reused to realize high-efficiency data synchronization, and extra protocol ov