Cluster communication TIPC Protocol

Source: Internet
Author: User
I. installation and testing
1. the TIPC kernel module installs modprobe and uses the dependent files created by depmod to automatically load the relevant modules. insmod displays the information of the currently loaded kernel modules to the running kernel loading module lsmod./proc/modulesrmmod runs from the current in the kernel, uninstall the kernel module depmod to process the dependency between the loaded kernel module/proc/kallsyms kernel symbol and module symbol table information, such as the TIPC kernel module, directly use root # modprobe TIPC to load the TIPC module to the kernel (of course, The TIPC module here is already supported by Linux. for how to configure TIPC, refer to: Linux TIPC 1.7 User's Guide network configuration: Root # TIPC-config-netid = 1234-ADDR = 1.1.8-be = ETH: eth0 Remote Management: root # TIPC-config-Dest = 1.1.9-N Disable remote management: Root # TIPC-config-MNG = Disable 3. for communication testing, refer to the demo in the TIPC-config package.

Ii. TIPC Programming

Reference: Linux TIPC 2.0 programmer's Guide 1. TIPC Network Structure Network address: <zone, cluster, node> 255.4095.4095 network ID: The TIPC network also uses the network ID, which allows multiple Logical Networks to use the same physical media (for example, and does not interfere with each other, because each node only recognizes traffic from nodes with the same network ID. After a physical connection (such as Ethernet) is established, TIPC automatically establishes a connection to communicate with other nodes in the network. Note:
    1. The TIPC network address is not like an IP address. In TIPC, each node has only one network address, even if the node has multiple network interfaces.
    2. The Network Administrator assigns a network address and network ID,ProgramPersonnel do not need to pay attention to this content.
    3. The network administrator configures the network interfaces of each node.
2. message transmission Overview TIPC applications ( Port By exchanging data units ( Message . From the application perspective Message From 1 ~ A string of 66000 bytes long. The internal structure is determined by the application. Port Is an entity that can send and receive messages by connection or without connection. Notes
    1. The nodes in the TIPC network may run on different CPU types or use different operating systems. Applications must ensure the consistency of their message formats. In some cases, it may be necessary to convert the Message Size or force the message domain to be fixed.
    2. Some of the same conditions may prevent messages from being sent.
3. TIPC addressing Network Address : <Z.c. n> <8bit, 12bit, 12bit> Port ID : <Z.c. N: ref> ref is also a 32-bit integer. Port name : Although you can use the TIPC port to send messages, you can usually use a functional address instead of a sending port to know the physical location of the destination address, which simplifies communication, especially when the service port is dynamically created, deleted, or relocated, or when multiple ports provide services. In TIPC, the basic unit of the function address is Port name . Specify it as {type, instance}, and the size is {32bit, 32bit }. Unlike the port ID, the port name can be unique in the TIPC network. An application can assign multiple ports to a port name, and multiple port names can be allocated to one port. Port name Sequence : Used to specify a port name similar to the port name in the range, {type, lower bound, Upper Bound}, and the size of each domain is 32 bits. Some restrictions:
    1. Type value: 0 ~ 63 reserved by TIPC
    2. The port name and name sequence are used by the Service port, rather than the client port.
    3. The port name sequence cannot overlap. However, the overlapping name sequences on different nodes are acceptable.
Note:
    1. Programmers have to worry about choosing TIPC names and name sequences.
    2. The name (or name sequence) in the tipc network is the same as the well-known port number in the IP network.
    3. The application must use a TIPC name (or name sequence) that does not conflict with other applications)
Combined with some interesting features, some are very unique to achieve the overall goal: (1) the entire cluster is a single computer from the perspective of communication (2) applications can track and adapt to topology changes (3) transparency of process communication. The network topology is maintained by the kernel module TIPC. Iii. tipc2.0 Protocol Specification
Reference: TIPC 2.0 protocol specification The main content is the details of the Protocol, including why the protocol is proposed, advantages over TCP, sctp, and other protocols, as well as the definition of message formats and all provided functions: port-based communication, name table, Link, broadcast link, neighbor detection, topology service, configuration service, security considerations, IANA (the Internet Assigned Numbers Authority) considerations.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.