IP Library Granted Patent US 10,848,595
Granted Patent B2
US 10,848,595 · App. 15/461,257 · Granted Nov 24, 2020

Method and device for message sending and receiving based on a communication interface framework

Inventors: Zhuo Song (Beijing, CN); Yu Li (Beijing, CN); Zhiping He (Beijing, CN)
Assignee: Alibaba Group Holding Limited
H04L67/325G06F9/45558G06F9/545G06F9/546H04L67/26H04L67/2842H04M3/569
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,848,595
App. No.
15/461,257
Granted
Nov 24, 2020
Kind
B2
Abstract

Embodiments of the disclosure provide a communication interface framework, a message sending method and device based on a communication interface framework, a message receiving method and device based on a communication interface framework, and a communication system. The communication interface framework comprises: a device layer, a core layer and a protocol layer, wherein the device layer comprises a transmission device for providing the framework with, when transmitting data information, a transmission interface for transmitting the data information; the core layer comprises an interface protocol, a sending queue, and a receiving queue; and the protocol layer comprises a user mode application program interface and a kernel mode application program interface.

Claims (57)

1. A communication interface framework, comprising a device layer, a core layer and a protocol layer, wherein

the device layer comprises:

a transmission device for providing the framework with, when transmitting data information, a transmission interface for transmitting the data information, wherein the data information is acquired and transmitted in a form of a message;

the core layer comprises:

an interface protocol to provide interfaces for different protocols used during calls for the protocol layer,

a sending queue to store the data information be sent to other transmission devices, and

a receiving queue to store the data information received from the other transmission devices; and

the protocol layer comprises:

an interface processor to query, according to a message type of the message carrying the data information, the protocol corresponding to the message type during the calls for the protocol layer;

a user mode application program interface for a system call to either push the data information to the sending queue or release the data information in the receiving queue, and

a kernel mode application program interface for calls for a user process and kernel components to either push the data information to the sending queue or release the data information in the receiving queue;

wherein the communication interface framework is configured to:

clear the sending queue stored in a current cache,

push the data information to the sending queue corresponding to the protocol,

transmit the sending queue, and

detect a serial number of the data information in the sending queue.

2. The communication interface framework according to claim 1 , wherein the core layer further comprises a scheduler to push the data information to the sending queue.

3. The communication interface framework according to claim 2 , wherein the data information is transmitted and stored in a form of a message.

4. The communication interface framework according to claim 3 , wherein the scheduler pushes, according to a message type of the message, the data information to a protocol queue corresponding to the message type.

5. A message sending method based on a communication interface framework, comprising:

acquiring, via an application program interface of a protocol layer, data information to be sent, wherein the data information is acquired and transmitted in a form of a message;

querying, according to a message type of the message carrying the data information, a protocol corresponding to the message type;

clearing a sending queue stored in a current cache;

pushing the data information to the sending queue corresponding to the queried protocol;

calling a transmission interface of a local transmission device of a device layer after acquiring the data information asynchronously;

sending the data information via the transmission interface to a transmission device of a demander demanding the data information;

transmitting the sending queue; and

detecting a serial number of the data information in the sending queue.

6. The method according to claim 5 , wherein pushing the data information to a sending queue corresponding to the queried protocol further comprises

pushing the data information to the sending queue corresponding to the protocol by callback function corresponding to the queried protocol.

7. The method according to claim 5 , wherein, before a step of acquiring, via an application program interface, data information to be sent, the method further comprises:

establishing a channel for transmitting the message carrying the data information.

8. The method according to claim 5 , wherein calling a transmission interface of a local transmission device after acquiring the data information further comprises:

calling the transmission interface of the local transmission device after acquiring the data information asynchronously.

9. The method according to claim 5 , wherein, before a step of sending the data information via the transmission interface to a transmission device of a demander demanding the data information, the method further comprises:

activating the local transmission device.

10. A non-transitory computer readable medium that stores a set of instructions that is executable by at least one processor of a message sending device to cause the message sending device to perform a message sending method based on a communication interface framework, the method comprising:

acquiring, via an application program interface, data information to be sent, wherein the data information is acquired and transmitted in a form of a message;

querying, according to a message type of the message carrying the data information, a protocol corresponding to the message type;

clearing a sending queue stored in a current cache;

pushing the data information to the sending queue corresponding to the queried protocol;

calling a transmission interface of a local transmission device after acquiring the data information asynchronously;

sending the data information via the transmission interface to a transmission device of a demander demanding the data information;

transmitting the sending queue; and

detecting a serial number of the data information in the sending queue.

11. The non-transitory computer readable medium according to claim 10 , wherein the set of instructions is executable by the at least one processor of the message sending device to cause the message sending device to further perform pushing the data information to a sending queue corresponding to the queried protocol by:

pushing the data information to the sending queue corresponding to the protocol by means of a callback function corresponding to the queried protocol.

12. The non-transitory computer readable medium according to claim 10 , wherein before a step of acquiring, via an application program interface, data information to be sent, the set of instructions is executable by the at least one processor of the message sending device to cause the message sending device to further perform:

establishing a channel for transmitting the message carrying the data information.

13. A non-transitory computer readable medium that stores a set of instructions that is executable by at least one processor of a message receiving device to cause the message receiving device to perform a message receiving method based on a communication framework, the method comprising:

receiving, via a local transmission device, data information sent by a transmission device of a sender, wherein the data information is acquired and transmitted in a form of a message;

determining, according to a message type of the message carrying the data information, whether local interface protocols include a protocol corresponding to the message type;

reading a serial number in the data information in response to a determination that the local interface protocols include a protocol corresponding to the message type;

determining whether the data information is ordered;

releasing the data information in the receiving queue in response to a determination that the data information is not ordered;

clearing, after the local transmission device receives the data information, information of the sender carried in the data information; and

reading, via an application program interface, the data information from which the information of the sender is cleared.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2026
From: ALIBABA GROUP HOLDING LIMITED
To: CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PRIVATE LIMITED
Reel/Frame 075478/0225 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2020
From: SONG, ZHUO; LI, YU; HE, ZHIPING
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053046/0709 →
Priority Claims (1)
CN 2016 1 0154122 · Mar 17, 2016 · national
Continuity (1)
Related Publication 20170272540A1 · Sep 21, 2017
Cited By (5)
US 12,321,305 US 12,353,305 US 12,405,912 US 12,481,614 US 12,591,727