# US 2017/0371591 A1 · Data Transmission Method and System

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0371591 A1
- Document ID: US20170371591A1
- Status: Published application
- Kind: A1
- Application number: 15/281,268
- Filed: 2016-09-30
- Published: 2017-12-28
- Earliest claimed: 2016-06-24
- Assignees: Beijing Baidu Netcom Science and Technology Co., L Td.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Liming Xia; Jingchao Feng; Quan Wang; Ning Qu; Zhuo Chen
- Web page: https://patentgrep.com/patent/US20170371591A1

## CPC

- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/064: {Management of blocks}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- H04L 47/10: Flow control; Congestion control
- H04L 67/00: Network arrangements or protocols for supporting network services or applications (user-to-user messaging H04L51/00; network arrangements, protocols or services for supporting real-time applications in data packet communications networks H04L65/00)
- G05D 1/0246: {using a video camera in combination with image processing means}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES

## Abstract

The present application discloses a data transmission method and system. A specific embodiment of the method includes: receiving a data transmission-instruction by a data sender, wherein the data transmission-instruction includes a thematic name indicative of a type of to-be-transmitted data required by a data receiver; creating a shared memory segment corresponding to the thematic name. It makes possible for the data sender and the data receiver to run in a separate memory space. When data is needed to be transmitted, a corresponding shared memory segment may be created for data transmission in accordance with any transmitting requirement, and the shared memory segment may be released when the transmission is done or appears abnormal. On one hand, it reduces the redundant operations of the data transmission system during data transmission, and improves the data transmission performance; on the other hand, the data transmitting procedure between the data sender and the data receiver, and other operations executed by the data sender or the data receiver are independent of each other, which improves the stability of the data transmission system.

## Claims

### Claim 1

A data transmission method, comprising:
receiving a data transmission-instruction by a data sender, the received instruction includes a thematic name indicative of a type of to-be-transmitted data required by a data receiver; and
creating a shared memory segment corresponding to the thematic name so that the data sender and the data receiver transmit the to-be-transmitted data through the shared memory segment.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the data sender is of a data sending process and the data receiver is of a data receiving process, and
the method further comprises:
receiving, by a main process, an issuance request sent by the data sending process, wherein the issuance request includes the thematic name; and
storing the thematic name and an identity of the data sending process correspondingly.

### Claim 3 (depends on 2)

The method according to claim 2, wherein, before the data sender receives the data transmission-instruction, the method further comprises:
receiving, by main process, a subscription request sent by the data receiving process, wherein the subscription request includes the thematic name;
storing the thematic name and an identity of the data receiving process correspondingly;
establishing a corresponding relationship between the data sending process and the data receiving process; and
sending the data transmission-instruction to the data sending process.

### Claim 4 (depends on 3)

The method according to claim 3, wherein, after the shared memory segment corresponding to the thematic name is created, the method further comprises:
calling, by the data sending process, a presetted operation interface of the shared memory segment to write the to-be-transmitted data into the shared memory segment; and
calling, by the data receiving process, the presetted operation interface of the shared memory segment to read the to-be-transmitted data.

### Claim 5 (depends on 4)

The method according to claim 4, wherein, the method further comprises:
storing, in a storage space corresponding to the shared memory segment, the attribute information including the thematic name, and an index of a shared memory block in the shared memory segment.

### Claim 6 (depends on 5)

The method according to claim 5, wherein, after the shared memory segment corresponding to the thematic name is created, the method further comprises:
memory-mapping, by the data sending process and the data receiving process, the shared memory segment to a corresponding storage space.

### Claim 7 (depends on 6)

The method according to claim 6, wherein, the method further comprises:
detecting if a transmission of the data transmitted by the data sending process and data receiving process is done or appears abnormal;
if yes, sending a releasing instruction to the data sending process and the data receiving process, so that the data sending process and data receiving process release the shared memory segment.

### Claim 8

A data transmission system, wherein, the system comprises a data sender and a data receiver,
wherein the data sender receives a data transmission-instruction including a thematic name indicative of a type of to-be-transmitted data required by the data receiver; and creates a shared memory segment corresponding to the thematic name so that the data sender and the data receiver transmit the to-be-transmitted data through the shared memory segment.

### Claim 9 (depends on 8)

The system according to claim 8, wherein, the data sender is of a data sending process and the data receiver is of a data receiving process, and the system further comprises a main process,
wherein the main process receives an issuance request sent by the data sending process, wherein the issuance request includes the thematic name; and
storing the thematic name and an identity of the data sending process correspondingly.

### Claim 10 (depends on 9)

The system according to claim 9, wherein, the main process is further used to: receive a subscription request sent by the data receiving process, wherein the subscription request includes the thematic name; store the thematic name and an identity of the data receiving process correspondingly; establish a corresponding relationship between the data sending process and the data receiving process; and send the data transmission-instruction to the data sending process.

### Claim 11 (depends on 10)

The system according to claim 10, wherein, the data sending process is further used to call a presetted operation interface of the shared memory segment to write the to-be-transmitted data into the shared memory segment; and
the data receiving process is further used to call a presetted operation interface of the shared memory segment to read the to-be-transmitted data.

### Claim 12 (depends on 11)

The system according to claim 11, wherein, the system further comprises:
a storage unit storing, in a storage space corresponding to the shared memory segment, attribute information including the thematic name and an index of a shared memory block in the shared memory segment.

### Claim 13 (depends on 12)

The system according to claim 12, wherein, the data sending process is further used to map the shared memory segment corresponding to the thematic name in a storage space corresponding to the data sending process after the shared memory segment is created;
the data receiving process is further used to map the shared memory segment corresponding to the thematic name in a storage space corresponding to the data receiving process after the shared memory segment is created.

### Claim 14 (depends on 13)

The system according to claim 13, wherein, the system further comprises:
a detecting unit detects if a transmission of the to-be-transmitted data by the data sending process and the data receiving process is done or appears abnormal;
if so, the detecting unit sends a releasing instruction to the data sending process and the data receiving process so that the data sending process and the data receiving process release the shared memory segment.

### Claim 15

A non-transitory storage medium storing one or more programs, the one or more programs when executed by an apparatus, causing the apparatus to perform a data transmission method, comprising:
receiving a data transmission-instruction by a data sender, the received instruction includes a thematic name indicative of a type of to-be-transmitted data required by a data receiver; and
creating a shared memory segment corresponding to the thematic name so that the data sender and the data receiver transmit the to-be-transmitted data through the shared memory segment.
