Method for obtaining equipment port information by using multicast PIM protocol message
A technology of protocol messages and port information, which is applied in the field of network communication, can solve problems such as increasing program complexity, increasing coupling between modules, and unclear module interfaces, so as to improve robustness and maintainability, reduce coupling, The effect of reducing data flow
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] When the IP module hands over the PIM multicast protocol Hello protocol message to the PIM protocol processing module, it will inevitably bring the source address of the protocol message to the PIM protocol processing part. The source address of the message is a standard IP V4 address. The structure is as follows:
[0023] typedef struct sockaddr_in
[0024] {
[0025] unsigned char sin_len;
[0026] unsigned char sin_family;
[0027] unsigned short sin_port;
[0028] struct in_addr sin_addr;
[0029] char sin_zero[8];
[0030]} sockaddr_in;
[0031] In the above structure, the field char sin_zero[8] has no specific content defined in the standard, so the basic idea of the first embodiment of the present invention is to use this field to transfer the port information of the received message.
[0032] figure 2 It is a schematic flowchart of the port information carrying method according to the first embodiment of the present invention. Such as figure 2 As sh...
Embodiment 2
[0034] image 3 It is a schematic flowchart of the port information carrying method according to the second embodiment of the present invention. Such as image 3 As shown, in this embodiment, in order to solve the problem of correspondence between neighbors and ports, some changes are made to the multicast Hello message, that is, when the IP layer sends the protocol message to the application protocol layer, Add the port information to the end of the original protocol message. This forms the Figure 4 A new multicast protocol message is shown. If the message type is a Hello message, the multicast PIM protocol module in the application protocol layer will extract the port information from the message, and use this port information to maintain the corresponding relationship between the port and the multicast neighbor, and then realize the multicast forwarding of data. If it is not a Hello packet, the PIM protocol module will ignore and discard these port information. By th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com