A method and system for sending and receiving clothing design messages based on multicast tree
By adopting the transmission and receiving method based on the programming tree in the clothing design team, the problem of low information exchange efficiency in the traditional method is solved, and the efficient collaboration between the design teams and the rapid communication of design inspiration.
Patent Information
- Application Number
- CN202411545776.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-11-01
AI Technical Summary
Traditional clothing design teams are inefficient in information exchange and collaboration, especially when sending design information to multiple recipients simultaneously, and it is difficult to track messaging status and receiver feedback.
Adopting a message and receiving method based on the programming tree, the initial clothing design message, the target terminal receiving and feedback by constructing the group broadcasting tree, the group's broadcast source terminal transmission, and the transmission of the release item according to the broadcasting of the trees.
It improved the cooperation efficiency between the clothing design team, promoted the rapid communication and feedback of design inspiration, and promoted the innovation and development of the clothing design industry.
Smart Images

Figure CN119172187B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of message data transmission, and in particular to a method and system for sending and receiving clothing design messages based on a multicast tree. Background Art
[0002] In the field of fashion design, information exchange and sharing are essential for collaboration between designers. Traditionally, designers share design ideas and drawings through email, instant messaging software, or dedicated collaboration platforms. However, these methods are often inefficient when processing large amounts of design information, especially when the same information needs to be sent to multiple recipients at the same time. In addition, traditional communication methods make it difficult to effectively track the delivery status of messages and the feedback from recipients, thus limiting the efficiency of real-time interaction and collaboration between design teams, which has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for sending and receiving clothing design messages based on a multicast tree to solve the deficiencies in the prior art. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry.
[0004] An embodiment of the present application provides a method for sending and receiving clothing design messages based on a multicast tree, the method comprising:
[0005] Construct a multicast tree for sending and receiving clothing design messages;
[0006] The multicast source terminal transmits the initial clothing design message using the multicast tree;
[0007] The target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message;
[0008] The target clothing design message is reversely forwarded according to the multicast forwarding table entry of the multicast tree.
[0009] Optionally, the construction of a multicast tree for sending and receiving clothing design messages includes:
[0010] Determine nodes participating in sending and receiving clothing design messages; the nodes at least include a clothing designer master node and a participant node;
[0011] Construct a network topology diagram based on the connection relationship of nodes;
[0012] Based on the network topology diagram, a multicast tree for sending and receiving clothing design messages is generated.
[0013] Optionally, after constructing the multicast tree for sending and receiving clothing design messages, the method further includes:
[0014] The multicast protocol is configured and an IGMP update message is used to add a task number for sending and receiving clothing design messages in the multicast tree.
[0015] Optionally, the initial clothing design message uses a unified multicast group address and an independent task number; wherein the multicast group address includes the host IP of the clothing designer's main control node, and a first special mark for identifying the initial clothing design message is added to the message.
[0016] Optionally, after the multicast source terminal transmits the initial clothing design message using the multicast tree, the method further includes:
[0017] When the router receives the message information of the initial clothing design message marked with the first special mark from the (S, G) outbound interface, it checks whether the task number contained in the initial clothing design message is in the task number list of the outbound interface where the message information is received;
[0018] If so, the verification is passed, and the router modifies the source IP address of the message information to the IP address of the main control node, so as to send the message information to the upstream router of the router through the RPF interface, and transmit it to other outbound interfaces of the (S, G) table entry marked with the task number contained in the initial clothing design message, so as to send the initial clothing design message to other participant nodes.
[0019] Optionally, the target clothing design message is marked with a second special mark; and the reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree includes:
[0020] Identify and receive the target clothing design message whose message type sent by the target terminal includes the second special mark, and send the target design message from the RPF interface of the (S, G) multicast forwarding table item to the upstream router in sequence to realize the reverse forwarding of the target clothing design message to the multicast source terminal.
[0021] Optionally, the method further includes:
[0022] In response to the master control node generating a merge instruction of multiple clothing design message tasks; wherein the destination address of the merge instruction is a unified multicast group address, and contains the initial task number and the target task number of the multiple clothing design messages to be merged;
[0023] Receive the merge instruction and check the multicast forwarding table entry (S, G) to modify the initial task number to be merged to the target task number that is finally retained; or
[0024] In response to the master control node generating a splitting instruction of the clothing design message task and determining the task number to be split;
[0025] The split instruction is received, and the router (S, G) table entry is checked. If it is identified that the router output interface includes the task number to be split, the task number to be split is directly deleted from the router output interface.
[0026] Another embodiment of the present application provides a clothing design message sending and receiving system based on a multicast tree, the system comprising:
[0027] A building module for building a multicast tree for sending and receiving clothing design messages;
[0028] A transmission module, used for the multicast source terminal to transmit the initial clothing design message using the multicast tree;
[0029] A receiving module, used for the target terminal to receive the initial clothing design message and generate feedback on the initial clothing design message, and determine the target clothing design message;
[0030] An execution module is used to execute reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree.
[0031] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to implement any of the above methods when executed.
[0032] Another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement any of the above methods.
[0033] Compared with the prior art, the present invention first constructs a multicast tree for sending and receiving clothing design messages; the multicast source terminal uses the multicast tree to transmit the initial clothing design message; the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; finally, the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table item of the multicast tree. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A hardware structure block diagram of a computer terminal for a method for sending and receiving clothing design messages based on a multicast tree provided in an embodiment of the present invention;
[0035] Figure 2A schematic diagram of a flow chart of a method for sending and receiving clothing design messages based on a multicast tree provided in an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of a framework of a clothing design message receiving and sending node based on a multicast tree provided by an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of the structure of a clothing design message sending and receiving system based on a multicast tree provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0039] The embodiment of the present invention first provides a method for sending and receiving clothing design messages based on a multicast tree. The method can be applied to electronic devices, such as computer terminals, specifically ordinary computers, quantum computers, etc.
[0040] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal for a method for sending and receiving clothing design messages based on a multicast tree provided by an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0041] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / modules corresponding to the method for sending and receiving messages of clothing design based on the multicast tree in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0042] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0043] The multicast tree is a core concept in multicast technology, which describes the path of multicast data transmission in the network. The multicast tree is a logical structure used to represent the path of data from the multicast source terminal to the target terminal. In multicast, data is not broadcast to the entire network, but transmitted along the multicast tree to all interested participants. The establishment and maintenance of the multicast tree is usually the responsibility of multicast routing protocols, such as Protocol Independent Multicast (PIM). PIM provides multiple working modes to adapt to different network environments and requirements. The multicast tree is widely used in many fields, such as video conferencing, real-time audio transmission, online live broadcast, internal distribution and notification of enterprises, intelligent monitoring and city management, etc. It allows the network to use bandwidth and router resources more efficiently in multicast data transmission, while ensuring that the data reaches the devices that are really interested in it.
[0044] See also Figure 2 , Figure 2 A flowchart of a method for sending and receiving clothing design messages based on a multicast tree provided in an embodiment of the present invention may include the following steps:
[0045] S201: Construct a multicast tree for sending and receiving clothing design messages.
[0046] Specifically, the construction of a multicast tree for sending and receiving clothing design messages may include:
[0047] 1. Determine the nodes involved in sending and receiving clothing design messages; the nodes at least include a clothing designer master node and participant nodes.
[0048] Specifically, the fashion designer master node is the root node of the multicast tree, usually the fashion designer or design team leader who leads the design project. They are responsible for initiating design discussions, publishing design concepts, and guiding the entire design process. Participant nodes may include other fashion designers, fabric suppliers, pattern makers, craftsmen, and other individuals or teams closely related to the design process. They participate in various aspects of the design and provide feedback and suggestions based on the instructions and messages of the master node.
[0049] 2. Construct a network topology diagram based on the connection relationship between nodes.
[0050] After the participating nodes are determined, a network topology diagram is then constructed based on the connection relationships between these nodes, such as collaborative relationships, information transmission paths, etc. The network topology diagram can intuitively display the connection between nodes and provide a basis for the subsequent generation of multicast trees. The connection relationship between nodes is determined based on the design process, collaboration requirements, and the importance of information exchange. For example, a designer may directly connect with a fabric supplier and a pattern maker to obtain professional advice on materials and patterns.
[0051] 3. Based on the network topology diagram, a multicast tree for sending and receiving clothing design messages is generated.
[0052] Finally, based on the constructed network topology, a multicast tree for sending and receiving clothing design messages is generated.
[0053] In an optional implementation, after constructing the multicast tree for sending and receiving clothing design messages, the method may further include:
[0054] The multicast protocol is configured and an IGMP update message is used to add a task number for sending and receiving clothing design messages in the multicast tree.
[0055] Specifically, multicast protocol is an important mechanism for one-to-many message transmission in network communication. In the scenario of sending and receiving fashion design messages, configuring a suitable multicast protocol can ensure that messages can be efficiently transmitted from a single source, such as a fashion designer master node, to multiple receivers, such as other designers, suppliers, and other participant nodes.
[0056] Common multicast protocols include Protocol Independent Multicast (PIM) and Multicast Source Discovery Protocol (MSDP). These protocols can be selected according to the network environment and specific requirements to achieve the best message transmission effect.
[0057] In order to distinguish different types of messages and tasks, a unique task number can be assigned to each clothing design message sending and receiving task in the multicast tree. This task number can be used as part of the message to be transmitted and identified during the message transmission process. By adding the task number, it is easier to track and manage the status of the message, including the sending, receiving, processing and feedback of the message. At the same time, the task number can also be used to implement functions such as message priority sorting and flow control, thereby further improving the efficiency and accuracy of message sending and receiving. The IGMP in this application adds the task number to realize the differentiated propagation of different task data in a multicast tree, so that each host only receives the data belonging to its own task.
[0058] In summary, after constructing the multicast tree for sending and receiving clothing design messages, the efficiency and accuracy of message sending and receiving can be further optimized and improved by configuring the multicast protocol, using IGMP update messages, and adding task numbers for sending and receiving clothing design messages in the multicast tree. These measures are helpful to promote the smooth progress and efficient collaboration of clothing design projects.
[0059] It should be noted that, in order to save multicast table entries of network nodes, no matter how many clothing design message task discussion groups there are in this application, a multicast group address, such as 226.1.1.1, can be uniformly used. However, different tasks have independent task numbers. Although any task discussion group uses multicast to transmit data, the multicast tree it uses will only be a subset of the complete multicast tree, thereby saving multicast forwarding table entries of network nodes.
[0060] This application will no longer use the traditional IGMP join message and PIM join message, and will replace them with IGMP update message and PIM update message respectively. The structure of IGMP update message is the same as that of IGMP join message, except that a task number list is added. Whether adding a task number or revoking a task number, this case uses IGMP update message. An IGMP update message that does not carry a task number means that it is not currently participating in any discussion task. The (S, G) table entry of the gateway router will delete the outbound interface that receives the IGMP message. Based on the same method and principle, the PIM update message is also processed in the same way.
[0061] IGMP messages and PIM messages belong to two different network protocols, and they play an important role in multicast communication. The following is a detailed explanation of these two message types:
[0062] IGMP (Internet Group Management Protocol) is the abbreviation of Internet Group Management Protocol. It is a protocol in the TCP / IP protocol family responsible for IPv4 multicast member management. IGMP messages are mainly used to create, maintain, and delete multicast group memberships between IP hosts and adjacent routers. When a host wants to join a multicast group, it will send this message. After receiving the general group query message from the multicast router, if the host is interested in the multicast group, it will also send a member report message in response.
[0063] PIM (Protocol Independent Multicast) is a protocol-independent multicast routing protocol. PIM messages are mainly used to transmit multicast routing information between routers to build and maintain multicast distribution trees. The PIM protocol does not directly define a specific "PIM message" type, but obtains multicast routing information through interaction with unicast routing protocols (such as static routing, RIP, OSPF, IS-IS, BGP, etc.).
[0064] In PIM, the key operation is the RPF (Reverse Path Forwarding) check, which uses existing unicast routing information to determine the forwarding path for multicast messages. When a multicast message arrives at a router, if the RPF check passes, the router will create a corresponding multicast routing table entry and may forward it to a downstream router.
[0065] S202: The multicast source terminal transmits the initial clothing design message using the multicast tree.
[0066] In this application, when a new initial clothing design message sending and receiving task is created, the task number will be notified to all participants through other means. After each participant is notified, the task number is added to the IGMP update message. The gateway router adds the task number to the outgoing interface of the (S, G) table entry that receives the IGMP update message, and sends the (S, G) PIM update message upstream. The PIM update message also adds the task number. The upstream router adds the task number to the outgoing interface of the (S, G) table entry that receives the PIM update message, and so on. Therefore, the corresponding outgoing interface of the (S, G) table entry of each multicast node carries a task number, and there may be multiple task numbers.
[0067] See also Figure 3 , Figure 3A schematic diagram of a framework of a clothing design message receiving and sending node based on a multicast tree provided by an embodiment of the present invention, wherein MA and MB represent multicast sources, Ra, Rb, Rc, Rd, and Re represent routers, and C-A1, C-A2, C-B1, C-B2, and C-C1 represent target terminals. A master control node can be selected as the only multicast source, for example Figure 3 MA in. All nodes send IGMP join messages, and the multicast group is the unified multicast address, such as 226.1.1.1. The IGMP join messages sent by the master node terminals participating in different clothing design message tasks must carry the task number to which they belong, and the task number remains unique within the management domain. Based on the existing version (Version), type (Type), maximum response time (Max Response Time), checksum (Checksum) and multicast address (GroupAddress) in the current IGMP join message, add a task number field, 32 bits, to specify the task number information that the host wants to join, such as 0x0001.
[0068] After the gateway router receives the IGMP join message, it needs to add a task number list to the outbound interface, as shown in Table 1 below:
[0069] Table 1: List of outbound interface task numbers after the router receives the IGMP join message
[0070]
[0071] Among them, the task number list of the outbound interface Vlanif20 includes 0001 and 0003. Later, when a multicast data packet of 226.1.1.1 is received, the task number carried by the data packet needs to be detected. Only when the task number contained in the data packet matches the task number of the outbound interface identifier, it is allowed to be sent out from the outbound interface, otherwise it cannot be sent out from the outbound interface. For example, a multicast data packet with a destination address of 226.1.1.1 and containing task number 0003 can be sent out from Vlanif20, while a multicast data packet with a destination address of 226.1.1.1 and containing task number 0002 cannot be sent out from Vlanif20, although its destination multicast address is 226.1.1.1.
[0072] If an outbound interface of any multicast router receives a new PIM join message from a downstream router, and the PIM join message contains a new task number, the task number is added to the task number list of the outbound interface. Similarly, if an outbound interface of any gateway router receives a new IGMP join message from a host, and the IGMP join message contains a new task number, the task number is added to the task number list of the outbound interface.
[0073] It should be noted that the initial clothing design message uses a unified multicast group address and an independent task number; wherein the multicast group address includes the host IP of the clothing designer's main control node, and a first special mark for identifying the initial clothing design message is added to the message.
[0074] In an optional implementation manner, after the multicast source terminal transmits the initial clothing design message using the multicast tree, the method may further include:
[0075] Step 1: When the router receives the message information of the initial clothing design message marked with the first special mark from the (S, G) outbound interface, it checks whether the task number contained in the initial clothing design message is in the task number list of the outbound interface where the message information is received;
[0076] Step 2: If yes, the verification is passed, and the router modifies the source IP address of the message information to the IP address of the master node, so as to send the message information to the upstream router of the router through the RPF interface, and transmit it to other outbound interfaces marked with the task number contained in the initial clothing design message in the (S, G) table entry, so as to send the initial clothing design message to other participant nodes. The gateway router modifies the source IP through the review of the task number, receives it from the outbound interface of the (S, G) table entry, and sends it upstream and downstream, breaking through the forwarding restrictions of traditional multicast data messages.
[0077] Exemplarily, the host where the fashion designer is located sends out the design draft, the destination address is the unified multicast group address, including the task number and the designer's host IP, and the message is added with a first special mark "D" to indicate the design draft.
[0078] For routers, since the traditional process does not allow such multicast data packets to be received from the outbound interface of the (S, G) table entry, the following improvements are made:
[0079] When the gateway router receives a design draft data message marked with the first special mark "D" from the (S, G) output interface, it first checks the task number, that is, whether the task number contained in the design draft data is in the task number list of the output interface that received the message. If so, the check is passed, otherwise the message is discarded.
[0080] After the task number is verified and passed, the router first modifies the source IP address of the message to the IP address of the master node, and sends the message to the upstream router to the RPF interface, and at the same time sends it to other outbound interfaces marked with the task number in the (S, G) table entry, and sends it to other participant nodes of the task; the upstream router also verifies the task number, and sends it upstream after it is passed, and at the same time sends it to other outbound interfaces marked with the task number in the (S, G) table entry, and hands it over to other participants of the task.
[0081] S203: The target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines a target clothing design message.
[0082] Specifically, the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message. The feedback data message adds a second special mark "R" to indicate feedback, including the multicast source address, multicast group address and task number to determine the target clothing design message.
[0083] S204: performing reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree.
[0084] Specifically, the reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree may include:
[0085] Identify and receive the target clothing design message whose message type sent by the target terminal includes the second special mark, and send the target design message from the RPF interface of the (S, G) multicast forwarding table item to the upstream router in sequence to realize the reverse forwarding of the target clothing design message to the multicast source terminal.
[0086] Exemplarily, the router is responsible for analyzing the content, and if it finds that the multicast message type is the second special mark R, it needs to reverse forward according to the multicast forwarding table entry, and according to the (S, G) information in the message, send the file from the input interface (i.e., the RPF interface) of the (S, G) multicast forwarding table entry upstream.
[0087] Continue to see Figure 3 For example, router Rd receives feedback from C-A1 and sends the target clothing design message upstream from the input interface (i.e., RPF interface) of the (S, G) multicast forwarding table item; router Rc also receives feedback from C-A1 and sends the target clothing design message upstream from the input interface (i.e., RPF interface) of the (S, G) multicast forwarding table item; router Ra also receives feedback from C-A1 and sends the target clothing design message upstream from the input interface (i.e., RPF interface) of the (S, G) multicast forwarding table item to MA, completing the reverse forwarding of the target clothing design message.
[0088] In an optional implementation, the method may further include:
[0089] In response to the master control node generating a merge instruction of multiple clothing design message tasks; wherein the destination address of the merge instruction is a unified multicast group address, and contains the initial task number and the target task number of the multiple clothing design messages to be merged;
[0090] Receive the merge instruction and check the multicast forwarding table entry (S, G) to modify the initial task number to be merged to the target task number that is finally retained; or
[0091] In response to the master control node generating a splitting instruction of the clothing design message task and determining the task number to be split;
[0092] The split instruction is received, and the router (S, G) table entry is checked. If it is identified that the router output interface includes the task number to be split, the task number to be split is directly deleted from the router output interface.
[0093] For example, when the master control node finds that multiple tasks need to be merged, the master control node initiates a merge instruction. For example, the destination address of the merge instruction is the unified multicast address 226.1.1.1, which contains multiple task numbers that need to be merged (for example, 0001 and 0003) and the final reserved task number (for example, 0003). The instruction will be forwarded to all nodes through the multicast tree, including all routers and hosts on the multicast tree.
[0094] All routers that receive the merge instruction check their own multicast forwarding table entries (S, G) and modify the task number to be merged to the final reserved task number, so as to avoid repeated transmission of messages from one interface. For example, if the outbound interface Vlanif20 of the (S, G) entry contains two task numbers, 0001 and 0003, then according to the merge instruction, delete 0001; if the outbound interface Vlanif30 contains two task numbers, 0001 and 0004, then according to the merge instruction, modify 0001 to 0003.
[0095] The host node that receives the instruction will delete the merged task number from the IGMP update message that it sends periodically, and retain or change it to the task number that is finally retained. For example, if the original IGMP update message of a host contains task numbers 0001 and 0003, then according to the merge instruction, the IGMP update message sent subsequently will no longer contain task number 0001. For another example, if the original IGMP update message of a host contains task numbers 0001 and 0004, then according to the merge instruction, the IGMP update message sent subsequently will contain task numbers 0003 and 0004.
[0096] Or, in another scenario, the master control node finds that the design draft of the original task number needs to be discussed separately by two groups of people, that is, some participants belong to two tasks at the same time. Then the master control node sends a split instruction, which contains the old task number, the new task number A and the corresponding host IP list, and the new task number A and the corresponding host IP list, and sends it through a unified multicast group.
[0097] The host that receives the instruction modifies the IGMP update message accordingly and resends it periodically. The router receives the split instruction and checks its (S, G) table entry. If there is a task number to be split on a certain outbound interface, the task number is deleted from the outbound interface. This can save table space, and the split instruction continues to be sent to the downstream router. For example, the master node MA needs to split the original 0001 task into 0002 and 0x0003, and send a split instruction with a unified multicast address as the destination address. The split instruction carries the original task number 0001, as well as the updated task number and the corresponding host IP list (0002, 20.20.20.20; 0003, 30.30.30.30). Host C-A1 receives the multicast message and determines that the task number corresponding to its IP is 0001 to be split, so it changes the task number to 0002 in the IGMP update message; host C-B1 receives the split instruction and determines that the task number corresponding to its IP is updated to 0003, so it changes the task number to 0003 in the IGMP update message. The router receives the split instruction and checks its (S, G) table entry. If there is a task number 0001 to be split on the outbound interface Vlanif30, it deletes the task number from the outbound interface, which can save table space, and the split instruction continues to be sent to the downstream router. The gateway router will receive the IGMP update message later and add the split task number according to the normal process.
[0098] Through the merging instructions and splitting instructions of the master control node, the router nodes and the host nodes perform related work accordingly, realizing the task attribution reconstruction of the router nodes and the host nodes.
[0099] Compared with the prior art, the present invention first constructs a multicast tree for sending and receiving clothing design messages; the multicast source terminal uses the multicast tree to transmit the initial clothing design message; the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; finally, the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table item of the multicast tree. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry.
[0100] Another embodiment of the present application provides a clothing design message sending and receiving system based on a multicast tree, such as Figure 4 The structure diagram of a clothing design message sending and receiving system based on a multicast tree is shown, and the system includes:
[0101] A construction module 401 is used to construct a multicast tree for sending and receiving clothing design messages;
[0102] Transmission module 402, used for the multicast source terminal to transmit the initial clothing design message using the multicast tree;
[0103] Receiving module 403, used for the target terminal to receive the initial clothing design message and generate feedback to the initial clothing design message, and determine the target clothing design message;
[0104] The execution module 404 is used to execute reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree.
[0105] Compared with the prior art, the present invention first constructs a multicast tree for sending and receiving clothing design messages; the multicast source terminal uses the multicast tree to transmit the initial clothing design message; the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; finally, the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table item of the multicast tree. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry.
[0106] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to implement the steps in the above method embodiment when running.
[0107] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0108] S201: construct a multicast tree for sending and receiving clothing design messages;
[0109] S202: The multicast source terminal transmits the initial clothing design message using the multicast tree;
[0110] S203: The target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines a target clothing design message;
[0111] S204: performing reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree.
[0112] Specifically, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0113] Compared with the prior art, the present invention first constructs a multicast tree for sending and receiving clothing design messages; the multicast source terminal uses the multicast tree to transmit the initial clothing design message; the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; finally, the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table item of the multicast tree. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry.
[0114] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in the above method embodiment.
[0115] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0116] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0117] S201: construct a multicast tree for sending and receiving clothing design messages;
[0118] S202: The multicast source terminal transmits the initial clothing design message using the multicast tree;
[0119] S203: The target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines a target clothing design message;
[0120] S204: performing reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree.
[0121] Compared with the prior art, the present invention first constructs a multicast tree for sending and receiving clothing design messages; the multicast source terminal uses the multicast tree to transmit the initial clothing design message; the target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; finally, the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table item of the multicast tree. It can not only improve the collaboration efficiency between clothing design teams, but also promote the rapid exchange of design inspiration and feedback, which is of great significance for promoting the innovative development of the clothing design industry.
[0122] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] In the several embodiments provided by the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0125] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0126] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0127] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0128] The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for sending and receiving clothing design messages based on a multicast tree, characterized in that: The method comprises: Construct a multicast tree for sending and receiving clothing design messages; The multicast source terminal transmits the initial clothing design message by using the multicast tree; the initial clothing design message adopts a unified multicast group address and an independent task number; wherein the multicast group address includes the host IP of the clothing designer master control node, and a first special mark for identifying the initial clothing design message is added to the message; When the router receives the message information of the initial clothing design message marked with the first special mark from the (S, G) outbound interface, it checks whether the task number contained in the initial clothing design message is in the task number list of the outbound interface where the message information is received; If yes, the verification is passed, and the router modifies the source IP address of the message information to the IP address of the master node, so as to send the message information to the upstream router of the router through the RPF interface, and transmit it to other outgoing interfaces of the (S, G) table entry marked with the task number contained in the initial clothing design message, so as to send the initial clothing design message to other participant nodes; The target terminal receives the initial clothing design message and generates feedback on the initial clothing design message, and determines the target clothing design message; Perform reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree; In response to a master control node generating a merge instruction for multiple clothing design message tasks; wherein the destination address of the merge instruction is a unified multicast group address, and contains the initial task number and the target task number of the multiple clothing design messages to be merged; receiving the merge instruction and checking the multicast forwarding table item (S, G) to modify the initial task number to be merged to the target task number to be retained in the end; or in response to a master control node generating a split instruction for a clothing design message task and determining the task number to be split; receiving the split instruction, checking the router (S, G) table item, and if it is identified that the router output interface includes the task number to be split, directly deleting the task number to be split from the router output interface.
2. The method according to claim 1, characterized in that The multicast tree for sending and receiving clothing design messages is constructed, including: Determine nodes participating in sending and receiving clothing design messages; the nodes at least include clothing designer master nodes and participant nodes; Construct a network topology diagram based on the connection relationship of nodes; Based on the network topology diagram, a multicast tree for sending and receiving clothing design messages is generated.
3. The method according to claim 2, characterized in that After constructing the multicast tree for sending and receiving clothing design messages, the method further includes: The multicast protocol is configured and an IGMP update message is used to add a task number for sending and receiving clothing design messages in the multicast tree.
4. The method according to claim 3, characterized in that The target clothing design message is marked with a second special mark; the reverse forwarding of the target clothing design message is performed according to the multicast forwarding table entry of the multicast tree, including: Identify and receive a target clothing design message whose message type includes the second special mark sent by the target terminal, and send the target clothing design message from the RPF interface of the (S, G) multicast forwarding table item to the upstream router in sequence to achieve reverse forwarding of the target clothing design message to the multicast source terminal.
5. A clothing design message sending and receiving system based on multicast tree, characterized in that: The system comprises: A building module for building a multicast tree for sending and receiving clothing design messages; A transmission module, used for the multicast source terminal to transmit the initial clothing design message using the multicast tree; the initial clothing design message uses a unified multicast group address and an independent task number; wherein the multicast group address includes the host IP of the clothing designer master control node, and a first special mark for identifying the initial clothing design message is added to the message; When the router receives the message information of the initial clothing design message marked with the first special mark from the (S, G) outbound interface, it checks whether the task number contained in the initial clothing design message is in the task number list of the outbound interface where the message information is received; If yes, the verification is passed, and the router modifies the source IP address of the message information to the IP address of the master node, so as to send the message information to the upstream router of the router through the RPF interface, and transmit it to other outgoing interfaces of the (S, G) table entry marked with the task number contained in the initial clothing design message, so as to send the initial clothing design message to other participant nodes; A receiving module, used for the target terminal to receive the initial clothing design message and generate feedback on the initial clothing design message, and determine the target clothing design message; An execution module, used for executing reverse forwarding of the target clothing design message according to the multicast forwarding table entry of the multicast tree; A response module is used to generate a merge instruction of multiple clothing design message tasks in response to a master control node; wherein the destination address of the merge instruction is a unified multicast group address and contains the initial task number and target task number of multiple clothing design messages to be merged; receive the merge instruction and check the multicast forwarding table item (S, G) to modify the initial task number to be merged to the target task number finally retained; or generate a split instruction of a clothing design message task in response to a master control node and determine the task number to be split; receive the split instruction, check the router (S, G) table item, and if it is identified that the router output interface includes the task number to be split, directly delete the task number to be split from the router output interface.
6. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to implement the method according to any one of claims 1 to 4 when executed.
7. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the computer program to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Realizing system of multicast routing based on mark and method thereof
CN101631274A
Refreshing method and system of multicast tree
CN103888910A