Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 10, 2017

[Network] ARQ - Automatic repeat request

Automatic Repeat reQuest (ARQ) hay  Automatic Repeat Query là một phương thức điều khiển lỗi cho quá trình truyền dữ liệu bằng cách sử dụng ACK (acknowledgements) và Time Out, cho phép truyền dữ liệu tin cậy trên nền một dịch vụ không tin cậy (unreliable service). 1. ARQ protocol Gồm 03 loại Stop-and-wait ARQ Go-Back-N ARQ Selective Repeat ARQ / Selective Reject 2. Lĩnh vực liên quan Linked Data Transport Layer OSI Model. Ngoài ra có một số bằng sáng chế trong lĩnh vực live video contribution environments  sử dụng tới ARQ.

[Message Queue] Message Exchange Pattern - MEP

Six Message Exchange Patterns There are three MEPs to choose from: Datagram ( IInputChannel  and  IOutputChannel ) When using a datagram MEP, a client sends a message using a  fire and forget  exchange. A fire and forget exchange is one that requires out-of-band confirmation of successful delivery. The message might be lost in transit and never reach the service. If the send operation completes successfully at the client end, it does not guarantee that the remote endpoint has received the message. The datagram is a fundamental building block for messaging, as you can build your own protocols on top of it—including reliable protocols and secure protocols. Client datagram channels implement the IOutputChannel  interface and service datagram channels implement the  IInputChannel interface. Request-Response ( IRequestChannel  and  IReplyChannel ) In this MEP, a message is sent, and a reply is received. The pattern consists of request-response pairs. Examples of request-respons

[CSDL] Xây dựng và tối ưu Cơ sở dữ liệu bằng dạnh chuẩn 1NF à 3NF

1 I.  Yêu cầu bài toán Quản lý bãi đỗ xe ô tô trong thành phố Thành phố A quy hoạch 10 vị trí làm bãi đỗ xe ô tô trong thành phố. Mỗi bãi đỗ được chia thành các ô nhỏ (spot).   Mỗi ô tô chỉ sử dụng một spot cho một lần đỗ. Công dân đi vào thành phố có thể mua vé để có được chỗ đỗ xe trong bãi. Tiền vé được tính dựa trên số giờ mà ô tô đỗ trong bãi. 2 II.  Xây dựng biểu đồ quan hệ thực thể (ER – entity relationship diagram) Từ bài toán có thể xác định được các thực thể liên quan như sau: -        Parking : đại diện cho các bãi đỗ xe trong thành phố. -        User : Người sử dụng dịch vụ, công dân thành phố. -        Ticket : Vé đỗ xe 👉Chi tiết các thực thể và thuộc tính -        Parking entity Tên trường Mô tả Parking_id Mã bãi đỗ ParkingSpot Danh sách các điểm đỗ trong bãi(Spot1, Spot 2… Spotn) Group Bãi đỗ thuộc nhóm nào: Dành cho xe Bus, Taxi, xe tải… Name Tên bãi đỗ Address Địa chỉ bã